[glade] Added GladeScrolledWindowEditor
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Added GladeScrolledWindowEditor
- Date: Fri, 10 May 2013 14:48:07 +0000 (UTC)
commit 87986f29c894d54d93b18f08410e9b49a9d31cc4
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri May 10 23:24:59 2013 +0900
Added GladeScrolledWindowEditor
plugins/gtk+/Makefile.am | 4 +
plugins/gtk+/glade-gtk-resources.gresource.xml | 1 +
plugins/gtk+/glade-gtk-scrolled-window.c | 60 ++++
plugins/gtk+/glade-scrolled-window-editor.c | 74 +++++
plugins/gtk+/glade-scrolled-window-editor.h | 57 ++++
plugins/gtk+/glade-scrolled-window-editor.ui | 384 ++++++++++++++++++++++++
plugins/gtk+/gtk+.xml.in | 22 +-
po/POTFILES.in | 3 +
8 files changed, 596 insertions(+), 9 deletions(-)
---
diff --git a/plugins/gtk+/Makefile.am b/plugins/gtk+/Makefile.am
index f35edd4..e43d0c1 100644
--- a/plugins/gtk+/Makefile.am
+++ b/plugins/gtk+/Makefile.am
@@ -84,6 +84,7 @@ libgladegtk_la_SOURCES = \
glade-gtk-recent-chooser-menu.c \
glade-gtk-recent-chooser-widget.c \
glade-gtk-recent-file-filter.c \
+ glade-gtk-scrolled-window.c \
glade-gtk-size-group.c \
glade-gtk-spin-button.c \
glade-gtk-switch.c \
@@ -111,6 +112,7 @@ libgladegtk_la_SOURCES = \
glade-recent-chooser-editor.c \
glade-recent-chooser-menu-editor.c \
glade-recent-chooser-widget-editor.c \
+ glade-scrolled-window-editor.c \
glade-store-editor.c \
glade-string-list.c \
glade-tool-button-editor.c \
@@ -166,6 +168,7 @@ noinst_HEADERS = \
glade-recent-chooser-editor.h \
glade-recent-chooser-menu-editor.h \
glade-recent-chooser-widget-editor.h \
+ glade-scrolled-window-editor.h \
glade-store-editor.h \
glade-string-list.h \
glade-tool-button-editor.h \
@@ -219,6 +222,7 @@ UI_FILES = \
glade-recent-chooser-editor.ui \
glade-recent-chooser-menu-editor.ui \
glade-recent-chooser-widget-editor.ui \
+ glade-scrolled-window-editor.ui \
glade-tool-button-editor.ui \
glade-widget-editor.ui \
glade-window-editor.ui
diff --git a/plugins/gtk+/glade-gtk-resources.gresource.xml b/plugins/gtk+/glade-gtk-resources.gresource.xml
index fa09b2e..cf87de7 100644
--- a/plugins/gtk+/glade-gtk-resources.gresource.xml
+++ b/plugins/gtk+/glade-gtk-resources.gresource.xml
@@ -24,6 +24,7 @@
<file compressed="true" preprocess="xml-stripblanks">glade-recent-chooser-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">glade-recent-chooser-widget-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">glade-recent-chooser-menu-editor.ui</file>
+ <file compressed="true" preprocess="xml-stripblanks">glade-scrolled-window-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">glade-tool-button-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">glade-widget-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">glade-window-editor.ui</file>
diff --git a/plugins/gtk+/glade-gtk-scrolled-window.c b/plugins/gtk+/glade-gtk-scrolled-window.c
new file mode 100644
index 0000000..e655cf6
--- /dev/null
+++ b/plugins/gtk+/glade-gtk-scrolled-window.c
@@ -0,0 +1,60 @@
+/*
+ * glade-gtk-scrolled-window.c - GladeWidgetAdaptor for GtkScrolledWindow
+ *
+ * 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 Software
+ * 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-scrolled-window-editor.h"
+
+GladeEditable *
+glade_gtk_scrolled_window_create_editable (GladeWidgetAdaptor * adaptor,
+ GladeEditorPageType type)
+{
+ if (type == GLADE_PAGE_GENERAL)
+ {
+ return glade_scrolled_window_editor_new ();
+ }
+
+ return GWA_GET_CLASS (GTK_TYPE_CONTAINER)->create_editable (adaptor, type);
+}
+
+void
+glade_gtk_scrolled_window_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, "window-placement-set") == 0)
+ {
+ if (g_value_get_boolean (value))
+ glade_widget_property_set_sensitive (widget, "window-placement", TRUE, NULL);
+ else
+ glade_widget_property_set_sensitive (widget, "window-placement", FALSE,
+ _("This property is disabled"));
+ }
+ else 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-scrolled-window-editor.c b/plugins/gtk+/glade-scrolled-window-editor.c
new file mode 100644
index 0000000..38b74d4
--- /dev/null
+++ b/plugins/gtk+/glade-scrolled-window-editor.c
@@ -0,0 +1,74 @@
+/*
+ * 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-scrolled-window-editor.h"
+
+struct _GladeScrolledWindowEditorPrivate
+{
+ GtkWidget *embed;
+};
+
+static void glade_scrolled_window_editor_grab_focus (GtkWidget * widget);
+
+G_DEFINE_TYPE (GladeScrolledWindowEditor, glade_scrolled_window_editor, GLADE_TYPE_EDITOR_SKELETON)
+
+static void
+glade_scrolled_window_editor_class_init (GladeScrolledWindowEditorClass * klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+ widget_class->grab_focus = glade_scrolled_window_editor_grab_focus;
+
+ gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/gladegtk/glade-scrolled-window-editor.ui");
+ gtk_widget_class_bind_child (widget_class, GladeScrolledWindowEditorPrivate, embed);
+
+ g_type_class_add_private (object_class, sizeof (GladeScrolledWindowEditorPrivate));
+}
+
+static void
+glade_scrolled_window_editor_init (GladeScrolledWindowEditor * self)
+{
+ self->priv =
+ G_TYPE_INSTANCE_GET_PRIVATE (self,
+ GLADE_TYPE_SCROLLED_WINDOW_EDITOR,
+ GladeScrolledWindowEditorPrivate);
+
+ gtk_widget_init_template (GTK_WIDGET (self));
+}
+
+static void
+glade_scrolled_window_editor_grab_focus (GtkWidget * widget)
+{
+ GladeScrolledWindowEditor *swindow_editor = GLADE_SCROLLED_WINDOW_EDITOR (widget);
+
+ gtk_widget_grab_focus (swindow_editor->priv->embed);
+}
+
+GtkWidget *
+glade_scrolled_window_editor_new (void)
+{
+ return g_object_new (GLADE_TYPE_SCROLLED_WINDOW_EDITOR, NULL);
+}
diff --git a/plugins/gtk+/glade-scrolled-window-editor.h b/plugins/gtk+/glade-scrolled-window-editor.h
new file mode 100644
index 0000000..26e00a8
--- /dev/null
+++ b/plugins/gtk+/glade-scrolled-window-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_SCROLLED_WINDOW_EDITOR_H_
+#define _GLADE_SCROLLED_WINDOW_EDITOR_H_
+
+#include <gtk/gtk.h>
+#include <gladeui/glade.h>
+
+G_BEGIN_DECLS
+
+#define GLADE_TYPE_SCROLLED_WINDOW_EDITOR (glade_scrolled_window_editor_get_type ())
+#define GLADE_SCROLLED_WINDOW_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),
GLADE_TYPE_SCROLLED_WINDOW_EDITOR, GladeScrolledWindowEditor))
+#define GLADE_SCROLLED_WINDOW_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),
GLADE_TYPE_SCROLLED_WINDOW_EDITOR, GladeScrolledWindowEditorClass))
+#define GLADE_IS_SCROLLED_WINDOW_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),
GLADE_TYPE_SCROLLED_WINDOW_EDITOR))
+#define GLADE_IS_SCROLLED_WINDOW_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),
GLADE_TYPE_SCROLLED_WINDOW_EDITOR))
+#define GLADE_SCROLLED_WINDOW_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
GLADE_TYPE_SCROLLED_WINDOW_EDITOR, GladeScrolledWindowEditorClass))
+
+typedef struct _GladeScrolledWindowEditor GladeScrolledWindowEditor;
+typedef struct _GladeScrolledWindowEditorClass GladeScrolledWindowEditorClass;
+typedef struct _GladeScrolledWindowEditorPrivate GladeScrolledWindowEditorPrivate;
+
+struct _GladeScrolledWindowEditor
+{
+ GladeEditorSkeleton parent;
+
+ GladeScrolledWindowEditorPrivate *priv;
+};
+
+struct _GladeScrolledWindowEditorClass
+{
+ GladeEditorSkeletonClass parent;
+};
+
+GType glade_scrolled_window_editor_get_type (void) G_GNUC_CONST;
+GtkWidget *glade_scrolled_window_editor_new (void);
+
+G_END_DECLS
+
+#endif /* _GLADE_SCROLLED_WINDOW_EDITOR_H_ */
diff --git a/plugins/gtk+/glade-scrolled-window-editor.ui b/plugins/gtk+/glade-scrolled-window-editor.ui
new file mode 100644
index 0000000..8837808
--- /dev/null
+++ b/plugins/gtk+/glade-scrolled-window-editor.ui
@@ -0,0 +1,384 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="glade">
+ <!-- interface-requires gladeui 0.0 -->
+ <!-- interface-requires gtk+ 3.10 -->
+ <template class="GladeScrolledWindowEditor" 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="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">Scrolled Window 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="shadow_type_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">shadow-type</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="shadow_type_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">False</property>
+ <property name="property_name">shadow-type</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">2</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="window_placement_set_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">window-placement-set</property>
+ <property name="editor_type">GladeEpropCheck</property>
+ <property name="custom_text" translatable="yes">Window Placement:</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">3</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="window_placement_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="property_name">window-placement</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="kinetic_scrolling_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">kinetic-scrolling</property>
+ <property name="editor_type">GladeEpropCheck</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">4</property>
+ <property name="width">5</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyLabel" id="content_width_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">min-content-width</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">5</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="content_width_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">False</property>
+ <property name="property_name">min-content-width</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">5</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyLabel" id="content_height_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">min-content-height</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">6</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="content_height_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">False</property>
+ <property name="property_name">min-content-height</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">6</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="htitle">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="valign">center</property>
+ <property name="margin_left">12</property>
+ <property name="hexpand">False</property>
+ <property name="label" translatable="yes">Horizontal</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </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="GtkLabel" id="vtitle">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="valign">center</property>
+ <property name="hexpand">False</property>
+ <property name="label" translatable="yes">Vertical</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">7</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyLabel" id="hpolicy_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="property_name">hscrollbar-policy</property>
+ <property name="custom_text" translatable="yes">Scrollbar Policy:</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="hpolicy_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="property_name">hscrollbar-policy</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyLabel" id="vpolicy_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">12</property>
+ <property name="property_name">vscrollbar-policy</property>
+ <property name="custom_text" translatable="yes">Scrollbar Policy:</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="vpolicy_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="property_name">vscrollbar-policy</property>
+ </object>
+ <packing>
+ <property name="left_attach">4</property>
+ <property name="top_attach">8</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyLabel" id="hadj_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="property_name">hadjustment</property>
+ <property name="custom_text" translatable="yes">Adjustment:</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="GladePropertyLabel" id="vadj_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">12</property>
+ <property name="property_name">vadjustment</property>
+ <property name="custom_text" translatable="yes">Adjustment:</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="top_attach">9</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="hadj_editor">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="property_name">hadjustment</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">9</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GladePropertyShell" id="hadj_editor1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="property_name">hadjustment</property>
+ </object>
+ <packing>
+ <property name="left_attach">4</property>
+ <property name="top_attach">9</property>
+ <property name="width">1</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>
+ </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="shadow_type_label"/>
+ <editor id="shadow_type_editor"/>
+ <editor id="window_placement_set_editor"/>
+ <editor id="window_placement_editor"/>
+ <editor id="kinetic_scrolling_editor"/>
+ <editor id="content_width_label"/>
+ <editor id="content_width_editor"/>
+ <editor id="content_height_label"/>
+ <editor id="content_height_editor"/>
+ <editor id="hpolicy_label"/>
+ <editor id="hpolicy_editor"/>
+ <editor id="vpolicy_label"/>
+ <editor id="vpolicy_editor"/>
+ <editor id="hadj_label"/>
+ <editor id="vadj_label"/>
+ <editor id="hadj_editor"/>
+ <editor id="hadj_editor1"/>
+ </child-editors>
+ </template>
+</interface>
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 31e643e..9dea75d 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -2143,21 +2143,25 @@ embedded in another object</_tooltip>
<glade-widget-class name="GtkViewport" generic-name="viewport" _title="Viewport"/>
<glade-widget-class name="GtkScrolledWindow" generic-name="scrolledwindow" _title="Scrolled Window">
+ <create-editable-function>glade_gtk_scrolled_window_create_editable</create-editable-function>
+ <set-property-function>glade_gtk_scrolled_window_set_property</set-property-function>
<properties>
- <property id="kinetic-scrolling" since="3.4"/>
- <property id="shadow-type" default="GTK_SHADOW_IN"/>
- <property id="min-content-width" since="3.0"/>
- <property id="min-content-height" since="3.0"/>
- <property id="window-placement-set" since="2.10" ignore="True"/>
- <property id="hscrollbar-policy" default="GTK_POLICY_AUTOMATIC">
+ <property id="hadjustment" custom-layout="True"/>
+ <property id="vadjustment" custom-layout="True"/>
+ <property id="kinetic-scrolling" since="3.4" custom-layout="True"/>
+ <property id="shadow-type" default="GTK_SHADOW_IN" custom-layout="True"/>
+ <property id="min-content-width" since="3.0" custom-layout="True"/>
+ <property id="min-content-height" since="3.0" custom-layout="True"/>
+ <property id="window-placement-set" since="2.10" needs-sync="True" custom-layout="True"/>
+ <property id="hscrollbar-policy" default="GTK_POLICY_AUTOMATIC" custom-layout="True">
<displayable-values>
<value id="GTK_POLICY_ALWAYS" _name="Always"/>
<value id="GTK_POLICY_AUTOMATIC" _name="Automatic"/>
<value id="GTK_POLICY_NEVER" _name="Never"/>
</displayable-values>
</property>
- <property id="vscrollbar-policy" default="GTK_POLICY_AUTOMATIC"/>
- <property id="window-placement">
+ <property id="vscrollbar-policy" default="GTK_POLICY_AUTOMATIC" custom-layout="True"/>
+ <property id="window-placement" custom-layout="True">
<displayable-values>
<value id="GTK_CORNER_TOP_LEFT" _name="Top Left"/>
<value id="GTK_CORNER_BOTTOM_LEFT" _name="Bottom Left"/>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5a1456c..01ed76e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -113,6 +113,7 @@ plugins/gtk+/glade-gtk-radio-menu-item.c
plugins/gtk+/glade-gtk-recent-chooser-menu.c
plugins/gtk+/glade-gtk-recent-chooser-widget.c
plugins/gtk+/glade-gtk-recent-file-filter.c
+plugins/gtk+/glade-gtk-scrolled-window.c
plugins/gtk+/glade-gtk-size-group.c
plugins/gtk+/glade-gtk-spin-button.c
plugins/gtk+/glade-gtk-switch.c
@@ -140,6 +141,7 @@ plugins/gtk+/glade-recent-chooser-dialog-editor.c
plugins/gtk+/glade-recent-chooser-editor.c
plugins/gtk+/glade-recent-chooser-menu-editor.c
plugins/gtk+/glade-recent-chooser-widget-editor.c
+plugins/gtk+/glade-scrolled-window-editor.c
plugins/gtk+/glade-store-editor.c
plugins/gtk+/glade-string-list.c
plugins/gtk+/glade-tool-button-editor.c
@@ -171,6 +173,7 @@ plugins/gtk+/gtk+.xml.in
[type: gettext/glade]plugins/gtk+/glade-recent-chooser-editor.ui
[type: gettext/glade]plugins/gtk+/glade-recent-chooser-menu-editor.ui
[type: gettext/glade]plugins/gtk+/glade-recent-chooser-widget-editor.ui
+[type: gettext/glade]plugins/gtk+/glade-scrolled-window-editor.ui
[type: gettext/glade]plugins/gtk+/glade-tool-button-editor.ui
[type: gettext/glade]plugins/gtk+/glade-widget-editor.ui
[type: gettext/glade]plugins/gtk+/glade-window-editor.ui
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]