diff --git a/gnome/src/config/accountconfigdialog.c b/gnome/src/config/accountconfigdialog.c index 977014fefc6841dc89a5892d35347b8419525166..375abd1fecd2a0a36e4316c11f836fcda60ff8e5 100644 --- a/gnome/src/config/accountconfigdialog.c +++ b/gnome/src/config/accountconfigdialog.c @@ -875,7 +875,7 @@ create_network(const account_t *account) int idx = 0; for (gchar **iface = iface_list; iface && *iface; iface++, idx++) { - gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(local_address_combo), NULL, *iface); + gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(local_address_combo), *iface); if (g_strcmp0(*iface, local_interface) == 0) gtk_combo_box_set_active(GTK_COMBO_BOX(local_address_combo), idx); } diff --git a/gnome/src/gtk2_wrappers.c b/gnome/src/gtk2_wrappers.c index ab7f8b66dcddbd2702dfbe1665b3dc6f2ac186a6..72f3bc9559f774bd6a302c4b00ddc09cc1c45018 100644 --- a/gnome/src/gtk2_wrappers.c +++ b/gnome/src/gtk2_wrappers.c @@ -29,6 +29,7 @@ */ #include "gtk2_wrappers.h" +#include "unused.h" #if !GTK_CHECK_VERSION(3, 0, 0) @@ -70,10 +71,4 @@ gtk_scale_new_with_range(GtkOrientation orientation, gdouble min, gdouble max, return gtk_vscale_new_with_range(min, max, step); } -void -gtk_combo_box_text_append(GtkComboBoxText *combo_box, const gchar *id UNUSED, const gchar *text) -{ - gtk_combo_box_append_text(GTK_COMBO_BOX(combo_box), text); -} - #endif