[mate-panel] 02/05: debian/patches: Add 0002_properly_propagate_sys_tray_orientation_changes.patch.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Mon Apr 10 13:16:49 UTC 2017


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

flexiondotorg-guest pushed a commit to branch ubuntu/zesty
in repository mate-panel.

commit 255d029a94da2afa5fb75cbbf3d251391ef389d6
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Mon Apr 10 14:14:44 2017 +0100

    debian/patches: Add 0002_properly_propagate_sys_tray_orientation_changes.patch.
---
 ...ly_propagate_sys_tray_orientation_changes.patch | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/debian/patches/0002_properly_propagate_sys_tray_orientation_changes.patch b/debian/patches/0002_properly_propagate_sys_tray_orientation_changes.patch
new file mode 100644
index 0000000..3f2c0ca
--- /dev/null
+++ b/debian/patches/0002_properly_propagate_sys_tray_orientation_changes.patch
@@ -0,0 +1,30 @@
+Description: system-tray: Properly propagate orientation changes
+Author: Colomban Wendling <cwendling at hypra.fr>
+Abstract:
+ This fixes menu positioning on some system tray items when the panel
+ orientation changed since it was initially started.
+
+
+--- a/applets/notification_area/na-box.c
++++ b/applets/notification_area/na-box.c
+@@ -243,14 +243,19 @@ na_box_realize (GtkWidget *widget)
+   NaBox *self = NA_BOX (widget);
+   GdkScreen *screen;
+   GtkOrientation orientation;
++  NaHost *tray_host;
+ 
+   GTK_WIDGET_CLASS (na_box_parent_class)->realize (widget);
+ 
+   /* Instantiate the hosts now we have a screen */
+   screen = gtk_widget_get_screen (GTK_WIDGET (self));
+   orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (self));
++  tray_host = na_tray_new_for_screen (screen, orientation);
++  g_object_bind_property (self, "orientation",
++                          tray_host, "orientation",
++                          G_BINDING_DEFAULT);
+ 
+-  add_host (self, na_tray_new_for_screen (screen, orientation));
++  add_host (self, tray_host);
+   add_host (self, sn_host_v0_new ());
+ }
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-panel.git



More information about the pkg-mate-commits mailing list