[epiphany] ephy-file-chooser: Don't show a blank preview widget



commit 62960baf014a8a7dbf5a4736e0f4508835c3db2c
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Oct 25 22:26:44 2015 -0500

    ephy-file-chooser: Don't show a blank preview widget
    
    The preview widget is initially empty, so don't show it until after an
    image has been selected.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756943

 lib/widgets/ephy-file-chooser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-file-chooser.c b/lib/widgets/ephy-file-chooser.c
index 8d6ab37..b53bba8 100644
--- a/lib/widgets/ephy-file-chooser.c
+++ b/lib/widgets/ephy-file-chooser.c
@@ -199,6 +199,7 @@ ephy_file_chooser_new (const char *title,
 
        preview = gtk_image_new ();
        gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (dialog), preview);
+       gtk_file_chooser_set_preview_widget_active (GTK_FILE_CHOOSER (dialog), FALSE);
        g_signal_connect (dialog, "update-preview", G_CALLBACK (ephy_file_chooser_image_preview), preview);
     
        if (default_filter != EPHY_FILE_FILTER_NONE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]