[gimp/soc-2010-cage] app: set non-NULL names on the default image and the default grid



commit c79d6e838ff2c9060e72ffab4d014698cb1a5612
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 24 12:59:36 2010 +0200

    app: set non-NULL names on the default image and the default grid

 app/config/gimpcoreconfig.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/config/gimpcoreconfig.c b/app/config/gimpcoreconfig.c
index b2b6d00..59ee6e2 100644
--- a/app/config/gimpcoreconfig.c
+++ b/app/config/gimpcoreconfig.c
@@ -447,13 +447,16 @@ static void
 gimp_core_config_init (GimpCoreConfig *config)
 {
   config->default_image = g_object_new (GIMP_TYPE_TEMPLATE,
+                                        "name",    "Default Image",
                                         "comment", DEFAULT_COMMENT,
                                         NULL);
   g_signal_connect (config->default_image, "notify",
                     G_CALLBACK (gimp_core_config_default_image_notify),
                     config);
 
-  config->default_grid = g_object_new (GIMP_TYPE_GRID, NULL);
+  config->default_grid = g_object_new (GIMP_TYPE_GRID,
+                                       "name", "Default Grid",
+                                       NULL);
   g_signal_connect (config->default_grid, "notify",
                     G_CALLBACK (gimp_core_config_default_grid_notify),
                     config);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]