accerciser r479 - trunk/plugins



Author: eitani
Date: Thu Feb 28 08:38:46 2008
New Revision: 479
URL: http://svn.gnome.org/viewvc/accerciser?rev=479&view=rev

Log:
Squashed commit of the following:

commit c287e57271271f5ec54c76b02e12909ef33b7781
Author: Eitan Isaacson <eitan ascender com>
Date:   Thu Feb 28 00:30:53 2008 -0800

    * plugins/event_monitor.py: Make hyperlinks work with single clicks (bug #494632). Thanks Steve Lee and Brian G. Merrell!

commit b547c7f1f382ba71f301a6e62cdc506b73a062c8
Author: Eitan Isaacson <eitan ascender com>
Date:   Thu Feb 28 00:01:19 2008 -0800

    * plugins/api_view.py: Put interface combo box on tob (bug #493650). Thanks Brian G. Merrell!

commit f4ac11b7afd97e8a9896abd7fb765ed2a5a9af52
Author: Eitan Isaacson <eitan ascender com>
Date:   Wed Feb 27 23:58:16 2008 -0800

    * plugins/interface_view.py: Swapped absolute and relative positions in Component section (bug #503654).


Modified:
   trunk/plugins/api_view.py
   trunk/plugins/event_monitor.py
   trunk/plugins/interface_view.py

Modified: trunk/plugins/api_view.py
==============================================================================
--- trunk/plugins/api_view.py	(original)
+++ trunk/plugins/api_view.py	Thu Feb 28 08:38:46 2008
@@ -51,21 +51,21 @@
     self.plugin_area.add(vbox)
     top_hbox = gtk.HBox()
     bottom_hbox = gtk.HBox()
-    vbox.pack_start(top_hbox)
-    vbox.pack_start(bottom_hbox, False)
+    vbox.pack_start(top_hbox, False)
+    vbox.pack_start(bottom_hbox)
     self.method_tree = gtk.TreeView()
     scrolled_window = gtk.ScrolledWindow()
     scrolled_window.add(self.method_tree)
-    top_hbox.pack_start(scrolled_window)
+    bottom_hbox.pack_start(scrolled_window)
     self.property_tree = gtk.TreeView()
     scrolled_window = gtk.ScrolledWindow()
     scrolled_window.add(self.property_tree)
-    top_hbox.pack_start(scrolled_window)
+    bottom_hbox.pack_start(scrolled_window)
     self.iface_combo = gtk.combo_box_new_text() 
-    bottom_hbox.pack_start(self.iface_combo, False)
+    top_hbox.pack_start(self.iface_combo, False)
     self.private_toggle = gtk.CheckButton(_('Hide private attributes'))
     self.private_toggle.set_active(True)
-    bottom_hbox.pack_end(self.private_toggle, False)
+    top_hbox.pack_end(self.private_toggle, False)
     self.show_all()
     
   def _initTreeViews(self):

Modified: trunk/plugins/event_monitor.py
==============================================================================
--- trunk/plugins/event_monitor.py	(original)
+++ trunk/plugins/event_monitor.py	Thu Feb 28 08:38:46 2008
@@ -356,8 +356,8 @@
 
   def _createHyperlink(self, acc):
     '''
-    Create a hyperlink tag for a given accessible. When the link is double 
-    clicked the accessible is selected in the main program.
+    Create a hyperlink tag for a given accessible. When the link is clicked
+    the accessible is selected in the main program.
     
     @param acc: The accessible to create the tag for.
     @type acc: Accessibility.Accessible
@@ -376,10 +376,9 @@
 
   def _onLinkClicked(self, tag, widget, event, iter):
     '''
-    Callback for doulbe clicked link. Select links accessible in main
-    application.
+    Callback for clicked link. Select links accessible in main application.
     
-    @param tag: Tag that was double clicked.
+    @param tag: Tag that was clicked.
     @type tag: gtk.TextTag
     @param widget: The widget that received event.
     @type widget: gtk.Widget
@@ -388,7 +387,8 @@
     @param iter: The text iter that was clicked.
     @type iter: gtk.TextIter
     '''
-    if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
+    if event.type == gtk.gdk.BUTTON_RELEASE and \
+           event.button == 1 and not self.monitor_buffer.get_has_selection():
       self.node.update(tag.get_data('acc'))
 
   def _onLinkKeyPress(self, textview, event):

Modified: trunk/plugins/interface_view.py
==============================================================================
--- trunk/plugins/interface_view.py	(original)
+++ trunk/plugins/interface_view.py	Thu Feb 28 08:38:46 2008
@@ -583,8 +583,8 @@
     @param glade_xml: Interface viewer glade xml.
     @type glade_xml: gtk.glade.XML
     '''
-    self.label_posrel = glade_xml.get_widget('absolute_position_label')
-    self.label_posabs = glade_xml.get_widget('relative_position_label')
+    self.label_posabs = glade_xml.get_widget('absolute_position_label')
+    self.label_posrel = glade_xml.get_widget('relative_position_label')
     self.label_size = glade_xml.get_widget('size_label')
     self.label_layer = glade_xml.get_widget('layer_label')
     self.label_zorder = glade_xml.get_widget('zorder_label')



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