Commit 65c168ab authored by Olivier Fourdan's avatar Olivier Fourdan 🛠

settings: Add a UI option for desktop zooming

Signed-off-by: Olivier Fourdan's avatarOlivier Fourdan <fourdan@xfce.org>
parent bb4a8db7
Pipeline #4133 passed with stages
in 2 minutes and 56 seconds
......@@ -215,6 +215,7 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder)
GtkWidget *show_frame_shadow_check = GTK_WIDGET (gtk_builder_get_object (builder, "show_frame_shadow_check"));
GtkWidget *show_popup_shadow_check = GTK_WIDGET (gtk_builder_get_object (builder, "show_popup_shadow_check"));
GtkWidget *show_dock_shadow_check = GTK_WIDGET (gtk_builder_get_object (builder, "show_dock_shadow_check"));
GtkWidget *zoom_desktop_check = GTK_WIDGET (gtk_builder_get_object (builder, "zoom_desktop_check"));
GtkWidget *zoom_pointer_check = GTK_WIDGET (gtk_builder_get_object (builder, "zoom_pointer_check"));
GtkWidget *frame_opacity_scale = GTK_WIDGET (gtk_builder_get_object (builder, "frame_opacity_scale"));
......@@ -425,6 +426,10 @@ wm_tweaks_dialog_configure_widgets (GtkBuilder *builder)
"/general/show_dock_shadow",
G_TYPE_BOOLEAN,
(GObject *)show_dock_shadow_check, "active");
xfconf_g_property_bind (xfwm4_channel,
"/general/zoom_desktop",
G_TYPE_BOOLEAN,
(GObject *)zoom_desktop_check, "active");
xfconf_g_property_bind (xfwm4_channel,
"/general/zoom_pointer",
G_TYPE_BOOLEAN,
......
......@@ -977,6 +977,22 @@ when switching via keyboard shortcuts</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="zoom_desktop_check">
<property name="label" translatable="yes">Zoom desktop with mouse wheel</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">True</property>
<property name="position">6</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="zoom_pointer_check">
<property name="label" translatable="yes">Zoom pointer along with the desktop</property>
......@@ -990,7 +1006,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">6</property>
<property name="position">7</property>
</packing>
</child>
<child>
......@@ -1005,7 +1021,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">7</property>
<property name="position">8</property>
</packing>
</child>
<child>
......@@ -1066,7 +1082,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">8</property>
<property name="position">9</property>
</packing>
</child>
<child>
......@@ -1081,7 +1097,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">9</property>
<property name="position">10</property>
</packing>
</child>
<child>
......@@ -1142,7 +1158,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">10</property>
<property name="position">11</property>
</packing>
</child>
<child>
......@@ -1157,7 +1173,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">11</property>
<property name="position">12</property>
</packing>
</child>
<child>
......@@ -1218,7 +1234,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">12</property>
<property name="position">13</property>
</packing>
</child>
<child>
......@@ -1233,7 +1249,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">13</property>
<property name="position">14</property>
</packing>
</child>
<child>
......@@ -1294,7 +1310,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">14</property>
<property name="position">15</property>
</packing>
</child>
<child>
......@@ -1309,7 +1325,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">15</property>
<property name="position">16</property>
</packing>
</child>
<child>
......@@ -1370,7 +1386,7 @@ when switching via keyboard shortcuts</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">15</property>
<property name="position">17</property>
</packing>
</child>
</object>
......
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