[glade] Added GladeRealTreeViewEditor



commit 20b4bd963ee96ce5d4f01337c0124721dd080477
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sat May 18 23:27:16 2013 +0900

    Added GladeRealTreeViewEditor
    
    GladeTreeViewEditor is already the editor used to combine view editors
    with model editors inside a popup GladeBaseEditor, the GladeRealTreeViewEditor
    is the custom editor which lays out properties for a GtkTreeView.

 plugins/gtk+/Makefile.am                       |    3 +
 plugins/gtk+/glade-gtk-resources.gresource.xml |    1 +
 plugins/gtk+/glade-gtk-tree-view.c             |   48 +++
 plugins/gtk+/glade-real-tree-view-editor.c     |   76 ++++
 plugins/gtk+/glade-real-tree-view-editor.h     |   68 +++
 plugins/gtk+/glade-real-tree-view-editor.ui    |  517 ++++++++++++++++++++++++
 plugins/gtk+/gtk+.xml.in                       |   35 ++-
 po/POTFILES.in                                 |    2 +
 8 files changed, 745 insertions(+), 5 deletions(-)
---
diff --git a/plugins/gtk+/Makefile.am b/plugins/gtk+/Makefile.am
index abc177b..b8f2d64 100644
--- a/plugins/gtk+/Makefile.am
+++ b/plugins/gtk+/Makefile.am
@@ -122,6 +122,7 @@ libgladegtk_la_SOURCES =            \
        glade-model-data.c              \
        glade-notebook-editor.c         \
        glade-progress-bar-editor.c     \
+       glade-real-tree-view-editor.c   \
        glade-recent-action-editor.c    \
        glade-recent-chooser-dialog-editor.c \
        glade-recent-chooser-editor.c   \
@@ -194,6 +195,7 @@ noinst_HEADERS =                    \
        glade-model-data.h              \
        glade-notebook-editor.h         \
        glade-progress-bar-editor.h     \
+       glade-real-tree-view-editor.h   \
        glade-recent-action-editor.h    \
        glade-recent-chooser-dialog-editor.h \
        glade-recent-chooser-editor.h   \
@@ -264,6 +266,7 @@ UI_FILES =                          \
        glade-message-dialog-editor.ui  \
        glade-notebook-editor.ui        \
        glade-progress-bar-editor.ui    \
+       glade-real-tree-view-editor.ui  \
        glade-recent-action-editor.ui   \
        glade-recent-chooser-dialog-editor.ui \
        glade-recent-chooser-editor.ui  \
diff --git a/plugins/gtk+/glade-gtk-resources.gresource.xml b/plugins/gtk+/glade-gtk-resources.gresource.xml
index 9611615..6182fd3 100644
--- a/plugins/gtk+/glade-gtk-resources.gresource.xml
+++ b/plugins/gtk+/glade-gtk-resources.gresource.xml
@@ -27,6 +27,7 @@
     <file compressed="true" preprocess="xml-stripblanks">glade-message-dialog-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-progress-bar-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-notebook-editor.ui</file>
+    <file compressed="true" preprocess="xml-stripblanks">glade-real-tree-view-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-recent-action-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-recent-chooser-dialog-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-recent-chooser-editor.ui</file>
diff --git a/plugins/gtk+/glade-gtk-tree-view.c b/plugins/gtk+/glade-gtk-tree-view.c
index b38a1f3..704cabd 100644
--- a/plugins/gtk+/glade-gtk-tree-view.c
+++ b/plugins/gtk+/glade-gtk-tree-view.c
@@ -30,6 +30,20 @@
 #include "glade-gtk-cell-layout.h"
 
 #include "glade-treeview-editor.h"
+#include "glade-real-tree-view-editor.h"
+
+
+GladeEditable *
+glade_gtk_treeview_create_editable (GladeWidgetAdaptor * adaptor,
+                                   GladeEditorPageType type)
+{
+  if (type == GLADE_PAGE_GENERAL)
+    {
+      return (GladeEditable *)glade_real_tree_view_editor_new ();
+    }
+
+  return GWA_GET_CLASS (GTK_TYPE_CONTAINER)->create_editable (adaptor, type);
+}
 
 gboolean
 glade_gtk_treeview_add_verify (GladeWidgetAdaptor *adaptor,
@@ -273,3 +287,37 @@ glade_gtk_treeview_depends (GladeWidgetAdaptor * adaptor,
 
   return GWA_GET_CLASS (GTK_TYPE_CONTAINER)->depends (adaptor, widget, another);
 }
+
+void
+glade_gtk_treeview_set_property (GladeWidgetAdaptor * adaptor,
+                                GObject * object,
+                                const gchar * id, const GValue * value)
+{
+  GladeWidget *widget = glade_widget_get_from_gobject (object);
+  GladeProperty *property = glade_widget_get_property (widget, id);
+
+  if (strcmp (id, "enable-search") == 0)
+    {
+      if (g_value_get_boolean (value))
+       glade_widget_property_set_sensitive (widget, "search-column", TRUE, NULL);
+      else
+       glade_widget_property_set_sensitive (widget, "search-column", FALSE, _("Search is disabled"));
+    }
+  else if (strcmp (id, "headers-visible") == 0)
+    {
+      if (g_value_get_boolean (value))
+       glade_widget_property_set_sensitive (widget, "headers-clickable", TRUE, NULL);
+      else
+       glade_widget_property_set_sensitive (widget, "headers-clickable", FALSE, _("Headers are invisible"));
+    }
+  else if (strcmp (id, "show-expanders") == 0)
+    {
+      if (g_value_get_boolean (value))
+       glade_widget_property_set_sensitive (widget, "expander-column", TRUE, NULL);
+      else
+       glade_widget_property_set_sensitive (widget, "expander-column", FALSE, _("Expanders are not shown"));
+    }
+
+  if (GPC_VERSION_CHECK (glade_property_get_class (property), gtk_major_version, gtk_minor_version + 1))
+    GWA_GET_CLASS (GTK_TYPE_CONTAINER)->set_property (adaptor, object, id, value);
+}
diff --git a/plugins/gtk+/glade-real-tree-view-editor.c b/plugins/gtk+/glade-real-tree-view-editor.c
new file mode 100644
index 0000000..554d57a
--- /dev/null
+++ b/plugins/gtk+/glade-real-tree-view-editor.c
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2013 Tristan Van Berkom.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public 
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Authors:
+ *   Tristan Van Berkom <tvb gnome org>
+ */
+
+#include <config.h>
+#include <gladeui/glade.h>
+#include <glib/gi18n-lib.h>
+
+#include "glade-real-tree-view-editor.h"
+
+/* GtkWidgetClass */
+static void glade_real_tree_view_editor_grab_focus    (GtkWidget          *widget);
+
+struct _GladeRealTreeViewEditorPrivate
+{
+  GtkWidget *embed;
+};
+
+G_DEFINE_TYPE (GladeRealTreeViewEditor, glade_real_tree_view_editor, GLADE_TYPE_EDITOR_SKELETON)
+
+static void
+glade_real_tree_view_editor_class_init (GladeRealTreeViewEditorClass * klass)
+{
+  GObjectClass *object_class = G_OBJECT_CLASS (klass);
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+  widget_class->grab_focus = glade_real_tree_view_editor_grab_focus;
+
+  gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gladegtk/glade-real-tree-view-editor.ui");
+  gtk_widget_class_bind_child (widget_class, GladeRealTreeViewEditorPrivate, embed);
+
+  g_type_class_add_private (object_class, sizeof (GladeRealTreeViewEditorPrivate));  
+}
+
+static void
+glade_real_tree_view_editor_init (GladeRealTreeViewEditor * self)
+{
+  self->priv = 
+    G_TYPE_INSTANCE_GET_PRIVATE (self,
+                                GLADE_TYPE_REAL_TREE_VIEW_EDITOR,
+                                GladeRealTreeViewEditorPrivate);
+
+  gtk_widget_init_template (GTK_WIDGET (self));
+}
+
+static void
+glade_real_tree_view_editor_grab_focus (GtkWidget * widget)
+{
+  GladeRealTreeViewEditor        *viewport_editor = GLADE_REAL_TREE_VIEW_EDITOR (widget);
+  GladeRealTreeViewEditorPrivate *priv = viewport_editor->priv;
+
+  gtk_widget_grab_focus (priv->embed);
+}
+
+GtkWidget *
+glade_real_tree_view_editor_new (void)
+{
+  return g_object_new (GLADE_TYPE_REAL_TREE_VIEW_EDITOR, NULL);
+}
diff --git a/plugins/gtk+/glade-real-tree-view-editor.h b/plugins/gtk+/glade-real-tree-view-editor.h
new file mode 100644
index 0000000..3b7115d
--- /dev/null
+++ b/plugins/gtk+/glade-real-tree-view-editor.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2013 Tristan Van Berkom.
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public 
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Authors:
+ *   Tristan Van Berkom <tvb gnome org>
+ */
+#ifndef _GLADE_REAL_TREE_VIEW_EDITOR_H_
+#define _GLADE_REAL_TREE_VIEW_EDITOR_H_
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define GLADE_TYPE_REAL_TREE_VIEW_EDITOR                   (glade_real_tree_view_editor_get_type ())
+#define GLADE_REAL_TREE_VIEW_EDITOR(obj)                   (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GLADE_TYPE_REAL_TREE_VIEW_EDITOR, GladeRealTreeViewEditor))
+#define GLADE_REAL_TREE_VIEW_EDITOR_CLASS(klass)           (G_TYPE_CHECK_CLASS_CAST ((klass), 
GLADE_TYPE_REAL_TREE_VIEW_EDITOR, GladeRealTreeViewEditorClass))
+#define GLADE_IS_REAL_TREE_VIEW_EDITOR(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
GLADE_TYPE_REAL_TREE_VIEW_EDITOR))
+#define GLADE_IS_REAL_TREE_VIEW_EDITOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GLADE_TYPE_REAL_TREE_VIEW_EDITOR))
+#define GLADE_REAL_TREE_VIEW_EDITOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GLADE_TYPE_REAL_TREE_VIEW_EDITOR, GladeRealTreeViewEditorClass))
+
+typedef struct _GladeRealTreeViewEditor        GladeRealTreeViewEditor;
+typedef struct _GladeRealTreeViewEditorClass   GladeRealTreeViewEditorClass;
+typedef struct _GladeRealTreeViewEditorPrivate GladeRealTreeViewEditorPrivate;
+
+typedef enum {
+  GLADE_REAL_TREE_VIEW_MODE_ATTRIBUTES = 0, /* default */
+  GLADE_REAL_TREE_VIEW_MODE_MARKUP,
+  GLADE_REAL_TREE_VIEW_MODE_PATTERN
+} GladeRealTreeViewContentMode;
+
+typedef enum {
+  GLADE_REAL_TREE_VIEW_WRAP_FREE = 0, /* default */
+  GLADE_REAL_TREE_VIEW_SINGLE_LINE,
+  GLADE_REAL_TREE_VIEW_WRAP_MODE
+} GladeRealTreeViewWrapMode;
+
+struct _GladeRealTreeViewEditor
+{
+  GladeEditorSkeleton parent;
+
+  GladeRealTreeViewEditorPrivate *priv;
+};
+
+struct _GladeRealTreeViewEditorClass
+{
+  GladeEditorSkeletonClass parent;
+};
+
+GType            glade_real_tree_view_editor_get_type (void) G_GNUC_CONST;
+GtkWidget       *glade_real_tree_view_editor_new      (void);
+
+G_END_DECLS
+
+#endif  /* _GLADE_REAL_TREE_VIEW_EDITOR_H_ */
diff --git a/plugins/gtk+/glade-real-tree-view-editor.ui b/plugins/gtk+/glade-real-tree-view-editor.ui
new file mode 100644
index 0000000..de18679
--- /dev/null
+++ b/plugins/gtk+/glade-real-tree-view-editor.ui
@@ -0,0 +1,517 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="glade">
+  <!-- interface-requires gladeui 0.0 -->
+  <!-- interface-requires gtk+ 3.10 -->
+  <!-- interface-requires glade-gtk-plugin 0.0 -->
+  <template class="GladeRealTreeViewEditor" parent="GladeEditorSkeleton">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="orientation">vertical</property>
+    <child>
+      <object class="GtkGrid" id="grid">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">6</property>
+        <property name="column_spacing">6</property>
+        <child>
+          <object class="GladeEditorTable" id="embed">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">6</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladeScrollableEditor" id="scrollable_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">vertical</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">13</property>
+            <property name="width">6</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="title">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">start</property>
+            <property name="valign">center</property>
+            <property name="label" translatable="yes">Tree View Attributes</property>
+            <attributes>
+              <attribute name="weight" value="bold"/>
+            </attributes>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">6</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="model_label">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">model</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">2</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="model_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">model</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">2</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="level_indentation_label">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">level-indentation</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">3</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="tooltip_column_label">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">tooltip-column</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">4</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="level_indentation_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">level-indentation</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">3</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="tooltip_column_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">tooltip-column</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">4</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="enable_search_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">enable-search</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">6</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="search_column_label">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">search-column</property>
+            <property name="custom_text" translatable="yes">Search Column:</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">6</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="search_column_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">search-column</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">6</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="show_expanders_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">show-expanders</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">7</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="expander_column_label">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">expander-column</property>
+            <property name="custom_text" translatable="yes">Expander Column:</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">7</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="expander_column_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">expander-column</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">7</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="headers_visible_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">headers-visible</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">8</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="headers_clickable_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">headers-clickable</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">8</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="grid_lines_label">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">enable-grid-lines</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">5</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="grid_lines_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">enable-grid-lines</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">5</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="reorderable_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">reorderable</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">9</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="fixed_height_mode_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">fixed-height-mode</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">9</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="rules_hint_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">rules-hint</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">10</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="enable_tree_lines_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">enable-tree-lines</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">10</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="hover_selection_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">hover-selection</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">11</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="hover_expand_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">hover-expand</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">11</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="rubber_banding_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">rubber-banding</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">12</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="single_click_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">False</property>
+            <property name="property_name">activate-on-single-click</property>
+            <property name="editor_type">GladeEpropCheck</property>
+            <property name="custom_text" translatable="yes">Single Click Activate</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">12</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+      </object>
+      <packing>
+        <property name="expand">False</property>
+        <property name="fill">True</property>
+        <property name="position">0</property>
+      </packing>
+    </child>
+    <child-editors>
+      <editor id="embed"/>
+      <editor id="scrollable_editor"/>
+      <editor id="model_label"/>
+      <editor id="model_editor"/>
+      <editor id="level_indentation_label"/>
+      <editor id="tooltip_column_label"/>
+      <editor id="level_indentation_editor"/>
+      <editor id="tooltip_column_editor"/>
+      <editor id="enable_search_editor"/>
+      <editor id="search_column_label"/>
+      <editor id="search_column_editor"/>
+      <editor id="show_expanders_editor"/>
+      <editor id="expander_column_label"/>
+      <editor id="expander_column_editor"/>
+      <editor id="headers_visible_editor"/>
+      <editor id="headers_clickable_editor"/>
+      <editor id="grid_lines_label"/>
+      <editor id="grid_lines_editor"/>
+      <editor id="reorderable_editor"/>
+      <editor id="fixed_height_mode_editor"/>
+      <editor id="rules_hint_editor"/>
+      <editor id="enable_tree_lines_editor"/>
+      <editor id="hover_selection_editor"/>
+      <editor id="hover_expand_editor"/>
+      <editor id="rubber_banding_editor"/>
+      <editor id="single_click_editor"/>
+    </child-editors>
+  </template>
+</interface>
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index c21ee61..f4f119c 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -2855,7 +2855,9 @@ range of values</_tooltip>
     </glade-widget-class>
 
     <glade-widget-class name="GtkTreeView" generic-name="treeview" _title="Tree View">
+      <create-editable-function>glade_gtk_treeview_create_editable</create-editable-function>
       <post-create-function>empty</post-create-function>
+      <set-property-function>glade_gtk_treeview_set_property</set-property-function>
       <add-child-verify-function>glade_gtk_treeview_add_verify</add-child-verify-function>
       <child-set-property-function>glade_gtk_treeview_set_child_property</child-set-property-function>
       <child-get-property-function>glade_gtk_treeview_get_child_property</child-get-property-function>
@@ -2875,10 +2877,16 @@ range of values</_tooltip>
       </internal-children>
 
       <properties>
-        <property id="activate-on-single-click" since="3.8"/>
-        <property id="level-indentation" since="2.12"/>
-        <property id="show-expanders" since="2.12"/>
-        <property id="enable-grid-lines" ignore="True">
+        <property id="model" create-type="GtkListStore" query="True" custom-layout="True"/>
+        <property id="enable-search" needs-sync="True"  custom-layout="True"/>
+        <property id="search-column" custom-layout="True"/>
+        <property id="show-expanders" since="2.12" custom-layout="True"/>
+        <property id="expander-column" custom-layout="True"/>
+        <property id="level-indentation" since="2.12" custom-layout="True"/>
+        <property id="tooltip-column" custom-layout="True"/>
+        <property id="headers-visible" needs-sync="True" custom-layout="True"/>
+        <property id="headers-clickable" needs-sync="True" custom-layout="True"/>
+        <property id="enable-grid-lines" ignore="True" custom-layout="True">
          <displayable-values>
            <value id="GTK_TREE_VIEW_GRID_LINES_NONE" _name="None"/>
            <value id="GTK_TREE_VIEW_GRID_LINES_HORIZONTAL" _name="Horizontal"/>
@@ -2886,7 +2894,24 @@ range of values</_tooltip>
            <value id="GTK_TREE_VIEW_GRID_LINES_BOTH" _name="Horizontal and Vertical"/>
          </displayable-values>
        </property>
-        <property id="model" create-type="GtkListStore" query="True" />
+        <property id="reorderable" custom-layout="True"/>
+        <property id="fixed-height-mode" custom-layout="True"/>
+        <property id="activate-on-single-click" since="3.8" custom-layout="True"/>
+        <property id="rules-hint" custom-layout="True"/>
+        <property id="enable-tree-lines" custom-layout="True"/>
+        <property id="hover-selection" custom-layout="True"/>
+        <property id="hover-expand" custom-layout="True"/>
+        <property id="rubber-banding" custom-layout="True"/>
+
+       <!-- Scrollable attributes -->
+       <property id="hadjustment" custom-layout="True"/>
+       <property id="vadjustment" custom-layout="True"/>
+       <property id="hscroll-policy" custom-layout="True">
+         <_tooltip>Whether to start scrolling at less than minimum or natural width</_tooltip>
+       </property>
+       <property id="vscroll-policy" custom-layout="True">
+         <_tooltip>Whether to start scrolling at less than minimum or natural height</_tooltip>
+       </property>
       </properties>
       
       <packing-properties>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a748f9e..b11835f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -151,6 +151,7 @@ plugins/gtk+/glade-message-dialog-editor.c
 plugins/gtk+/glade-model-data.c
 plugins/gtk+/glade-notebook-editor.c
 plugins/gtk+/glade-progress-bar-editor.c
+plugins/gtk+/glade-real-tree-view-editor.c
 plugins/gtk+/glade-recent-action-editor.c
 plugins/gtk+/glade-recent-chooser-dialog-editor.c
 plugins/gtk+/glade-recent-chooser-editor.c
@@ -198,6 +199,7 @@ plugins/gtk+/gtk+.xml.in
 [type: gettext/glade]plugins/gtk+/glade-message-dialog-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-notebook-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-progress-bar-editor.ui
+[type: gettext/glade]plugins/gtk+/glade-real-tree-view-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-recent-action-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-recent-chooser-dialog-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-recent-chooser-editor.ui


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