[PATCH 2/3] test-ui: disable resize-grip by gtk+ versions



On gtk+-3.0 the resize-grip is handled by the window, but in gtk+-2.0 is
handled by the statusbar

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
 tools/grilo-test-ui/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 4fae547..a996325 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1695,7 +1695,13 @@ ui_setup (void)
 
   /* Status bar */
   view->statusbar = gtk_statusbar_new ();
+
+#if GTK_CHECK_VERSION (2, 91, 0)
+  gtk_window_set_has_resize_grip (GTK_WINDOW (view->window), FALSE);
+#else
   gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (view->statusbar), FALSE);
+#endif
+
   view->statusbar_context_id =
     gtk_statusbar_get_context_id (GTK_STATUSBAR (view->statusbar),
                                   "changes notification");
-- 
1.7.4.4



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