[Goodies-commits] r5866 - xfce4-dict/trunk/lib
Enrico Troeger
enrico at xfce.org
Wed Oct 29 23:39:27 CET 2008
Author: enrico
Date: 2008-10-29 22:39:27 +0000 (Wed, 29 Oct 2008)
New Revision: 5866
Modified:
xfce4-dict/trunk/lib/spell.c
Log:
Always clear the spell check dictionary list in the prefs dialog, even if an empty or invalid spell check command was given.
Modified: xfce4-dict/trunk/lib/spell.c
===================================================================
--- xfce4-dict/trunk/lib/spell.c 2008-10-29 20:05:42 UTC (rev 5865)
+++ xfce4-dict/trunk/lib/spell.c 2008-10-29 22:39:27 UTC (rev 5866)
@@ -300,20 +300,20 @@
void dict_spell_get_dictionaries(DictData *dd, GtkWidget *spell_combo)
{
+ GtkTreeModel *model;
const gchar *entry_cmd = gtk_entry_get_text(
GTK_ENTRY(g_object_get_data(G_OBJECT(spell_combo), "spell_entry")));
+ model = gtk_combo_box_get_model(GTK_COMBO_BOX(spell_combo));
+ gtk_list_store_clear(GTK_LIST_STORE(model));
+
if (*entry_cmd != '\0')
{
gchar *tmp = NULL;
gchar *cmd, *locale_cmd;
gboolean use_enchant = FALSE;
- GtkTreeModel *model;
GtkTreeIter iter;
- model = gtk_combo_box_get_model(GTK_COMBO_BOX(spell_combo));
- gtk_list_store_clear(GTK_LIST_STORE(model));
-
if (strstr(entry_cmd, "enchant") != NULL)
{
cmd = g_strdup("enchant-lsmod -list-dicts");
More information about the Goodies-commits
mailing list