~ubuntu-branches/ubuntu/intrepid/eog/intrepid

« back to all changes in this revision

Viewing changes to src/eog-save-as-dialog-helper.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-06-03 17:59:39 UTC
  • mfrom: (1.1.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20080603175939-08ttwmnpyu6eifmy
Tags: 2.23.3-0ubuntu1
* New upstream versions:
  New features:
  - Allow to use arrow keys to scroll the image if zoomed in 
  Misc improvements/fixes:
  - Code improvements and cleanups 
  - More documentation on plugin API 
  Bug fixes:
  - #528454, Metadata box should have limited width 
  - #533041, Eog generates thumbnails of thumbnails 
  - #532925, Missing feature: movement of image not possible with keyboard
  New features:
  - Use gtk-doc to document plugin API 
  Bug fixes:
  - #530102, Doesn't register support for compressed svg 
  - #531300, fails to start up due to lcms error 
  - #531809, scroll view scrollbar needs to have secondary steppers disabled
  New features:
  - Migration to gio/gvfs 
  - An initial set of default plugins 
  - New command line option --new-instance to force creation of a
  new instance instead of reusing existing one 
  - PNG metadata (XMP and color profile) support
  Misc improvements/fixes:
  - Miscellaneous improvements in thumbnailing code 
  - Several metadata handling improvements 
  Bug fixes:
  - Fixed #343061, Can't save picture after opened a link picture 
  - Fixed #427053, Keyboard shortcuts managed in eog-scroll-view.c only work 
    if image has focus 
  - Fixed #466566, Display date in a more prominent place 
  - Fixed #492017, Bring back 'Q' to exit eog 
  - Fixed #517017, Gtk-CRITICAL **: gtk_widget_event: assertion 
    `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
  - Fixed #517821, Save print settings in key file 
  - Fixed #523173, provide option not to fork and exit if existing instance 
  - Fixed #525618, thumbnail code issues 
  - Fixed #526331, EoG can't read XMP tags created with F-SPOT 
    whereas Nautilus can 
  - Fixed #527798, compile warnings 
  - Fixed #522077, make it easier to add more metadata readers 
  - Fixed #523856, read (and use) selected PNG metadata 
* Sync on Debian
* debian/control.in:
  - Build-Depends on liblaunchpad-integration-dev, python-central (>= 0.5.6),
    not on libgnomevfs2-dev
  - list required change for the python use
  - updated maintainer informations
* debian/eog.install:
  - install the plugins
* debian/eog-dev.install:
  - install the documentation
* debian/patches/01_lpi.patch:
  - launchpad integration
* debian/patches/02_autoconf.patch:
  - configure update
* debian/patches/03_hide_menu_item.patch:
  - menu simplication (MenuRevisited spec)
* debian/rules:
  - don't use -Wl,-z,defs for now to workaround build issues
  - update clean target
  - use --enable-python option and call dh_pycentral

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
}
179
179
 
180
180
static void
181
 
set_default_values (GtkWidget *dlg, GnomeVFSURI *base_uri)
 
181
set_default_values (GtkWidget *dlg, GFile *base_file)
182
182
{
183
183
        SaveAsData *sd;
184
184
 
187
187
        gtk_spin_button_set_value (GTK_SPIN_BUTTON (sd->counter_spin), 0.0);
188
188
        gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sd->replace_spaces_check),
189
189
                                      FALSE);
190
 
        if (base_uri != NULL) {
 
190
        if (base_file != NULL) {
191
191
                char *uri_str;
192
192
 
193
 
                uri_str = gnome_vfs_uri_to_string (base_uri, GNOME_VFS_URI_HIDE_NONE);
 
193
                uri_str = g_file_get_uri (base_file);
194
194
                gtk_file_chooser_set_current_folder_uri (GTK_FILE_CHOOSER (sd->dir_chooser), uri_str);
195
195
                g_free (uri_str);
196
196
        }
201
201
}
202
202
 
203
203
GtkWidget*
204
 
eog_save_as_dialog_new (GtkWindow *main, GList *images, GnomeVFSURI *base_uri)
 
204
eog_save_as_dialog_new (GtkWindow *main, GList *images, GFile *base_file)
205
205
{
206
206
        char *filepath;
207
207
        GladeXML  *xml;
256
256
 
257
257
        prepare_format_combobox (data);
258
258
        
259
 
        set_default_values (dlg, base_uri);
 
259
        set_default_values (dlg, base_file);
260
260
 
261
261
        return dlg;
262
262
}
271
271
        gboolean convert_spaces;
272
272
        gulong   counter_start;
273
273
        GdkPixbufFormat *format;
274
 
        GnomeVFSURI *base_uri;
 
274
        GFile *base_file;
275
275
        const char *base_uri_str;
276
276
 
277
277
        data = g_object_get_data (G_OBJECT (dlg), "data");
289
289
        format = get_selected_format (GTK_COMBO_BOX (data->format_combobox));
290
290
 
291
291
        base_uri_str = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (data->dir_chooser));
292
 
        base_uri = gnome_vfs_uri_new (base_uri_str);
 
292
        base_file = g_file_new_for_uri (base_uri_str);
293
293
 
294
294
        /* create converter object */
295
 
        conv = eog_uri_converter_new (base_uri, format, format_str);
 
295
        conv = eog_uri_converter_new (base_file, format, format_str);
296
296
 
297
297
        /* set other properties */
298
298
        g_object_set (G_OBJECT (conv),
302
302
                      "n-images", data->n_images,
303
303
                      NULL);
304
304
 
305
 
        gnome_vfs_uri_unref (base_uri);
 
305
        g_object_unref (base_file);
306
306
 
307
307
        return conv;
308
308
}