From b33f70571ea6c7ceec3c11ed36155ab59ab49646 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 11 May 2013 09:31:56 -0400 Subject: [PATCH] fix error --- src/fe-gtk/servlistgui.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c index 4a3f28fb..70976957 100644 --- a/src/fe-gtk/servlistgui.c +++ b/src/fe-gtk/servlistgui.c @@ -757,21 +757,6 @@ servlist_deleteserver_cb (void) } } -static void -servlist_editcommand_cb (GtkCellRendererText *cell, gchar *name, gchar *newval, GtkTreeModel *model) -{ - GtkTreeIter iter; - - if (!servlist_get_iter_from_name (model, name, &iter)) - return; - - /* delete empty item */ - if (newval[0] == 0) - gtk_list_store_remove (GTK_LIST_STORE (model), &iter); - else - gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, newval, -1); -} - static ircnet * servlist_find_selected_net (GtkTreeSelection *sel) { @@ -879,6 +864,21 @@ servlist_editkey_cb (GtkCellRendererText *cell, gchar *name, gchar *newval, GtkT gtk_list_store_set (GTK_LIST_STORE (model), &iter, 1, newval, -1); } +static void +servlist_editcommand_cb (GtkCellRendererText *cell, gchar *name, gchar *newval, GtkTreeModel *model) +{ + GtkTreeIter iter; + + if (!servlist_get_iter_from_name (model, name, &iter)) + return; + + /* delete empty item */ + if (newval[0] == 0) + gtk_list_store_remove (GTK_LIST_STORE (model), &iter); + else + gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, newval, -1); +} + static void servlist_addchannel (char *channel) {