[f-spot] Photoversionmenu shows selected version in bold



commit bd93cd440ec8f284c5ec4531bae8400b0b5c56e8
Author: Nick Van Eeckhout <nick vaneeckhout gmail com>
Date:   Tue Jun 15 23:10:02 2010 +0200

    Photoversionmenu shows selected version in bold
    
    https://bugzilla.gnome.org/show_bug.cgi?id=592556

 src/PhotoVersionMenu.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/PhotoVersionMenu.cs b/src/PhotoVersionMenu.cs
index 02d0039..e3d3ac4 100644
--- a/src/PhotoVersionMenu.cs
+++ b/src/PhotoVersionMenu.cs
@@ -54,7 +54,12 @@ public class PhotoVersionMenu : Menu {
 			MenuItem menu_item = new MenuItem (photo.GetVersion (id).Name);
 			menu_item.Show ();
 			menu_item.Sensitive = true;
-			((Gtk.Label)menu_item.Child).UseUnderline = false;
+			Gtk.Label child = ((Gtk.Label)menu_item.Child);
+			child.UseUnderline = false;
+			if (photo.DefaultVersionId == id) {
+				child.UseMarkup = true;
+				child.Markup = "<b>" + photo.GetVersion (id).Name + "</b>";
+			}
 			menu_item.Activated += new EventHandler (HandleMenuItemActivated);
 
 			item_infos [i ++] = new MenuItemInfo (menu_item, id);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]