[shotwell/wip/gtk4: 14/45] Prefs: Fix transparent background selection
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/gtk4: 14/45] Prefs: Fix transparent background selection
- Date: Wed, 13 Apr 2022 18:21:21 +0000 (UTC)
commit 8b4d31bd3469c6c0700dfbcbec3a5be56659c81e
Author: Jens Georg <mail jensge org>
Date: Tue Apr 5 20:48:01 2022 +0200
Prefs: Fix transparent background selection
data/ui/preferences_dialog.ui | 16 ++++++++++------
src/dialogs/Preferences.vala | 6 +++---
2 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/data/ui/preferences_dialog.ui b/data/ui/preferences_dialog.ui
index d66290f3..cdd9f407 100644
--- a/data/ui/preferences_dialog.ui
+++ b/data/ui/preferences_dialog.ui
@@ -17,6 +17,10 @@
<object class="GtkGrid" id="table1">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
<property name="row_spacing">4</property>
<property name="column_spacing">8</property>
<child>
@@ -280,22 +284,22 @@
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
- <object class="GtkToggleButton" id="transparent_checker_radio">
+ <object class="GtkCheckButton" id="transparent_checker_radio">
<property name="label" translatable="yes">Checkered</property>
<property name="focusable">1</property>
<property name="halign">start</property>
- <property name="active">1</property>
+ <property name="active">0</property>
<property name="group">transparent_solid_radio</property>
</object>
</child>
<child>
<object class="GtkBox" id="box1">
<child>
- <object class="GtkToggleButton" id="transparent_solid_radio">
+ <object class="GtkCheckButton" id="transparent_solid_radio">
<property name="label" translatable="yes">Solid color</property>
<property name="focusable">1</property>
<property name="halign">start</property>
- <property name="active">1</property>
+ <property name="active">0</property>
</object>
</child>
<child>
@@ -307,11 +311,11 @@
</object>
</child>
<child>
- <object class="GtkToggleButton" id="transparent_none_radio">
+ <object class="GtkCheckButton" id="transparent_none_radio">
<property name="label" translatable="yes">None</property>
<property name="focusable">1</property>
<property name="halign">start</property>
- <property name="active">1</property>
+ <property name="active">0</property>
<property name="group">transparent_solid_radio</property>
</object>
</child>
diff --git a/src/dialogs/Preferences.vala b/src/dialogs/Preferences.vala
index 78f87aa7..40dd0c18 100644
--- a/src/dialogs/Preferences.vala
+++ b/src/dialogs/Preferences.vala
@@ -55,13 +55,13 @@ public class PreferencesDialog : Gtk.Dialog {
private unowned Gtk.Notebook preferences_notebook;
[GtkChild]
- private unowned Gtk.ToggleButton transparent_checker_radio;
+ private unowned Gtk.CheckButton transparent_checker_radio;
[GtkChild]
- private unowned Gtk.ToggleButton transparent_solid_radio;
+ private unowned Gtk.CheckButton transparent_solid_radio;
[GtkChild]
private unowned Gtk.ColorButton transparent_solid_color;
[GtkChild]
- private unowned Gtk.ToggleButton transparent_none_radio;
+ private unowned Gtk.CheckButton transparent_none_radio;
private PreferencesDialog() {
Object (use_header_bar: Resources.use_header_bar());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]