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
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 */
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
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
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 ? ¿
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
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");
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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(
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
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
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?
> >
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
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
> 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
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
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
32 matches
Mail list logo