rep-gtk r356 - in trunk: . examples



Author: chrisb
Date: Thu Jul 31 19:50:22 2008
New Revision: 356
URL: http://svn.gnome.org/viewvc/rep-gtk?rev=356&view=rev

Log:
- update the glade-files to glade-2


Modified:
   trunk/ChangeLog
   trunk/examples/rep-ui.glade
   trunk/examples/simple.glade

Modified: trunk/examples/rep-ui.glade
==============================================================================
--- trunk/examples/rep-ui.glade	(original)
+++ trunk/examples/rep-ui.glade	Thu Jul 31 19:50:22 2008
@@ -1,182 +1,165 @@
-<?xml version="1.0"?>
-<GTK-Interface>
+<?xml version="1.0" standalone="no"?> <!--*- mode: nxml -*-->
+<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"; >
 
-<project>
-  <name>Rep-ui</name>
-  <program_name>rep-ui</program_name>
-  <directory></directory>
-  <source_directory></source_directory>
-  <pixmaps_directory>pixmaps</pixmaps_directory>
-  <language>C</language>
-  <gnome_support>False</gnome_support>
-  <gettext_support>True</gettext_support>
-  <use_widget_names>False</use_widget_names>
-  <output_main_file>True</output_main_file>
-  <output_support_files>True</output_support_files>
-  <output_build_files>True</output_build_files>
-  <backup_source_files>True</backup_source_files>
-  <main_source_file>interface.c</main_source_file>
-  <main_header_file>interface.h</main_header_file>
-  <handler_source_file>callbacks.c</handler_source_file>
-  <handler_header_file>callbacks.h</handler_header_file>
-  <support_source_file>support.c</support_source_file>
-  <support_header_file>support.h</support_header_file>
-  <translatable_strings_file></translatable_strings_file>
-</project>
-
-<widget>
-  <class>GtkWindow</class>
-  <name>REP</name>
-  <signal>
-    <name>delete_event</name>
-    <handler>window-closed</handler>
-    <last_modification_time>Fri, 17 Dec 1999 23:57:34 GMT</last_modification_time>
-  </signal>
-  <title>REP</title>
-  <type>GTK_WINDOW_TOPLEVEL</type>
-  <position>GTK_WIN_POS_NONE</position>
-  <modal>False</modal>
-  <default_width>400</default_width>
-  <default_height>300</default_height>
-  <allow_shrink>False</allow_shrink>
-  <allow_grow>True</allow_grow>
-  <auto_shrink>False</auto_shrink>
-
-  <widget>
-    <class>GtkVBox</class>
-    <name>vbox1</name>
-    <homogeneous>False</homogeneous>
-    <spacing>0</spacing>
-
-    <widget>
-      <class>GtkMenuBar</class>
-      <name>menubar1</name>
-      <shadow_type>GTK_SHADOW_OUT</shadow_type>
-      <child>
-	<padding>0</padding>
-	<expand>False</expand>
-	<fill>False</fill>
-      </child>
-
-      <widget>
-	<class>GtkMenuItem</class>
-	<name>menu-file</name>
-	<label>_File</label>
-	<right_justify>False</right_justify>
-
-	<widget>
-	  <class>GtkMenu</class>
-	  <name>menu-file_menu</name>
-
-	  <widget>
-	    <class>GtkMenuItem</class>
-	    <name>menu-file-new</name>
-	    <signal>
-	      <name>activate</name>
-	      <handler>on_menu-file-new_activate</handler>
-	      <last_modification_time>Fri, 17 Dec 1999 23:53:07 GMT</last_modification_time>
-	    </signal>
-	    <label>_New</label>
-	    <right_justify>False</right_justify>
-	  </widget>
-
-	  <widget>
-	    <class>GtkMenuItem</class>
-	    <name>menu-file-close</name>
-	    <signal>
-	      <name>activate</name>
-	      <handler>window-closed</handler>
-	      <last_modification_time>Sat, 18 Dec 1999 00:25:26 GMT</last_modification_time>
-	    </signal>
-	    <label>_Close</label>
-	    <right_justify>False</right_justify>
-	  </widget>
-
-	  <widget>
-	    <class>GtkMenuItem</class>
-	    <name>menu-file-exit</name>
-	    <signal>
-	      <name>activate</name>
-	      <handler>window-closed</handler>
-	      <last_modification_time>Sat, 18 Dec 1999 00:25:40 GMT</last_modification_time>
-	    </signal>
-	    <label>_Exit</label>
-	    <right_justify>False</right_justify>
-	  </widget>
-	</widget>
+<glade-interface>
+  <widget class="GtkWindow" id="REP">
+    <property name="title" translatable="yes">REP</property>
+    <property name="type">GTK_WINDOW_TOPLEVEL</property>
+    <property name="modal">no</property>
+    <property name="default_width">400</property>
+    <property name="default_height">300</property>
+    <property name="allow_shrink">no</property>
+    <property name="allow_grow">yes</property>
+    <property name="window-position">GTK_WIN_POS_NONE</property>
+    <property name="visible">yes</property>
+
+    <signal name="delete_event" handler="window-closed" />
+
+    <child>
+      <widget class="GtkVBox" id="vbox1">
+        <property name="homogeneous">no</property>
+        <property name="spacing">0</property>
+        <property name="visible">yes</property>
+
+        <child>
+          <widget class="GtkMenuBar" id="menubar1">
+            <property name="visible">yes</property>
+
+            <child>
+              <widget class="GtkMenuItem" id="menu-file">
+                <property name="label" translatable="yes">_File</property>
+                <property name="visible">yes</property>
+                <property name="use_underline">yes</property>
+
+                <child>
+                  <widget class="GtkMenu" id="menu-file_menu">
+                    <property name="visible">yes</property>
+
+                    <child>
+                      <widget class="GtkMenuItem" id="menu-file-new">
+                        <property name="label" translatable="yes">_New</property>
+                        <property name="visible">yes</property>
+                        <property name="use_underline">yes</property>
+
+                        <signal name="activate" handler="on_menu-file-new_activate" />
+                      </widget>
+                    </child>
+
+                    <child>
+                      <widget class="GtkMenuItem" id="menu-file-close">
+                        <property name="label" translatable="yes">_Close</property>
+                        <property name="visible">yes</property>
+                        <property name="use_underline">yes</property>
+
+                        <signal name="activate" handler="window-closed" />
+                      </widget>
+                    </child>
+
+                    <child>
+                      <widget class="GtkMenuItem" id="menu-file-exit">
+                        <property name="label" translatable="yes">_Exit</property>
+                        <property name="visible">yes</property>
+                        <property name="use_underline">yes</property>
+
+                        <signal name="activate" handler="window-closed" />
+                      </widget>
+                    </child>
+                  </widget>
+                </child>
+              </widget>
+            </child>
+
+            <child>
+              <widget class="GtkMenuItem" id="menu-help">
+                <property name="label" translatable="yes">_Help</property>
+                <property name="visible">yes</property>
+                <property name="use_underline">yes</property>
+
+                <child>
+                  <widget class="GtkMenu" id="menu-help_menu">
+                    <property name="visible">yes</property>
+
+                    <child>
+                      <widget class="GtkMenuItem" id="menu-help-about">
+                        <property name="label" translatable="yes">_About</property>
+                        <property name="visible">yes</property>
+                        <property name="use_underline">yes</property>
+
+                        <signal name="activate" handler="on_menu-help-about_activate" />
+                      </widget>
+                    </child>
+                  </widget>
+                </child>
+              </widget>
+            </child>
+          </widget>
+          <packing>
+            <property name="padding">0</property>
+            <property name="expand">no</property>
+            <property name="fill">no</property>
+          </packing>
+        </child>
+
+        <child>
+          <widget class="GtkScrolledWindow" id="scrolledwindow1">
+            <property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
+            <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
+            <property name="shadow_type">GTK_SHADOW_IN</property>
+            <property name="visible">yes</property>
+
+            <child>
+              <widget class="GtkTextView" id="text1">
+                <property name="tooltip" translatable="yes">Evaluation history</property>
+                <property name="can_focus">yes</property>
+                <property name="editable">no</property>
+                <property name="text" translatable="yes"></property>
+                <property name="wrap_mode">GTK_WRAP_WORD</property>
+                <property name="width-request">400</property>
+                <property name="height-request">200</property>
+                <property name="visible">yes</property>
+              </widget>
+            </child>
+
+            <child internal-child="hscrollbar">
+              <widget class="GtkHScrollbar" id="convertwidget1">
+                <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
+                <property name="visible">yes</property>
+              </widget>
+            </child>
+
+            <child internal-child="vscrollbar">
+              <widget class="GtkVScrollbar" id="convertwidget2">
+                <property name="update_policy">GTK_UPDATE_CONTINUOUS</property>
+                <property name="visible">yes</property>
+              </widget>
+            </child>
+          </widget>
+          <packing>
+            <property name="padding">0</property>
+            <property name="expand">yes</property>
+            <property name="fill">yes</property>
+          </packing>
+        </child>
+
+        <child>
+          <widget class="GtkEntry" id="entry1">
+            <property name="tooltip" translatable="yes">Form entry</property>
+            <property name="can_focus">yes</property>
+            <property name="editable">yes</property>
+            <property name="text" translatable="yes"></property>
+            <property name="max-length">0</property>
+            <property name="visibility">yes</property>
+            <property name="visible">yes</property>
+
+            <signal name="key_press_event" handler="entry-key-press" />
+          </widget>
+          <packing>
+            <property name="padding">0</property>
+            <property name="expand">no</property>
+            <property name="fill">no</property>
+          </packing>
+        </child>
       </widget>
-
-      <widget>
-	<class>GtkMenuItem</class>
-	<name>menu-help</name>
-	<label>_Help</label>
-	<right_justify>False</right_justify>
-
-	<widget>
-	  <class>GtkMenu</class>
-	  <name>menu-help_menu</name>
-
-	  <widget>
-	    <class>GtkMenuItem</class>
-	    <name>menu-help-about</name>
-	    <signal>
-	      <name>activate</name>
-	      <handler>on_menu-help-about_activate</handler>
-	      <last_modification_time>Fri, 17 Dec 1999 23:53:34 GMT</last_modification_time>
-	    </signal>
-	    <label>_About</label>
-	    <right_justify>False</right_justify>
-	  </widget>
-	</widget>
-      </widget>
-    </widget>
-
-    <widget>
-      <class>GtkScrolledWindow</class>
-      <name>scrolledwindow1</name>
-      <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
-      <vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
-      <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
-      <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
-      <child>
-	<padding>0</padding>
-	<expand>True</expand>
-	<fill>True</fill>
-      </child>
-
-      <widget>
-	<class>GtkText</class>
-	<name>text1</name>
-	<width>400</width>
-	<height>200</height>
-	<tooltip>Evaluation history</tooltip>
-	<can_focus>True</can_focus>
-	<editable>False</editable>
-	<text></text>
-      </widget>
-    </widget>
-
-    <widget>
-      <class>GtkEntry</class>
-      <name>entry1</name>
-      <tooltip>Form entry</tooltip>
-      <can_focus>True</can_focus>
-      <signal>
-	<name>key_press_event</name>
-	<handler>entry-key-press</handler>
-	<last_modification_time>Sat, 18 Dec 1999 00:02:59 GMT</last_modification_time>
-      </signal>
-      <editable>True</editable>
-      <text_visible>True</text_visible>
-      <text_max_length>0</text_max_length>
-      <text></text>
-      <child>
-	<padding>0</padding>
-	<expand>False</expand>
-	<fill>False</fill>
-      </child>
-    </widget>
+    </child>
   </widget>
-</widget>
-
-</GTK-Interface>
+</glade-interface>

Modified: trunk/examples/simple.glade
==============================================================================
--- trunk/examples/simple.glade	(original)
+++ trunk/examples/simple.glade	Thu Jul 31 19:50:22 2008
@@ -1,33 +1,26 @@
-<?xml version="1.0"?>
-<GTK-Interface>
+<?xml version="1.0" standalone="no"?> <!--*- mode: nxml -*-->
+<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"; >
 
+<glade-interface>
+  <widget class="GtkWindow" id="HelloWindow">
+    <property name="border_width">5</property>
+    <property name="title" translatable="yes">Hello</property>
+    <property name="type">GTK_WINDOW_TOPLEVEL</property>
+    <property name="allow_shrink">yes</property>
+    <property name="allow_grow">yes</property>
+    <property name="window-position">GTK_WIN_POS_NONE</property>
+    <property name="visible">yes</property>
 
-<widget>
-  <class>GtkWindow</class>
-  <name>HelloWindow</name>
-  <border_width>5</border_width>
-  <Signal>
-    <name>destroy</name>
-    <handler>gtk-main-quit</handler>
-  </Signal>
-  <title>Hello</title>
-  <type>GTK_WINDOW_TOPLEVEL</type>
-  <position>GTK_WIN_POS_NONE</position>
-  <allow_shrink>True</allow_shrink>
-  <allow_grow>True</allow_grow>
-  <auto_shrink>False</auto_shrink>
+    <signal name="destroy" handler="gtk-main-quit" />
 
-  <widget>
-    <class>GtkButton</class>
-    <name>Hello World</name>
-    <can_focus>True</can_focus>
-    <Signal>
-      <name>clicked</name>
-      <handler>gtk-main-quit</handler>
-      <object>HelloWindow</object>
-    </Signal>
-    <label>Hello World</label>
-  </widget>
-</widget>
+    <child>
+      <widget class="GtkButton" id="Hello World">
+        <property name="can_focus">yes</property>
+        <property name="label" translatable="yes">Hello World</property>
+        <property name="visible">yes</property>
 
-</GTK-Interface>
+        <signal name="clicked" handler="gtk-main-quit" object="HelloWindow" />
+      </widget>
+    </child>
+  </widget>
+</glade-interface>



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