[Xfce4-commits] [xfce/xfce4-panel] 02/02: pager: Only show scroll-option with buttons

noreply at xfce.org noreply at xfce.org
Wed Oct 9 01:21:01 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit 679822b027ef3d41138562c6e7b17b72b0621173
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Oct 8 20:53:39 2019 +0200

    pager: Only show scroll-option with buttons
    
    As the pager widget of libwnck takes care of the scrolling event on its
    own the scrolling option currently doesn't take any effect. So this
    option should be hidden until libwnck has a switch to disable the scroll
    event handler.
---
 plugins/pager/pager-dialog.glade | 2 +-
 plugins/pager/pager.c            | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/plugins/pager/pager-dialog.glade b/plugins/pager/pager-dialog.glade
index 95a6be7..d70d20f 100644
--- a/plugins/pager/pager-dialog.glade
+++ b/plugins/pager/pager-dialog.glade
@@ -221,7 +221,7 @@
               </packing>
             </child>
             <child>
-              <object class="GtkFrame" id="frame3">
+              <object class="GtkFrame" id="scrolling-frame">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="label_xalign">0</property>
diff --git a/plugins/pager/pager.c b/plugins/pager/pager.c
index 2e032e6..2723193 100644
--- a/plugins/pager/pager.c
+++ b/plugins/pager/pager.c
@@ -102,6 +102,7 @@ struct _PagerPlugin
 
   GtkWidget     *pager;
   GObject       *numbering_switch;
+  GObject       *scrolling_frame;
 
   WnckScreen    *wnck_screen;
 
@@ -233,6 +234,9 @@ pager_plugin_get_property (GObject    *object,
 
       if (G_IS_OBJECT (plugin->numbering_switch))
         gtk_widget_set_visible (GTK_WIDGET (plugin->numbering_switch), !plugin->miniature_view);
+      if (G_IS_OBJECT (plugin->scrolling_frame))
+        gtk_widget_set_visible (GTK_WIDGET (plugin->scrolling_frame), !plugin->miniature_view);
+
       pager_plugin_screen_layout_changed (plugin);
       break;
 
@@ -729,6 +733,10 @@ pager_plugin_configure_plugin (XfcePanelPlugin *panel_plugin)
                           G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
   gtk_widget_set_visible (GTK_WIDGET (plugin->numbering_switch), !plugin->miniature_view);
 
+  plugin->scrolling_frame = gtk_builder_get_object (builder, "scrolling-frame");
+  panel_return_if_fail (GTK_IS_FRAME (plugin->scrolling_frame));
+  gtk_widget_set_visible (GTK_WIDGET (plugin->scrolling_frame), !plugin->miniature_view);
+
   /* update the rows limit */
   pager_plugin_configure_n_workspaces_changed (plugin->wnck_screen, NULL, builder);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list