X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=cut-n-paste%2Ftoolbar-editor%2Fegg-editable-toolbar.c;h=006df26a7df8598f5b6059ff21864c0a10aa97c2;hb=6ce200550f7a34c878968320bfacd11591da4482;hp=4c3074480387f0530609cd02d7b15aa1e7ba6a4f;hpb=1109efff73c6f11040c1d491d99141423d6e6aeb;p=evince.git diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 4c307448..006df26a 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -1411,6 +1411,8 @@ new_pixbuf_from_widget (GtkWidget *widget) pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, icon_width, icon_height); gdk_pixbuf_get_from_drawable (pixbuf, pixmap, NULL, 0, 0, 0, 0, icon_width, icon_height); + gtk_widget_destroy (window); + return pixbuf; } @@ -1422,7 +1424,6 @@ new_separator_pixbuf () separator = gtk_vseparator_new (); pixbuf = new_pixbuf_from_widget (separator); - gtk_widget_destroy (separator); return pixbuf; }