[glade] Added GladeIconViewEditor



commit f7fc7903e476cd9df5a3ef09f2868ae754f49a8c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun May 19 17:03:34 2013 +0900

    Added GladeIconViewEditor

 plugins/gtk+/Makefile.am                       |    4 +
 plugins/gtk+/glade-gtk-icon-view.c             |   40 ++
 plugins/gtk+/glade-gtk-resources.gresource.xml |    1 +
 plugins/gtk+/glade-icon-view-editor.c          |   76 ++++
 plugins/gtk+/glade-icon-view-editor.h          |   57 +++
 plugins/gtk+/glade-icon-view-editor.ui         |  514 ++++++++++++++++++++++++
 plugins/gtk+/gtk+.xml.in                       |   38 ++-
 po/POTFILES.in                                 |    3 +
 8 files changed, 727 insertions(+), 6 deletions(-)
---
diff --git a/plugins/gtk+/Makefile.am b/plugins/gtk+/Makefile.am
index b8f2d64..bb1522b 100644
--- a/plugins/gtk+/Makefile.am
+++ b/plugins/gtk+/Makefile.am
@@ -72,6 +72,7 @@ libgladegtk_la_SOURCES =              \
        glade-gtk-frame.c               \
        glade-gtk-grid.c                \
        glade-gtk-icon-factory.c        \
+       glade-gtk-icon-view.c           \
        glade-gtk-image.c               \
        glade-gtk-image-menu-item.c     \
        glade-gtk-info-bar.c            \
@@ -113,6 +114,7 @@ libgladegtk_la_SOURCES =            \
        glade-gtk-window.c              \
        glade-icon-factory-editor.c     \
        glade-icon-sources.c            \
+       glade-icon-view-editor.c        \
        glade-image-editor.c            \
        glade-image-item-editor.c       \
        glade-label-editor.c            \
@@ -186,6 +188,7 @@ noinst_HEADERS =                    \
        glade-gtk-tree-view.h           \
        glade-icon-factory-editor.h     \
        glade-icon-sources.h            \
+       glade-icon-view-editor.h        \
        glade-image-editor.h            \
        glade-image-item-editor.h       \
        glade-label-editor.h            \
@@ -259,6 +262,7 @@ UI_FILES =                          \
        glade-font-chooser-editor.ui    \
        glade-font-chooser-widget-editor.ui \
        glade-grid-editor.ui            \
+       glade-icon-view-editor.ui       \
        glade-image-editor.ui           \
        glade-label-editor.ui           \
        glade-layout-editor.ui          \
diff --git a/plugins/gtk+/glade-gtk-icon-view.c b/plugins/gtk+/glade-gtk-icon-view.c
new file mode 100644
index 0000000..595ee2e
--- /dev/null
+++ b/plugins/gtk+/glade-gtk-icon-view.c
@@ -0,0 +1,40 @@
+/*
+ * glade-gtk-icon-view.c - GladeWidgetAdaptor for GtkIconView
+ *
+ * Copyright (C) 2013 Tristan Van Berkom
+ *
+ * Authors:
+ *      Tristan Van Berkom <tristan van berkom gmail com>
+ *
+ * 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 Softwarel
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <config.h>
+#include <glib/gi18n-lib.h>
+#include <gladeui/glade.h>
+
+#include "glade-icon-view-editor.h"
+
+GladeEditable *
+glade_gtk_icon_view_create_editable (GladeWidgetAdaptor * adaptor,
+                                    GladeEditorPageType type)
+{
+  if (type == GLADE_PAGE_GENERAL)
+    {
+      return (GladeEditable *)glade_icon_view_editor_new ();
+    }
+
+  return GWA_GET_CLASS (GTK_TYPE_CONTAINER)->create_editable (adaptor, type);
+}
diff --git a/plugins/gtk+/glade-gtk-resources.gresource.xml b/plugins/gtk+/glade-gtk-resources.gresource.xml
index 6182fd3..66ee3d2 100644
--- a/plugins/gtk+/glade-gtk-resources.gresource.xml
+++ b/plugins/gtk+/glade-gtk-resources.gresource.xml
@@ -20,6 +20,7 @@
     <file compressed="true" preprocess="xml-stripblanks">glade-font-chooser-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-font-chooser-widget-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-grid-editor.ui</file>
+    <file compressed="true" preprocess="xml-stripblanks">glade-icon-view-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-image-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-label-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-layout-editor.ui</file>
diff --git a/plugins/gtk+/glade-icon-view-editor.c b/plugins/gtk+/glade-icon-view-editor.c
new file mode 100644
index 0000000..3aa2c36
--- /dev/null
+++ b/plugins/gtk+/glade-icon-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-icon-view-editor.h"
+
+/* GtkWidgetClass */
+static void glade_icon_view_editor_grab_focus (GtkWidget *widget);
+
+struct _GladeIconViewEditorPrivate
+{
+  GtkWidget *embed;
+};
+
+G_DEFINE_TYPE (GladeIconViewEditor, glade_icon_view_editor, GLADE_TYPE_EDITOR_SKELETON)
+
+static void
+glade_icon_view_editor_class_init (GladeIconViewEditorClass * klass)
+{
+  GObjectClass *object_class = G_OBJECT_CLASS (klass);
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+  widget_class->grab_focus = glade_icon_view_editor_grab_focus;
+
+  gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gladegtk/glade-icon-view-editor.ui");
+  gtk_widget_class_bind_child (widget_class, GladeIconViewEditorPrivate, embed);
+
+  g_type_class_add_private (object_class, sizeof (GladeIconViewEditorPrivate));  
+}
+
+static void
+glade_icon_view_editor_init (GladeIconViewEditor * self)
+{
+  self->priv = 
+    G_TYPE_INSTANCE_GET_PRIVATE (self,
+                                GLADE_TYPE_ICON_VIEW_EDITOR,
+                                GladeIconViewEditorPrivate);
+
+  gtk_widget_init_template (GTK_WIDGET (self));
+}
+
+static void
+glade_icon_view_editor_grab_focus (GtkWidget * widget)
+{
+  GladeIconViewEditor        *view_editor = GLADE_ICON_VIEW_EDITOR (widget);
+  GladeIconViewEditorPrivate *priv = view_editor->priv;
+
+  gtk_widget_grab_focus (priv->embed);
+}
+
+GtkWidget *
+glade_icon_view_editor_new (void)
+{
+  return g_object_new (GLADE_TYPE_ICON_VIEW_EDITOR, NULL);
+}
diff --git a/plugins/gtk+/glade-icon-view-editor.h b/plugins/gtk+/glade-icon-view-editor.h
new file mode 100644
index 0000000..99705bd
--- /dev/null
+++ b/plugins/gtk+/glade-icon-view-editor.h
@@ -0,0 +1,57 @@
+/*
+ * 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_ICON_VIEW_EDITOR_H_
+#define _GLADE_ICON_VIEW_EDITOR_H_
+
+#include <gtk/gtk.h>
+#include <gladeui/glade.h>
+
+G_BEGIN_DECLS
+
+#define GLADE_TYPE_ICON_VIEW_EDITOR                (glade_icon_view_editor_get_type ())
+#define GLADE_ICON_VIEW_EDITOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GLADE_TYPE_ICON_VIEW_EDITOR, GladeIconViewEditor))
+#define GLADE_ICON_VIEW_EDITOR_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), 
GLADE_TYPE_ICON_VIEW_EDITOR, GladeIconViewEditorClass))
+#define GLADE_IS_ICON_VIEW_EDITOR(obj)     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_ICON_VIEW_EDITOR))
+#define GLADE_IS_ICON_VIEW_EDITOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GLADE_TYPE_ICON_VIEW_EDITOR))
+#define GLADE_ICON_VIEW_EDITOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GLADE_TYPE_ICON_VIEW_EDITOR, GladeIconViewEditorClass))
+
+typedef struct _GladeIconViewEditor        GladeIconViewEditor;
+typedef struct _GladeIconViewEditorClass   GladeIconViewEditorClass;
+typedef struct _GladeIconViewEditorPrivate GladeIconViewEditorPrivate;
+
+struct _GladeIconViewEditor
+{
+  GladeEditorSkeleton  parent;
+
+  GladeIconViewEditorPrivate *priv;
+};
+
+struct _GladeIconViewEditorClass
+{
+  GladeEditorSkeletonClass parent;
+};
+
+GType            glade_icon_view_editor_get_type (void) G_GNUC_CONST;
+GtkWidget       *glade_icon_view_editor_new      (void);
+
+G_END_DECLS
+
+#endif  /* _GLADE_ICON_VIEW_EDITOR_H_ */
diff --git a/plugins/gtk+/glade-icon-view-editor.ui b/plugins/gtk+/glade-icon-view-editor.ui
new file mode 100644
index 0000000..fa35cfb
--- /dev/null
+++ b/plugins/gtk+/glade-icon-view-editor.ui
@@ -0,0 +1,514 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="glade">
+  <!-- interface-requires gtk+ 3.10 -->
+  <!-- interface-requires gladeui 0.0 -->
+  <!-- interface-requires glade-gtk-plugin 0.0 -->
+  <template class="GladeIconViewEditor" 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">10</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">Icon 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="orientation_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">item-orientation</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="selection_mode_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">selection-mode</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="orientation_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">item-orientation</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="selection_mode_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">selection-mode</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="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">5</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">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">7</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">7</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="columns_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">columns</property>
+            <property name="custom_text" translatable="yes">Columns:</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="GladePropertyShell" id="columns_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">columns</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">6</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkGrid" id="spacing_grid">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_left">12</property>
+            <property name="row_spacing">6</property>
+            <property name="column_spacing">6</property>
+            <child>
+              <object class="GladePropertyLabel" id="spacing_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">end</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">spacing</property>
+                <property name="custom_text" translatable="yes">Cell Spacing:</property>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyShell" id="spacing_editor">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">spacing</property>
+              </object>
+              <packing>
+                <property name="left_attach">1</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyLabel" id="padding_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">end</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">item-padding</property>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">1</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyShell" id="padding_editor">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">item-padding</property>
+              </object>
+              <packing>
+                <property name="left_attach">1</property>
+                <property name="top_attach">1</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyLabel" id="row_spacing_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">end</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">row-spacing</property>
+              </object>
+              <packing>
+                <property name="left_attach">2</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyLabel" id="column_spacing_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">end</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">column-spacing</property>
+              </object>
+              <packing>
+                <property name="left_attach">2</property>
+                <property name="top_attach">1</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyShell" id="row_spacing_editor">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">row-spacing</property>
+              </object>
+              <packing>
+                <property name="left_attach">3</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyShell" id="column_spacing_editor">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">column-spacing</property>
+              </object>
+              <packing>
+                <property name="left_attach">3</property>
+                <property name="top_attach">1</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyLabel" id="item_width_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">end</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">item-width</property>
+                <property name="custom_text" translatable="yes">Item Width:</property>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">2</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyShell" id="item_width_editor">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">item-width</property>
+              </object>
+              <packing>
+                <property name="left_attach">1</property>
+                <property name="top_attach">2</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyLabel" id="margin_label">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="halign">end</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">margin</property>
+                <property name="custom_text" translatable="yes">View Margin:</property>
+              </object>
+              <packing>
+                <property name="left_attach">2</property>
+                <property name="top_attach">2</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GladePropertyShell" id="margin_editor">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">False</property>
+                <property name="property_name">margin</property>
+              </object>
+              <packing>
+                <property name="left_attach">3</property>
+                <property name="top_attach">2</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">9</property>
+            <property name="width">6</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="spacing_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">Item Size and Spacing</property>
+            <attributes>
+              <attribute name="weight" value="bold"/>
+            </attributes>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">8</property>
+            <property name="width">6</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>
+      </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="orientation_label"/>
+      <editor id="selection_mode_label"/>
+      <editor id="orientation_editor"/>
+      <editor id="selection_mode_editor"/>
+      <editor id="tooltip_column_label"/>
+      <editor id="tooltip_column_editor"/>
+      <editor id="reorderable_editor"/>
+      <editor id="single_click_editor"/>
+      <editor id="columns_label"/>
+      <editor id="columns_editor"/>
+      <editor id="spacing_label"/>
+      <editor id="spacing_editor"/>
+      <editor id="padding_label"/>
+      <editor id="padding_editor"/>
+      <editor id="row_spacing_label"/>
+      <editor id="column_spacing_label"/>
+      <editor id="row_spacing_editor"/>
+      <editor id="column_spacing_editor"/>
+      <editor id="item_width_label"/>
+      <editor id="item_width_editor"/>
+      <editor id="margin_label"/>
+      <editor id="margin_editor"/>
+    </child-editors>
+  </template>
+</interface>
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index f4f119c..b936ec4 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -2967,6 +2967,8 @@ range of values</_tooltip>
     </glade-widget-class>
 
     <glade-widget-class name="GtkIconView" generic-name="iconview" _title="Icon View">
+      <create-editable-function>glade_gtk_icon_view_create_editable</create-editable-function>
+
       <post-create-function>empty</post-create-function>
       <add-child-verify-function>glade_gtk_cell_layout_add_verify</add-child-verify-function>
       <add-child-function>glade_gtk_cell_layout_add_child</add-child-function>
@@ -2983,15 +2985,39 @@ range of values</_tooltip>
       </actions>
 
       <properties>
-        <property id="activate-on-single-click" since="3.8"/>
-        <property id="item-orientation" since="2.22"/>
-        <property id="item-padding" since="2.18"/>
+        <property id="cell-area" disabled="True"/>
         <property id="text-column" disabled="True"/>
         <property id="markup-column" disabled="True"/>
         <property id="pixbuf-column" disabled="True"/>
-        <property id="reorderable" ignore="True"/>
-        <property id="model" create-type="GtkListStore" query="True" />
-        <property id="selection-mode" since="2.6"/>
+
+       <!-- Reenable the margin property which is also declared on GtkWidgetClass with a different default,
+            must be 'save-always' because of original default mixup -->
+        <property id="margin" disabled="False" save="True" ignore="False"
+                 visible="True" common="False" save-always="True" custom-layout="True"/>
+
+       <!-- Claim properties for the editor -->
+        <property id="model" create-type="GtkListStore" query="True" custom-layout="True"/>
+        <property id="selection-mode" since="2.6" custom-layout="True"/>
+        <property id="tooltip-column"  custom-layout="True"/>
+        <property id="columns" custom-layout="True"/>
+        <property id="item-orientation" since="2.22" custom-layout="True"/>
+        <property id="activate-on-single-click" since="3.8" custom-layout="True"/>
+        <property id="reorderable" ignore="True" custom-layout="True"/>
+        <property id="item-padding" since="2.18" custom-layout="True"/>
+        <property id="item-width" custom-layout="True"/>
+        <property id="row-spacing" custom-layout="True"/>
+        <property id="column-spacing" custom-layout="True"/>
+        <property id="spacing" 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 b11835f..e49a5bb 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -101,6 +101,7 @@ plugins/gtk+/glade-gtk-font-chooser-widget.c
 plugins/gtk+/glade-gtk-frame.c
 plugins/gtk+/glade-gtk-grid.c
 plugins/gtk+/glade-gtk-icon-factory.c
+plugins/gtk+/glade-gtk-icon-view.c
 plugins/gtk+/glade-gtk-image.c
 plugins/gtk+/glade-gtk-image-menu-item.c
 plugins/gtk+/glade-gtk-info-bar.c
@@ -142,6 +143,7 @@ plugins/gtk+/glade-gtk-widget.c
 plugins/gtk+/glade-gtk-window.c
 plugins/gtk+/glade-icon-factory-editor.c
 plugins/gtk+/glade-icon-sources.c
+plugins/gtk+/glade-icon-view-editor.c
 plugins/gtk+/glade-image-editor.c
 plugins/gtk+/glade-image-item-editor.c
 plugins/gtk+/glade-label-editor.c
@@ -192,6 +194,7 @@ plugins/gtk+/gtk+.xml.in
 [type: gettext/glade]plugins/gtk+/glade-font-chooser-dialog-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-font-chooser-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-grid-editor.ui
+[type: gettext/glade]plugins/gtk+/glade-icon-view-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-image-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-label-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-layout-editor.ui


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