[glade/modern-ui] GladeWindow: remove unused right_paned.



commit eaaa0a109bb10f36d0a061bea93c25453cfe29c6
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Sat Jun 10 19:48:07 2017 -0300

    GladeWindow: remove unused right_paned.
    
    Set minimun width/height for inspector, workspace and property editor

 src/glade-window.c |    5 -----
 src/glade.glade    |   26 +++++++-------------------
 2 files changed, 7 insertions(+), 24 deletions(-)
---
diff --git a/src/glade-window.c b/src/glade-window.c
index 13ccef2..838fb73 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -132,7 +132,6 @@ struct _GladeWindowPrivate
 
   GtkWidget *center_paned;
   GtkWidget *left_paned;
-  GtkWidget *right_paned;
 
   GtkWidget *registration;      /* Registration and user survey dialog */
   
@@ -2620,7 +2619,6 @@ glade_window_config_save (GladeWindow * window)
   /* Save main window paned positions */
   save_paned_position (config, window->priv->center_paned, "center_pane");
   save_paned_position (config, window->priv->left_paned, "left_pane");
-  save_paned_position (config, window->priv->right_paned, "right_pane");
 
   glade_preferences_save (window->priv->preferences, config);
 
@@ -2698,7 +2696,6 @@ fix_paned_positions_idle (GladeWindow *window)
 
   load_paned_position (config, window->priv->left_paned, "left_pane", 200);
   load_paned_position (config, window->priv->center_paned, "center_pane", 400);
-  load_paned_position (config, window->priv->right_paned, "right_pane", 220);
 
   return FALSE;
 }
@@ -2806,7 +2803,6 @@ glade_window_config_load (GladeWindow *window)
   /* Paned positions */
   load_paned_position (config, window->priv->left_paned, "left_pane", 200);
   load_paned_position (config, window->priv->center_paned, "center_pane", 400);
-  load_paned_position (config, window->priv->right_paned, "right_pane", 220);
 }
 
 static void
@@ -3025,7 +3021,6 @@ glade_window_class_init (GladeWindowClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, about_dialog);
   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, right_paned);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, notebook);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, notebook_frame);
   gtk_widget_class_bind_template_child_private (widget_class, GladeWindow, inspectors_notebook);
diff --git a/src/glade.glade b/src/glade.glade
index 9eaf487..238928d 100644
--- a/src/glade.glade
+++ b/src/glade.glade
@@ -971,9 +971,11 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
         </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="border_width">2</property>
+            <property name="position_set">True</property>
             <property name="wide_handle">True</property>
             <child>
               <object class="GtkPaned" id="left_paned">
@@ -984,13 +986,14 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
                 <property name="wide_handle">True</property>
                 <child>
                   <object class="GtkNotebook" id="inspectors_notebook">
+                    <property name="width_request">256</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="show_tabs">False</property>
                     <property name="show_border">False</property>
                   </object>
                   <packing>
-                    <property name="resize">True</property>
+                    <property name="resize">False</property>
                     <property name="shrink">False</property>
                   </packing>
                 </child>
@@ -1002,6 +1005,7 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
                     <property name="shadow_type">in</property>
                     <child>
                       <object class="GtkNotebook" id="notebook">
+                        <property name="width_request">256</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="show_tabs">False</property>
@@ -1025,26 +1029,10 @@ Andreas Nilsson &lt;andreas andreasn se&gt;</property>
               </packing>
             </child>
             <child>
-              <object class="GtkPaned" id="right_paned">
+              <object class="GladeEditor" id="editor">
+                <property name="width_request">256</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="orientation">vertical</property>
-                <property name="position">150</property>
-                <property name="position_set">True</property>
-                <property name="wide_handle">True</property>
-                <child>
-                  <placeholder/>
-                </child>
-                <child>
-                  <object class="GladeEditor" id="editor">
-                    <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                  </object>
-                  <packing>
-                    <property name="resize">True</property>
-                    <property name="shrink">False</property>
-                  </packing>
-                </child>
               </object>
               <packing>
                 <property name="resize">False</property>


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