[gnome-devel-docs/beginners] Alternative sample code for image modified.



commit ed9a7949f2ad5dea8a3e04fdc4d206d4a6ddae84
Author: Marta Maria Casetti <mmcasetti gmail com>
Date:   Mon Aug 5 11:51:29 2013 +0200

    Alternative sample code for image modified.
    
    An useless comment on the first alternative sample code for image
    has been removed.
    The application_id in the second alternative sample code for image
    has been changed to org.gnome.ImageExample3 to conform to what
    was done in the first alternative code.

 beginners-docs/C/samples/image2.py |    1 -
 beginners-docs/C/samples/image3.py |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/beginners-docs/C/samples/image2.py b/beginners-docs/C/samples/image2.py
index 8318811..f01cc88 100644
--- a/beginners-docs/C/samples/image2.py
+++ b/beginners-docs/C/samples/image2.py
@@ -8,7 +8,6 @@ class MyWindow(Gtk.ApplicationWindow):
         self.set_title("Welcome to GNOME") 
         self.set_default_size(300, 300)
 
-# a class to create an image
 class MyImage(Gtk.Image):
     def __init__(self):
         Gtk.Image.__init__(self)
diff --git a/beginners-docs/C/samples/image3.py b/beginners-docs/C/samples/image3.py
index dbc540f..d961dd5 100644
--- a/beginners-docs/C/samples/image3.py
+++ b/beginners-docs/C/samples/image3.py
@@ -24,7 +24,7 @@ class MyWindow(Gtk.ApplicationWindow):
         
 class MyApplication(Gtk.Application):
     def __init__(self):
-        Gtk.Application.__init__(self, application_id="org.gnome.ImageExample")
+        Gtk.Application.__init__(self, application_id="org.gnome.ImageExample3")
 
     def do_activate(self):
         win = MyWindow(self)


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