[grilo/wip/jfelder/grilo-test-ui-fix-deprecations: 2/3] test-ui: Remove some GTK2 legacy code
- From: Victor Toso <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/wip/jfelder/grilo-test-ui-fix-deprecations: 2/3] test-ui: Remove some GTK2 legacy code
- Date: Tue, 4 Sep 2018 05:53:24 +0000 (UTC)
commit b41154466154c9848aafbdad0e3c6bb029b4afa4
Author: Jean Felder <jean felder estimages com>
Date: Mon Sep 3 11:57:37 2018 +0200
test-ui: Remove some GTK2 legacy code
In GTK3 the resize grip functionality has been moved from GtkStatusbar
to GtkWindow.
tools/grilo-test-ui/main.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index fe51c02..ebb973c 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -2151,11 +2151,7 @@ ui_setup (GApplication *app)
/* 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]