[grilo/wip/jfelder/grilo-test-ui-fix-deprecations: 1/2] test-ui: Remove some GTK2 legacy code



commit aa7bf6f4e355bdb7f21f91380b3998873d3a079e
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 2bf15fc..e8cc64c 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -2134,11 +2134,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]