X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fgtk%2Fmodest-gtk-window-mgr.c;h=d450e5c9f5b0f1ad56e0a2b8fd4f3c00d1b16f08;hb=08484b5689e72837e1a22590dccf8d121e445e48;hp=2ff3a19d26e0c3b0af361d9473bc15a25e094993;hpb=3faeed1822d68733fd07100ba52cf99abea6d83e;p=modest diff --git a/src/gtk/modest-gtk-window-mgr.c b/src/gtk/modest-gtk-window-mgr.c index 2ff3a19..d450e5c 100644 --- a/src/gtk/modest-gtk-window-mgr.c +++ b/src/gtk/modest-gtk-window-mgr.c @@ -114,6 +114,8 @@ struct _ModestGtkWindowMgrPrivate { gulong accounts_handler; GtkWidget *shell; + + gboolean fullscreen; }; #define MODEST_GTK_WINDOW_MGR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \ MODEST_TYPE_GTK_WINDOW_MGR, \ @@ -190,6 +192,7 @@ modest_gtk_window_mgr_instance_init (ModestGtkWindowMgr *obj) priv->modal_windows = g_queue_new (); priv->queue_lock = g_mutex_new (); + priv->fullscreen = FALSE; /* Could not initialize it from gconf, singletons are not ready yet */ @@ -752,13 +755,26 @@ modest_gtk_window_mgr_set_fullscreen_mode (ModestWindowMgr *self, { g_return_if_fail (MODEST_IS_GTK_WINDOW_MGR (self)); + ModestGtkWindowMgrPrivate *priv = NULL; + priv = MODEST_GTK_WINDOW_MGR_GET_PRIVATE (self); + + priv->fullscreen = on; + + if (on) { + gtk_window_fullscreen (GTK_WINDOW (priv->shell)); + } else { + gtk_window_unfullscreen (GTK_WINDOW (priv->shell)); + } return; } static gboolean modest_gtk_window_mgr_get_fullscreen_mode (ModestWindowMgr *self) { - return FALSE; + ModestGtkWindowMgrPrivate *priv = NULL; + priv = MODEST_GTK_WINDOW_MGR_GET_PRIVATE (self); + + return priv->fullscreen; } static void @@ -905,7 +921,7 @@ on_account_removed (TnyAccountStore *acc_store, modal dialog would otherwise, prevent the windows from being closed */ if (!strcmp (acc_name, modest_window_get_active_account (current_top))) - g_idle_add (on_idle_close_all_but_first, (gpointer) priv->shell); + g_idle_add (on_idle_close_all_but_first, (gpointer) user_data); } }