From 4c50c77e81991826b5e465ef6e30586ae4816057 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <le.businessman@gmail.com> Date: Sun, 15 Apr 2012 17:52:35 -0400 Subject: [PATCH] * #9815: removed unnecessary wrapper function --- gnome/src/config/accountconfigdialog.c | 2 +- gnome/src/gtk2_wrappers.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gnome/src/config/accountconfigdialog.c b/gnome/src/config/accountconfigdialog.c index 977014fefc..375abd1fec 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 ab7f8b66dc..72f3bc9559 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 -- GitLab