[glide] Hide the inspector window when presenting



commit 1651e1a7661de52d0c019a940e055a957e262364
Author: Robert Carr <racarr Valentine localdomain>
Date:   Fri May 7 11:20:37 2010 -0400

    Hide the inspector window when presenting

 libglide/glide-window-private.h |    2 ++
 libglide/glide-window.c         |    7 +++++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libglide/glide-window-private.h b/libglide/glide-window-private.h
index 5479380..841958b 100644
--- a/libglide/glide-window-private.h
+++ b/libglide/glide-window-private.h
@@ -48,6 +48,8 @@ struct _GlideWindowPrivate
   GtkWidget *slide_box;
   GtkWidget *inspector_notebook;
   GtkWidget *inspector_window;
+
+  gboolean inspector_was_showing;
 };
 
 G_END_DECLS
diff --git a/libglide/glide-window.c b/libglide/glide-window.c
index ae95600..a8558cb 100644
--- a/libglide/glide-window.c
+++ b/libglide/glide-window.c
@@ -196,6 +196,10 @@ glide_window_presenting_changed_cb (GObject *object,
   
   if (!glide_stage_manager_get_presenting (w->priv->manager))
     {
+      if (w->priv->inspector_was_showing)
+	gtk_widget_show (GTK_WIDGET (w->priv->inspector_window));
+      
+      w->priv->inspector_was_showing = FALSE;
       glide_window_unfullscreen_stage (w);
     }
 }
@@ -912,6 +916,9 @@ glide_window_present_action_activate (GtkAction *a,
   
   glide_window_fullscreen_stage (w);
   
+  w->priv->inspector_was_showing = GTK_WIDGET_VISIBLE (w->priv->inspector_window);
+  gtk_widget_hide (w->priv->inspector_window);
+  
   glide_stage_manager_set_presenting (w->priv->manager, TRUE);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]