[gnome-games] aisleriot: Hide toolbar at startup if requested
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] aisleriot: Hide toolbar at startup if requested
- Date: Sun, 12 Jul 2009 20:24:23 +0000 (UTC)
commit f28dc6fde1a07a54fc942d2f8a82745047a9af15
Author: Christian Persch <chpe gnome org>
Date: Sun Jul 12 22:22:48 2009 +0200
aisleriot: Hide toolbar at startup if requested
When the toolbar pref is off, hide the toolbar at startup. Due to the UI
manager creating the toolbar in visible state, we have to change the
Toolbar action's default state to TRUE to make the update logic work
correctly.
aisleriot/window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index cf351e7..e8b9b80 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -2296,7 +2296,7 @@ aisleriot_window_init (AisleriotWindow *window)
{ "Toolbar", NULL, N_("_Toolbar"), NULL,
ACTION_TOOLTIP (N_("Show or hide the toolbar")),
G_CALLBACK (toolbar_toggled_cb),
- FALSE
+ TRUE /* active by default since the UI manager creates the toolbar visible */
},
#ifndef HAVE_HILDON
{ "Statusbar", NULL, N_("_Statusbar"), NULL,
@@ -2783,6 +2783,7 @@ aisleriot_window_init (AisleriotWindow *window)
/* Bug alert! maemo#615 and maemo#875
* Thank you, maemo developers! This bug just cost me 2 hours of my life.
*/
+ /* FIXMEchpe: find out if this is fixed on maemo4 or maemo5 */
gtk_widget_set_no_show_all (main_vbox, TRUE);
gtk_widget_show_all (GTK_WIDGET (window));
if (!priv->toolbar_visible) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]