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

New commits:
commit f818b842f54d6860920b39778228e8b247b4e761
Author: Carlos Garcia Campos <[email protected]>
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);
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to