From: Tilman Sauerbeck Date: Sun, 22 Apr 2007 17:15:18 +0000 (+0200) Subject: Only show the GtkImage when we have rendered a page to it. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=7384e75b1ff3f4b500b1ca0c85cd484c499629fb;p=raktpdf.git Only show the GtkImage when we have rendered a page to it. --- diff --git a/src/rakt-window.c b/src/rakt-window.c index 5e7b3ab..9f45644 100644 --- a/src/rakt-window.c +++ b/src/rakt-window.c @@ -156,6 +156,7 @@ render_page (RaktWindow *window) poppler_page_render_to_pixbuf (page, 0, 0, width, height, 1.0, 0, priv->pixbuf); gtk_image_set_from_pixbuf (GTK_IMAGE (priv->image), priv->pixbuf); + gtk_widget_show (priv->image); } static void @@ -241,7 +242,6 @@ rakt_window_init (RaktWindow *window) priv->image = gtk_image_new (); - gtk_widget_show (priv->image); gtk_box_pack_start (GTK_BOX (priv->content_vbox), priv->image, TRUE, TRUE, 0);