[mate-panel] 01/01: debian/patches: Add 0002_limit_panel_hide_button_size.patch. Constrain the size of the hide buttons on the panel.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Wed Apr 25 13:39:44 BST 2018


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

flexiondotorg-guest pushed a commit to branch master
in repository mate-panel.

commit 65d08825ef338b4ece4405e2cb0a1db703bc25ea
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Wed Apr 25 13:39:36 2018 +0100

    debian/patches: Add 0002_limit_panel_hide_button_size.patch. Constrain the size of the hide buttons on the panel.
---
 .../0002_limit_panel_hide_button_size.patch        | 39 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 40 insertions(+)

diff --git a/debian/patches/0002_limit_panel_hide_button_size.patch b/debian/patches/0002_limit_panel_hide_button_size.patch
new file mode 100644
index 0000000..38ee605
--- /dev/null
+++ b/debian/patches/0002_limit_panel_hide_button_size.patch
@@ -0,0 +1,39 @@
+Author: Wolfgang Ulbrich <mate at raveit.de>
+Description: Constrain the size of the hide buttons on the panel.
+
+diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
+index 25daa697..10b0f9f6 100644
+--- a/mate-panel/panel-toplevel.c
++++ b/mate-panel/panel-toplevel.c
+@@ -1342,11 +1342,26 @@ static void panel_toplevel_update_hide_buttons(PanelToplevel* toplevel)
+ 	}
+ 
+ 	/* set size after setting the arrow */
+-	if (toplevel->priv->buttons_enabled) {
+-		gtk_widget_set_size_request (toplevel->priv->hide_button_top,    panel_size, panel_size);
+-		gtk_widget_set_size_request (toplevel->priv->hide_button_bottom, panel_size, panel_size);
+-		gtk_widget_set_size_request (toplevel->priv->hide_button_left,   panel_size, panel_size);
+-		gtk_widget_set_size_request (toplevel->priv->hide_button_right,  panel_size, panel_size);
++	if ((panel_size < 20) || (toplevel->priv->buttons_enabled)) {
++		gtk_widget_set_size_request (toplevel->priv->hide_button_top,    panel_size, 18);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_bottom, panel_size, 18);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_left,   18, panel_size);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_right,  18, panel_size);
++	} else if ((panel_size < 40) || (toplevel->priv->buttons_enabled)) {
++		gtk_widget_set_size_request (toplevel->priv->hide_button_top,    panel_size, 22);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_bottom, panel_size, 22);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_left,   22, panel_size);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_right,  22, panel_size);
++	} else if ((panel_size < 60) || (toplevel->priv->buttons_enabled)) {
++		gtk_widget_set_size_request (toplevel->priv->hide_button_top,    panel_size, 26);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_bottom, panel_size, 26);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_left,   26, panel_size);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_right,  26, panel_size);
++	} else {
++		gtk_widget_set_size_request (toplevel->priv->hide_button_top,    panel_size, 30);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_bottom, panel_size, 30);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_left,   30, panel_size);
++		gtk_widget_set_size_request (toplevel->priv->hide_button_right,  30, panel_size);
+ 	}
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 3139b00..3532236 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001_fix_panel_autohide.patch
+0002_limit_panel_hide_button_size.patch

-- 
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