From 088d8af6dd3eeb216c8a38cb22f433f4e7798711 Mon Sep 17 00:00:00 2001 From: Juan Pablo Ugarte Date: Sat, 17 Feb 2018 12:33:37 -0300 Subject: plugins/gtk+/glade-gtk-action-widgets.c glade-gtk-cell-layout.c: fix identation. --- plugins/gtk+/glade-gtk-action-widgets.c | 27 ++++---- plugins/gtk+/glade-gtk-cell-layout.c | 117 +++++++++++++++++--------------- 2 files changed, 75 insertions(+), 69 deletions(-) (limited to 'plugins') diff --git a/plugins/gtk+/glade-gtk-action-widgets.c b/plugins/gtk+/glade-gtk-action-widgets.c index 4884ab1d..7cbdff95 100644 --- a/plugins/gtk+/glade-gtk-action-widgets.c +++ b/plugins/gtk+/glade-gtk-action-widgets.c @@ -40,9 +40,9 @@ glade_gtk_action_widgets_get_area (GladeWidget *widget, gchar *action_area) } static void -glade_gtk_action_widgets_read_responses (GladeWidget *widget, +glade_gtk_action_widgets_read_responses (GladeWidget *widget, GladeXmlNode *widgets_node, - gchar *action_container) + gchar *action_container) { GladeWidget *action_widget, *action_area; GladeXmlNode *node; @@ -79,9 +79,9 @@ glade_gtk_action_widgets_read_responses (GladeWidget *widget, } void -glade_gtk_action_widgets_read_child (GladeWidget *widget, +glade_gtk_action_widgets_read_child (GladeWidget *widget, GladeXmlNode *node, - gchar *action_container) + gchar *action_container) { GladeXmlNode *widgets_node; @@ -91,10 +91,10 @@ glade_gtk_action_widgets_read_child (GladeWidget *widget, } static void -glade_gtk_action_widgets_write_responses (GladeWidget *widget, +glade_gtk_action_widgets_write_responses (GladeWidget *widget, GladeXmlContext *context, - GladeXmlNode *node, - gchar *action_container) + GladeXmlNode *node, + gchar *action_container) { GladeXmlNode *widget_node; GList *l, *action_widgets; @@ -122,7 +122,7 @@ glade_gtk_action_widgets_write_responses (GladeWidget *widget, continue; if (!glade_property_get_enabled (property)) - continue; + continue; widget_node = glade_xml_node_new (context, GLADE_TAG_ACTION_WIDGET); glade_xml_node_append_child (node, widget_node); @@ -141,7 +141,8 @@ glade_gtk_action_widgets_write_responses (GladeWidget *widget, } void -glade_gtk_action_widgets_ensure_names (GladeWidget *widget, gchar *action_container) +glade_gtk_action_widgets_ensure_names (GladeWidget *widget, + gchar *action_container) { GList *l, *action_widgets; GladeWidget *action_area; @@ -167,7 +168,7 @@ glade_gtk_action_widgets_ensure_names (GladeWidget *widget, gchar *action_contai continue; if (!glade_property_get_enabled (property)) - continue; + continue; glade_widget_ensure_name (action_widget, glade_widget_get_project (action_widget), FALSE); } @@ -176,10 +177,10 @@ glade_gtk_action_widgets_ensure_names (GladeWidget *widget, gchar *action_contai } void -glade_gtk_action_widgets_write_child (GladeWidget *widget, +glade_gtk_action_widgets_write_child (GladeWidget *widget, GladeXmlContext *context, - GladeXmlNode *node, - gchar *action_container) + GladeXmlNode *node, + gchar *action_container) { GladeXmlNode *widgets_node; diff --git a/plugins/gtk+/glade-gtk-cell-layout.c b/plugins/gtk+/glade-gtk-cell-layout.c index 623e96f8..0ee762a7 100644 --- a/plugins/gtk+/glade-gtk-cell-layout.c +++ b/plugins/gtk+/glade-gtk-cell-layout.c @@ -33,23 +33,23 @@ gboolean glade_gtk_cell_layout_add_verify (GladeWidgetAdaptor *adaptor, - GtkWidget *container, - GtkWidget *child, - gboolean user_feedback) + GtkWidget *container, + GtkWidget *child, + gboolean user_feedback) { if (!GTK_IS_CELL_RENDERER (child)) { if (user_feedback) - { - GladeWidgetAdaptor *cell_adaptor = - glade_widget_adaptor_get_by_type (GTK_TYPE_CELL_RENDERER); - - glade_util_ui_message (glade_app_get_window (), - GLADE_UI_INFO, NULL, - ONLY_THIS_GOES_IN_THAT_MSG, - glade_widget_adaptor_get_title (cell_adaptor), - glade_widget_adaptor_get_title (adaptor)); - } + { + GladeWidgetAdaptor *cell_adaptor = + glade_widget_adaptor_get_by_type (GTK_TYPE_CELL_RENDERER); + + glade_util_ui_message (glade_app_get_window (), + GLADE_UI_INFO, NULL, + ONLY_THIS_GOES_IN_THAT_MSG, + glade_widget_adaptor_get_title (cell_adaptor), + glade_widget_adaptor_get_title (adaptor)); + } return FALSE; } @@ -58,8 +58,9 @@ glade_gtk_cell_layout_add_verify (GladeWidgetAdaptor *adaptor, } void -glade_gtk_cell_layout_add_child (GladeWidgetAdaptor * adaptor, - GObject * container, GObject * child) +glade_gtk_cell_layout_add_child (GladeWidgetAdaptor *adaptor, + GObject *container, + GObject *child) { GladeWidget *gmodel = NULL; GladeWidget *grenderer = glade_widget_get_from_gobject (child); @@ -79,8 +80,9 @@ glade_gtk_cell_layout_add_child (GladeWidgetAdaptor * adaptor, } void -glade_gtk_cell_layout_remove_child (GladeWidgetAdaptor * adaptor, - GObject * container, GObject * child) +glade_gtk_cell_layout_remove_child (GladeWidgetAdaptor *adaptor, + GObject *container, + GObject *child) { GtkCellLayout *layout = GTK_CELL_LAYOUT (container); GList *l, *children = gtk_cell_layout_get_cells (layout); @@ -111,19 +113,19 @@ glade_gtk_cell_layout_remove_child (GladeWidgetAdaptor * adaptor, } GList * -glade_gtk_cell_layout_get_children (GladeWidgetAdaptor * adaptor, - GObject * container) +glade_gtk_cell_layout_get_children (GladeWidgetAdaptor *adaptor, + GObject *container) { return gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (container)); } void -glade_gtk_cell_layout_get_child_property (GladeWidgetAdaptor * adaptor, - GObject * container, - GObject * child, - const gchar * property_name, - GValue * value) +glade_gtk_cell_layout_get_child_property (GladeWidgetAdaptor *adaptor, + GObject *container, + GObject *child, + const gchar *property_name, + GValue *value) { if (strcmp (property_name, "position") == 0) { @@ -143,11 +145,11 @@ glade_gtk_cell_layout_get_child_property (GladeWidgetAdaptor * adaptor, } void -glade_gtk_cell_layout_set_child_property (GladeWidgetAdaptor * adaptor, - GObject * container, - GObject * child, - const gchar * property_name, - const GValue * value) +glade_gtk_cell_layout_set_child_property (GladeWidgetAdaptor *adaptor, + GObject *container, + GObject *child, + const gchar *property_name, + const GValue *value) { if (strcmp (property_name, "position") == 0) { @@ -165,8 +167,8 @@ glade_gtk_cell_layout_set_child_property (GladeWidgetAdaptor * adaptor, } static void -glade_gtk_cell_renderer_read_attributes (GladeWidget * widget, - GladeXmlNode * node) +glade_gtk_cell_renderer_read_attributes (GladeWidget *widget, + GladeXmlNode *node) { GladeXmlNode *attrs_node; GladeProperty *attr_prop, *use_attr_prop; @@ -212,8 +214,9 @@ glade_gtk_cell_renderer_read_attributes (GladeWidget * widget, } void -glade_gtk_cell_layout_read_child (GladeWidgetAdaptor * adaptor, - GladeWidget * widget, GladeXmlNode * node) +glade_gtk_cell_layout_read_child (GladeWidgetAdaptor *adaptor, + GladeWidget *widget, + GladeXmlNode *node) { GladeXmlNode *widget_node; GladeWidget *child_widget; @@ -254,9 +257,9 @@ glade_gtk_cell_layout_read_child (GladeWidgetAdaptor * adaptor, } static void -glade_gtk_cell_renderer_write_attributes (GladeWidget * widget, - GladeXmlContext * context, - GladeXmlNode * node) +glade_gtk_cell_renderer_write_attributes (GladeWidget *widget, + GladeXmlContext *context, + GladeXmlNode *node) { GladeProperty *property; GladePropertyClass *pclass; @@ -308,10 +311,10 @@ glade_gtk_cell_renderer_write_attributes (GladeWidget * widget, } void -glade_gtk_cell_layout_write_child (GladeWidgetAdaptor * adaptor, - GladeWidget * widget, - GladeXmlContext * context, - GladeXmlNode * node) +glade_gtk_cell_layout_write_child (GladeWidgetAdaptor *adaptor, + GladeWidget *widget, + GladeXmlContext *context, + GladeXmlNode *node) { GladeXmlNode *child_node; @@ -331,9 +334,9 @@ glade_gtk_cell_layout_write_child (GladeWidgetAdaptor * adaptor, } gchar * -glade_gtk_cell_layout_get_display_name (GladeBaseEditor * editor, - GladeWidget * gchild, - gpointer user_data) +glade_gtk_cell_layout_get_display_name (GladeBaseEditor *editor, + GladeWidget *gchild, + gpointer user_data) { GObject *child = glade_widget_get_object (gchild); gchar *name; @@ -347,8 +350,9 @@ glade_gtk_cell_layout_get_display_name (GladeBaseEditor * editor, } void -glade_gtk_cell_layout_child_selected (GladeBaseEditor * editor, - GladeWidget * gchild, gpointer data) +glade_gtk_cell_layout_child_selected (GladeBaseEditor *editor, + GladeWidget *gchild, + gpointer data) { GObject *child = glade_widget_get_object (gchild); @@ -371,9 +375,10 @@ glade_gtk_cell_layout_child_selected (GladeBaseEditor * editor, } gboolean -glade_gtk_cell_layout_move_child (GladeBaseEditor * editor, - GladeWidget * gparent, - GladeWidget * gchild, gpointer data) +glade_gtk_cell_layout_move_child (GladeBaseEditor *editor, + GladeWidget *gparent, + GladeWidget *gchild, + gpointer data) { GObject *parent = glade_widget_get_object (gparent); GObject *child = glade_widget_get_object (gchild); @@ -428,7 +433,7 @@ glade_gtk_cell_layout_launch_editor (GObject *layout, gchar *window_name) static void -glade_gtk_cell_layout_launch_editor_action (GObject * object) +glade_gtk_cell_layout_launch_editor_action (GObject *object) { GladeWidget *w = glade_widget_get_from_gobject (object); @@ -461,9 +466,9 @@ glade_gtk_cell_layout_launch_editor_action (GObject * object) } void -glade_gtk_cell_layout_action_activate (GladeWidgetAdaptor * adaptor, - GObject * object, - const gchar * action_path) +glade_gtk_cell_layout_action_activate (GladeWidgetAdaptor *adaptor, + GObject *object, + const gchar *action_path) { if (strcmp (action_path, "launch_editor") == 0) glade_gtk_cell_layout_launch_editor_action (object); @@ -473,9 +478,9 @@ glade_gtk_cell_layout_action_activate (GladeWidgetAdaptor * adaptor, } void -glade_gtk_cell_layout_action_activate_as_widget (GladeWidgetAdaptor * adaptor, - GObject * object, - const gchar * action_path) +glade_gtk_cell_layout_action_activate_as_widget (GladeWidgetAdaptor *adaptor, + GObject *object, + const gchar *action_path) { if (strcmp (action_path, "launch_editor") == 0) glade_gtk_cell_layout_launch_editor_action (object); @@ -485,7 +490,7 @@ glade_gtk_cell_layout_action_activate_as_widget (GladeWidgetAdaptor * adaptor, } gboolean -glade_gtk_cell_layout_sync_attributes (GObject * layout) +glade_gtk_cell_layout_sync_attributes (GObject *layout) { GladeWidget *gwidget = glade_widget_get_from_gobject (layout); GObject *cell; -- cgit v1.2.1