forked from AuroraMiddleware/gtk
menu: Modernize code
No functional changes, just don't call valist functions anymore.
This commit is contained in:
parent
cda617df4d
commit
6c7b6f9654
@ -1186,13 +1186,10 @@ gtk_menu_init (GtkMenu *menu)
|
||||
|
||||
menu->priv = priv;
|
||||
|
||||
priv->toplevel = g_object_connect (g_object_new (GTK_TYPE_WINDOW,
|
||||
"type", GTK_WINDOW_POPUP,
|
||||
"child", menu,
|
||||
NULL),
|
||||
"signal::event", gtk_menu_window_event, menu,
|
||||
"signal::destroy", gtk_widget_destroyed, &priv->toplevel,
|
||||
NULL);
|
||||
priv->toplevel = gtk_window_new (GTK_WINDOW_POPUP);
|
||||
gtk_container_add (GTK_CONTAINER (priv->toplevel), GTK_WIDGET (menu));
|
||||
g_signal_connect (priv->toplevel, "event", G_CALLBACK (gtk_menu_window_event), menu);
|
||||
g_signal_connect (priv->toplevel, "destroy", G_CALLBACK (gtk_widget_destroyed), &priv->toplevel);
|
||||
gtk_window_set_resizable (GTK_WINDOW (priv->toplevel), FALSE);
|
||||
gtk_window_set_mnemonic_modifier (GTK_WINDOW (priv->toplevel), 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user