From e284121b9653dfb1ce8214c73c7ce28674cd5f5e Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Sat, 5 Jun 2010 13:22:50 -0700 Subject: Another attempt, still crashes. GTK docs also suck --- examples/grapper.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/grapper.c b/examples/grapper.c index d8759263..626c1789 100644 --- a/examples/grapper.c +++ b/examples/grapper.c @@ -660,7 +660,7 @@ static GtkActionEntry menu_actions[] = { { "OpenAction", GTK_STOCK_OPEN, "_Open", (gchar*)"O", "Open a file", G_CALLBACK ( open_menu_callback ) }, { "QuitAction", GTK_STOCK_QUIT, "_Quit", (gchar*)"Q", "Quit", G_CALLBACK ( quit_menu_callback ) }, - { "AboutAction", NULL, NULL, NULL, "About", G_CALLBACK ( about_menu_callback ) } + { "AboutAction", GTK_STOCK_ABOUT, NULL, NULL, "About", G_CALLBACK ( about_menu_callback ) } }; static gint menu_actions_nentries = G_N_ELEMENTS (menu_actions); @@ -753,8 +753,9 @@ init_grapper_window(GtkWidget *window, grapper_state *state) gtk_widget_show(menu_bar); #else action_group = gtk_action_group_new("Actions"); - gtk_action_group_add_actions (action_group, menu_actions, - menu_actions_nentries, NULL); + gtk_action_group_add_actions (action_group, + menu_actions, menu_actions_nentries, + state); menu_manager = gtk_ui_manager_new (); gtk_ui_manager_insert_action_group (menu_manager, action_group, 0); error = NULL; -- cgit v1.2.1