[Xfce4-commits] [apps/xfce4-notifyd] 05/24: panel-plugin: Make the 4.13 panel optional to make testing easier

noreply at xfce.org noreply at xfce.org
Fri Sep 8 23:27:36 CEST 2017


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit bca1913b0b9e08d0e4359283adafacacf01e7789
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Aug 22 00:08:55 2017 +0200

    panel-plugin: Make the 4.13 panel optional to make testing easier
    
    This means that the icon size won't be scaled correctly with the 4.12
    panel.
---
 panel-plugin/notification-plugin.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/notification-plugin.c b/panel-plugin/notification-plugin.c
index d326568..be7f85f 100644
--- a/panel-plugin/notification-plugin.c
+++ b/panel-plugin/notification-plugin.c
@@ -276,7 +276,9 @@ notification_plugin_size_changed (XfcePanelPlugin       *plugin,
 
   size /= xfce_panel_plugin_get_nrows (notification_plugin->plugin);
   gtk_widget_set_size_request (GTK_WIDGET (notification_plugin->button), size, size);
+#if LIBXFCE4PANEL_CHECK_VERSION (4,13,0)
   icon_size = xfce_panel_plugin_get_icon_size (XFCE_PANEL_PLUGIN (plugin));
+#endif
   gtk_image_set_pixel_size (GTK_IMAGE (notification_plugin->image), icon_size);
 
   return TRUE;
@@ -297,8 +299,7 @@ notification_plugin_construct (XfcePanelPlugin *plugin)
 
   /* add the button to the panel */
   gtk_container_add (GTK_CONTAINER (plugin), notification_plugin->button);
-
-  /* show the panel's right-click menu on this ebox */
+  /* show the panel's right-click menu */
   xfce_panel_plugin_add_action_widget (plugin, notification_plugin->button);
 
   /* connect plugin signals */

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


More information about the Xfce4-commits mailing list