diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2021-10-27 13:52:17 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2021-10-28 11:23:46 -0300 |
commit | 257e66bb36f47b54e28ae931673fa9315cd8e2f3 (patch) | |
tree | 018cce3349182524e021654a5c6b68bbc38b6adf | |
parent | 6e25db5ff02981114175a63f79fd0cf50f2b0465 (diff) | |
download | gnome-bluetooth-257e66bb36f47b54e28ae931673fa9315cd8e2f3.tar.gz |
lib: Remove show-all APIs
GTK4 doesn't have the 'no-show-all' property anymore, nor the
gtk_widget_show_all() function. Widgets are visible by default
now.
Drop these properties and API.
-rw-r--r-- | lib/bluetooth-pairing-dialog.c | 4 | ||||
-rw-r--r-- | lib/bluetooth-pairing-dialog.ui | 1 | ||||
-rw-r--r-- | lib/bluetooth-settings-widget.c | 5 |
3 files changed, 2 insertions, 8 deletions
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c index fcdfb73b..da30e735 100644 --- a/lib/bluetooth-pairing-dialog.c +++ b/lib/bluetooth-pairing-dialog.c @@ -285,7 +285,7 @@ bluetooth_pairing_dialog_constructed (GObject *object) /* OK button */ priv->done = gtk_button_new_with_label (_("Accept")); - gtk_widget_set_no_show_all (priv->done, TRUE); + gtk_widget_hide (priv->done); gtk_widget_set_can_default (GTK_WIDGET (priv->done), TRUE); g_signal_connect (G_OBJECT (priv->done), "clicked", G_CALLBACK (response_cb), self); @@ -294,7 +294,7 @@ bluetooth_pairing_dialog_constructed (GObject *object) /* Spinner */ priv->spinner = gtk_spinner_new (); gtk_widget_set_margin_end (priv->spinner, 12); - gtk_widget_set_no_show_all (priv->spinner, TRUE); + gtk_widget_hide (priv->spinner); gtk_header_bar_pack_end (GTK_HEADER_BAR (header), priv->spinner); g_object_bind_property (priv->spinner, "visible", priv->spinner, "active", 0); diff --git a/lib/bluetooth-pairing-dialog.ui b/lib/bluetooth-pairing-dialog.ui index 4052ea3d..65562d4f 100644 --- a/lib/bluetooth-pairing-dialog.ui +++ b/lib/bluetooth-pairing-dialog.ui @@ -55,7 +55,6 @@ <object class="GtkNotebook" id="pin_notebook"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="no_show_all">True</property> <property name="margin_top">24</property> <property name="show_tabs">False</property> <property name="show_border">False</property> diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c index e36ca851..b81ea8a3 100644 --- a/lib/bluetooth-settings-widget.c +++ b/lib/bluetooth-settings-widget.c @@ -1595,8 +1595,6 @@ add_device_section (BluetoothSettingsWidget *self) gtk_frame_set_child (GTK_FRAME (frame), priv->device_list); gtk_stack_add_named (GTK_STACK (priv->device_stack), frame, DEVICES_PAGE); gtk_box_append (GTK_BOX (box), priv->device_stack); - - gtk_widget_show_all (box); } static gboolean @@ -1988,9 +1986,6 @@ bluetooth_settings_widget_init (BluetoothSettingsWidget *self) gtk_box_append (GTK_BOX (self), widget); setup_properties_dialog (self); - - gtk_widget_show_all (GTK_WIDGET (self)); - setup_obex (self); } |