# HG changeset patch # User ib # Date 1365006532 0 # Node ID 705ed2e9e7b123e93edddf3df0117dc868fce4d4 # Parent 69cb4e21803ab936890d1785622387a5b36d2257 Cosmetic: Rename variable and correct spelling. diff -r 69cb4e21803a -r 705ed2e9e7b1 gui/dialog/url.c --- a/gui/dialog/url.c Wed Apr 03 16:25:55 2013 +0000 +++ b/gui/dialog/url.c Wed Apr 03 16:28:52 2013 +0000 @@ -36,7 +36,7 @@ static GtkWidget *URLCombo; static GtkWidget *URLEntry; -static GList *URLComboEntrys; +static GList *URLEntries; static void on_Button_pressed(GtkButton *button, gpointer user_data) { @@ -56,7 +56,7 @@ str = tmp; } - URLComboEntrys = g_list_prepend(URLComboEntrys, (gchar *)str); + URLEntries = g_list_prepend(URLEntries, (gchar *)str); item = calloc(1, sizeof(urlItem)); item->url = gstrdup(str); @@ -146,18 +146,18 @@ item = listMgr(URLLIST_GET, 0); if (item) { - g_list_free(URLComboEntrys); - URLComboEntrys = NULL; + g_list_free(URLEntries); + URLEntries = NULL; while (item) { - URLComboEntrys = g_list_append(URLComboEntrys, (gchar *)item->url); - item = item->next; + URLEntries = g_list_append(URLEntries, (gchar *)item->url); + item = item->next; } } - if (URLComboEntrys) { - gtk_entry_set_text(GTK_ENTRY(URLEntry), URLComboEntrys->data); - gtk_combo_set_popdown_strings(GTK_COMBO(URLCombo), URLComboEntrys); + if (URLEntries) { + gtk_entry_set_text(GTK_ENTRY(URLEntry), URLEntries->data); + gtk_combo_set_popdown_strings(GTK_COMBO(URLCombo), URLEntries); } gtk_widget_show(URLDialog);