f-spot r4733 - in trunk: . src/Widgets
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4733 - in trunk: . src/Widgets
- Date: Wed, 11 Mar 2009 14:39:50 +0000 (UTC)
Author: sdelcroix
Date: Wed Mar 11 14:39:50 2009
New Revision: 4733
URL: http://svn.gnome.org/viewvc/f-spot?rev=4733&view=rev
Log:
2009-03-11 Stephane Delcroix <sdelcroix novell com>
* src/Widgets/OpenWithMenu.cs: use the new Image ctor from gtk#2.14
Modified:
trunk/ChangeLog
trunk/src/Widgets/OpenWithMenu.cs
Modified: trunk/src/Widgets/OpenWithMenu.cs
==============================================================================
--- trunk/src/Widgets/OpenWithMenu.cs (original)
+++ trunk/src/Widgets/OpenWithMenu.cs Wed Mar 11 14:39:50 2009
@@ -114,19 +114,7 @@
if (!show_icon)
return;
-//FIXME: GTK_SHARP_2_14 should provide a way to get the image directly out of app.Icon
-
- Pixbuf pixbuf = null;
- if (app.Icon is ThemedIcon) {
- try {
- pixbuf = IconTheme.Default.ChooseIcon ((app.Icon as ThemedIcon).Names, 16, (IconLookupFlags)0).LoadIcon ();
- } catch (System.Exception) {
- }
- } else
- FSpot.Utils.Log.DebugFormat ("Loading icons from {0} is not implemented", app.Icon);
-
- if (pixbuf != null)
- Image = new Gtk.Image (pixbuf);
+ Image = new Gtk.Image (app.Icon, IconSize.Menu);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]