mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-26 11:12:19 -05:00
fix error
This commit is contained in:
parent
cdc2bb0216
commit
b33f70571e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user