Skip to content
Snippets Groups Projects
Commit 4c50c77e authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9815: removed unnecessary wrapper function

parent 882942b6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment