Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-settings
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
198
Issues
198
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xfce
xfce4-settings
Commits
3c3dc977
Commit
3c3dc977
authored
Feb 14, 2017
by
Igor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Default Monospace Font chooser to Appearance dialog
parent
d5ca215b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
2 deletions
+54
-2
dialogs/appearance-settings/appearance-dialog.glade
dialogs/appearance-settings/appearance-dialog.glade
+48
-2
dialogs/appearance-settings/main.c
dialogs/appearance-settings/main.c
+5
-0
xfsettingsd/xsettings.xml
xfsettingsd/xsettings.xml
+1
-0
No files found.
dialogs/appearance-settings/appearance-dialog.glade
View file @
3c3dc977
...
...
@@ -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>
...
...
dialogs/appearance-settings/main.c
View file @
3c3dc977
...
...
@@ -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
);
...
...
xfsettingsd/xsettings.xml
View file @
3c3dc977
...
...
@@ -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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment