[Xfce4-commits] <xfwm4:master> Add tweak setting to toggle roll up feature (bug #10563).

Nick Schermer noreply at xfce.org
Thu Dec 26 18:16:02 CET 2013


Updating branch refs/heads/master
         to a99c18c19ce6f17150818d6c0af23556fac1d454 (commit)
       from 3dab5fb5d641606fd12fb710881af8a3d8858681 (commit)

commit a99c18c19ce6f17150818d6c0af23556fac1d454
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Dec 26 18:13:27 2013 +0100

    Add tweak setting to toggle roll up feature (bug #10563).

 settings-dialogs/tweaks-settings.c         |    5 +++++
 settings-dialogs/xfwm4-tweaks-dialog.glade |   16 ++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/settings-dialogs/tweaks-settings.c b/settings-dialogs/tweaks-settings.c
index 0b6a7eb..568bf2d 100644
--- a/settings-dialogs/tweaks-settings.c
+++ b/settings-dialogs/tweaks-settings.c
@@ -185,6 +185,7 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder)
     GtkWidget *snap_resist_check = GTK_WIDGET (gtk_builder_get_object (builder, "snap_resist_check"));
     GtkWidget *urgent_blink = GTK_WIDGET (gtk_builder_get_object (builder, "urgent_blink"));
     GtkWidget *repeat_urgent_blink = GTK_WIDGET (gtk_builder_get_object (builder, "repeat_urgent_blink"));
+    GtkWidget *mousewheel_rollup = GTK_WIDGET (gtk_builder_get_object (builder, "mousewheel_rollup"));
 
     /* Workspaces tab */
     GtkWidget *scroll_workspaces_check = GTK_WIDGET (gtk_builder_get_object (builder, "scroll_workspaces_check"));
@@ -356,6 +357,10 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder)
                             "/general/repeat_urgent_blink",
                             G_TYPE_BOOLEAN,
                             (GObject *)repeat_urgent_blink, "active");
+    xfconf_g_property_bind (xfwm4_channel,
+                            "/general/mousewheel_rollup",
+                            G_TYPE_BOOLEAN,
+                            (GObject *)mousewheel_rollup, "active");
     gtk_widget_set_sensitive (repeat_urgent_blink,
                               gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (urgent_blink)));
     gtk_widget_set_sensitive (tile_on_move_check,
diff --git a/settings-dialogs/xfwm4-tweaks-dialog.glade b/settings-dialogs/xfwm4-tweaks-dialog.glade
index 77cf607..0fc58de 100644
--- a/settings-dialogs/xfwm4-tweaks-dialog.glade
+++ b/settings-dialogs/xfwm4-tweaks-dialog.glade
@@ -494,6 +494,22 @@ or "skip taskbar" properties set</property>
                     <property name="position">7</property>
                   </packing>
                 </child>
+                <child>
+                  <object class="GtkCheckButton" id="mousewheel_rollup">
+                    <property name="label" translatable="yes">Use mouse wheel on title bar to ro_ll up the window</property>
+                    <property name="use_action_appearance">False</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">False</property>
+                    <property name="use_underline">True</property>
+                    <property name="draw_indicator">True</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                    <property name="position">8</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="position">2</property>


More information about the Xfce4-commits mailing list