mirror of https://github.com/GNOME/gimp.git
Sven Neumann <sven@gimp.org>
2001-12-29 Simon Budig <simon@gimp.org> Sven Neumann <sven@gimp.org> * data/images/Makefile.am * data/images/gimp_splash.gif: new blinking splash. * app/gui/splash.c (splash_create): load splash from gimp_splash.gif.
This commit is contained in:
parent
49ccdb77c1
commit
24c5a6f2ca
|
@ -1,3 +1,11 @@
|
|||
2001-12-29 Simon Budig <simon@gimp.org>
|
||||
Sven Neumann <sven@gimp.org>
|
||||
|
||||
* data/images/Makefile.am
|
||||
* data/images/gimp_splash.gif: new blinking splash.
|
||||
|
||||
* app/gui/splash.c (splash_create): load splash from gimp_splash.gif.
|
||||
|
||||
2001-12-29 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* NEWS: mention GTK_DISABLE_DEPRECATED.
|
||||
|
|
|
@ -45,7 +45,7 @@ void
|
|||
splash_create (gboolean show_image)
|
||||
{
|
||||
GtkWidget *vbox;
|
||||
GdkPixbuf *pixbuf = NULL;
|
||||
GdkPixbufAnimation *animation = NULL;
|
||||
|
||||
win_initstatus = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_window_set_type_hint (GTK_WINDOW (win_initstatus),
|
||||
|
@ -65,17 +65,17 @@ splash_create (gboolean show_image)
|
|||
gchar *filename;
|
||||
|
||||
filename = g_build_filename (gimp_data_directory (),
|
||||
"images", "gimp_splash.png", NULL);
|
||||
pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
|
||||
"images", "gimp_splash.gif", NULL);
|
||||
animation = gdk_pixbuf_animation_new_from_file (filename, NULL);
|
||||
g_free (filename);
|
||||
|
||||
if (pixbuf)
|
||||
if (animation)
|
||||
{
|
||||
GtkWidget *align;
|
||||
GtkWidget *image;
|
||||
|
||||
image = gtk_image_new_from_pixbuf (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
image = gtk_image_new_from_animation (animation);
|
||||
g_object_unref (animation);
|
||||
|
||||
align = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, TRUE, 0);
|
||||
|
@ -86,7 +86,7 @@ splash_create (gboolean show_image)
|
|||
}
|
||||
}
|
||||
|
||||
if (!pixbuf)
|
||||
if (!animation)
|
||||
{
|
||||
GtkWidget *line;
|
||||
|
||||
|
@ -115,7 +115,7 @@ splash_create (gboolean show_image)
|
|||
gtk_box_pack_start_defaults (GTK_BOX (vbox), progress);
|
||||
gtk_widget_show (progress);
|
||||
|
||||
if (!pixbuf)
|
||||
if (!animation)
|
||||
gtk_widget_set_size_request (win_initstatus, DEFAULT_WIDTH, -1);
|
||||
|
||||
gtk_widget_show (win_initstatus);
|
||||
|
|
|
@ -4,6 +4,7 @@ imagedatadir = $(gimpdatadir)/images
|
|||
|
||||
imagedata_DATA = \
|
||||
gimp_logo.png \
|
||||
gimp_splash.gif \
|
||||
gimp_splash.png \
|
||||
tips_wilber.png
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
Loading…
Reference in New Issue