blam r578 - trunk/src



Author: cmartin
Date: Fri May  9 14:00:16 2008
New Revision: 578
URL: http://svn.gnome.org/viewvc/blam?rev=578&view=rev

Log:
Show popup to "copy link location" and "open in browser" when atop a link only


Modified:
   trunk/src/Application.cs

Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs	(original)
+++ trunk/src/Application.cs	Fri May  9 14:00:16 2008
@@ -274,14 +274,16 @@
             if(button == 2){ // Right button
                 Gtk.Menu popup = new Gtk.Menu();
 
-               /* GtkUtil.AppendMenuItem(popup,
+                if(itemView.Widget.LinkMessage != null && itemView.Widget.LinkMessage != string.Empty){ // Make sure we're on a link.
+                    GtkUtil.AppendMenuItem(popup,
                                        Catalog.GetString("_Open link in browser"),
-                                       new EventHandler(Goto), true);
-*/
-                GtkUtil.AppendMenuItem(popup,
+                                       new EventHandler(OpenLink), true);
+                    GtkUtil.AppendMenuItem(popup,
                                        Catalog.GetString("_Copy link location"),
                                        "gtk-copy", new EventHandler(CopyLink), true);
-                popup.Popup();
+
+                    popup.Popup();
+                }
             }
 
             args.RetVal = 0;



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