Added new splash by Bill Luhtala <bluhtala@telus.net>.

2004-12-17  Simon Budig  <simon@gimp.org>

	* data/images/gimp-splash.png: Added new splash by
	Bill Luhtala <bluhtala@telus.net>.

	* data/images/gimp-logo.png: Added new Image for the about dialog
	by Philip Lafleur <deathpudding@gmail.com>.

	* app/dialogs/about-dialog.c: Adjusted text colors and placement
	to the new image.

	* data/images/gimp2_0_logo.png
	* data/images/gimp2_0_splash.png: Added for historical reasons.

	* data/images/gimp_logo.png: Removed (renamed to gimp-logo.png)
	* data/images/Makefile.am: changed accordingly.
This commit is contained in:
Simon Budig 2004-12-17 00:06:10 +00:00 committed by Simon Budig
parent 372be1f83a
commit c075dab29e
7 changed files with 41 additions and 24 deletions

View File

@ -1,3 +1,20 @@
2004-12-17 Simon Budig <simon@gimp.org>
* data/images/gimp-splash.png: Added new splash by
Bill Luhtala <bluhtala@telus.net>.
* data/images/gimp-logo.png: Added new Image for the about dialog
by Philip Lafleur <deathpudding@gmail.com>.
* app/dialogs/about-dialog.c: Adjusted text colors and placement
to the new image.
* data/images/gimp2_0_logo.png
* data/images/gimp2_0_splash.png: Added for historical reasons.
* data/images/gimp_logo.png: Removed (renamed to gimp-logo.png)
* data/images/Makefile.am: changed accordingly.
2004-12-16 Bill Skaggs <weskaggs@primate.ucdavis.edu> 2004-12-16 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpgradient-load.c: reject .ggr files whose * app/core/gimpgradient-load.c: reject .ggr files whose

View File

@ -89,13 +89,13 @@ typedef struct
PangoColor gradient[] = PangoColor gradient[] =
{ {
{ 50372, 50372, 50115 }, { 139 * 257, 137 * 257, 124 * 257 },
{ 65535, 65535, 65535 }, { 65535, 65535, 65535 },
{ 10000, 10000, 10000 }, { 5000, 5000, 5000 },
}; };
PangoColor foreground = { 10000, 10000, 10000 }; PangoColor foreground = { 5000, 5000, 5000 };
PangoColor background = { 50372, 50372, 50115 }; PangoColor background = { 139 * 257, 137 * 257, 124 * 257 };
/* backup values */ /* backup values */
@ -176,16 +176,16 @@ about_dialog_create (void)
if (! about_dialog_load_logo (widget)) if (! about_dialog_load_logo (widget))
{ {
gtk_widget_destroy (widget); gtk_widget_destroy (widget);
about_info.about_dialog = NULL; about_info.about_dialog = NULL;
return NULL; return NULL;
} }
about_dialog_center (GTK_WINDOW (widget)); about_dialog_center (GTK_WINDOW (widget));
/* place the scrolltext at the bottom of the image */ /* place the scrolltext at the bottom of the image */
about_info.textarea.width = about_info.pixmaparea.width; about_info.textarea.width = about_info.pixmaparea.width;
about_info.textarea.height = 50; about_info.textarea.height = 32; /* gets changed in _expose () as well */
about_info.textarea.x = 0; about_info.textarea.x = 0;
about_info.textarea.y = (about_info.pixmaparea.height - about_info.textarea.y = (about_info.pixmaparea.height -
about_info.textarea.height); about_info.textarea.height);
@ -202,8 +202,8 @@ about_dialog_create (void)
gtk_widget_show (widget); gtk_widget_show (widget);
g_signal_connect (widget, "expose_event", g_signal_connect (widget, "expose_event",
G_CALLBACK (about_dialog_logo_expose), G_CALLBACK (about_dialog_logo_expose),
NULL); NULL);
gtk_widget_realize (widget); gtk_widget_realize (widget);
gdk_window_set_background (widget->window, gdk_window_set_background (widget->window,
@ -264,7 +264,7 @@ about_dialog_create (void)
static void static void
about_dialog_destroy (GtkObject *object, about_dialog_destroy (GtkObject *object,
gpointer data) gpointer data)
{ {
about_info.about_dialog = NULL; about_info.about_dialog = NULL;
about_dialog_unmap (NULL, NULL); about_dialog_unmap (NULL, NULL);
@ -322,8 +322,8 @@ about_dialog_center (GtkWindow *window)
static gboolean static gboolean
about_dialog_logo_expose (GtkWidget *widget, about_dialog_logo_expose (GtkWidget *widget,
GdkEventExpose *event, GdkEventExpose *event,
gpointer data) gpointer data)
{ {
gint width, height; gint width, height;
@ -364,6 +364,9 @@ about_dialog_logo_expose (GtkWidget *widget,
height = mask ? (about_info.pixmaparea.height > 0) && height = mask ? (about_info.pixmaparea.height > 0) &&
(about_info.pixmaparea.width > 0): 0); (about_info.pixmaparea.width > 0): 0);
about_info.textarea.height = pp ? 50 : 32;
about_info.textarea.y = (about_info.pixmaparea.height -
about_info.textarea.height);
} }
/* only operate on the region covered by the pixmap */ /* only operate on the region covered by the pixmap */
@ -439,8 +442,8 @@ about_dialog_logo_expose (GtkWidget *widget,
static gint static gint
about_dialog_button (GtkWidget *widget, about_dialog_button (GtkWidget *widget,
GdkEventButton *event, GdkEventButton *event,
gpointer data) gpointer data)
{ {
gtk_widget_hide (about_info.about_dialog); gtk_widget_hide (about_info.about_dialog);
@ -449,8 +452,8 @@ about_dialog_button (GtkWidget *widget,
static gint static gint
about_dialog_key (GtkWidget *widget, about_dialog_key (GtkWidget *widget,
GdkEventKey *event, GdkEventKey *event,
gpointer data) gpointer data)
{ {
/* placeholder */ /* placeholder */
switch (event->keyval) switch (event->keyval)
@ -975,7 +978,6 @@ about_dialog_load_logo (GtkWidget *window)
gchar *filename; gchar *filename;
GdkPixbuf *pixbuf; GdkPixbuf *pixbuf;
GdkGC *gc; GdkGC *gc;
gint width;
PangoLayout *layout; PangoLayout *layout;
PangoFontDescription *desc; PangoFontDescription *desc;
GPL *noise; GPL *noise;
@ -984,7 +986,7 @@ about_dialog_load_logo (GtkWidget *window)
return TRUE; return TRUE;
filename = g_build_filename (gimp_data_directory (), "images", filename = g_build_filename (gimp_data_directory (), "images",
"gimp_logo.png", NULL); "gimp-logo.png", NULL);
pixbuf = gdk_pixbuf_new_from_file (filename, NULL); pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
g_free (filename); g_free (filename);
@ -1026,10 +1028,8 @@ about_dialog_load_logo (GtkWidget *window)
about_info.pixmaparea.height, about_info.pixmaparea.height,
GDK_RGB_DITHER_NORMAL, 0, 0); GDK_RGB_DITHER_NORMAL, 0, 0);
pango_layout_get_pixel_size (layout, &width, NULL);
gdk_draw_layout (GDK_DRAWABLE (about_info.logo_pixmap), gdk_draw_layout (GDK_DRAWABLE (about_info.logo_pixmap),
gc, 222, 137, layout); gc, 8, 39, layout);
g_object_unref (pixbuf); g_object_unref (pixbuf);
g_object_unref (layout); g_object_unref (layout);

View File

@ -3,7 +3,7 @@
imagedatadir = $(gimpdatadir)/images imagedatadir = $(gimpdatadir)/images
imagedata_DATA = \ imagedata_DATA = \
gimp_logo.png \ gimp-logo.png \
gimp-splash.png \ gimp-splash.png \
wilber-devel-icon.png \ wilber-devel-icon.png \
wilber-icon.png \ wilber-icon.png \

BIN
data/images/gimp-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB