private void HandleResponse(object sender, Gtk.ResponseArgs args)
        {
            if (args.ResponseId != Gtk.ResponseType.Ok)
            {
                // FIXME this is to work around a bug in gtk+ where
                // the filesystem events are still listened to when
                // a FileChooserButton is destroyed but not finalized
                // and an event comes in that wants to update the child widgets.
                Dialog.Destroy();
                uri_chooser.Dispose();
                uri_chooser = null;
                return;
            }

            dest   = new Gnome.Vfs.Uri(uri_chooser.Uri);
            open   = open_check.Active;
            scale  = scale_check.Active;
            rotate = rotate_check.Active;

            gallery_name = name_entry.Text;

            if (description_entry != null)
            {
                description = description_entry.Text;
            }

            if (scale)
            {
                size = size_spin.ValueAsInt;
            }

            command_thread      = new System.Threading.Thread(new System.Threading.ThreadStart(Upload));
            command_thread.Name = Catalog.GetString("Transferring Pictures");

            //FIXME: get the files/dirs count in a cleaner way than (* 5 + 2(zip) + 9)
            // selection * 5 (original, mq, lq, thumbs, comments)
            // 2: zipfiles
            // 9: directories + info.txt + .htaccess
            // this should actually be 1 anyway, because we transfer just one dir
            progress_dialog = new FSpot.ThreadProgressDialog(command_thread, 1);
            progress_dialog.Start();
        }
Beispiel #2
0
        private void HandleResponse(object sender, Gtk.ResponseArgs args)
        {
            if (args.ResponseId != Gtk.ResponseType.Ok)
            {
                // FIXME this is to work around a bug in gtk+ where
                // the filesystem events are still listened to when
                // a FileChooserButton is destroyed but not finalized
                // and an event comes in that wants to update the child widgets.
                Dialog.Destroy();
                uri_chooser.Dispose();
                uri_chooser = null;
                return;
            }

            dest           = GLib.FileFactory.NewForUri(uri_chooser.Uri);
            open           = open_check.Active;
            scale          = scale_check.Active;
            exportTags     = export_tags_check.Active;
            exportTagIcons = export_tag_icons_check.Active;

            gallery_name = name_entry.Text;

            if (description_entry != null)
            {
                description = description_entry.Text;
            }

            if (scale)
            {
                size = size_spin.ValueAsInt;
            }

            command_thread      = new System.Threading.Thread(new System.Threading.ThreadStart(Upload));
            command_thread.Name = Catalog.GetString("Exporting Photos");

            progress_dialog = new ThreadProgressDialog(command_thread, 1);
            progress_dialog.Start();
        }