[totem] preferences: Move hide-on-delete signals to preferences.ui
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] preferences: Move hide-on-delete signals to preferences.ui
- Date: Tue, 29 Jun 2021 16:06:10 +0000 (UTC)
commit e41431e24bd486abd5b8b227f9306defeeecb8f3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed May 5 19:35:32 2021 -0300
preferences: Move hide-on-delete signals to preferences.ui
They can easily be declared in the .ui file.
data/preferences.ui | 2 ++
src/totem-preferences.c | 4 ----
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index bb281236a..2948e81b3 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -91,6 +91,8 @@
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<property name="use-header-bar">1</property>
+ <signal name="delete-event" handler="gtk_widget_hide_on_delete"/>
+ <signal name="response" handler="gtk_widget_hide"/>
<child internal-child="vbox">
<object class="GtkVBox" id="tpw_dialog_vbox">
diff --git a/src/totem-preferences.c b/src/totem-preferences.c
index 96a1fcdb3..976d568db 100644
--- a/src/totem-preferences.c
+++ b/src/totem-preferences.c
@@ -241,10 +241,6 @@ totem_setup_preferences (Totem *totem)
bvw = totem_object_get_video_widget (totem);
- g_signal_connect (G_OBJECT (totem->prefs), "response",
- G_CALLBACK (gtk_widget_hide), NULL);
- g_signal_connect (G_OBJECT (totem->prefs), "delete-event",
- G_CALLBACK (gtk_widget_hide_on_delete), NULL);
g_signal_connect (totem->prefs, "destroy",
G_CALLBACK (gtk_widget_destroyed), &totem->prefs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]