Bug 895218

Summary: [abrt] ibus-1.4.99.20121109-9.fc17: keyboardshortcut.py:210:__set_selected_shortcut:TypeError: 'TreePath' object does not support indexing
Product: [Fedora] Fedora Reporter: Jacek Pawlyta <cunio>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: i18n-bugs, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:589084d0d36cd86adf305fd3643dc63f313a0934
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-19 01:25:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ
none
File: smolt_data none

Description Jacek Pawlyta 2013-01-14 21:06:05 UTC
Version-Release number of selected component:
ibus-1.4.99.20121109-9.fc17

Additional info:
cmdline:        /usr/bin/python /usr/share/ibus/setup/main.py ibus-setup
executable:     /usr/share/ibus/setup/main.py
kernel:         3.7.1-2.fc18.x86_64
uid:            500

Truncated backtrace:
keyboardshortcut.py:210:__set_selected_shortcut:TypeError: 'TreePath' object does not support indexing

Traceback (most recent call last):
  File "/usr/share/ibus/setup/keyboardshortcut.py", line 306, in __apply_button_clicked_cb
    self.__set_selected_shortcut(shortcut)
  File "/usr/share/ibus/setup/keyboardshortcut.py", line 210, in __set_selected_shortcut
    model[path[0]][0] = shortcut
TypeError: 'TreePath' object does not support indexing

Local variables in innermost frame:
column: <TreeViewColumn object at 0x278ebe0 (GtkTreeViewColumn at 0x29dfb20)>
path: <GtkTreePath at 0x2c08750>
model: <ListStore object at 0x278eaf0 (GtkListStore at 0x2b82430)>
self: <KeyboardShortcutSelection object at 0x278e820 (keyboardshortcut+KeyboardShortcutSelection at 0x27410f0)>
shortcut: '<Control><Meta>space'

Comment 1 Jacek Pawlyta 2013-01-14 21:06:08 UTC
Created attachment 678429 [details]
File: backtrace

Comment 2 Jacek Pawlyta 2013-01-14 21:06:11 UTC
Created attachment 678430 [details]
File: core_backtrace

Comment 3 Jacek Pawlyta 2013-01-14 21:06:13 UTC
Created attachment 678431 [details]
File: environ

Comment 4 Jacek Pawlyta 2013-01-14 21:06:15 UTC
Created attachment 678432 [details]
File: smolt_data

Comment 5 fujiwara 2013-01-15 03:06:26 UTC
I also noticed this issue last week.
It's a fedora17 pygobject3 specific problem.

Comment 6 fujiwara 2013-01-16 02:52:30 UTC
--- ibus-1.5.1/setup/keyboardshortcut.py.orig	2013-01-15 17:00:05.093191054 +0900
+++ ibus-1.5.1/setup/keyboardshortcut.py	2013-01-15 17:00:18.034160760 +0900
@@ -207,7 +207,7 @@ class KeyboardShortcutSelection(Gtk.VBox
     def __set_selected_shortcut(self, shortcut):
         model = self.__shortcut_view.get_model()
         path, column = self.__shortcut_view.get_cursor()
-        model[path[0]][0] = shortcut
+        model[path][0] = shortcut
         self.__update_add_and_apply_buttons()
 
     def __del_selected_shortcut(self):

Comment 7 Fedora Update System 2013-01-16 02:55:48 UTC
ibus-1.5.1-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/ibus-1.5.1-1.fc17

Comment 8 Fedora Update System 2013-01-18 20:25:40 UTC
Package ibus-1.5.1-1.fc17, ibus-anthy-1.5.0-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.5.1-1.fc17 ibus-anthy-1.5.0-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0914/ibus-anthy-1.5.0-1.fc17,ibus-1.5.1-1.fc17
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-02-01 17:19:39 UTC
Package ibus-anthy-1.5.0-1.fc17, ibus-1.5.1-2.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-anthy-1.5.0-1.fc17 ibus-1.5.1-2.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0914/ibus-anthy-1.5.0-1.fc17,ibus-1.5.1-2.fc17
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-02-19 01:25:57 UTC
ibus-anthy-1.5.0-1.fc17, ibus-1.5.1-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.