[pygobject] [gtk-demo] fix glib vs GLib usage



commit 87e9ab4d3a0aac4f4710aa0f8af0a1736f781ad9
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Mon Aug 22 07:48:28 2011 +0200

    [gtk-demo] fix glib vs GLib usage

 demos/gtk-demo/demos/Icon View/iconviewbasics.py |    2 +-
 demos/gtk-demo/demos/appwindow.py                |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/demos/Icon View/iconviewbasics.py b/demos/gtk-demo/demos/Icon View/iconviewbasics.py
index 9bcff87..bd72b0c 100644
--- a/demos/gtk-demo/demos/Icon View/iconviewbasics.py	
+++ b/demos/gtk-demo/demos/Icon View/iconviewbasics.py	
@@ -191,7 +191,7 @@ class IconViewApp:
                 try:
                     pixbuf = icon_theme.load_icon(name, 64, 0)
                     break
-                except glib.GError:
+                except GLib.GError:
                     pass
 
             self.pixbuf_lookup[gicon] = pixbuf
diff --git a/demos/gtk-demo/demos/appwindow.py b/demos/gtk-demo/demos/appwindow.py
index b3307ff..2135e7a 100644
--- a/demos/gtk-demo/demos/appwindow.py
+++ b/demos/gtk-demo/demos/appwindow.py
@@ -118,7 +118,7 @@ Boston, MA 02111-1307, USA.
     filename = os.path.join('data', 'gtk-logo-rgb.gif')
     try:
         pixbuf = GdkPixbuf.Pixbuf.new_from_file(filename)
-    except glib.GError:
+    except GLib.GError:
         filename = os.path.join('demos', filename)
         pixbuf = GdkPixbuf.Pixbuf.new_from_file(filename)
 



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