changeset 7a0e65bb9468 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=7a0e65bb9468
description: [Dicson] Fix getting the name of widgets. Fixes #6026

diffstat:

 data/gui/history_manager.ui |  2 --
 src/history_manager.py      |  5 +++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 5cb214f0c145 -r 7a0e65bb9468 data/gui/history_manager.ui
--- a/data/gui/history_manager.ui       Mon Nov 01 21:22:43 2010 +0100
+++ b/data/gui/history_manager.ui       Mon Nov 01 21:34:17 2010 +0100
@@ -285,7 +285,6 @@
         <property name="visible">True</property>
         <property name="use_underline">True</property>
         <property name="use_stock">True</property>
-        <property name="accel_group">accelgroup1</property>
       </object>
     </child>
   </object>
@@ -346,5 +345,4 @@
       <action-widget response="-5">save_button</action-widget>
     </action-widgets>
   </object>
-  <object class="GtkAccelGroup" id="accelgroup1"/>
 </interface>
diff -r 5cb214f0c145 -r 7a0e65bb9468 src/history_manager.py
--- a/src/history_manager.py    Mon Nov 01 21:22:43 2010 +0100
+++ b/src/history_manager.py    Mon Nov 01 21:34:17 2010 +0100
@@ -471,10 +471,11 @@
         dlg.destroy()
 
     def on_delete_menuitem_activate(self, widget, listview):
+        widget_name = gtk.Buildable.get_name(listview)
         liststore, list_of_paths = listview.get_selection().get_selected_rows()
-        if listview.name == 'jids_listview':
+        if widget_name == 'jids_listview':
             self._delete_jid_logs(liststore, list_of_paths)
-        elif listview.name in ('logs_listview', 'search_results_listview'):
+        elif widget_name in ('logs_listview', 'search_results_listview'):
             self._delete_logs(liststore, list_of_paths)
         else: # Huh ? We don't know this widget
             return
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to