hamster-applet r635 - in trunk: data hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r635 - in trunk: data hamster
- Date: Fri, 21 Nov 2008 17:58:05 +0000 (UTC)
Author: tbaugis
Date: Fri Nov 21 17:58:05 2008
New Revision: 635
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=635&view=rev
Log:
disable edit button if there is nothing to edit.
fixes bug 559207
Modified:
trunk/data/stats.glade
trunk/hamster/stats.py
Modified: trunk/data/stats.glade
==============================================================================
--- trunk/data/stats.glade (original)
+++ trunk/data/stats.glade Fri Nov 21 17:58:05 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.5 on Fri Oct 24 16:40:17 2008 -->
+<!--Generated with glade3 3.4.5 on Fri Nov 21 17:55:13 2008 -->
<glade-interface>
<widget class="GtkWindow" id="stats_window">
<property name="height_request">600</property>
@@ -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: trunk/hamster/stats.py
==============================================================================
--- trunk/hamster/stats.py (original)
+++ trunk/hamster/stats.py Fri Nov 21 17:58:05 2008
@@ -442,6 +442,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]