浏览代码

Migrated deprecated funtion gtk_button_new_from_stock to gtk_button_new_with_label

Héctor García 10 年之前
父节点
当前提交
336fc90584
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mssh-pref.c

+ 1 - 1
src/mssh-pref.c

@@ -258,7 +258,7 @@ static void mssh_pref_init(MSSHPref* pref)
     GtkWidget *mod_super_check = gtk_check_button_new_with_label("Super");
 
     GtkWidget *close_hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
-    GtkWidget *close_button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
+    GtkWidget *close_button = gtk_button_new_with_label("Close");
 
     GtkWidget *dir_focus_check = gtk_check_button_new_with_label(
         "Use directional focus");