diff options
author | Peter Hawkins <peterh@src.gnome.org> | 2000-02-23 08:08:49 +0000 |
---|---|---|
committer | Peter Hawkins <peterh@src.gnome.org> | 2000-02-23 08:08:49 +0000 |
commit | 7a4740db187701f93ec31ae3caa7f52b90a44515 (patch) | |
tree | f6e3df3a90ac64df46d1759a2386cf173db44155 /battery | |
parent | cd2a47b1b6b5e6e13bcbadb42e2fd65c1c6196d1 (diff) |
Made about boxes non-modal, stopped about boxes from being shown multiple times at once. Fixed a memory leak in asclock.
Diffstat (limited to 'battery')
-rw-r--r-- | battery/ChangeLog | 4 | ||||
-rw-r--r-- | battery/battery.c | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/battery/ChangeLog b/battery/ChangeLog index 5bdd7f048..332d8a709 100644 --- a/battery/ChangeLog +++ b/battery/ChangeLog @@ -1,3 +1,7 @@ +2000-02-23 Peter Hawkins <peterhawkins@ozemail.com.au> + + * battery.c: Stopped about box from being shown multiple times at once. + 2000-02-11 Jason Leach <leach@wam.umd.edu> * battery.c (battery_update): declare char variables as 'signed' diff --git a/battery/battery.c b/battery/battery.c index 919dd61db..878216ede 100644 --- a/battery/battery.c +++ b/battery/battery.c @@ -974,7 +974,10 @@ make_new_battery_applet (const gchar *goad_id) void destroy_about (GtkWidget *w, gpointer data) { - /* BatteryData *bat = data; */ + BatteryData *bat = data; + + bat->about_box = NULL; + return; w = NULL; data = NULL; @@ -986,6 +989,12 @@ about_cb (AppletWidget *widget, gpointer data) BatteryData *bat = data; char *authors[2]; + if (bat->about_box != NULL) + { + gdk_window_show(bat->about_box->window); + gdk_window_raise(bat->about_box->window); + return; + } authors[0] = "Nat Friedman <nat@nat.org>"; authors[1] = NULL; |