[gnome-control-center] universal-access: Don't use gtk_widget_show_all



commit 24d495d0f5b97d3b189176c469f6eb077a831195
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Oct 11 15:57:20 2018 +1300

    universal-access: Don't use gtk_widget_show_all
    
    It is removed in GTK+ 4

 panels/universal-access/cc-ua-panel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index ee4665d43..11ac3fb9b 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -368,8 +368,10 @@ cursor_size_setup (CcUaPanel *self)
 
       cursor_image_name = g_strdup_printf ("/org/gnome/control-center/universal-access/left_ptr_%dpx.png", 
cursor_sizes[i]);
       image = gtk_image_new_from_resource (cursor_image_name);
+      gtk_widget_show (image);
 
       button = gtk_radio_button_new_from_widget (GTK_RADIO_BUTTON (last_radio_button));
+      gtk_widget_show (button);
       last_radio_button = button;
       gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (button), FALSE);
       g_object_set_data (G_OBJECT (button), "cursor-size", GUINT_TO_POINTER (cursor_sizes[i]));
@@ -384,8 +386,6 @@ cursor_size_setup (CcUaPanel *self)
       if (current_cursor_size == cursor_sizes[i])
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
     }
-
-  gtk_widget_show_all (self->cursor_size_grid);
 }
 
 /* seeing section */


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