[Xfce4-commits] [apps/catfish] 01/01: Draw indicators for the window layout options
noreply at xfce.org
noreply at xfce.org
Fri Dec 20 12:26:53 CET 2019
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/catfish.
commit bba06fc2ba71686c1a74c14f1b527ff3f0e6eed0
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Fri Dec 20 06:26:47 2019 -0500
Draw indicators for the window layout options
---
catfish/CatfishPrefsDialog.py | 3 +++
data/ui/CatfishPreferences.ui | 27 +++++++++++++++++----------
po/catfish.pot | 2 +-
3 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/catfish/CatfishPrefsDialog.py b/catfish/CatfishPrefsDialog.py
index c7850a8..459f64e 100644
--- a/catfish/CatfishPrefsDialog.py
+++ b/catfish/CatfishPrefsDialog.py
@@ -43,6 +43,7 @@ class CatfishPrefsDialog(PrefsDialog):
self.settings = settings
if self.settings.get_setting("use-headerbar"):
self.builder.get_object("wl_headerbar").set_active(True)
+ self.builder.get_object("wl_headerbar_visible").set_active(True)
if self.settings.get_setting("show-hidden-files"):
self.builder.get_object("do_show_hidden").set_active(True)
if self.settings.get_setting("show-sidebar"):
@@ -58,8 +59,10 @@ class CatfishPrefsDialog(PrefsDialog):
return
if widget.get_active():
self.settings.set_setting("use-headerbar", False)
+ self.builder.get_object("wl_titlebar_visible").set_active(True)
else:
self.settings.set_setting("use-headerbar", True)
+ self.builder.get_object("wl_headerbar_visible").set_active(True)
self.builder.get_object("wl_info").show()
self.changed_properties.append("use-headerbar")
diff --git a/data/ui/CatfishPreferences.ui b/data/ui/CatfishPreferences.ui
index 40d8ea9..af6707d 100644
--- a/data/ui/CatfishPreferences.ui
+++ b/data/ui/CatfishPreferences.ui
@@ -110,14 +110,14 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="wl_titlebar_label">
+ <object class="GtkRadioButton" id="wl_titlebar_visible">
+ <property name="label" translatable="yes">Classic (_Titlebar)</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Classic (_Titlebar)</property>
+ <property name="receives_default">False</property>
+ <property name="halign">center</property>
<property name="use_underline">True</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="draw_indicator">True</property>
</object>
<packing>
<property name="expand">False</property>
@@ -161,14 +161,15 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="wl_headerbar_label">
+ <object class="GtkRadioButton" id="wl_headerbar_visible">
+ <property name="label" translatable="yes">_Modern (CSD)</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Modern (CSD)</property>
+ <property name="receives_default">False</property>
+ <property name="halign">center</property>
<property name="use_underline">True</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
+ <property name="draw_indicator">True</property>
+ <property name="group">wl_titlebar_visible</property>
</object>
<packing>
<property name="expand">False</property>
@@ -544,4 +545,10 @@
<action-widget response="-7">button1</action-widget>
</action-widgets>
</object>
+ <object class="GtkSizeGroup" id="layout_label_sg">
+ <widgets>
+ <widget name="wl_titlebar_visible"/>
+ <widget name="wl_headerbar_visible"/>
+ </widgets>
+ </object>
</interface>
diff --git a/po/catfish.pot b/po/catfish.pot
index d41f52d..ad10695 100644
--- a/po/catfish.pot
+++ b/po/catfish.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-12-19 06:32-0500\n"
+"POT-Creation-Date: 2019-12-20 06:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list