aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index fd499f243..2c7b77281 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -747,6 +747,7 @@ window_cmd_help_about (EggAction *action,
GtkWidget *window)
{
static GtkWidget *about = NULL;
+ GtkWidget** ptr;
GdkPixbuf *icon;
const char *icon_path;
GdkPixbuf *logo;
@@ -800,7 +801,8 @@ window_cmd_help_about (EggAction *action,
gtk_window_set_icon (GTK_WINDOW (about), icon);
g_object_unref(icon);
- g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)&about);
+ ptr = &about;
+ g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)ptr);
gtk_widget_show (about);
}