gnome-specimen r166 - in branches/import-from-bzr: . data specimen



Author: wbolster
Date: Tue Jun 17 18:54:54 2008
New Revision: 166
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=166&view=rev

Log:
* data/gnome-specimen.glade:
  - Fixup some strange strings, glade does not behave like
    it should...

* specimen/specimenwindow.py:
  - Add some comments


Modified:
   branches/import-from-bzr/   (props changed)
   branches/import-from-bzr/data/gnome-specimen.glade
   branches/import-from-bzr/specimen/specimenwindow.py

Modified: branches/import-from-bzr/data/gnome-specimen.glade
==============================================================================
--- branches/import-from-bzr/data/gnome-specimen.glade	(original)
+++ branches/import-from-bzr/data/gnome-specimen.glade	Tue Jun 17 18:54:54 2008
@@ -23,8 +23,7 @@
                   <widget class="GtkMenu" id="file_item_menu">
                     <child>
                       <widget class="GtkImageMenuItem" id="quit_item">
-                        <property name="visible">True</property>
-                        <property name="label" translatable="yes">gtk-quit</property>
+                        <property name="label">gtk-quit</property>
                         <property name="use_underline">True</property>
                         <property name="use_stock">True</property>
                         <signal name="activate" handler="on_quit_item_activate"/>
@@ -50,9 +49,7 @@
                         <accelerator key="C" modifiers="GDK_CONTROL_MASK" signal="activate"/>
                         <child internal-child="image">
                           <widget class="GtkImage" id="image64">
-                            <property name="visible">True</property>
                             <property name="stock">gtk-copy</property>
-                            <property name="icon_size">1</property>
                           </widget>
                         </child>
                       </widget>
@@ -66,9 +63,7 @@
                         <accelerator key="L" modifiers="GDK_CONTROL_MASK" signal="activate"/>
                         <child internal-child="image">
                           <widget class="GtkImage" id="image65">
-                            <property name="visible">True</property>
                             <property name="stock">gtk-clear</property>
-                            <property name="icon_size">1</property>
                           </widget>
                         </child>
                       </widget>
@@ -96,9 +91,7 @@
                         <signal name="activate" handler="on_change_colors_item_activate"/>
                         <child internal-child="image">
                           <widget class="GtkImage" id="image66">
-                            <property name="visible">True</property>
                             <property name="stock">gtk-select-color</property>
-                            <property name="icon_size">1</property>
                           </widget>
                         </child>
                       </widget>
@@ -116,15 +109,12 @@
                   <widget class="GtkMenu" id="help_item_menu">
                     <child>
                       <widget class="GtkImageMenuItem" id="about_item">
-                        <property name="visible">True</property>
                         <property name="label" translatable="yes">_About</property>
                         <property name="use_underline">True</property>
                         <signal name="activate" handler="on_about_item_activate"/>
                         <child internal-child="image">
                           <widget class="GtkImage" id="image67">
-                            <property name="visible">True</property>
                             <property name="stock">gtk-about</property>
-                            <property name="icon_size">1</property>
                           </widget>
                         </child>
                       </widget>

Modified: branches/import-from-bzr/specimen/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimen/specimenwindow.py	(original)
+++ branches/import-from-bzr/specimen/specimenwindow.py	Tue Jun 17 18:54:54 2008
@@ -192,6 +192,7 @@
 
         howmany_at_once = 50
 
+        # speedup: temporarily disconnect the model
         model = self.fonts_treeview.get_model()
         self.fonts_treeview.set_model(None);
 
@@ -204,6 +205,7 @@
                 self.fonts_treestore.append(piter,
                         [face.get_face_name(), family, face, True])
 
+        # reconnect the model
         self.fonts_treeview.set_model(model);
 
         # scroll to the top, since the treeview may have scrolled after all



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