blam r563 - trunk/src



Author: cmartin
Date: Fri Apr 25 17:07:34 2008
New Revision: 563
URL: http://svn.gnome.org/viewvc/blam?rev=563&view=rev

Log:
Make ItemView inherit from Gtk.EventBox.

This makes it possible to catch mouse clicks and therefore to
show context menus.


Modified:
   trunk/src/Application.cs
   trunk/src/ItemView.cs

Modified: trunk/src/Application.cs
==============================================================================
--- trunk/src/Application.cs	(original)
+++ trunk/src/Application.cs	Fri Apr 25 17:07:34 2008
@@ -179,7 +179,7 @@
 
             Frame f = new Frame ();
             f.Shadow = ShadowType.In;
-            f.Add (itemView.Widget);
+            f.Add (itemView);
             itemPaned.Add2 (f);
             f.Show ();
             itemView.OnUrl += OnUrl;

Modified: trunk/src/ItemView.cs
==============================================================================
--- trunk/src/ItemView.cs	(original)
+++ trunk/src/ItemView.cs	Fri Apr 25 17:07:34 2008
@@ -18,7 +18,7 @@
 using System.Text;
 
 namespace Imendio.Blam {
-    public class ItemView {
+    public class ItemView : Gtk.EventBox {
         private WebControl mMoz;
 	private Imendio.Blam.Item currentItem;
 
@@ -43,9 +43,10 @@
             }
         }
 
-	public ItemView ()
+	public ItemView () : base()
         {
             this.mMoz = new WebControl ();
+            Add(mMoz);
 	   
             Conf.AddNotify (Preference.FONT_PATH,
                                         new NotifyEventHandler (FontNotifyHandler));



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