Parcourir la source

Migrated deprecated funtion gtk_image_menu_item_new_from_stock to gtk_menu_item_new_with_mnemonic

Héctor García il y a 10 ans
Parent
commit
02c4699361
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      src/mssh-window.c

+ 2 - 4
src/mssh-window.c

@@ -475,15 +475,13 @@ static void mssh_window_init(MSSHWindow* window)
     GtkWidget *server_item = gtk_menu_item_new_with_label("Servers");
     GtkWidget *command_item = gtk_menu_item_new_with_label("Commands");
 
-    GtkWidget *file_quit = gtk_image_menu_item_new_from_stock(
-        GTK_STOCK_QUIT, NULL);
+    GtkWidget *file_quit = gtk_menu_item_new_with_mnemonic("_Quit");
     GtkWidget *file_sendhost = gtk_image_menu_item_new_with_label(
         "Send hostname");
     GtkWidget *file_add = gtk_menu_item_new_with_label(
         "Add session");
 
-    GtkWidget *edit_pref = gtk_image_menu_item_new_from_stock(
-        GTK_STOCK_PREFERENCES, NULL);
+    GtkWidget *edit_pref = gtk_menu_item_new_with_mnemonic("_Preferences");
 
     GtkAccelGroup *accel = gtk_accel_group_new();