[Xfce4-commits] [panel-plugins/xfce4-notes-plugin] 01/01: panel-plugin: fit button inside a single panel row

noreply at xfce.org noreply at xfce.org
Thu May 7 05:19:54 CEST 2015


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

mmassonnet pushed a commit to branch master
in repository panel-plugins/xfce4-notes-plugin.

commit be1a3cf8d4ec530d5e10ec292c3e8494a46a082c
Author: Mike Massonnet <mmassonnet at gmail.com>
Date:   Thu May 7 05:19:51 2015 +0200

    panel-plugin: fit button inside a single panel row
---
 src/main-panel-plugin.vala |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main-panel-plugin.vala b/src/main-panel-plugin.vala
index 46fbbbc..9b09c0b 100644
--- a/src/main-panel-plugin.vala
+++ b/src/main-panel-plugin.vala
@@ -41,6 +41,7 @@ public class NotesPlugin : Xfce.PanelPlugin {
 		button.add (image);
 		button.clicked.connect (() => { application.show_hide_notes (); });
 		button.show_all ();
+		small = true;
 		add (button);
 		add_action_widget (button);
 		set_tooltip_text (_("Notes"));
@@ -56,6 +57,7 @@ public class NotesPlugin : Xfce.PanelPlugin {
 		set_x_selection ();
 
 		size_changed.connect ((p, size) => {
+			size = size / (int)nrows;
 			button.set_size_request (size, size);
 			return true;
 		});

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


More information about the Xfce4-commits mailing list