diff options
Diffstat (limited to 'filter/filter-file.c')
-rw-r--r-- | filter/filter-file.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/filter/filter-file.c b/filter/filter-file.c index 1c7a76a180..ec4c736479 100644 --- a/filter/filter-file.c +++ b/filter/filter-file.c @@ -274,11 +274,7 @@ filename_changed (GtkWidget *widget, FilterElement *fe) FilterFile *file = (FilterFile *) fe; const char *new; -#ifdef USE_GTKFILECHOOSER new = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (widget)); -#else - new = gtk_entry_get_text (GTK_ENTRY (widget)); -#endif g_free (file->path); file->path = g_strdup (new); } @@ -288,26 +284,12 @@ get_widget (FilterElement *fe) { FilterFile *file = (FilterFile *) fe; GtkWidget *filewidget; -#ifndef USE_GTKFILECHOOSER GtkWidget *entry; -#endif -#ifdef USE_GTKFILECHOOSER filewidget = (GtkWidget *) gtk_file_chooser_button_new (_("Choose a file"), GTK_FILE_CHOOSER_ACTION_OPEN); gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (filewidget), file->path); g_signal_connect (GTK_FILE_CHOOSER_BUTTON (filewidget), "selection-changed", G_CALLBACK (filename_changed), fe); -#else - filewidget = gnome_file_entry_new (NULL, _("Choose a file")); - g_object_set (G_OBJECT (filewidget), "use_filechooser", TRUE, NULL); - gnome_file_entry_set_default_path (GNOME_FILE_ENTRY (filewidget), file->path); - gnome_file_entry_set_modal (GNOME_FILE_ENTRY (filewidget), TRUE); - - entry = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (filewidget)); - gtk_entry_set_text (GTK_ENTRY (entry), file->path); - - g_signal_connect (entry, "changed", G_CALLBACK (filename_changed), fe); -#endif return filewidget; } |