[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 26/96: Actually set viewer_size, and enforce exact size request
noreply at xfce.org
noreply at xfce.org
Thu Nov 27 22:20:31 CET 2014
This is an automated email from the git hooks/post-receive script.
nick pushed a commit to branch master
in repository panel-plugins/xfce4-hardware-monitor-plugin.
commit fb1194aab180c333b0c5d5b3002088361e2cd622
Author: Omega Weapon <OmegaPhil at gmail.com>
Date: Sun Nov 3 12:21:26 2013 +0000
Actually set viewer_size, and enforce exact size request
---
src/applet.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/applet.cpp b/src/applet.cpp
index bd61deb..4db8954 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -461,13 +461,15 @@ void Applet::set_viewer_size(const int size)
// Make sure on every call that the viewer size is being honoured
// TODO: This needs to deal with orientations
- if (req_size.width < size)
- gtk_widget_set_size_request(GTK_WIDGET(panel_applet), viewer_size, -1);
+ if (req_size.width != size)
+ gtk_widget_set_size_request(GTK_WIDGET(panel_applet), size, -1);
// Exiting if the size hasn't changed from this program's perspective
if (viewer_size == size)
return;
+ viewer_size = size;
+
/* Saving
* Search for a writeable settings file, create one if it doesnt exist */
gchar* file = xfce_panel_plugin_save_location(panel_applet, true);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list