X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Ffilemenu.c;h=7e9e3ddf4b760228b480086dc9bef57c6fad566a;hb=04200c34655ad07dc51fa2dbbd5b770b8d319cab;hp=1f3df9f931ffcf3d7c0bfb34dd36402866621b8f;hpb=9a4763975619ad66d0bcbb3f2da127f45fe21422;p=emu8051.git diff --git a/src/filemenu.c b/src/filemenu.c index 1f3df9f..7e9e3dd 100644 --- a/src/filemenu.c +++ b/src/filemenu.c @@ -131,22 +131,20 @@ FileAddMenu(GtkWidget *menu_bar) /* Create the 'open' item. */ item = gtk_menu_item_new_with_label(FILENAME_DESCRIPTION); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* Attach the callback functions to the activate signal. */ - gtk_signal_connect_object(GTK_OBJECT(item), "activate", - GTK_SIGNAL_FUNC(FileOpenEvent), NULL); + g_signal_connect(item, "activate", G_CALLBACK(FileOpenEvent), NULL); AddMenuSeparator(menu); item = gtk_menu_item_new_with_label("Exit"); - gtk_menu_append(GTK_MENU(menu), item); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); /* We can attach the Quit menu item to our exit function */ - gtk_signal_connect_object(GTK_OBJECT(item), "activate", - GTK_SIGNAL_FUNC(FileQuitEvent), - (gpointer) "file.quit"); + g_signal_connect(item, "activate", G_CALLBACK(FileQuitEvent), + (gpointer) "file.quit"); /* Adding submenu title. */ item = gtk_menu_item_new_with_label("File"); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), menu); - gtk_menu_bar_append(GTK_MENU_BAR(menu_bar), item); + gtk_menu_shell_append((GtkMenuShell *) menu_bar, item); }