[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Prevent a crash on device update (Bug #11932)
noreply at xfce.org
noreply at xfce.org
Thu May 28 03:38:29 CEST 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 4927e6c39162f18e5d56c59b0e14dff044c021a7
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Wed May 27 19:18:56 2015 +0300
Prevent a crash on device update (Bug #11932)
---
panel-plugins/power-manager-plugin/power-manager-button.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/panel-plugins/power-manager-plugin/power-manager-button.c b/panel-plugins/power-manager-plugin/power-manager-button.c
index 8ffa307..5350ad8 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -1119,6 +1119,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
/* add the image */
battery_device->img = gtk_image_new_from_pixbuf (battery_device->pix);
+ g_object_ref (battery_device->img);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), battery_device->img);
G_GNUC_END_IGNORE_DEPRECATIONS
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list