[Goodies-commits] r5351 - xfce4-smartpm-plugin/trunk/src
Anders F Bjorklund
afb at xfce.org
Thu Sep 4 14:59:40 CEST 2008
Author: afb
Date: 2008-09-04 12:59:40 +0000 (Thu, 04 Sep 2008)
New Revision: 5351
Modified:
xfce4-smartpm-plugin/trunk/src/xfcesmart.c
Log:
only show upgrade now button for smart
Modified: xfce4-smartpm-plugin/trunk/src/xfcesmart.c
===================================================================
--- xfce4-smartpm-plugin/trunk/src/xfcesmart.c 2008-09-04 10:41:55 UTC (rev 5350)
+++ xfce4-smartpm-plugin/trunk/src/xfcesmart.c 2008-09-04 12:59:40 UTC (rev 5351)
@@ -798,9 +798,13 @@
notify_notification_add_action (n,
"default", "default",
smart_notify_callback, smart, NULL);
- notify_notification_add_action (n,
- "upgrade", _("Upgrade Now"),
- smart_notify_callback, smart, NULL);
+
+ if (smart->package_manager == PACKAGE_MANAGER_SMART)
+ {
+ notify_notification_add_action (n,
+ "upgrade", _("Upgrade Now"),
+ smart_notify_callback, smart, NULL);
+ }
notify_notification_set_hint_int32 (n, "x", x);
notify_notification_set_hint_int32 (n, "y", y);
More information about the Goodies-commits
mailing list