[glade/modern-ui: 31/31] GladeWindow: add main stack with logo



commit 832872a41460a32f0b199f069e482bd8e77aaa80
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Sat Jul 8 21:48:20 2017 -0300

    GladeWindow: add main stack with logo

 src/glade-window.c   |   35 ++++--
 src/glade-window.css |   27 ++++
 src/glade.glade      |  366 ++++++++++++++++++++++++++++++--------------------
 3 files changed, 273 insertions(+), 155 deletions(-)
---
diff --git a/src/glade-window.c b/src/glade-window.c
index 5e955cf..9b5373d 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -72,13 +72,14 @@
 #define CONFIG_KEY_AUTOSAVE         "autosave"
 #define CONFIG_KEY_AUTOSAVE_SECONDS "autosave-seconds"
 
-#define GLADE_WINDOW_ACTIVE_VIEW(w) ((GladeDesignView *) gtk_stack_get_visible_child (w->priv->stack))
+#define GLADE_WINDOW_ACTIVE_VIEW(w) ((GladeDesignView *) gtk_stack_get_visible_child (w->priv->view_stack))
 
 struct _GladeWindowPrivate
 {
   GladeApp *app;
 
   GtkStack *stack;
+  GtkStack *view_stack;
 
   GtkHeaderBar *headerbar;
   GtkWindow *about_dialog;
@@ -88,6 +89,9 @@ struct _GladeWindowPrivate
   GtkLabel *subtitle;
   GtkWidget *project_button;
 
+  GtkWidget *start_page;
+  GtkLabel  *version_label;
+
   GladeAdaptorChooser *adaptor_chooser;
   GtkStack *inspectors_stack;           /* Cached per project inspectors */
 
@@ -539,7 +543,7 @@ refresh_stack_title_for_project (GladeWindow *window, GladeProject *project)
 {
   GList *children, *l;
 
-  children = gtk_container_get_children (GTK_CONTAINER (window->priv->stack));
+  children = gtk_container_get_children (GTK_CONTAINER (window->priv->view_stack));
   for (l = children; l; l = l->next)
     {
       GtkWidget *view = l->data;
@@ -549,7 +553,7 @@ refresh_stack_title_for_project (GladeWindow *window, GladeProject *project)
           gchar *str = get_formatted_project_name_for_display (project,
                                                                FORMAT_NAME_MARK_UNSAVED |
                                                                FORMAT_NAME_MIDDLE_TRUNCATE);
-          gtk_container_child_set (GTK_CONTAINER (window->priv->stack), view,
+          gtk_container_child_set (GTK_CONTAINER (window->priv->view_stack), view,
                                    "title", str, NULL);
           g_free (str);
 
@@ -904,7 +908,7 @@ switch_to_project (GladeWindow *window, GladeProject *project)
   GtkWidget *view;
 
   view = GTK_WIDGET (glade_design_view_get_from_project (project));
-  gtk_stack_set_visible_child (priv->stack, view);
+  gtk_stack_set_visible_child (priv->view_stack, view);
 
   check_reload_project (window, project);
 }
@@ -1377,7 +1381,7 @@ close_project (GladeWindow *window, GladeProject *project)
                         g_object_get_data (G_OBJECT (view), "glade-window-view-inspector"));
 
   /* then the main view */
-  gtk_container_remove (GTK_CONTAINER (priv->stack), GTK_WIDGET (view));
+  gtk_container_remove (GTK_CONTAINER (priv->view_stack), GTK_WIDGET (view));
 
   clean_actions (window);
 
@@ -1398,7 +1402,7 @@ close_project (GladeWindow *window, GladeProject *project)
     gtk_action_group_set_sensitive (priv->project_actiongroup, FALSE);
 
   if (!glade_app_get_projects ())
-    gtk_widget_hide (priv->center_paned);
+    gtk_stack_set_visible_child (priv->stack, priv->start_page);
 
   if (GLADE_WINDOW_ACTIVE_VIEW (window) == NULL)
     gtk_widget_hide (GTK_WIDGET (priv->editor));
@@ -1493,11 +1497,11 @@ stack_visible_child_next_prev (GladeWindow *window, gboolean next)
   if (!(view = GLADE_WINDOW_ACTIVE_VIEW (window)))
     return;
 
-  children = gtk_container_get_children (GTK_CONTAINER (window->priv->stack));
+  children = gtk_container_get_children (GTK_CONTAINER (window->priv->view_stack));
 
   if ((node = g_list_find (children, view)) && 
       ((next && node->next) || (!next && node->prev)))
-    gtk_stack_set_visible_child (window->priv->stack, 
+    gtk_stack_set_visible_child (window->priv->view_stack,
                                  (next) ? node->next->data : node->prev->data);
 
   g_list_free (children);
@@ -1868,7 +1872,7 @@ add_project (GladeWindow *window, GladeProject *project, gboolean for_file)
   /* Create a new view for project */
   view = glade_design_view_new (project);
 
-  gtk_widget_show (priv->center_paned);
+  gtk_stack_set_visible_child (priv->stack, priv->center_paned);
   gtk_widget_show (GTK_WIDGET (priv->editor));
 
   g_signal_connect (G_OBJECT (project), "notify::modified",
@@ -1908,9 +1912,9 @@ add_project (GladeWindow *window, GladeProject *project, gboolean for_file)
 
 
   /* Add view to stack */
-  gtk_container_add (GTK_CONTAINER (priv->stack), view);
+  gtk_container_add (GTK_CONTAINER (priv->view_stack), view);
   gtk_widget_show (view);
-  gtk_stack_set_visible_child (priv->stack, view);
+  gtk_stack_set_visible_child (priv->view_stack, view);
 
   refresh_stack_title_for_project (window, project);
 }
@@ -2414,10 +2418,16 @@ glade_window_constructed (GObject *object)
 {
   GladeWindow *window = GLADE_WINDOW (object);
   GladeWindowPrivate *priv = window->priv;
+  gchar *version;
 
   /* Chain up... */
   G_OBJECT_CLASS (glade_window_parent_class)->constructed (object);
 
+  /* Init Glade version */
+  version = g_strdup_printf ("Version %d.%d.%d", GLADE_MAJOR_VERSION, GLADE_MINOR_VERSION, 
GLADE_MICRO_VERSION);
+  gtk_label_set_text (priv->version_label, version);
+  g_free (version);
+
   /* recent files */
   priv->recent_manager = gtk_recent_manager_get_default ();
   
@@ -2564,10 +2574,13 @@ glade_window_class_init (GladeWindowClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, subtitle);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, project_button);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, about_dialog);
+  gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, start_page);
+  gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, version_label);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, center_paned);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, left_paned);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, open_button_box);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, stack);
+  gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, view_stack);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, inspectors_stack);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, editor);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, statusbar);
diff --git a/src/glade-window.css b/src/glade-window.css
index 64b818c..1d24c09 100644
--- a/src/glade-window.css
+++ b/src/glade-window.css
@@ -61,6 +61,33 @@ GladeDesignView * {
   padding: 0;
 }
 
+@keyframes brand-highlight {
+  from { -gtk-icon-shadow: 2px -1px 4px alpha(@warning_color, 0); }
+  to   { -gtk-icon-shadow: 2px -1px 4px alpha(@warning_color, 0.8); }
+}
+
+#glade-brand-image {
+  padding-top: 40px;
+  animation: brand-highlight 2s infinite alternate;
+}
+
+#glade-brand-image:backdrop {
+  animation: none;
+}
+
+#glade-label {
+  font-size: 64px;
+  font-weight: bold;
+  text-shadow: 2px 2px 2px gray;
+}
+
+#version-label {
+  font-size: 18px;
+  font-weight: bold;
+  text-shadow: 1px 1px 2px gray;
+  padding-bottom: 120px;
+}
+
 /* GladeIntro */
 
 popover.glade-intro {
diff --git a/src/glade.glade b/src/glade.glade
index d969460..987bf65 100644
--- a/src/glade.glade
+++ b/src/glade.glade
@@ -152,6 +152,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="label" translatable="yes">Save</property>
         <property name="tooltip" translatable="yes">Save the current project</property>
         <property name="icon_name">document-save</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_save_action_activate" swapped="no"/>
       </object>
       <accelerator key="s" modifiers="GDK_CONTROL_MASK"/>
@@ -161,6 +162,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="label" translatable="yes">Save _As</property>
         <property name="tooltip" translatable="yes">Save the current project with a different name</property>
         <property name="icon_name">document-save-as</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_save_as_action_activate" swapped="no"/>
       </object>
     </child>
@@ -169,6 +171,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="label" translatable="yes">Edit properties</property>
         <property name="tooltip" translatable="yes">Edit project properties</property>
         <property name="icon_name">document-properties</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_properties_action_activate" swapped="no"/>
       </object>
       <accelerator key="p" modifiers="GDK_CONTROL_MASK"/>
@@ -178,6 +181,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="label" translatable="yes">Close</property>
         <property name="tooltip" translatable="yes">Close the current project</property>
         <property name="icon_name">window-close</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_close_action_activate" swapped="no"/>
       </object>
       <accelerator key="w" modifiers="GDK_CONTROL_MASK"/>
@@ -188,6 +192,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="short_label" translatable="yes">Undo</property>
         <property name="tooltip" translatable="yes">Undo the last action</property>
         <property name="icon_name">edit-undo</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_undo_action_activate" swapped="no"/>
       </object>
       <accelerator key="z" modifiers="GDK_CONTROL_MASK"/>
@@ -198,6 +203,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="short_label" translatable="yes">Redo</property>
         <property name="tooltip" translatable="yes">Redo the last action</property>
         <property name="icon_name">edit-redo</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_redo_action_activate" swapped="no"/>
       </object>
       <accelerator key="z" modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
@@ -208,6 +214,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="short_label" translatable="yes">Cut</property>
         <property name="tooltip" translatable="yes">Cut the selection</property>
         <property name="icon_name">edit-cut</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_cut_action_activate" swapped="no"/>
       </object>
       <accelerator key="x" modifiers="GDK_CONTROL_MASK"/>
@@ -218,6 +225,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="short_label" translatable="yes">Copy</property>
         <property name="tooltip" translatable="yes">Copy the selection</property>
         <property name="icon_name">edit-copy</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_copy_action_activate" swapped="no"/>
       </object>
       <accelerator key="c" modifiers="GDK_CONTROL_MASK"/>
@@ -228,6 +236,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="short_label" translatable="yes">Paste</property>
         <property name="tooltip" translatable="yes">Paste the clipboard</property>
         <property name="icon_name">edit-paste</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_paste_action_activate" swapped="no"/>
       </object>
       <accelerator key="v" modifiers="GDK_CONTROL_MASK"/>
@@ -238,6 +247,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         <property name="short_label" translatable="yes">Delete</property>
         <property name="tooltip" translatable="yes">Delete the selection</property>
         <property name="icon_name">edit-delete</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_delete_action_activate" swapped="no"/>
       </object>
       <accelerator key="Delete"/>
@@ -246,6 +256,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
       <object class="GtkAction" id="previous_project_action">
         <property name="label" translatable="yes">_Previous Project</property>
         <property name="tooltip" translatable="yes">Activate previous project</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_previous_project_action_activate" swapped="no"/>
       </object>
       <accelerator key="Page_Up" modifiers="GDK_CONTROL_MASK"/>
@@ -254,6 +265,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
       <object class="GtkAction" id="next_project_action">
         <property name="label" translatable="yes">_Next Project</property>
         <property name="tooltip" translatable="yes">Activate next project</property>
+        <property name="sensitive">False</property>
         <signal name="activate" handler="on_next_project_action_activate" swapped="no"/>
       </object>
       <accelerator key="Page_Down" modifiers="GDK_CONTROL_MASK"/>
@@ -271,6 +283,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
     <signal name="disconnect-proxy" handler="on_actiongroup_disconnect_proxy" swapped="no"/>
     <child>
       <object class="GtkAction" id="new_action">
+        <property name="label" translatable="yes">New</property>
         <property name="tooltip" translatable="yes">Create a new project</property>
         <property name="icon_name">document-new</property>
         <signal name="activate" handler="glade_window_new_project" swapped="yes"/>
@@ -416,110 +429,245 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
   <template class="GladeWindow" parent="GtkWindow">
     <property name="can_focus">False</property>
     <child>
-      <object class="GtkPaned" id="center_paned">
-        <property name="height_request">380</property>
+      <object class="GtkStack" id="stack">
         <property name="visible">True</property>
-        <property name="can_focus">True</property>
-        <property name="position_set">True</property>
-        <property name="wide_handle">True</property>
+        <property name="can_focus">False</property>
         <child>
-          <object class="GtkPaned" id="left_paned">
+          <object class="GtkBox" id="start_page">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="orientation">vertical</property>
+            <child>
+              <object class="GtkImage">
+                <property name="name">glade-brand-image</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="pixel_size">250</property>
+                <property name="icon_name">glade-brand-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkLabel">
+                <property name="name">glade-label</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Glade</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkLabel" id="version_label">
+                <property name="name">version-label</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="width_chars">32</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="name">page0</property>
+            <property name="title" translatable="yes">page0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkPaned" id="center_paned">
+            <property name="height_request">380</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
-            <property name="position">150</property>
             <property name="position_set">True</property>
             <property name="wide_handle">True</property>
             <child>
-              <object class="GtkBox">
+              <object class="GtkPaned" id="left_paned">
                 <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <child>
-                  <object class="GtkStack" id="inspectors_stack">
-                    <property name="name">inspector</property>
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="margin_left">3</property>
-                    <property name="margin_right">3</property>
-                    <property name="margin_bottom">3</property>
-                    <property name="transition_duration">128</property>
-                    <property name="transition_type">crossfade</property>
-                    <child>
-                      <placeholder/>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="expand">True</property>
-                    <property name="fill">True</property>
-                    <property name="position">0</property>
-                  </packing>
-                </child>
+                <property name="can_focus">True</property>
+                <property name="position">150</property>
+                <property name="position_set">True</property>
+                <property name="wide_handle">True</property>
                 <child>
-                  <object class="GtkToolbar" id="toolbar">
+                  <object class="GtkBox">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
+                    <property name="orientation">vertical</property>
                     <child>
-                      <object class="GtkToggleToolButton" id="selector_button">
-                        <property name="use_action_appearance">True</property>
-                        <property name="related_action">selector_radioaction</property>
+                      <object class="GtkStack" id="inspectors_stack">
+                        <property name="name">inspector</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label">radiotoolbutton1</property>
-                        <property name="use_underline">True</property>
-                        <property name="active">True</property>
+                        <property name="margin_bottom">3</property>
+                        <property name="transition_duration">128</property>
+                        <property name="transition_type">crossfade</property>
+                        <child>
+                          <placeholder/>
+                        </child>
                       </object>
                       <packing>
-                        <property name="expand">False</property>
-                        <property name="homogeneous">True</property>
+                        <property name="expand">True</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkToggleToolButton" id="drag_resize_button">
-                        <property name="use_action_appearance">True</property>
-                        <property name="related_action">drag_resize_radioaction</property>
+                      <object class="GtkToolbar" id="toolbar">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label">radiotoolbutton2</property>
-                        <property name="use_underline">True</property>
+                        <child>
+                          <object class="GtkToggleToolButton" id="selector_button">
+                            <property name="use_action_appearance">True</property>
+                            <property name="related_action">selector_radioaction</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label">radiotoolbutton1</property>
+                            <property name="use_underline">True</property>
+                            <property name="active">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="homogeneous">True</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkToggleToolButton" id="drag_resize_button">
+                            <property name="use_action_appearance">True</property>
+                            <property name="related_action">drag_resize_radioaction</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label">radiotoolbutton2</property>
+                            <property name="use_underline">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="homogeneous">True</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkToggleToolButton" id="margin_edit_button">
+                            <property name="use_action_appearance">True</property>
+                            <property name="related_action">margin_edit_radioaction</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label">radiotoolbutton3</property>
+                            <property name="use_underline">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="homogeneous">True</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkToggleToolButton" id="align_edit_button">
+                            <property name="use_action_appearance">True</property>
+                            <property name="related_action">align_edit_radioaction</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label">radiotoolbutton4</property>
+                            <property name="use_underline">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="homogeneous">True</property>
+                          </packing>
+                        </child>
                       </object>
                       <packing>
                         <property name="expand">False</property>
-                        <property name="homogeneous">True</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
                       </packing>
                     </child>
+                  </object>
+                  <packing>
+                    <property name="resize">False</property>
+                    <property name="shrink">False</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkOverlay">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
                     <child>
-                      <object class="GtkToggleToolButton" id="margin_edit_button">
-                        <property name="use_action_appearance">True</property>
-                        <property name="related_action">margin_edit_radioaction</property>
+                      <object class="GtkBox">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label">radiotoolbutton3</property>
-                        <property name="use_underline">True</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GladeAdaptorChooser" id="adaptor_chooser">
+                            <property name="name">adaptor-chooser</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="border_width">2</property>
+                            <property name="spacing">4</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkSeparator">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkStack" id="view_stack">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="transition_duration">128</property>
+                            <property name="transition_type">crossfade</property>
+                            <signal name="notify::visible-child" handler="on_stack_visible_child_notify" 
swapped="no"/>
+                            <child>
+                              <placeholder/>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
                       </object>
                       <packing>
-                        <property name="expand">False</property>
-                        <property name="homogeneous">True</property>
+                        <property name="index">-1</property>
                       </packing>
                     </child>
-                    <child>
-                      <object class="GtkToggleToolButton" id="align_edit_button">
-                        <property name="use_action_appearance">True</property>
-                        <property name="related_action">align_edit_radioaction</property>
+                    <child type="overlay">
+                      <object class="GtkStatusbar" id="statusbar">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="label">radiotoolbutton4</property>
-                        <property name="use_underline">True</property>
+                        <property name="valign">end</property>
+                        <property name="orientation">vertical</property>
+                        <property name="spacing">2</property>
                       </object>
                       <packing>
-                        <property name="expand">False</property>
-                        <property name="homogeneous">True</property>
+                        <property name="pass_through">True</property>
                       </packing>
                     </child>
                   </object>
                   <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">True</property>
-                    <property name="position">1</property>
+                    <property name="resize">True</property>
+                    <property name="shrink">False</property>
                   </packing>
                 </child>
               </object>
@@ -529,97 +677,27 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
               </packing>
             </child>
             <child>
-              <object class="GtkOverlay">
+              <object class="GladeEditor" id="editor">
+                <property name="name">editor</property>
+                <property name="width_request">256</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
+                <property name="show_class_field">False</property>
+                <property name="show_boder">False</property>
                 <child>
-                  <object class="GtkBox">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="orientation">vertical</property>
-                    <child>
-                      <object class="GladeAdaptorChooser" id="adaptor_chooser">
-                        <property name="name">adaptor-chooser</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="border_width">2</property>
-                        <property name="spacing">4</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkSeparator">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkStack" id="stack">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="transition_duration">128</property>
-                        <property name="transition_type">crossfade</property>
-                        <signal name="notify::visible-child" handler="on_stack_visible_child_notify" 
swapped="no"/>
-                        <child>
-                          <placeholder/>
-                        </child>
-                      </object>
-                      <packing>
-                        <property name="expand">True</property>
-                        <property name="fill">True</property>
-                        <property name="position">2</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="index">-1</property>
-                  </packing>
-                </child>
-                <child type="overlay">
-                  <object class="GtkStatusbar" id="statusbar">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="valign">end</property>
-                    <property name="orientation">vertical</property>
-                    <property name="spacing">2</property>
-                  </object>
-                  <packing>
-                    <property name="pass_through">True</property>
-                  </packing>
+                  <placeholder/>
                 </child>
               </object>
               <packing>
-                <property name="resize">True</property>
+                <property name="resize">False</property>
                 <property name="shrink">False</property>
               </packing>
             </child>
           </object>
           <packing>
-            <property name="resize">False</property>
-            <property name="shrink">False</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GladeEditor" id="editor">
-            <property name="name">editor</property>
-            <property name="width_request">256</property>
-            <property name="visible">True</property>
-            <property name="can_focus">True</property>
-            <property name="show_class_field">False</property>
-            <property name="show_boder">False</property>
-          </object>
-          <packing>
-            <property name="resize">False</property>
-            <property name="shrink">False</property>
+            <property name="name">page1</property>
+            <property name="title" translatable="yes">page1</property>
+            <property name="position">1</property>
           </packing>
         </child>
       </object>
@@ -1012,7 +1090,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="orientation">vertical</property>
-            <property name="stack">stack</property>
+            <property name="stack">view_stack</property>
           </object>
           <packing>
             <property name="expand">False</property>


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