]> Pileus Git - ~andy/gtk/blobdiff - demos/gtk-demo/appwindow.c
Apply a cleanup patch by Kjartan Maraas (#341812)
[~andy/gtk] / demos / gtk-demo / appwindow.c
index a15c9e519bb7cab37ac43664ab29160ad6f30092..6e0f36ecb717f43ee4c9b1c60c3699cd358bab95 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <gtk/gtk.h>
+#include "config.h"
 #include "demo-common.h"
 
 static GtkWidget *window = NULL;
@@ -132,8 +133,8 @@ about_cb (GtkAction *action,
   gtk_about_dialog_set_url_hook (activate_url, NULL, NULL);
   gtk_show_about_dialog (GTK_WINDOW (window),
                         "name", "GTK+ Code Demos",
-                        "version", "2.4.3",
-                        "copyright", "(C) 1997-2004 The GTK+ Team",
+                        "version", PACKAGE_VERSION,
+                        "copyright", "(C) 1997-2005 The GTK+ Team",
                         "license", license,
                         "website", "http://www.gtk.org",
                         "comments", "Program to demonstrate GTK+ functions.",
@@ -155,7 +156,7 @@ typedef struct
   GtkActionClass parent_class;
 } ToolMenuActionClass;
 
-G_DEFINE_TYPE(ToolMenuAction, tool_menu_action, GTK_TYPE_ACTION);
+G_DEFINE_TYPE(ToolMenuAction, tool_menu_action, GTK_TYPE_ACTION)
 
 static void
 tool_menu_action_class_init (ToolMenuActionClass *class)
@@ -328,7 +329,7 @@ register_stock_icons (void)
       factory = gtk_icon_factory_new ();
       gtk_icon_factory_add_default (factory);
 
-      /* demo_find_file() looks in the the current directory first,
+      /* demo_find_file() looks in the current directory first,
        * so you can run gtk-demo without installing GTK, then looks
        * in the location where the file is installed.
        */