LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-24-2005, 09:53 PM   #1
geminigal
Member
 
Registered: Apr 2005
Posts: 53

Rep: Reputation: 15
GTK programming


hi. I m just wondering if there is a way in which when a user right click at a widget, can a pop up window appear for a user input to be saved in a file? if yes can give some examples pls?

btw i m creating a GUI from gtk+1.2.

tq.
 
Old 06-02-2005, 03:08 AM   #2
meonkeys
Member
 
Registered: Apr 2004
Location: Minneapolis
Distribution: Ubuntu
Posts: 45

Rep: Reputation: 15
Yes, this is possible. Here is some example code to get you started. You should probably work with the newer Gtk+ (2.x) series.

As far as right-clicking to create a popup, you can modify the .glade file with the Glade UI designer. Connect the proper event to the callback you specify on the widget you specify. Right-clicks can be detected by using the proper mask.

I would also highly recommend The Official GNOME 2 Developer's Guide. It's got tons of info on Gtk+.
 
  


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
GTK programming linetnew Programming 1 10-12-2005 11:34 AM
GTK programming exvor Programming 10 07-11-2005 03:59 AM
gtk programming sharapchi Programming 3 06-21-2005 02:22 PM
Programming with GTK dfownz Programming 6 07-17-2004 01:50 PM
GTK and programming NSKL Programming 2 01-14-2003 03:30 PM


All times are GMT -5. The time now is 03:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration