[poppler] glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat May 19 03:33:22 PDT 2012


 glib/demo/selections.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f818b842f54d6860920b39778228e8b247b4e761
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sat May 19 12:32:33 2012 +0200

    glib-demo: Fix runtime warning

diff --git a/glib/demo/selections.c b/glib/demo/selections.c
index b3095fe..4ec5d6b 100644
--- a/glib/demo/selections.c
+++ b/glib/demo/selections.c
@@ -77,7 +77,6 @@ pgd_selections_clear_selections (PgdSelectionsDemo *demo)
 		cairo_region_destroy (demo->selected_region);
 		demo->selected_region = NULL;
 	}
-	gtk_widget_set_sensitive(demo->copy_button, FALSE);
 }
 
 static void
@@ -394,6 +393,7 @@ pgd_selections_render (GtkButton         *button,
 
 	pgd_selections_clear_selections (demo);
 	pgd_selections_update_selection_region (demo);
+        gtk_widget_set_sensitive (demo->copy_button, FALSE);
 
 	if (demo->surface)
 		cairo_surface_destroy (demo->surface);


More information about the poppler mailing list