src/about.c

changeset 9716
4011c0d5f384
parent 9709
2e73f176cc80
--- a/src/about.c	Sun Aug 08 08:17:38 2004 +0000
+++ b/src/about.c	Sun Aug 08 14:06:58 2004 +0000
@@ -22,10 +22,12 @@
  */
 
 #include "internal.h"
+#include "gtkinternal.h"
+
+#include "gtkdialogs.h"
 #include "gtkimhtml.h"
 #include "gtkutils.h"
 #include "stock.h"
-#include "gtkdialogs.h"
 
 /* XXX For WEBSITE */
 #include "gaim.h"
@@ -34,7 +36,7 @@
 
 static void destroy_about()
 {
-	if (about)
+	if (about != NULL)
 		gtk_widget_destroy(about);
 	about = NULL;
 }
@@ -52,8 +54,10 @@
 	GtkTextIter iter;
 	char *str, *labeltext;
 
-	if (about != NULL)
+	if (about != NULL) {
+		gtk_window_present(GTK_WINDOW(about));
 		return;
+	}
 
 	GAIM_DIALOG(about);
 	gtk_window_set_default_size(GTK_WINDOW(about), 450, -1);

mercurial