LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2004, 09:41 PM   #1
chaits
LQ Newbie
 
Registered: Feb 2004
Location: Calicut
Posts: 10

Rep: Reputation: 0
Question getting the path of a file by clicking on its icon using glade2








hi members!


I am using glade to develope gui of the application which i want to create as my project work.


i have encountered a problem.


My problem exactly is :


Suppose i have created an application using glade2.In the source files(say, main.c) i create a character array (i.e. a storage space) & then i run the aplication. Now, when i click on a file icon while my application is running, i must get the full path of that file in my pre-allocated storage space.(for eg. if the file is q.c in directory /home/chaits/ , then when my application is running, if i click on the q.c's icon, i must get "/home/chiats/q.c" in the character array i created)


Is it possible using glade2? if yes, how?


i heard that there are somethings called gtk+ functions which allocate such space themselves.... but i am totally clueless about it.


If this is not possible using glade2, which designer i should try?


Please help me.





Regards,


Chaits.
 
Old 02-04-2004, 07:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
you're not really within the right scope. glade is just a toy for building UI's and thier callbacks. you need to code a signal handler to do what you need, which is not what glade is for. http://gtk.org
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Create an executable file in linux which opens by double-clicking it shivanand Linux - General 5 08-30-2005 12:10 AM
Long delay after clicking on Gnome Icon Lsatenstein Fedora 1 07-11-2005 02:27 AM
Launch a ncftpput script clicking on desktop icon jmanjohn61 Linux - Newbie 3 03-08-2005 12:04 AM
File Manager and Double-clicking Jongi Linux - Newbie 3 09-04-2003 10:28 AM
Clicking mp3 file won't open XMMS anymore...help! jbeedham Linux - General 7 08-22-2003 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration