hamster-applet r636 - in branches/gnome-2-24: data hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r636 - in branches/gnome-2-24: data hamster
- Date: Fri, 21 Nov 2008 17:59:16 +0000 (UTC)
Author: tbaugis
Date: Fri Nov 21 17:59:16 2008
New Revision: 636
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=636&view=rev
Log:
disable edit button if there is nothing to edit.
fixes bug 559207
Modified:
branches/gnome-2-24/data/stats.glade
branches/gnome-2-24/hamster/stats.py
Modified: branches/gnome-2-24/data/stats.glade
==============================================================================
--- branches/gnome-2-24/data/stats.glade (original)
+++ branches/gnome-2-24/data/stats.glade Fri Nov 21 17:59:16 2008
@@ -95,6 +95,7 @@
<child>
<widget class="GtkToolButton" id="edit">
<property name="visible">True</property>
+ <property name="sensitive">False</property>
<property name="tooltip_text" translatable="yes">Edit activity</property>
<property name="stock_id">gtk-edit</property>
<signal name="clicked" handler="on_edit_clicked"/>
Modified: branches/gnome-2-24/hamster/stats.py
==============================================================================
--- branches/gnome-2-24/hamster/stats.py (original)
+++ branches/gnome-2-24/hamster/stats.py Fri Nov 21 17:59:16 2008
@@ -432,6 +432,7 @@
id = model[iter][0]
self.get_widget('remove').set_sensitive(id != -1)
+ self.get_widget('edit').set_sensitive(id != -1)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]