gnome-utils r8001 - in trunk/gnome-dictionary: . src
- From: ebassi svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r8001 - in trunk/gnome-dictionary: . src
- Date: Mon, 11 Aug 2008 15:26:36 +0000 (UTC)
Author: ebassi
Date: Mon Aug 11 15:26:36 2008
New Revision: 8001
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8001&view=rev
Log:
2008-08-11 Emmanuele Bassi <ebassi gnome org>
* src/gdict-window.c (gdict_window_ensure_menu_state): Fix a warning
when ensure_state() is being called without a UIManager or
without the full menu built.
Modified:
trunk/gnome-dictionary/ChangeLog
trunk/gnome-dictionary/src/gdict-window.c
Modified: trunk/gnome-dictionary/src/gdict-window.c
==============================================================================
--- trunk/gnome-dictionary/src/gdict-window.c (original)
+++ trunk/gnome-dictionary/src/gdict-window.c Mon Aug 11 15:26:36 2008
@@ -218,12 +218,18 @@
g_assert (GDICT_IS_WINDOW (window));
+ if (!window->ui_manager)
+ return;
+
is_sensitive = !!(window->word != NULL);
for (i = 0; i < n_toggle_state; i++)
{
GtkWidget *item;
item = gtk_ui_manager_get_widget (window->ui_manager, toggle_state[i]);
+ if (!item)
+ continue;
+
gtk_widget_set_sensitive (item, is_sensitive);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]