summaryrefslogtreecommitdiff
path: root/plugins/gtk+/glade-gtk-container.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtk+/glade-gtk-container.c')
-rw-r--r--plugins/gtk+/glade-gtk-container.c86
1 files changed, 45 insertions, 41 deletions
diff --git a/plugins/gtk+/glade-gtk-container.c b/plugins/gtk+/glade-gtk-container.c
index 753eca69..50d600ca 100644
--- a/plugins/gtk+/glade-gtk-container.c
+++ b/plugins/gtk+/glade-gtk-container.c
@@ -26,8 +26,9 @@
#include <string.h>
void
-glade_gtk_container_post_create (GladeWidgetAdaptor * adaptor,
- GObject * container, GladeCreateReason reason)
+glade_gtk_container_post_create (GladeWidgetAdaptor *adaptor,
+ GObject *container,
+ GladeCreateReason reason)
{
GList *children;
g_return_if_fail (GTK_IS_CONTAINER (container));
@@ -44,50 +45,50 @@ glade_gtk_container_post_create (GladeWidgetAdaptor * adaptor,
gboolean
glade_gtk_container_add_verify (GladeWidgetAdaptor *adaptor,
- GtkWidget *container,
- GtkWidget *child,
- gboolean user_feedback)
+ GtkWidget *container,
+ GtkWidget *child,
+ gboolean user_feedback)
{
GladeWidget *gwidget = glade_widget_get_from_gobject (container);
if (GTK_IS_WINDOW (child))
{
if (user_feedback)
- glade_util_ui_message (glade_app_get_window (),
- GLADE_UI_INFO, NULL,
- _("Cannot add a toplevel window to a container."));
+ glade_util_ui_message (glade_app_get_window (),
+ GLADE_UI_INFO, NULL,
+ _("Cannot add a toplevel window to a container."));
return FALSE;
}
else if (GTK_IS_POPOVER (child))
{
if (user_feedback)
- glade_util_ui_message (glade_app_get_window (),
- GLADE_UI_INFO, NULL,
- _("Cannot add a popover to a container."));
+ glade_util_ui_message (glade_app_get_window (),
+ GLADE_UI_INFO, NULL,
+ _("Cannot add a popover to a container."));
return FALSE;
}
else if (!GTK_IS_WIDGET (child) ||
- GTK_IS_TOOL_ITEM (child) ||
- GTK_IS_MENU_ITEM (child))
+ GTK_IS_TOOL_ITEM (child) ||
+ GTK_IS_MENU_ITEM (child))
{
if (user_feedback)
- glade_util_ui_message (glade_app_get_window (),
- GLADE_UI_INFO, NULL,
- _("Widgets of type %s can only have widgets as children."),
- glade_widget_adaptor_get_title (adaptor));
+ glade_util_ui_message (glade_app_get_window (),
+ GLADE_UI_INFO, NULL,
+ _("Widgets of type %s can only have widgets as children."),
+ glade_widget_adaptor_get_title (adaptor));
return FALSE;
}
else if (GWA_USE_PLACEHOLDERS (adaptor) &&
- glade_util_count_placeholders (gwidget) == 0)
+ glade_util_count_placeholders (gwidget) == 0)
{
if (user_feedback)
- glade_util_ui_message (glade_app_get_window (),
- GLADE_UI_INFO, NULL,
- _("Widgets of type %s need placeholders to add children."),
- glade_widget_adaptor_get_title (adaptor));
+ glade_util_ui_message (glade_app_get_window (),
+ GLADE_UI_INFO, NULL,
+ _("Widgets of type %s need placeholders to add children."),
+ glade_widget_adaptor_get_title (adaptor));
return FALSE;
}
@@ -96,9 +97,10 @@ glade_gtk_container_add_verify (GladeWidgetAdaptor *adaptor,
}
void
-glade_gtk_container_replace_child (GladeWidgetAdaptor * adaptor,
- GtkWidget * container,
- GtkWidget * current, GtkWidget * new_widget)
+glade_gtk_container_replace_child (GladeWidgetAdaptor *adaptor,
+ GtkWidget *container,
+ GtkWidget *current,
+ GtkWidget *new_widget)
{
GParamSpec **param_spec;
GladePropertyClass *pclass;
@@ -152,8 +154,9 @@ glade_gtk_container_replace_child (GladeWidgetAdaptor * adaptor,
}
void
-glade_gtk_container_add_child (GladeWidgetAdaptor * adaptor,
- GtkWidget * container, GtkWidget * child)
+glade_gtk_container_add_child (GladeWidgetAdaptor *adaptor,
+ GtkWidget *container,
+ GtkWidget *child)
{
GtkWidget *container_child = NULL;
@@ -170,8 +173,9 @@ glade_gtk_container_add_child (GladeWidgetAdaptor * adaptor,
}
void
-glade_gtk_container_remove_child (GladeWidgetAdaptor * adaptor,
- GtkWidget * container, GtkWidget * child)
+glade_gtk_container_remove_child (GladeWidgetAdaptor *adaptor,
+ GtkWidget *container,
+ GtkWidget *child)
{
GList *children;
gtk_container_remove (GTK_CONTAINER (container), child);
@@ -188,11 +192,11 @@ glade_gtk_container_remove_child (GladeWidgetAdaptor * adaptor,
}
void
-glade_gtk_container_set_child_property (GladeWidgetAdaptor * adaptor,
- GObject * container,
- GObject * child,
- const gchar * property_name,
- const GValue * value)
+glade_gtk_container_set_child_property (GladeWidgetAdaptor *adaptor,
+ GObject *container,
+ GObject *child,
+ const gchar *property_name,
+ const GValue *value)
{
if (gtk_widget_get_parent (GTK_WIDGET (child)) == GTK_WIDGET (container))
gtk_container_child_set_property (GTK_CONTAINER (container),
@@ -200,11 +204,11 @@ glade_gtk_container_set_child_property (GladeWidgetAdaptor * adaptor,
}
void
-glade_gtk_container_get_child_property (GladeWidgetAdaptor * adaptor,
- GObject * container,
- GObject * child,
- const gchar * property_name,
- GValue * value)
+glade_gtk_container_get_child_property (GladeWidgetAdaptor *adaptor,
+ GObject *container,
+ GObject *child,
+ const gchar *property_name,
+ GValue *value)
{
if (gtk_widget_get_parent (GTK_WIDGET (child)) == GTK_WIDGET (container))
gtk_container_child_get_property (GTK_CONTAINER (container),
@@ -213,7 +217,7 @@ glade_gtk_container_get_child_property (GladeWidgetAdaptor * adaptor,
GList *
glade_gtk_container_get_children (GladeWidgetAdaptor *adaptor,
- GObject *container)
+ GObject *container)
{
GList *parent_children, *children;
@@ -230,7 +234,7 @@ glade_gtk_container_get_children (GladeWidgetAdaptor *adaptor,
/* This is used in the XML for some derived classes */
GladeEditable *
-glade_gtk_container_create_editable (GladeWidgetAdaptor * adaptor,
+glade_gtk_container_create_editable (GladeWidgetAdaptor *adaptor,
GladeEditorPageType type)
{
return GWA_GET_CLASS (GTK_TYPE_CONTAINER)->create_editable (adaptor, type);