1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- battstat/battstat_applet.c.orig 2010-11-22 15:38:27.000000000 +0100
+++ battstat/battstat_applet.c 2011-03-07 19:09:55.000000000 +0100
@@ -435,7 +435,7 @@ battery_full_notify (GtkWidget *applet)
GTK_ICON_LOOKUP_USE_BUILTIN,
NULL);
- NotifyNotification *n = notify_notification_new (_("Your battery is now fully recharged"), "", /* "battery" */ NULL, applet);
+ NotifyNotification *n = notify_notification_new (_("Your battery is now fully recharged"), "", /* "battery" */ NULL);
/* XXX: it would be nice to pass this as a named icon */
notify_notification_set_icon_from_pixbuf (n, icon);
@@ -462,14 +462,14 @@ battery_full_notify (GtkWidget *applet)
static void
battery_full_dialog (GtkWidget *applet)
{
- /* first attempt to use libnotify */
- if (battery_full_notify (applet))
- return;
-
GtkWidget *dialog, *hbox, *image, *label;
GdkPixbuf *pixbuf;
gchar *new_label;
+ /* first attempt to use libnotify */
+ if (battery_full_notify (applet))
+ return;
+
dialog = gtk_dialog_new_with_buttons (
_("Battery Notice"),
NULL,
|