From fcd795754b57c36aa50491f79fbb5efbae44f253 Mon Sep 17 00:00:00 2001 From: Alexandru Csete Date: Sat, 25 Mar 2017 00:23:24 +0100 Subject: [PATCH] Replace deprecated API calls in sat-pref-layout Issue #1 --- src/sat-pref-layout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sat-pref-layout.c b/src/sat-pref-layout.c index f89b409..93821bf 100644 --- a/src/sat-pref-layout.c +++ b/src/sat-pref-layout.c @@ -226,15 +226,15 @@ static void create_layout_selector(GKeyFile * cfg, GtkTable * table) GTK_SHRINK | GTK_FILL, GTK_EXPAND | GTK_FILL, 5, 0); /* layout selector */ - selector = gtk_combo_box_new_text(); + selector = gtk_combo_box_text_new(); gtk_table_attach(GTK_TABLE(table), selector, 1, 3, 0, 1, GTK_FILL, GTK_SHRINK, 0, 0); for (i = 0; i < PREDEF_NUM; i++) { /* append default layout string to combo box */ - gtk_combo_box_append_text(GTK_COMBO_BOX(selector), - _(predef_layout[i][1])); + gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(selector), + _(predef_layout[i][1])); /* check if this layout corresponds to the settings */ if (!g_ascii_strcasecmp(buffer, predef_layout[i][0]))