[gnome-panel/features/modernize-for-gnome-3-12: 5/11] Fix window-list applet bug on vertical panel 03_tasklist_orientation.patch from debian. This require



commit 9d98464c0aa26b92a54904efb3a25c570727a09c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri May 23 11:38:40 2014 +0300

    Fix window-list applet bug on vertical panel
    03_tasklist_orientation.patch from debian. This requires libwnck
    3.4.6 or newer.

 applets/wncklet/window-list.c |   11 ++++++-----
 configure.ac                  |    2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index ff74dbc..60f2f80 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -113,6 +113,8 @@ applet_change_orient (PanelApplet       *applet,
   
        tasklist->orientation = new_orient;
 
+       wnck_tasklist_set_orientation (tasklist->tasklist, new_orient);
+
        tasklist_update (tasklist);
 }
 
@@ -387,11 +389,10 @@ window_list_applet_fill (PanelApplet *applet)
 
        tasklist->tasklist = wnck_tasklist_new ();
 
-        wnck_tasklist_set_icon_loader (WNCK_TASKLIST (tasklist->tasklist),
-                                       icon_loader_func,
-                                       tasklist,
-                                       NULL);
-        
+       wnck_tasklist_set_orientation (tasklist->tasklist, tasklist->orientation);
+       wnck_tasklist_set_icon_loader (WNCK_TASKLIST (tasklist->tasklist),
+                                      icon_loader_func, tasklist, NULL);
+
        g_signal_connect (G_OBJECT (tasklist->tasklist), "destroy",
                          G_CALLBACK (destroy_tasklist),
                          tasklist);
diff --git a/configure.ac b/configure.ac
index cc10623..bf6add4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,7 @@ GDK_PIXBUF_REQUIRED=2.25.2
 PANGO_REQUIRED=1.15.4
 GLIB_REQUIRED=2.31.14
 GTK_REQUIRED=3.3.8
-LIBWNCK_REQUIRED=2.91.0
+LIBWNCK_REQUIRED=3.4.6
 GCONF_REQUIRED=2.6.1
 LIBGNOME_MENU_REQUIRED=3.7.90
 TELEPATHY_GLIB_REQUIRED=0.14.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]