private void HandleResponse(object sender, Gtk.ResponseArgs args) { if (args.ResponseId != Gtk.ResponseType.Ok) { if (command_thread != null && command_thread.IsAlive) { command_thread.Abort(); } Dialog.Destroy(); return; } if (fr.CheckLogin() == null) { do_export_flickr.Sensitive = false; HigMessageDialog md = new HigMessageDialog(Dialog, Gtk.DialogFlags.Modal | Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Error, Gtk.ButtonsType.Ok, Catalog.GetString("Unable to log on."), string.Format(Catalog.GetString("F-Spot was unable to log on to {0}. Make sure you have given the authentication using {0} web browser interface."), current_service.Name)); md.Run(); md.Destroy(); return; } fr.ExportTags = tag_check.Active; open = open_check.Active; scale = scale_check.Active; copy_metadata = !meta_check.Active; is_public = public_radio.Active; is_family = family_check.Active; is_friend = friend_check.Active; if (scale) { size = size_spin.ValueAsInt; } command_thread = new Thread(new ThreadStart(Upload)); command_thread.Name = Catalog.GetString("Uploading Pictures"); Dialog.Destroy(); progress_dialog = new FSpot.ThreadProgressDialog(command_thread, selection.Count); progress_dialog.Start(); // Save these settings for next time Preferences.Set(Preferences.EXPORT_FLICKR_SCALE, scale); Preferences.Set(Preferences.EXPORT_FLICKR_SIZE, size); Preferences.Set(Preferences.EXPORT_FLICKR_BROWSER, open); Preferences.Set(Preferences.EXPORT_FLICKR_TAGS, tag_check.Active); Preferences.Set(Preferences.EXPORT_FLICKR_STRIP_META, meta_check.Active); Preferences.Set(Preferences.EXPORT_FLICKR_PUBLIC, public_radio.Active); Preferences.Set(Preferences.EXPORT_FLICKR_FAMILY, family_check.Active); Preferences.Set(Preferences.EXPORT_FLICKR_FRIENDS, friend_check.Active); Preferences.Set(current_service.PreferencePath, fr.Token); }
private void HandleResponse(object sender, Gtk.ResponseArgs args) { if (args.ResponseId != Gtk.ResponseType.Ok) { Dialog.Destroy(); return; } if (scale_check != null) { scale = scale_check.Active; size = size_spin.ValueAsInt; } else { scale = false; } browser = browser_check.Active; rotate = rotate_check.Active; // meta = meta_check.Active; export_tag = tag_check.Active; if (account != null) { //System.Console.WriteLine ("history = {0}", album_optionmenu.History); album = (PicasaAlbum)account.Picasa.GetAlbums() [Math.Max(0, album_optionmenu.History)]; photo_index = 0; Dialog.Destroy(); command_thread = new System.Threading.Thread(new System.Threading.ThreadStart(this.Upload)); command_thread.Name = Catalog.GetString("Uploading Pictures"); progress_dialog = new FSpot.ThreadProgressDialog(command_thread, items.Length); progress_dialog.Start(); // Save these settings for next time Preferences.Set(SCALE_KEY, scale); Preferences.Set(SIZE_KEY, size); Preferences.Set(ROTATE_KEY, rotate); Preferences.Set(BROWSER_KEY, browser); // Preferences.Set (Preferences.EXPORT_GALLERY_META, meta); Preferences.Set(TAG_KEY, export_tag); } }
private void HandleResponse(object sender, Gtk.ResponseArgs args) { if (args.ResponseId != Gtk.ResponseType.Ok) { Dialog.Destroy(); return; } if (account != null) { Dialog.Hide(); command_thread = new System.Threading.Thread(new System.Threading.ThreadStart(Upload)); command_thread.Name = Mono.Unix.Catalog.GetString("Uploading Pictures"); progress_dialog = new FSpot.ThreadProgressDialog(command_thread, items.Length); progress_dialog.Start(); } }
private void HandleResponse(object sender, Gtk.ResponseArgs args) { #if GIO_2_16 if (listwindow != null) { listwindow.Destroy(); } #endif if (args.ResponseId != Gtk.ResponseType.Ok) { Dialog.Destroy(); return; } clean = remove_check.Active; rotate = rotate_check.Active; Dialog.Destroy(); command_thread = new System.Threading.Thread(new System.Threading.ThreadStart(Transfer)); command_thread.Name = Catalog.GetString("Transferring Pictures"); progress_dialog = new FSpot.ThreadProgressDialog(command_thread, selection.Count); progress_dialog.Start(); }
private void HandleResponse (object sender, Gtk.ResponseArgs args) { if (args.ResponseId != Gtk.ResponseType.Ok) { Dialog.Destroy (); return; } if (scale_check != null) { scale = scale_check.Active; size = size_spin.ValueAsInt; } else scale = false; browser = browser_check.Active; rotate = rotate_check.Active; // meta = meta_check.Active; export_tag = tag_check.Active; if (account != null) { //System.Console.WriteLine ("history = {0}", album_optionmenu.History); album = (PicasaAlbum) account.Picasa.GetAlbums() [Math.Max (0, album_optionmenu.History)]; photo_index = 0; Dialog.Destroy (); command_thread = new System.Threading.Thread (new System.Threading.ThreadStart (this.Upload)); command_thread.Name = Catalog.GetString ("Uploading Pictures"); progress_dialog = new FSpot.ThreadProgressDialog (command_thread, items.Length); progress_dialog.Start (); // Save these settings for next time Preferences.Set (SCALE_KEY, scale); Preferences.Set (SIZE_KEY, size); Preferences.Set (ROTATE_KEY, rotate); Preferences.Set (BROWSER_KEY, browser); // Preferences.Set (Preferences.EXPORT_GALLERY_META, meta); Preferences.Set (TAG_KEY, export_tag); } }
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; 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 ("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 (); }
private void HandleResponse (object sender, Gtk.ResponseArgs args) { if (args.ResponseId != Gtk.ResponseType.Ok) { Dialog.Destroy (); return; } if (account != null) { Dialog.Hide (); command_thread = new System.Threading.Thread (new System.Threading.ThreadStart (Upload)); command_thread.Name = Mono.Unix.Catalog.GetString ("Uploading Pictures"); progress_dialog = new FSpot.ThreadProgressDialog (command_thread, items.Length); progress_dialog.Start (); } }
private void HandleResponse (object sender, Gtk.ResponseArgs args) { if (args.ResponseId != Gtk.ResponseType.Ok) { if (command_thread != null && command_thread.IsAlive) command_thread.Abort (); Dialog.Destroy (); return; } if (fr.CheckLogin() == null) { do_export_flickr.Sensitive = false; HigMessageDialog md = new HigMessageDialog (Dialog, Gtk.DialogFlags.Modal | Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Error, Gtk.ButtonsType.Ok, Catalog.GetString ("Unable to log on."), string.Format (Catalog.GetString ("F-Spot was unable to log on to {0}. Make sure you have given the authentication using {0} web browser interface."), current_service.Name)); md.Run (); md.Destroy (); return; } fr.ExportTags = tag_check.Active; open = open_check.Active; scale = scale_check.Active; copy_metadata = !meta_check.Active; is_public = public_radio.Active; is_family = family_check.Active; is_friend = friend_check.Active; if (scale) size = size_spin.ValueAsInt; command_thread = new Thread (new ThreadStart (Upload)); command_thread.Name = Catalog.GetString ("Uploading Pictures"); Dialog.Destroy (); progress_dialog = new FSpot.ThreadProgressDialog (command_thread, selection.Count); progress_dialog.Start (); // Save these settings for next time Preferences.Set (Preferences.EXPORT_FLICKR_SCALE, scale); Preferences.Set (Preferences.EXPORT_FLICKR_SIZE, size); Preferences.Set (Preferences.EXPORT_FLICKR_BROWSER, open); Preferences.Set (Preferences.EXPORT_FLICKR_TAGS, tag_check.Active); Preferences.Set (Preferences.EXPORT_FLICKR_STRIP_META, meta_check.Active); Preferences.Set (Preferences.EXPORT_FLICKR_PUBLIC, public_radio.Active); Preferences.Set (Preferences.EXPORT_FLICKR_FAMILY, family_check.Active); Preferences.Set (Preferences.EXPORT_FLICKR_FRIENDS, friend_check.Active); Preferences.Set (current_service.PreferencePath, fr.Token); }