gnome-terminal r2932 - trunk/src



Author: chpe
Date: Thu Jun 26 19:51:20 2008
New Revision: 2932
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2932&view=rev

Log:
Fix preview in the profile editor background chooser. Bug #340071, patch by Maxim Ermilov.

Modified:
   trunk/src/profile-editor.c

Modified: trunk/src/profile-editor.c
==============================================================================
--- trunk/src/profile-editor.c	(original)
+++ trunk/src/profile-editor.c	Thu Jun 26 19:51:20 2008
@@ -579,7 +579,7 @@
   gchar *file;
 
   image = gtk_file_chooser_get_preview_widget (GTK_FILE_CHOOSER (chooser));
-  file = gtk_file_chooser_get_preview_filename (chooser);
+  file = gtk_file_chooser_get_preview_uri (chooser);
   
   if (file != NULL) {
 
@@ -597,8 +597,8 @@
                                 "gtk-dialog-question",
       	                        GTK_ICON_SIZE_DIALOG);
     }
-  }				
-  gtk_file_chooser_set_preview_widget_active (chooser, TRUE);
+  }
+  gtk_file_chooser_set_preview_widget_active (chooser, file != NULL);
 }
 
 static void



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