[totem] preferences: Set dialog modality in the .ui file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] preferences: Set dialog modality in the .ui file
- Date: Tue, 29 Jun 2021 16:06:10 +0000 (UTC)
commit 75e982fc10ba5d3463a1320c0d3cde7bd0ac6f54
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue May 4 23:40:43 2021 -0300
preferences: Set dialog modality in the .ui file
There's no need to programatically set it when it can be done declaratively
in the .ui file.
Set the 'modal' property of the preferences dialog at preferences.ui.
data/preferences.ui | 2 +-
src/totem-preferences.c | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index 487c374ef..89518e82a 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -80,7 +80,7 @@
<property name="title" translatable="yes">Preferences</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
- <property name="modal">False</property>
+ <property name="modal">True</property>
<property name="resizable">False</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
diff --git a/src/totem-preferences.c b/src/totem-preferences.c
index c7328cfb4..8eae3e260 100644
--- a/src/totem-preferences.c
+++ b/src/totem-preferences.c
@@ -237,7 +237,6 @@ totem_setup_preferences (Totem *totem)
totem->prefs_xml = totem_interface_load ("preferences.ui", TRUE, NULL, totem);
totem->prefs = GTK_WIDGET (gtk_builder_get_object (totem->prefs_xml, "totem_preferences_window"));
- gtk_window_set_modal (GTK_WINDOW (totem->prefs), TRUE);
gtk_window_set_transient_for (GTK_WINDOW (totem->prefs), GTK_WINDOW(totem->win));
bvw = totem_object_get_video_widget (totem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]