diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-24 13:57:06 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-24 13:57:06 +0100 |
| commit | efa4ee5ee367927e75c6135387b999153d849f0f (patch) | |
| tree | 8b4eee3c032fb66002e6a454209112f4097dc672 | |
| parent | 8bb6b566d6a7fbcd3bdf5b45ccaefb8d95bae0b0 (diff) | |
| download | python-apt-efa4ee5ee367927e75c6135387b999153d849f0f.tar.gz | |
* open the edit dialog if the channel was double clicked
| -rw-r--r-- | SoftwareProperties/SoftwareProperties.py | 6 | ||||
| -rw-r--r-- | data/SoftwareProperties.glade | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 099576d0..8d75a6c1 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -367,7 +367,11 @@ class SoftwareProperties(SimpleGladeApp): if dialog.run() == gtk.RESPONSE_OK: self.reload_sourceslist() self.modified = True - + + def on_channel_activated(self, treeview, path, column): + """Open the edit dialog if a channel was double clicked""" + self.on_edit_clicked(treeview) + def on_remove_clicked(self, widget): sel = self.treeview_sources.get_selection() (model, iter) = sel.get_selected() diff --git a/data/SoftwareProperties.glade b/data/SoftwareProperties.glade index 5d55f68a..c1cdc87f 100644 --- a/data/SoftwareProperties.glade +++ b/data/SoftwareProperties.glade @@ -93,6 +93,7 @@ <property name="fixed_height_mode">False</property> <property name="hover_selection">False</property> <property name="hover_expand">False</property> + <signal name="row_activated" handler="on_channel_activated" last_modification_time="Fri, 24 Mar 2006 12:56:00 GMT"/> </widget> </child> </widget> |
