summaryrefslogtreecommitdiff
path: root/examples/menu/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/menu/menu.c')
-rw-r--r--examples/menu/menu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/menu/menu.c b/examples/menu/menu.c
index c8479097c5..2511cde044 100644
--- a/examples/menu/menu.c
+++ b/examples/menu/menu.c
@@ -26,7 +26,7 @@ int main( int argc,
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",
- (GtkSignalFunc) gtk_main_quit, NULL);
+ GTK_SIGNAL_FUNC (gtk_main_quit), NULL);
/* Init the menu-widget, and remember -- never
* gtk_show_widget() the menu widget!!
@@ -53,7 +53,8 @@ int main( int argc,
/* 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));
+ GTK_SIGNAL_FUNC (menuitem_response),
+ (gpointer) g_strdup (buf));
/* Show the widget */
gtk_widget_show (menu_items);
@@ -83,7 +84,8 @@ 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));
+ GTK_SIGNAL_FUNC (button_press),
+ GTK_OBJECT (menu));
gtk_box_pack_end (GTK_BOX (vbox), button, TRUE, TRUE, 2);
gtk_widget_show (button);