[glade] Added GladeFileChooserEditor and GladeFileChooserDialogEditor



commit b5f11f757b30937332a39c645215529041f5d569
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sat May 4 21:15:46 2013 +0900

    Added GladeFileChooserEditor and GladeFileChooserDialogEditor
    
    The GladeFileChooserEditor holds all the file chooser attributes,
    the GladeFileChooserDialogEditor embeds a GladeFileChooserEditor.

 plugins/gtk+/Makefile.am                         |    6 +
 plugins/gtk+/glade-file-chooser-dialog-editor.c  |   48 ++++
 plugins/gtk+/glade-file-chooser-dialog-editor.h  |   57 +++++
 plugins/gtk+/glade-file-chooser-dialog-editor.ui |   32 +++
 plugins/gtk+/glade-file-chooser-editor.c         |   48 ++++
 plugins/gtk+/glade-file-chooser-editor.h         |   57 +++++
 plugins/gtk+/glade-file-chooser-editor.ui        |  284 ++++++++++++++++++++++
 plugins/gtk+/glade-gtk-resources.gresource.xml   |    2 +
 plugins/gtk+/glade-gtk-window.c                  |    3 +
 plugins/gtk+/gtk+.xml.in                         |   14 +-
 plugins/gtk-private/glade-gtk-private.xml        |    3 +
 po/POTFILES.in                                   |    4 +
 12 files changed, 555 insertions(+), 3 deletions(-)
---
diff --git a/plugins/gtk+/Makefile.am b/plugins/gtk+/Makefile.am
index 0d09f21..3f0ee0c 100644
--- a/plugins/gtk+/Makefile.am
+++ b/plugins/gtk+/Makefile.am
@@ -31,6 +31,8 @@ libgladegtk_la_SOURCES =              \
        glade-cell-renderer-editor.c    \
        glade-column-types.c            \
        glade-entry-editor.c            \
+       glade-file-chooser-dialog-editor.c \
+       glade-file-chooser-editor.c     \
        glade-fixed.c                   \
        glade-gtk-about-dialog.c        \
        glade-gtk-action.c              \
@@ -112,6 +114,8 @@ noinst_HEADERS =                    \
        glade-cell-renderer-editor.h    \
        glade-column-types.h            \
        glade-entry-editor.h            \
+       glade-file-chooser-dialog-editor.h \
+       glade-file-chooser-editor.h     \
        glade-fixed.h                   \
        glade-gtk.h                     \
        glade-gtk-action-widgets.h      \
@@ -164,6 +168,8 @@ UI_FILES =                          \
        glade-activatable-editor.ui     \
        glade-button-editor.ui          \
        glade-entry-editor.ui           \
+       glade-file-chooser-dialog-editor.ui \
+       glade-file-chooser-editor.ui    \
        glade-image-editor.ui           \
        glade-label-editor.ui           \
        glade-tool-button-editor.ui     \
diff --git a/plugins/gtk+/glade-file-chooser-dialog-editor.c b/plugins/gtk+/glade-file-chooser-dialog-editor.c
new file mode 100644
index 0000000..d2ec3c3
--- /dev/null
+++ b/plugins/gtk+/glade-file-chooser-dialog-editor.c
@@ -0,0 +1,48 @@
+/*
+ * 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-file-chooser-dialog-editor.h"
+
+G_DEFINE_TYPE (GladeFileChooserDialogEditor, glade_file_chooser_dialog_editor, GLADE_TYPE_WINDOW_EDITOR)
+
+static void
+glade_file_chooser_dialog_editor_class_init (GladeFileChooserDialogEditorClass * klass)
+{
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+  gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gladegtk/glade-file-chooser-dialog-editor.ui");
+}
+
+static void
+glade_file_chooser_dialog_editor_init (GladeFileChooserDialogEditor * self)
+{
+  gtk_widget_init_template (GTK_WIDGET (self));
+}
+
+GtkWidget *
+glade_file_chooser_dialog_editor_new (void)
+{
+  return g_object_new (GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR, NULL);
+}
diff --git a/plugins/gtk+/glade-file-chooser-dialog-editor.h b/plugins/gtk+/glade-file-chooser-dialog-editor.h
new file mode 100644
index 0000000..0a96135
--- /dev/null
+++ b/plugins/gtk+/glade-file-chooser-dialog-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_FILE_CHOOSER_DIALOG_EDITOR_H_
+#define _GLADE_FILE_CHOOSER_DIALOG_EDITOR_H_
+
+#include <gtk/gtk.h>
+#include "glade-window-editor.h"
+
+G_BEGIN_DECLS
+
+#define GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR              (glade_file_chooser_dialog_editor_get_type ())
+#define GLADE_FILE_CHOOSER_DIALOG_EDITOR(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR, GladeFileChooserDialogEditor))
+#define GLADE_FILE_CHOOSER_DIALOG_EDITOR_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), 
GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR, GladeFileChooserDialogEditorClass))
+#define GLADE_IS_FILE_CHOOSER_DIALOG_EDITOR(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR))
+#define GLADE_IS_FILE_CHOOSER_DIALOG_EDITOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR))
+#define GLADE_FILE_CHOOSER_DIALOG_EDITOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GLADE_TYPE_FILE_CHOOSER_DIALOG_EDITOR, GladeFileChooserDialogEditorClass))
+
+typedef struct _GladeFileChooserDialogEditor        GladeFileChooserDialogEditor;
+typedef struct _GladeFileChooserDialogEditorClass   GladeFileChooserDialogEditorClass;
+typedef struct _GladeFileChooserDialogEditorPrivate GladeFileChooserDialogEditorPrivate;
+
+struct _GladeFileChooserDialogEditor
+{
+  GladeWindowEditor  parent;
+
+  GladeFileChooserDialogEditorPrivate *priv;
+};
+
+struct _GladeFileChooserDialogEditorClass
+{
+  GladeWindowEditorClass parent;
+};
+
+GType            glade_file_chooser_dialog_editor_get_type (void) G_GNUC_CONST;
+GtkWidget       *glade_file_chooser_dialog_editor_new      (void);
+
+G_END_DECLS
+
+#endif  /* _GLADE_FILE_CHOOSER_DIALOG_EDITOR_H_ */
diff --git a/plugins/gtk+/glade-file-chooser-dialog-editor.ui 
b/plugins/gtk+/glade-file-chooser-dialog-editor.ui
new file mode 100644
index 0000000..eef8d16
--- /dev/null
+++ b/plugins/gtk+/glade-file-chooser-dialog-editor.ui
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="glade">
+  <!-- interface-requires glade-gtk-plugin 0.0 -->
+  <!-- interface-requires gtk+ 3.10 -->
+  <template class="GladeFileChooserDialogEditor" parent="GladeWindowEditor">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="orientation">vertical</property>
+    <child internal-child="extension_port">
+      <object class="GtkBox" id="extension_port">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GladeFileChooserEditor" id="filechoosereditor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">vertical</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <child-editors>
+      <editor id="filechoosereditor"/>
+    </child-editors>
+  </template>
+</interface>
diff --git a/plugins/gtk+/glade-file-chooser-editor.c b/plugins/gtk+/glade-file-chooser-editor.c
new file mode 100644
index 0000000..de4e13a
--- /dev/null
+++ b/plugins/gtk+/glade-file-chooser-editor.c
@@ -0,0 +1,48 @@
+/*
+ * 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-file-chooser-editor.h"
+
+G_DEFINE_TYPE (GladeFileChooserEditor, glade_file_chooser_editor, GLADE_TYPE_EDITOR_SKELETON)
+
+static void
+glade_file_chooser_editor_class_init (GladeFileChooserEditorClass * klass)
+{
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+  gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gladegtk/glade-file-chooser-editor.ui");
+}
+
+static void
+glade_file_chooser_editor_init (GladeFileChooserEditor * self)
+{
+  gtk_widget_init_template (GTK_WIDGET (self));
+}
+
+GtkWidget *
+glade_file_chooser_editor_new (void)
+{
+  return g_object_new (GLADE_TYPE_FILE_CHOOSER_EDITOR, NULL);
+}
diff --git a/plugins/gtk+/glade-file-chooser-editor.h b/plugins/gtk+/glade-file-chooser-editor.h
new file mode 100644
index 0000000..dc50c24
--- /dev/null
+++ b/plugins/gtk+/glade-file-chooser-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_FILE_CHOOSER_EDITOR_H_
+#define _GLADE_FILE_CHOOSER_EDITOR_H_
+
+#include <gtk/gtk.h>
+#include "glade-window-editor.h"
+
+G_BEGIN_DECLS
+
+#define GLADE_TYPE_FILE_CHOOSER_EDITOR             (glade_file_chooser_editor_get_type ())
+#define GLADE_FILE_CHOOSER_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GLADE_TYPE_FILE_CHOOSER_EDITOR, GladeFileChooserEditor))
+#define GLADE_FILE_CHOOSER_EDITOR_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), 
GLADE_TYPE_FILE_CHOOSER_EDITOR, GladeFileChooserEditorClass))
+#define GLADE_IS_FILE_CHOOSER_EDITOR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
GLADE_TYPE_FILE_CHOOSER_EDITOR))
+#define GLADE_IS_FILE_CHOOSER_EDITOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GLADE_TYPE_FILE_CHOOSER_EDITOR))
+#define GLADE_FILE_CHOOSER_EDITOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GLADE_TYPE_FILE_CHOOSER_EDITOR, GladeFileChooserEditorClass))
+
+typedef struct _GladeFileChooserEditor        GladeFileChooserEditor;
+typedef struct _GladeFileChooserEditorClass   GladeFileChooserEditorClass;
+typedef struct _GladeFileChooserEditorPrivate GladeFileChooserEditorPrivate;
+
+struct _GladeFileChooserEditor
+{
+  GladeEditorSkeleton  parent;
+
+  GladeFileChooserEditorPrivate *priv;
+};
+
+struct _GladeFileChooserEditorClass
+{
+  GladeEditorSkeletonClass parent;
+};
+
+GType            glade_file_chooser_editor_get_type (void) G_GNUC_CONST;
+GtkWidget       *glade_file_chooser_editor_new      (void);
+
+G_END_DECLS
+
+#endif  /* _GLADE_FILE_CHOOSER_EDITOR_H_ */
diff --git a/plugins/gtk+/glade-file-chooser-editor.ui b/plugins/gtk+/glade-file-chooser-editor.ui
new file mode 100644
index 0000000..7e21c35
--- /dev/null
+++ b/plugins/gtk+/glade-file-chooser-editor.ui
@@ -0,0 +1,284 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="glade">
+  <!-- interface-requires gladeui 0.0 -->
+  <!-- interface-requires gtk+ 3.10 -->
+  <template class="GladeFileChooserEditor" 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="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">File Chooser Attributes</property>
+            <attributes>
+              <attribute name="weight" value="bold"/>
+            </attributes>
+          </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="GladePropertyLabel" id="filter_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">filter</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="filter_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">filter</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">2</property>
+            <property name="width">5</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="preview_widget_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">preview-widget</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="extra_widget_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">extra-widget</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">6</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="preview_widget_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">preview-widget</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">3</property>
+            <property name="width">5</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="preview_active_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">preview-widget-active</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">4</property>
+            <property name="width">5</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="select_multiple_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">select-multiple</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="show_hidden_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">show-hidden</property>
+            <property name="editor_type">GladeEpropCheck</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="GladePropertyShell" id="local_only_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">local-only</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">4</property>
+            <property name="top_attach">7</property>
+            <property name="width">2</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyLabel" id="action_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">action</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="action_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">action</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+            <property name="width">3</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="create_folders_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">create-folders</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="confirmation_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">do-overwrite-confirmation</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">8</property>
+            <property name="width">4</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="preview_label_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">use-preview-label</property>
+            <property name="editor_type">GladeEpropCheck</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">5</property>
+            <property name="width">5</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GladePropertyShell" id="extra_widget_editor">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="property_name">extra-widget</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">6</property>
+            <property name="width">5</property>
+            <property name="height">1</property>
+          </packing>
+        </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="filter_label"/>
+      <editor id="filter_editor"/>
+      <editor id="preview_widget_label"/>
+      <editor id="extra_widget_label"/>
+      <editor id="preview_widget_editor"/>
+      <editor id="preview_active_editor"/>
+      <editor id="select_multiple_editor"/>
+      <editor id="show_hidden_editor"/>
+      <editor id="local_only_editor"/>
+      <editor id="action_label"/>
+      <editor id="action_editor"/>
+      <editor id="create_folders_editor"/>
+      <editor id="confirmation_editor"/>
+      <editor id="preview_label_editor"/>
+      <editor id="extra_widget_editor"/>
+    </child-editors>
+  </template>
+</interface>
diff --git a/plugins/gtk+/glade-gtk-resources.gresource.xml b/plugins/gtk+/glade-gtk-resources.gresource.xml
index 3527b62..aace2fc 100644
--- a/plugins/gtk+/glade-gtk-resources.gresource.xml
+++ b/plugins/gtk+/glade-gtk-resources.gresource.xml
@@ -5,6 +5,8 @@
     <file compressed="true" preprocess="xml-stripblanks">glade-activatable-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-button-editor.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">glade-entry-editor.ui</file>
+    <file compressed="true" preprocess="xml-stripblanks">glade-file-chooser-dialog-editor.ui</file>
+    <file compressed="true" preprocess="xml-stripblanks">glade-file-chooser-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-tool-button-editor.ui</file>
diff --git a/plugins/gtk+/glade-gtk-window.c b/plugins/gtk+/glade-gtk-window.c
index 454cc14..f598def 100644
--- a/plugins/gtk+/glade-gtk-window.c
+++ b/plugins/gtk+/glade-gtk-window.c
@@ -27,6 +27,7 @@
 
 #include "glade-window-editor.h"
 #include "glade-about-dialog-editor.h"
+#include "glade-file-chooser-dialog-editor.h"
 #include "glade-gtk.h"
 
 #define GLADE_TAG_ACCEL_GROUPS "accel-groups"
@@ -167,6 +168,8 @@ glade_gtk_window_create_editable (GladeWidgetAdaptor * adaptor,
 
       if (g_type_is_a (window_type, GTK_TYPE_ABOUT_DIALOG))
        editable = (GladeEditable *) glade_about_dialog_editor_new ();
+      else if (g_type_is_a (window_type, GTK_TYPE_FILE_CHOOSER_DIALOG))
+       editable = (GladeEditable *) glade_file_chooser_dialog_editor_new ();
       else
        editable = (GladeEditable *) glade_window_editor_new ();
     }
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 06563d3..6d48efa 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -2163,9 +2163,17 @@ embedded in another object</_tooltip>
 
     <glade-widget-class name="GtkFileChooserDialog" generic-name="filechooserdialog" _title="File Chooser 
Dialog">
       <properties>
-       <property id="extra-widget" parentless-widget="True" />
-       <property id="preview-widget" parentless-widget="True" />
-       <property id="create-folders" since="2.18"/>
+       <property id="extra-widget" parentless-widget="True" custom-layout="True"/>
+       <property id="preview-widget" parentless-widget="True" custom-layout="True"/>
+       <property id="create-folders" since="2.18" custom-layout="True"/>
+       <property id="action" custom-layout="True"/>
+       <property id="filter" custom-layout="True"/>
+       <property id="local-only" custom-layout="True"/>
+       <property id="show-hidden" custom-layout="True"/>
+       <property id="do-overwrite-confirmation" custom-layout="True"/>
+       <property id="preview-widget-active" custom-layout="True"/>
+       <property id="use-preview-label" custom-layout="True"/>
+       <property id="select-multiple" custom-layout="True"/>
       </properties>
 
       <signals>
diff --git a/plugins/gtk-private/glade-gtk-private.xml b/plugins/gtk-private/glade-gtk-private.xml
index 3632731..f806535 100644
--- a/plugins/gtk-private/glade-gtk-private.xml
+++ b/plugins/gtk-private/glade-gtk-private.xml
@@ -7,6 +7,8 @@
                        icon-name="widget-gtk-action"/>
     <glade-widget-class name="GladeButtonEditor" generic-name="buttoneditor" title="Button Editor"
                        icon-name="widget-gtk-button"/>
+    <glade-widget-class name="GladeFileChooserEditor" generic-name="filechoosereditor" title="File Chooser 
Editor"
+                       icon-name="widget-gtk-filechooserwidget"/>
     <glade-widget-class name="GladeWindowEditor" generic-name="windoweditor" title="Window Editor"
                        icon-name="widget-gtk-window">
       <post-create-function>glade_window_editor_post_create</post-create-function>
@@ -25,6 +27,7 @@
 
     <glade-widget-class-ref name="GladeActivatableEditor"/>
     <glade-widget-class-ref name="GladeButtonEditor"/>
+    <glade-widget-class-ref name="GladeFileChooserEditor"/>
     <glade-widget-class-ref name="GladeWindowEditor"/>
   </glade-widget-group>
 </glade-catalog>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7eee2bf..7f406a9 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -60,6 +60,8 @@ plugins/gtk+/glade-button-editor.c
 plugins/gtk+/glade-cell-renderer-editor.c
 plugins/gtk+/glade-column-types.c
 plugins/gtk+/glade-entry-editor.c
+plugins/gtk+/glade-file-chooser-dialog-editor.c
+plugins/gtk+/glade-file-chooser-editor.c
 plugins/gtk+/glade-fixed.c
 plugins/gtk+/glade-gtk-about-dialog.c
 plugins/gtk+/glade-gtk-action.c
@@ -134,6 +136,8 @@ plugins/gtk+/gtk+.xml.in
 [type: gettext/glade]plugins/gtk+/glade-activatable-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-button-editor.ui
 [type: gettext/glade]plugins/gtk+/glade-entry-editor.ui
+[type: gettext/glade]plugins/gtk+/glade-file-chooser-dialog-editor.ui
+[type: gettext/glade]plugins/gtk+/glade-file-chooser-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-tool-button-editor.ui


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