[gnome-db] Altering GnomeDBGrid pop-up menu



Hello,

I am coding a fairly straightforward application using
Glade+GDA+GnomeDb. I have a GnomeDbGrid widget, and I
would like the user to get a pop-up menu that has
three options: "Add", "Remove" and "Edit", when she/he
right-clicks over the grid widget. The "stock" pop-up
menu has the options: "Select All", "Clear selection",
"Show column titles", "Save as...". I created a pop-up
menu with Glade with the items I would like to
display, and have the callback function to the signal
create_popup_menu from the grid widget display that
menu. The problem I'm having is that upon the first
right click on the grid, the "stock" popup always
appears first, and my popup menu appears only upon
right-clicking again... is there a way of eliminating
the first pop-up menu, or if this is not possible, of
adding menu items to it?

I'm rather new to Gnome/Gtk/libgnomedb programming, so
I apologize if the answer to this question is pretty
obvious, I searched the mailing list, googled and
stuff, but couldn't find anything useful in this
matter. Thanks a lot!

Pablo


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]