Re: Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
On 03/01/2017 08:17 PM, David C. Rankin wrote: > All, > > I have a menubar (working fine) and I want to attach a popup menu to that > widget to "show/hide" a toolbar below it. I cannot figure out how to attach > the popup to the 'menubar' itself gen

Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
All, I have a menubar (working fine) and I want to attach a popup menu to that widget to "show/hide" a toolbar below it. I cannot figure out how to attach the popup to the 'menubar' itself generically. GtkWidget *evbox; /* popup menu container */

Re: window-popup = menu

2013-03-13 Thread jcupitt
Hi again, You can connect to the "map" event. This happens after the window has been realized and just before the window appears on the screen, so the size has been calculated. https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-map In ::map, change window x/y to move it away from t

Re: window-popup = menu

2013-03-13 Thread Mariano Gaudix
Hello . Is not a menu-popup . I use a window-popup . GTK_WINDOW_POPUP is used to implement widgets such as GtkMenu or tooltips . https://developer.gnome.org/gtk3/stable/GtkWindow.html I am creating a mockupwith window-popup thatcontains scrollbar , and other widgets

Re: window-popup = menu

2013-03-13 Thread jcupitt
Hi Mariano, Just call gtk_menu_popup() and it'll position the menu away from the screen edges for you. https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup John On 13 March 2013 04:05, Mariano Gaudix wrote: > Hello how i can determine the size of a window-popup hidden ? ¿

window-popup = menu

2013-03-12 Thread Mariano Gaudix
Hello how i can determine the size of a window-popup hidden ? ¿ Or how i can make window-popup behaves as a menu. I have a problem. if the botton to activate the window is in the low position of the screen , the window-popup , is not shown above of the botton .. see the code and

Re: Can't make a popup menu popup from a GtkStatusIcon

2009-06-19 Thread Bill Farmer
signal_connect(item, "activate", G_CALLBACK(menu_item_activate), NULL); // Create a status icon GtkStatusIcon *icon = gtk_status_icon_new_from_icon_name("application"); gtk_status_icon_set_tooltip_text(icon, "Keyboard auto repeat temporarily disabled");

Can't make a popup menu popup from a GtkStatusIcon

2009-06-19 Thread Bill Farmer
I'm using GtkStatusIcon, GtkMenu, and GtkCheckMenuItem to create a status icon with a popup menu. The code appears to be working in that a small rectangular empty box pops up in exactly the right place under the status icon, but I can't get any content in the menu. I've tried add

Disable (set non-sensitive) an item of the popup menu of a GNOME panel applet

2009-02-03 Thread Eugene Arshinov
How can I do that? I can get a BonoboUIComponent corresponding to the popup menu with panel_applet_get_popup_component(), but I do not know how to use the returned object. It would be better if I could get a GtkMenu. I tried to call gtk_menu_get_for_attach_widget() passing my PanelApplet

Re: when and where to destroy "popup menu"?

2007-02-09 Thread Guy Rouillier
Zhang Yang wrote: > Hello. > I have created a popup menu in my function(list below). But I have a > question "when and where to destroy it?". I see in your sample below you are not connecting the popup_menu signal, which is the one you want for context menus. You don't

when and where to destroy "popup menu"?

2007-02-07 Thread Zhang Yang
Hello. I have created a popup menu in my function(list below). But I have a question "when and where to destroy it?". I tried connect its selection-done handler to gtk_widget_destroy.But it seems nothing happened. I run the program and monitor it through "system monitor". Th

Re: GtkStatusIcon and popup menu

2006-11-09 Thread Peter Lund
On Tue, 2006-11-07 at 02:27 +0100, Chris tophe wrote: > Because GtkStatusIcon is not a widget. Ah. I use the EggTrayIcon code because I used (and still use) GTK+ 2.8. -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail

Re: GtkStatusIcon and popup menu

2006-11-06 Thread Chris tophe
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); gtk_widget_show(menuitem); g_signal_connect(G_OBJECT(trayicon), "popup-menu", G_CALLBACK(popup_callback), G_OBJECT(menu)); g_signal_connect_swapped(G_OBJECT(button), "button-press-event&qu

Re: GtkStatusIcon and popup menu

2006-11-06 Thread Peter Lund
On Sun, 2006-11-05 at 18:31 +0100, Chris tophe wrote: > click somewhere out of it. I tried around, this problem doesn't happen when > calling gtk_menu_popup in response to a widget's "button-press-event"/button > == 3 for example, only in "popup-menu" ca

GtkStatusIcon and popup menu

2006-11-05 Thread Chris tophe
Hi, I'm writing a little app that's using a systray icon and pop menu when you right-click it to interact with user. I'm displaying the menu with gtk_menu_popup() in response to the "popup-menu" signal. Something is bugging me, it does work, but the menu won't go a

Re: popup menu problem

2006-09-26 Thread Olivier Abad
Le mardi 26 septembre 2006 à 10:47 +0200, Olivier Abad a écrit : > Hi, > > I'm trying to implement a popup menu, but the items in my menu don't > seem to receive the "activate" signal, so my handler is never called. > > However, it works if I connec

popup menu problem

2006-09-26 Thread Olivier Abad
Hi, I'm trying to implement a popup menu, but the items in my menu don't seem to receive the "activate" signal, so my handler is never called. However, it works if I connect the handler to "button-release-event" instead of "activate" for my menu items.

Re: popup menu

2006-04-03 Thread Guy Rouillier
prabhakar kushwaha wrote: hi is it there any widget like popup menu Gtk which comes when we press third button of mouse.. if not please tell me the widgets that we should use in order to find pop up menu like facility by clicking third button of mouse. thanks with regards.. gtk_menu_new

popup menu

2006-04-03 Thread prabhakar kushwaha
hi is it there any widget like popup menu Gtk which comes when we press third button of mouse.. if not please tell me the widgets that we should use in order to find pop up menu like facility by clicking third button of mouse. thanks with regards.. -- Prabhakar IV Year B.tech (Computer Science

popup menu

2005-07-26 Thread Trupthi N.T.
hello everybody, can anybody tell me how to create a pop-up window in gtk1.2 trupthi ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk Popup Menu accelerators not working

2005-07-08 Thread Gaurav Jain
Hi Again, I had another query in relation to Menu accelerators. I need to add more than one accelerator to the same menu item. Say, CTRL + B, and CTRL + I, both added to the "activate" signal. Now when I press CTRL + B, the activate callback is called, but there seems to be no way for me to kno

Re: Gtk Popup Menu accelerators not working

2005-07-08 Thread Gaurav Jain
Thank you so much! Yes, that worked. -Gaurav On 7/8/05, Daniel Pekelharing <[EMAIL PROTECTED]> wrote: > On Fri, 2005-07-08 at 13:32 +0530, Gaurav Jain wrote: > > Hi, > > > > I'm creating a "pop-up" menu which is shown when I click inside a > > button. I added accelerators to the menu items (CTRL

Re: Gtk Popup Menu accelerators not working

2005-07-08 Thread Daniel Pekelharing
On Fri, 2005-07-08 at 13:32 +0530, Gaurav Jain wrote: > Hi, > > I'm creating a "pop-up" menu which is shown when I click inside a > button. I added accelerators to the menu items (CTRL + B), but these > do not work. If I explicitly pop up the menu and then click on the > menu item, then the "act

Gtk Popup Menu accelerators not working

2005-07-08 Thread Gaurav Jain
GtkAccelGroup *accel = gtk_accel_group_new(); gtk_widget_add_accelerator(mi1, "activate", accel, GDK_B, (GdkModifierType)GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_container_add(GTK_CONTAINER(w),b); g_signal_connect(b,"button-press-event",G_CALLBACK(

Disable default popup menu in gtk_entry

2005-05-04 Thread Jérôme COUDERC
Hi, I've just a simple question : how can I remove the default popup menu attached to a gtk_entry_new? Indeed, in some cases I don't want to display it... Regards, Jerome ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnom

Fwd: Popup Menu

2005-04-12 Thread César Leonardo Blum Silveira
sts like win and office > licenses. > > So ... you know :) it just a tip ... > > Best Regards > > On 4/12/05, Nigel Tao <[EMAIL PROTECTED]> wrote: > > On Mon, 2005-04-11 at 21:23 -0300, César Leonardo Blum Silveira wrote: > > > Is there a way I can make my ap

Re: Popup Menu

2005-04-12 Thread Antonio Gomes
ts like win and office licenses. So ... you know :) it just a tip ... Best Regards On 4/12/05, Nigel Tao <[EMAIL PROTECTED]> wrote: > On Mon, 2005-04-11 at 21:23 -0300, César Leonardo Blum Silveira wrote: > > Is there a way I can make my application be just a popup menu? > >

Re: Popup Menu

2005-04-12 Thread Nigel Tao
On Mon, 2005-04-11 at 21:23 -0300, CÃsar Leonardo Blum Silveira wrote: > Is there a way I can make my application be just a popup menu? > I mean, when the user opens it, there is no window, it automatically > pops up a menu right where the mouse pointer is. Is that possible? Apol

Fwd: Popup Menu

2005-04-11 Thread César Leonardo Blum Silveira
has no menus for it's icons. So i'm going to write a small program that is going to be the icon's menu, so that program will be launched everytime the user right-clicks the icon. Get the idea? I need just a popup menu! César On Apr 11, 2005 11:33 PM, Freddie Unpenstein <[EMAIL

RE: Popup Menu

2005-04-11 Thread Freddie Unpenstein
> Is there a way I can make my application be just a popup menu? I > mean, when the user opens it, there is no window, it automatically > pops up a menu right where the mouse pointer is. Is that possible? Why not? I wrote a console utility that uses GTK to rip text out of the cli

Re: [pygtk] Popup Menu

2005-04-11 Thread Christian Robottom Reis
On Mon, Apr 11, 2005 at 09:23:48PM -0300, César Leonardo Blum Silveira wrote: > Is there a way I can make my application be just a popup menu? > I mean, when the user opens it, there is no window, it automatically > pops up a menu right where the mouse pointer is. Is that possible? I don

Popup Menu

2005-04-11 Thread César Leonardo Blum Silveira
Hi, Is there a way I can make my application be just a popup menu? I mean, when the user opens it, there is no window, it automatically pops up a menu right where the mouse pointer is. Is that possible? Thanks, César ___ gtk-app-devel-list mailing