summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@src.gnome.org>2007-09-09 20:11:17 +0000
committerEmmanuele Bassi <ebassi@src.gnome.org>2007-09-09 20:11:17 +0000
commitad67bf08c9a87209c1414259863c0a5239b72965 (patch)
treeb557dd2c556ecde0f2e03a12b1ad6bca78c786e5 /src
parentbe23b22f280ca4082b76afe558ae13902bb6ebc5 (diff)
downloadgnome-dictionary-ad67bf08c9a87209c1414259863c0a5239b72965.tar.gz
Reset the GdictContext for all the widgets in the window
When changing the context inside a GdictWindow we must update all the widgets to use the same context as the defbox - except for the speller widget which should usually employ a cloned context to avoid disrupting the contents of the defbox. svn path=/trunk/; revision=7696
Diffstat (limited to 'src')
-rw-r--r--src/gdict-window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gdict-window.c b/src/gdict-window.c
index 8eb4654..bb22a7a 100644
--- a/src/gdict-window.c
+++ b/src/gdict-window.c
@@ -469,7 +469,7 @@ gdict_window_set_strategy (GdictWindow *window,
{
g_free (window->strategy);
- if (strategy && strategy[0])
+ if (strategy && strategy[0] != '\0')
window->strategy = g_strdup (strategy);
else
window->strategy = gdict_gconf_get_string_with_default (window->gconf_client,
@@ -636,6 +636,12 @@ gdict_window_set_context (GdictWindow *window,
if (window->defbox)
gdict_defbox_set_context (GDICT_DEFBOX (window->defbox), context);
+ if (window->db_chooser)
+ gdict_database_chooser_set_context (GDICT_DATABASE_CHOOSER (window->db_chooser), context);
+
+ if (window->strat_chooser)
+ gdict_strategy_chooser_set_context (GDICT_STRATEGY_CHOOSER (window->strat_chooser), context);
+
if (!context)
return;