[gnome-video-arcade] Hide resize grip when showing progress bar.



commit d284d3be60d75e1519074c9bbe89a48117280d80
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Feb 26 22:02:20 2011 -0500

    Hide resize grip when showing progress bar.

 src/gva-main.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gva-main.c b/src/gva-main.c
index c96e4ba..eaa921f 100644
--- a/src/gva-main.c
+++ b/src/gva-main.c
@@ -509,6 +509,11 @@ gva_main_cursor_normal (void)
 void
 gva_main_progress_bar_show (void)
 {
+        GtkWindow *window;
+
+        window = GTK_WINDOW (GVA_WIDGET_MAIN_WINDOW);
+        gtk_window_set_has_resize_grip (window, FALSE);
+
         gva_main_progress_bar_set_fraction (0.0);
         gtk_widget_show (GVA_WIDGET_MAIN_PROGRESS_BAR);
         gva_main_cursor_busy ();
@@ -524,6 +529,11 @@ gva_main_progress_bar_show (void)
 void
 gva_main_progress_bar_hide (void)
 {
+        GtkWindow *window;
+
+        window = GTK_WINDOW (GVA_WIDGET_MAIN_WINDOW);
+        gtk_window_set_has_resize_grip (window, TRUE);
+
         gtk_widget_hide (GVA_WIDGET_MAIN_PROGRESS_BAR);
         gva_main_cursor_normal ();
 }



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