[Xfce4-commits] <xfdesktop:master> Add a settings option for the add/remove workspace property
Eric Koegel
noreply at xfce.org
Sat Dec 14 20:08:03 CET 2013
Updating branch refs/heads/master
to fb2bee20a297458adb1d00a4ea878a36d290b57a (commit)
from e2e0d0feee28148e6786245b6ee47a64c9d1cc46 (commit)
commit fb2bee20a297458adb1d00a4ea878a36d290b57a
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sat Dec 14 22:04:30 2013 +0300
Add a settings option for the add/remove workspace property
settings/main.c | 6 ++++++
settings/xfdesktop-settings-ui.glade | 13 +++++++++++++
2 files changed, 19 insertions(+)
diff --git a/settings/main.c b/settings/main.c
index d64bf81..dec5ea4 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -70,6 +70,7 @@
#define WINLIST_SHOW_STICKY_WIN_ONCE_PROP "/windowlist-menu/show-sticky-once"
#define WINLIST_SHOW_WS_NAMES_PROP "/windowlist-menu/show-workspace-names"
#define WINLIST_SHOW_WS_SUBMENUS_PROP "/windowlist-menu/show-submenus"
+#define WINLIST_SHOW_ADD_REMOVE_WORKSPACES_PROP "/windowlist-menu/show-add-remove-workspaces"
#define DESKTOP_ICONS_STYLE_PROP "/desktop-icons/style"
#define DESKTOP_ICONS_ICON_SIZE_PROP "/desktop-icons/icon-size"
@@ -1880,6 +1881,11 @@ xfdesktop_settings_dialog_setup_tabs(GtkBuilder *main_gxml,
gtk_builder_get_object(main_gxml, "chk_show_winlist_sticky_once"),
"active");
+ xfconf_g_property_bind(channel, WINLIST_SHOW_ADD_REMOVE_WORKSPACES_PROP,
+ G_TYPE_BOOLEAN,
+ gtk_builder_get_object(main_gxml, "chk_show_app_remove_workspaces"),
+ "active");
+
w = GTK_WIDGET(gtk_builder_get_object(main_gxml, "chk_show_winlist_ws_names"));
xfconf_g_property_bind(channel, WINLIST_SHOW_WS_NAMES_PROP, G_TYPE_BOOLEAN,
G_OBJECT(w), "active");
diff --git a/settings/xfdesktop-settings-ui.glade b/settings/xfdesktop-settings-ui.glade
index 16f7ae8..9630a31 100644
--- a/settings/xfdesktop-settings-ui.glade
+++ b/settings/xfdesktop-settings-ui.glade
@@ -488,6 +488,19 @@
<property name="position">4</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="chk_show_app_remove_workspaces">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+ <property name="label" translatable="yes">Show a_dd and remove workspace options in list</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="position">5</property>
+ </packing>
+ </child>
</object>
</child>
</object>
More information about the Xfce4-commits
mailing list