summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-05-11 09:31:56 -0400
committerTingPing <tingping@tingping.se>2013-05-11 09:31:56 -0400
commitb33f70571ea6c7ceec3c11ed36155ab59ab49646 (patch)
tree0c60295d18049efa2a1275af0a23167f2f1694b0
parentcdc2bb021680e674c83ea2dfab0bf1582e00697d (diff)
fix error
-rw-r--r--src/fe-gtk/servlistgui.c30
1 files 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)
 {
@@ -880,6 +865,21 @@ servlist_editkey_cb (GtkCellRendererText *cell, gchar *name, gchar *newval, GtkT
 }
 
 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)
 {
 	GtkTreeIter iter;