Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-24-2005, 10:53 PM   #1
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.

Old 06-02-2005, 04:08 AM   #2
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+.


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

All times are GMT -5. The time now is 04:59 AM.

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