[f-spot: 1/3] Tag Icon Editor: restore external file chooser
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 1/3] Tag Icon Editor: restore external file chooser
- Date: Wed, 15 Jul 2009 09:51:41 +0000 (UTC)
commit b062167ba897ef945082242dc51430220fc94752
Author: Lorenzo Milesi <maxxer yetopen it>
Date: Tue Jul 14 19:32:31 2009 +0200
Tag Icon Editor: restore external file chooser
src/UI.Dialog/EditTagIconDialog.cs | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/UI.Dialog/EditTagIconDialog.cs b/src/UI.Dialog/EditTagIconDialog.cs
index b7e60c0..426b29f 100644
--- a/src/UI.Dialog/EditTagIconDialog.cs
+++ b/src/UI.Dialog/EditTagIconDialog.cs
@@ -28,7 +28,6 @@ namespace FSpot.UI.Dialog
string icon_name = null;
Gtk.FileChooserButton external_photo_chooser;
-
[GtkBeans.Builder.Object] Gtk.Image preview_image;
[GtkBeans.Builder.Object] ScrolledWindow photo_scrolled_window;
[GtkBeans.Builder.Object] ScrolledWindow icon_scrolled_window;
@@ -71,8 +70,8 @@ namespace FSpot.UI.Dialog
external_photo_chooser.Filter = new FileFilter();
external_photo_chooser.Filter.AddPixbufFormats();
external_photo_chooser.LocalOnly = false;
- external_photo_chooser_hbox.PackStart (external_photo_chooser);
-
+ external_photo_chooser_hbox.PackStart (external_photo_chooser);
+ external_photo_chooser.Show ();
external_photo_chooser.SelectionChanged += HandleExternalFileSelectionChanged;
photo_scrolled_window.Add (image_view);
@@ -142,7 +141,6 @@ namespace FSpot.UI.Dialog
}
}
-
void HandleSpinButtonChanged (object sender, EventArgs args)
{
@@ -159,7 +157,7 @@ namespace FSpot.UI.Dialog
void CreateTagIconFromExternalPhoto ()
{
try {
- using (FSpot.ImageFile img = FSpot.ImageFile.Create(new Uri(external_photo_chooser.Uri))) {
+ using (FSpot.ImageFile img = FSpot.ImageFile.Create (new Uri(external_photo_chooser.Uri))) {
using (Gdk.Pixbuf external_image = img.Load ()) {
PreviewPixbuf = PixbufUtils.TagIconFromPixbuf (external_image);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]