[pygobject] [gtk-demo] images.py: fix 'Insensitive 'button mnenomic



commit 9ea56535f35abbea4cd977dea4c89247e4b01694
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Mon Aug 22 12:30:24 2011 +0200

    [gtk-demo] images.py: fix 'Insensitive 'button mnenomic

 demos/gtk-demo/demos/images.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/demos/images.py b/demos/gtk-demo/demos/images.py
index 400b477..7e8d19e 100644
--- a/demos/gtk-demo/demos/images.py
+++ b/demos/gtk-demo/demos/images.py
@@ -134,7 +134,7 @@ class ImagesApp:
         self.start_progressive_loading(image)
 
         # Sensistivity control
-        button = Gtk.ToggleButton(label='_Insensitive')
+        button = Gtk.ToggleButton.new_with_mnemonic('_Insensitive')
         button.connect('toggled', self.toggle_sensitivity_cb, vbox)
         vbox.pack_start(button, False, False, 0)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]