[Xfce4-commits] [xfce/xfce4-settings] 01/03: Add Default Monospace Font chooser to Appearance dialog
noreply at xfce.org
noreply at xfce.org
Fri Feb 23 02:52:51 CET 2018
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 x f c e - 4 . 1 2
in repository xfce/xfce4-settings.
commit b9a93ccafe1a81c0b1af1c0cdbd842da90ece7e4
Author: Igor <f2404 at yandex.ru>
Date: Tue Feb 14 17:57:34 2017 +0300
Add Default Monospace Font chooser to Appearance dialog
Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
.../appearance-settings/appearance-dialog.glade | 50 +++++++++++++++++++++-
dialogs/appearance-settings/main.c | 5 +++
xfsettingsd/xsettings.xml | 1 +
3 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/dialogs/appearance-settings/appearance-dialog.glade b/dialogs/appearance-settings/appearance-dialog.glade
index 749161b..cc640b7 100644
--- a/dialogs/appearance-settings/appearance-dialog.glade
+++ b/dialogs/appearance-settings/appearance-dialog.glade
@@ -177,6 +177,52 @@
</packing>
</child>
<child>
+ <object class="GtkFrame" id="frame7">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment7">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="bottom_padding">6</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkFontButton" id="gtk_monospace_fontname_button">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">This font will be used as the default monospace font, for example by terminal emulators.</property>
+ <property name="font">Monospace 12</property>
+ <property name="title" translatable="yes">Select a default monospace font</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label14">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Default _Monospace Font</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">gtk_monospace_fontname_button</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkFrame" id="frame4">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -307,7 +353,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">1</property>
+ <property name="position">2</property>
</packing>
</child>
<child>
@@ -383,7 +429,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">2</property>
+ <property name="position">3</property>
</packing>
</child>
</object>
diff --git a/dialogs/appearance-settings/main.c b/dialogs/appearance-settings/main.c
index e3f472b..78dc870 100644
--- a/dialogs/appearance-settings/main.c
+++ b/dialogs/appearance-settings/main.c
@@ -1408,6 +1408,11 @@ appearance_settings_dialog_configure_widgets (GtkBuilder *builder)
xfconf_g_property_bind (xsettings_channel, "/Gtk/FontName", G_TYPE_STRING,
G_OBJECT (object), "font-name");
+ /* Monospace font name */
+ object = gtk_builder_get_object (builder, "gtk_monospace_fontname_button");
+ xfconf_g_property_bind (xsettings_channel, "/Gtk/MonospaceFontName", G_TYPE_STRING,
+ G_OBJECT (object), "font-name");
+
/* Toolbar style */
object = gtk_builder_get_object (builder, "gtk_toolbar_style_combo_box");
appearance_settings_dialog_channel_property_changed (xsettings_channel, "/Gtk/ToolbarStyle", NULL, builder);
diff --git a/xfsettingsd/xsettings.xml b/xfsettingsd/xsettings.xml
index 8f6ef3b..dfbc817 100644
--- a/xfsettingsd/xsettings.xml
+++ b/xfsettingsd/xsettings.xml
@@ -29,6 +29,7 @@
<property name="CanChangeAccels" type="bool" value="false"/>
<property name="ColorPalette" type="string" value="black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90"/>
<property name="FontName" type="string" value="Sans 10"/>
+ <property name="MonospaceFontName" type="string" value="Monospace 10"/>
<property name="IconSizes" type="string" value=""/>
<property name="KeyThemeName" type="string" value=""/>
<property name="ToolbarStyle" type="string" value="icons"/>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list