Commit 21533410 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Arturo Espinosa

Push/pop correct visuals for drawing area creation. (splash_logo_load):

1998-02-26  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* app/app_procs.c (make_initialization_status_window): Push/pop
	correct visuals for drawing area creation.
	(splash_logo_load): Use a correct gc.
parent 6fa5573d
1998-02-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
* app/app_procs.c (make_initialization_status_window): Push/pop
correct visuals for drawing area creation.
(splash_logo_load): Use a correct gc.
Thu Feb 26 12:19:44 EET 1998 Lauri Alanko <la@iki.fi>
* Another patch in gimp.h to name more GParam-types for gimple.
......
......@@ -164,6 +164,7 @@ static int
splash_logo_load (GtkWidget *window)
{
GtkWidget *preview;
GdkGC *gc;
char buf[1024];
unsigned char *pixelrow;
FILE *fp;
......@@ -215,10 +216,13 @@ splash_logo_load (GtkWidget *window)
}
gtk_widget_realize (window);
logo_pixmap = gdk_pixmap_new (window->window, logo_width, logo_height, -1);
logo_pixmap = gdk_pixmap_new (window->window, logo_width, logo_height,
gtk_preview_get_visual ()->depth);
gc = gdk_gc_new (logo_pixmap);
gtk_preview_put (GTK_PREVIEW (preview),
logo_pixmap, window->style->black_gc,
logo_pixmap, gc,
0, 0, 0, 0, logo_width, logo_height);
gdk_gc_destroy (gc);
gtk_widget_unref (preview);
g_free (pixelrow);
......@@ -323,8 +327,15 @@ make_initialization_status_window(void)
vbox = gtk_vbox_new(FALSE, 4);
gtk_container_add(GTK_CONTAINER(win_initstatus), vbox);
gtk_widget_push_visual (gtk_preview_get_visual ());
gtk_widget_push_colormap (gtk_preview_get_cmap ());
logo_area = gtk_drawing_area_new ();
gtk_widget_pop_colormap ();
gtk_widget_pop_visual ();
gtk_signal_connect (GTK_OBJECT (logo_area), "expose_event",
(GtkSignalFunc) splash_logo_expose, NULL);
logo_area_width = ( logo_width > LOGO_WIDTH_MIN ) ? logo_width : LOGO_WIDTH_MIN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment