Fix a warning about unused result from g_slist_append().
2006-12-08 Kjartan Maraas <kmaraas@gnome.org> * gnome-network-preferences.c: (cb_add_url): Fix a warning about unused result from g_slist_append().
This commit is contained in:
parent
e7ba3dd216
commit
af4e0b168a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-12-08 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
|
* gnome-network-preferences.c: (cb_add_url):
|
||||||
|
Fix a warning about unused result from g_slist_append().
|
||||||
|
|
||||||
2006-08-07 Sebastien Bacher <seb128@debian.org>
|
2006-08-07 Sebastien Bacher <seb128@debian.org>
|
||||||
|
|
||||||
* gnome-network-preferences.glade:
|
* gnome-network-preferences.glade:
|
||||||
|
|
|
@ -120,7 +120,7 @@ cb_add_url (GtkButton *button, gpointer data)
|
||||||
new_url = g_strdup(gtk_entry_get_text(GTK_ENTRY(WID("entry_url"))));
|
new_url = g_strdup(gtk_entry_get_text(GTK_ENTRY(WID("entry_url"))));
|
||||||
if (strlen (new_url) == 0)
|
if (strlen (new_url) == 0)
|
||||||
return;
|
return;
|
||||||
g_slist_append(ignore_hosts, new_url);
|
ignore_hosts = g_slist_append(ignore_hosts, new_url);
|
||||||
populate_listmodel(GTK_LIST_STORE(model), ignore_hosts);
|
populate_listmodel(GTK_LIST_STORE(model), ignore_hosts);
|
||||||
gtk_entry_set_text(GTK_ENTRY(WID("entry_url")), "");
|
gtk_entry_set_text(GTK_ENTRY(WID("entry_url")), "");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue