[Xfce4-commits] [xfce/xfce4-power-manager] 45/63: Fix the GtkStyleContext for the parent widget being NULL

noreply at xfce.org noreply at xfce.org
Sun Mar 22 13:02:40 CET 2015


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

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit a5c04e45cd9f68fd41e2de87d0d95eecdfad2628
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Mar 16 15:07:35 2015 +0100

    Fix the GtkStyleContext for the parent widget being NULL
    
    When the plugin's button is first shown (and consequently
    the icon is set for it), the button isn't packed inside the
    parent widget yet, consequently the GtkStyleContext is NULL.
---
 panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c b/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c
index 358bd73..66e1de4 100644
--- a/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c
+++ b/panel-plugins/power-manager-plugin/xfce/xfce-power-manager-plugin.c
@@ -73,8 +73,8 @@ power_manager_plugin_new (XfcePanelPlugin *plugin)
     gtk_event_box_set_visible_window (GTK_EVENT_BOX(power_manager_plugin->ebox), FALSE);
 
     power_manager_plugin->power_manager_button = power_manager_button_new (plugin);
-    power_manager_button_show(POWER_MANAGER_BUTTON(power_manager_plugin->power_manager_button));
     gtk_container_add (GTK_CONTAINER (power_manager_plugin->ebox), power_manager_plugin->power_manager_button);
+    power_manager_button_show(POWER_MANAGER_BUTTON(power_manager_plugin->power_manager_button));
 
     return power_manager_plugin;
 }

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


More information about the Xfce4-commits mailing list