Commit 3c3dc977 authored by Igor's avatar Igor
Browse files

Add Default Monospace Font chooser to Appearance dialog

parent d5ca215b
......@@ -251,6 +251,52 @@
<property name="position">0</property>
</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>
......@@ -370,7 +416,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>
......@@ -443,7 +489,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>
......
......@@ -1218,6 +1218,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);
......
......@@ -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"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment