diff options
Diffstat (limited to 'examples/menu/menu.c')
-rw-r--r-- | examples/menu/menu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/menu/menu.c b/examples/menu/menu.c index 2511cde044..132602fae2 100644 --- a/examples/menu/menu.c +++ b/examples/menu/menu.c @@ -25,8 +25,8 @@ int main( int argc, window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (GTK_WIDGET (window), 200, 100); gtk_window_set_title (GTK_WINDOW (window), "GTK Menu Test"); - g_signal_connect (GTK_OBJECT (window), "delete_event", - GTK_SIGNAL_FUNC (gtk_main_quit), NULL); + g_signal_connect (G_OBJECT (window), "delete_event", + G_CALLBACK (gtk_main_quit), NULL); /* Init the menu-widget, and remember -- never * gtk_show_widget() the menu widget!! @@ -52,9 +52,9 @@ int main( int argc, gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items); /* Do something interesting when the menuitem is selected */ - g_signal_connect_swapped (GTK_OBJECT (menu_items), "activate", - GTK_SIGNAL_FUNC (menuitem_response), - (gpointer) g_strdup (buf)); + g_signal_connect_swapped (G_OBJECT (menu_items), "activate", + G_CALLBACK (menuitem_response), + g_strdup (buf)); /* Show the widget */ gtk_widget_show (menu_items); @@ -83,9 +83,9 @@ int main( int argc, /* Create a button to which to attach menu as a popup */ button = gtk_button_new_with_label ("press me"); - g_signal_connect_swapped (GTK_OBJECT (button), "event", - GTK_SIGNAL_FUNC (button_press), - GTK_OBJECT (menu)); + g_signal_connect_swapped (G_OBJECT (button), "event", + G_CALLBACK (button_press), + menu); gtk_box_pack_end (GTK_BOX (vbox), button, TRUE, TRUE, 2); gtk_widget_show (button); |