Tue, 17 Jun 2008 19:41:33 -0400 <me@nikosapi.org>

Add 'Select All' and 'Select None' buttons to gPodderOpmlLister

	* data/gpodder.glade: add 'Select All' and 'Select None' buttons to 
	the the bottom-left of the gPodderOpmlLister window
	* src/gpodder/gui.py: add button signal handlers and a function
	( select_all(bool) ) to facilitate selecting all or no channels



git-svn-id: svn://svn.berlios.de/gpodder/trunk@745 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Nick 2008-06-17 23:49:47 +00:00
parent 2f3071d2cf
commit 95fbbaabca
3 changed files with 60 additions and 5 deletions

View file

@ -1,3 +1,11 @@
Tue, 17 Jun 2008 19:41:33 -0400 <me@nikosapi.org>
Add 'Select All' and 'Select None' buttons to gPodderOpmlLister
* data/gpodder.glade: add 'Select All' and 'Select None' buttons to
the the bottom-left of the gPodderOpmlLister window
* src/gpodder/gui.py: add button signal handlers and a function
( select_all(bool) ) to facilitate selecting all or no channels
Tue, 17 Jun 2008 14:49:12 +0200 <thp@perli.net>
Make handling pubDates a bit safer when reading it externally

View file

@ -6213,20 +6213,36 @@ Filesystem-based MP3 player</property>
<property name="spacing">5</property>
<child>
<widget class="GtkButton" id="btnOK">
<widget class="GtkButton" id="btnSelectAll">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-add</property>
<property name="use_stock">True</property>
<property name="label" translatable="yes">Select All</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_btnOK_clicked" last_modification_time="Tue, 13 Jun 2006 19:31:12 GMT"/>
<signal name="clicked" handler="on_btnSelectAll_clicked" last_modification_time="Tue, 17 Jun 2008 12:48:57 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="btnSelectNone">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Select None</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_btnSelectNone_clicked" last_modification_time="Tue, 17 Jun 2008 12:49:08 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
@ -6255,6 +6271,24 @@ Filesystem-based MP3 player</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="btnOK">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-add</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="clicked" handler="on_btnOK_clicked" last_modification_time="Tue, 13 Jun 2006 19:31:12 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="btnCancel">
<property name="visible">True</property>

View file

@ -2909,12 +2909,25 @@ class gPodderOpmlLister(GladeWidget):
self.treeviewChannelChooser.set_sensitive( False)
Thread( target = self.thread_func).start()
def select_all( self, value ):
self.channels = []
for row in self.treeviewChannelChooser.get_model():
row[0] = value
if value:
self.channels.append(row[2])
def on_gPodderOpmlLister_destroy(self, widget, *args):
pass
def on_btnDownloadOpml_clicked(self, widget, *args):
self.get_channels_from_url( self.entryURL.get_text())
def on_btnSelectAll_clicked(self, widget, *args):
self.select_all(True)
def on_btnSelectNone_clicked(self, widget, *args):
self.select_all(False)
def on_btnOK_clicked(self, widget, *args):
self.gPodderOpmlLister.destroy()