use 'program-name' instead of 'name' when compiling against GTK+ >= 2.11.0

2007-05-21  Sven Neumann  <sven@gimp.org>

	* app/dialogs/about-dialog.c: use 'program-name' instead of 
'name'
	when compiling against GTK+ >= 2.11.0 (see bug #345822). Also 
set
	the title explicitely (see bug #418434).


svn path=/trunk/; revision=22547
This commit is contained in:
Sven Neumann
2007-05-21 07:53:01 +00:00
committed by Sven Neumann
parent b5b732f62a
commit aa6d67c914
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-05-21 Sven Neumann <sven@gimp.org>
* app/dialogs/about-dialog.c: use 'program-name' instead of 'name'
when compiling against GTK+ >= 2.11.0 (see bug #345822). Also set
the title explicitely (see bug #418434).
2007-05-21 Sven Neumann <sven@gimp.org>
* app/core/gimptemplate.c: use a #define for the default resolution.

View File

@ -111,7 +111,12 @@ about_dialog_create (GimpContext *context)
widget = g_object_new (GTK_TYPE_ABOUT_DIALOG,
"role", "about-dialog",
"window-position", GTK_WIN_POS_CENTER,
"title", _("About GIMP"),
#if GTK_CHECK_VERSION (2, 11, 0)
"program-name", GIMP_ACRONYM,
#else
"name", GIMP_ACRONYM,
#endif
"version", GIMP_VERSION,
"copyright", GIMP_COPYRIGHT,
"comments", GIMP_NAME,