[grilo] test-ui: disable resize-grip by gtk+ versions
- From: Victor Manuel Jaquez Leal <vjaquez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] test-ui: disable resize-grip by gtk+ versions
- Date: Mon, 2 May 2011 14:21:08 +0000 (UTC)
commit cee2c456d7972ea86be7a1a533775869c1593bb5
Author: VÃctor Manuel Jáquez Leal <vjaquez igalia com>
Date: Fri Apr 29 19:38:22 2011 +0200
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]