Commit 0b1d4e99 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

Fix tab/space identation

parent 583e024e
Pipeline #23038 passed with stages
in 9 minutes and 49 seconds
......@@ -32,7 +32,8 @@
gboolean
_glade_single_object_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return, gpointer dummy)
const GValue *handler_return,
gpointer dummy)
{
GObject *object = g_value_get_object (handler_return);
g_value_set_object (return_accu, object);
......@@ -76,7 +77,8 @@ _glade_boolean_handled_accumulator (GSignalInvocationHint *ihint,
gboolean
_glade_string_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return, gpointer dummy)
const GValue *handler_return,
gpointer dummy)
{
const gchar *handler_str;
......@@ -104,7 +106,8 @@ _glade_strv_handled_accumulator (GSignalInvocationHint *ihint,
gboolean
_glade_stop_emission_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return, gpointer dummy)
const GValue *handler_return,
gpointer dummy)
{
g_value_copy (handler_return, return_accu);
......
......@@ -151,8 +151,7 @@ func ## _get_type (void) \
\
if (!cmd_type) \
{ \
static const GTypeInfo info = \
{ \
static const GTypeInfo info = { \
sizeof (type ## Class), \
(GBaseInitFunc) NULL, \
(GBaseFinalizeFunc) NULL, \
......@@ -168,7 +167,7 @@ func ## _get_type (void) \
} \
\
return cmd_type; \
} \
}
#define GLADE_MAKE_COMMAND(type, func) \
static gboolean \
......
......@@ -18,8 +18,7 @@ func ## _get_type (void) \
\
if (!cmd_type) \
{ \
static const GTypeInfo info = \
{ \
static const GTypeInfo info = { \
sizeof (type ## Class), \
(GBaseInitFunc) NULL, \
(GBaseFinalizeFunc) NULL, \
......@@ -35,7 +34,7 @@ func ## _get_type (void) \
} \
\
return cmd_type; \
} \
}
#define GLADE_MAKE_EPROP(type, func) \
......
......@@ -42,8 +42,8 @@
static void glade_editor_table_init (GladeEditorTable * self);
static void glade_editor_table_class_init (GladeEditorTableClass * klass);
static void glade_editor_table_init (GladeEditorTable *self);
static void glade_editor_table_class_init (GladeEditorTableClass *klass);
static void glade_editor_table_dispose (GObject *object);
static void glade_editor_table_set_property (GObject *object,
......@@ -51,9 +51,9 @@ static void glade_editor_table_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec);
static void glade_editor_table_editable_init (GladeEditableIface * iface);
static void glade_editor_table_realize (GtkWidget * widget);
static void glade_editor_table_grab_focus (GtkWidget * widget);
static void glade_editor_table_editable_init (GladeEditableIface *iface);
static void glade_editor_table_realize (GtkWidget *widget);
static void glade_editor_table_grab_focus (GtkWidget *widget);
static void append_name_field (GladeEditorTable *table);
static void append_items (GladeEditorTable *table,
......
......@@ -1093,8 +1093,9 @@ glade_property_class_set_vl_from_gvalue (GladePropertyClass * klass,
* Assignes the provided return location to @value
*/
void
glade_property_class_get_from_gvalue (GladePropertyClass * klass,
GValue * value, ...)
glade_property_class_get_from_gvalue (GladePropertyClass *klass,
GValue *value,
...)
{
va_list vl;
......@@ -1184,7 +1185,7 @@ failed:
* or %NULL if its unsupported.
*/
GladePropertyClass *
glade_property_class_new_from_spec (GladeWidgetAdaptor *adaptor, GParamSpec * spec)
glade_property_class_new_from_spec (GladeWidgetAdaptor *adaptor, GParamSpec *spec)
{
return glade_property_class_new_from_spec_full (adaptor, spec, TRUE);
}
......@@ -1197,7 +1198,7 @@ glade_property_class_new_from_spec (GladeWidgetAdaptor *adaptor, GParamSpec * sp
* Returns: whether or not to show this property in the editor
*/
gboolean
glade_property_class_is_visible (GladePropertyClass * klass)
glade_property_class_is_visible (GladePropertyClass *klass)
{
g_return_val_if_fail (GLADE_IS_PROPERTY_CLASS (klass), FALSE);
......@@ -1313,7 +1314,7 @@ glade_property_class_get_ignore (GladePropertyClass *property_class)
* that refers to another object in this project.
*/
gboolean
glade_property_class_is_object (GladePropertyClass * klass)
glade_property_class_is_object (GladePropertyClass *klass)
{
g_return_val_if_fail (GLADE_IS_PROPERTY_CLASS (klass), FALSE);
......@@ -1561,9 +1562,9 @@ glade_property_class_themed_icon (GladePropertyClass *property_class)
* Reads and caches displayable values from the catalog
*/
static void
gpc_read_displayable_values_from_node (GladeXmlNode * node,
GladePropertyClass * klass,
const gchar * domain)
gpc_read_displayable_values_from_node (GladeXmlNode *node,
GladePropertyClass *klass,
const gchar *domain)
{
gpointer the_class = g_type_class_ref (klass->pspec->value_type);
GladeXmlNode *child;
......@@ -1668,7 +1669,7 @@ gpc_read_displayable_values_from_node (GladeXmlNode * node,
* Returns: An appropriate #GtkAdjustment for use in the Property editor
*/
GtkAdjustment *
glade_property_class_make_adjustment (GladePropertyClass * property_class)
glade_property_class_make_adjustment (GladePropertyClass *property_class)
{
GtkAdjustment *adjustment;
gdouble min = 0, max = 0, def = 0;
......@@ -1752,8 +1753,8 @@ glade_property_class_make_adjustment (GladePropertyClass * property_class)
static GParamSpec *
glade_property_class_parse_specifications (GladePropertyClass * klass,
GladeXmlNode * spec_node)
glade_property_class_parse_specifications (GladePropertyClass *klass,
GladeXmlNode *spec_node)
{
gchar *string;
GType spec_type = 0, value_type = 0;
......@@ -1939,10 +1940,10 @@ glade_property_class_parse_specifications (GladePropertyClass * klass,
* has Disabled="TRUE".
*/
gboolean
glade_property_class_update_from_node (GladeXmlNode * node,
glade_property_class_update_from_node (GladeXmlNode *node,
GType object_type,
GladePropertyClass ** property_class,
const gchar * domain)
GladePropertyClass **property_class,
const gchar *domain)
{
GladePropertyClass *klass;
GParamSpec *pspec = NULL;
......@@ -2199,8 +2200,8 @@ glade_property_class_update_from_node (GladeXmlNode * node,
* have the same name are not matches).
*/
gboolean
glade_property_class_match (GladePropertyClass * klass,
GladePropertyClass * comp)
glade_property_class_match (GladePropertyClass *klass,
GladePropertyClass *comp)
{
g_return_val_if_fail (klass != NULL, FALSE);
g_return_val_if_fail (comp != NULL, FALSE);
......@@ -2219,7 +2220,7 @@ glade_property_class_match (GladePropertyClass * klass,
* can be a %NULL value for boxed or object type param specs.
*/
gboolean
glade_property_class_void_value (GladePropertyClass * klass, GValue * value)
glade_property_class_void_value (GladePropertyClass *klass, GValue *value)
{
g_return_val_if_fail (GLADE_IS_PROPERTY_CLASS (klass), FALSE);
......@@ -2245,8 +2246,9 @@ glade_property_class_void_value (GladePropertyClass * klass, GValue * value)
* equal to or greater than value2, respectively.
*/
gint
glade_property_class_compare (GladePropertyClass * klass,
const GValue * value1, const GValue * value2)
glade_property_class_compare (GladePropertyClass *klass,
const GValue *value1,
const GValue *value2)
{
gint retval;
......@@ -2304,7 +2306,7 @@ glade_property_class_compare (GladePropertyClass * klass,
This function will not override weight if it is already set (weight >= 0.0)
*/
void
glade_property_class_set_weights (GList ** properties, GType parent)
glade_property_class_set_weights (GList **properties, GType parent)
{
gint normal = 0, common = 0, packing = 0;
GList *l;
......@@ -2348,3 +2350,4 @@ glade_property_class_load_defaults_from_spec (GladePropertyClass *property_class
property_class->def =
glade_property_class_get_default_from_spec (property_class->pspec);
}
......@@ -730,7 +730,6 @@ glade_signal_editor_load_widget (GladeSignalEditor *editor,
gtk_tree_view_set_model (GTK_TREE_VIEW (priv->signal_tree), NULL);
priv->model = NULL;
if (!widget)
return;
......
......@@ -333,7 +333,7 @@ glade_signal_model_create_signal_list (GladeSignalModel *sig_model,
static void
on_glade_signal_model_added (GladeWidget *widget,
const GladeSignal *signal,
GladeSignalModel* model)
GladeSignalModel *model)
{
GtkTreeIter iter;
GtkTreePath *path;
......@@ -998,3 +998,4 @@ gtk_tree_drag_source_iface_init (GtkTreeDragSourceIface *iface)
iface->drag_data_get = glade_signal_model_drag_data_get;
iface->drag_data_delete = glade_signal_model_drag_data_delete;
}
......@@ -84,7 +84,8 @@ glade_signal_finalize (GObject *object)
static void
glade_signal_get_property (GObject *object,
guint prop_id,
GValue *value, GParamSpec *pspec)
GValue *value,
GParamSpec *pspec)
{
GladeSignal *signal = GLADE_SIGNAL (object);
......@@ -120,7 +121,8 @@ glade_signal_get_property (GObject *object,
static void
glade_signal_set_property (GObject *object,
guint prop_id,
const GValue *value, GParamSpec *pspec)
const GValue *value,
GParamSpec *pspec)
{
GladeSignal *signal = GLADE_SIGNAL (object);
......
......@@ -188,29 +188,29 @@ typedef struct _GladeProject GladeProject;
/* search child */
GladeXmlNode * glade_xml_search_child (GladeXmlNode * node, const gchar *name);
GladeXmlNode * glade_xml_search_child_required (GladeXmlNode * tree, const gchar* name);
GladeXmlNode * glade_xml_search_child (GladeXmlNode *node, const gchar *name);
GladeXmlNode * glade_xml_search_child_required (GladeXmlNode *tree, const gchar *name);
/* content */
gchar * glade_xml_get_content (GladeXmlNode * node_in); /* Get the content of the node */
gchar * glade_xml_get_content (GladeXmlNode *node_in); /* Get the content of the node */
void glade_xml_set_content (GladeXmlNode *node_in, const gchar *content);
gboolean glade_xml_get_value_int (GladeXmlNode * node_in, const gchar *name, int *val);
gboolean glade_xml_get_value_int_required (GladeXmlNode * node, const gchar *name, int *val);
gboolean glade_xml_get_value_int (GladeXmlNode *node_in, const gchar *name, int *val);
gboolean glade_xml_get_value_int_required (GladeXmlNode *node, const gchar *name, int *val);
gchar * glade_xml_get_value_string (GladeXmlNode * node, const gchar *name);
gchar * glade_xml_get_value_string_required (GladeXmlNode * node,
gchar * glade_xml_get_value_string (GladeXmlNode *node, const gchar *name);
gchar * glade_xml_get_value_string_required (GladeXmlNode *node,
const gchar *name,
const gchar *xtra_info);
gboolean glade_xml_get_boolean (GladeXmlNode * node, const gchar *name, gboolean _default);
gboolean glade_xml_get_boolean (GladeXmlNode *node, const gchar *name, gboolean _default);
void glade_xml_set_value (GladeXmlNode * node_in, const gchar *name, const gchar *val);
void glade_xml_set_value (GladeXmlNode *node_in, const gchar *name, const gchar *val);
/* Properties */
gchar * glade_xml_get_property_string_required (GladeXmlNode *node_in, const gchar *name, const gchar *xtra);
gchar * glade_xml_get_property_string (GladeXmlNode *node_in, const gchar *name);
gchar *glade_xml_get_property_string_required (GladeXmlNode *node_in, const gchar *name, const gchar *xtra);
gchar *glade_xml_get_property_string (GladeXmlNode *node_in, const gchar *name);
gboolean glade_xml_get_property_boolean (GladeXmlNode *node_in, const gchar *name, gboolean _default);
gdouble glade_xml_get_property_double (GladeXmlNode *node_in, const gchar *name, gdouble _default);
gint glade_xml_get_property_int (GladeXmlNode *node_in, const gchar *name, gint _default);
......@@ -229,14 +229,14 @@ void glade_xml_node_delete (GladeXmlNode *node);
GladeXmlNode * glade_xml_node_get_children (GladeXmlNode *node);
GladeXmlNode * glade_xml_node_get_parent (GladeXmlNode *node_in);
GladeXmlNode * glade_xml_node_next (GladeXmlNode *node_in);
gboolean glade_xml_node_verify (GladeXmlNode * node_in, const gchar *name);
gboolean glade_xml_node_verify (GladeXmlNode *node_in, const gchar *name);
gboolean glade_xml_node_verify_silent (GladeXmlNode *node_in, const gchar *name);
const gchar * glade_xml_node_get_name (GladeXmlNode *node_in);
void glade_xml_node_append_child (GladeXmlNode * node, GladeXmlNode * child);
void glade_xml_node_append_child (GladeXmlNode * node, GladeXmlNode *child);
void glade_xml_node_remove (GladeXmlNode *node_in);
gboolean glade_xml_node_is_comment (GladeXmlNode *node_in);
GladeXmlNode * glade_xml_node_next_with_comments (GladeXmlNode *node_in);
GladeXmlNode * glade_xml_node_prev_with_comments (GladeXmlNode * node_in);
GladeXmlNode * glade_xml_node_prev_with_comments (GladeXmlNode *node_in);
GladeXmlNode * glade_xml_node_get_children_with_comments (GladeXmlNode *node);
GladeXmlNode * glade_xml_node_add_prev_sibling (GladeXmlNode *node, GladeXmlNode *new_node);
GladeXmlNode * glade_xml_node_add_next_sibling (GladeXmlNode *node, GladeXmlNode *new_node);
......
......@@ -58,8 +58,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
void
glade_gtk_action_group_add_child (GladeWidgetAdaptor * adaptor,
GObject * container, GObject * child)
glade_gtk_action_group_add_child (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (GTK_IS_ACTION (child))
......@@ -83,8 +84,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
void
glade_gtk_action_group_remove_child (GladeWidgetAdaptor * adaptor,
GObject * container, GObject * child)
glade_gtk_action_group_remove_child (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *child)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (GTK_IS_ACTION (child))
......@@ -109,17 +111,18 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
void
glade_gtk_action_group_replace_child (GladeWidgetAdaptor * adaptor,
GObject * container,
GObject * current, GObject * new_action)
glade_gtk_action_group_replace_child (GladeWidgetAdaptor *adaptor,
GObject *container,
GObject *current,
GObject *new_action)
{
glade_gtk_action_group_remove_child (adaptor, container, current);
glade_gtk_action_group_add_child (adaptor, container, new_action);
}
GList *
glade_gtk_action_group_get_children (GladeWidgetAdaptor * adaptor,
GObject * container)
glade_gtk_action_group_get_children (GladeWidgetAdaptor *adaptor,
GObject *container)
{
GladeWidget *ggroup = glade_widget_get_from_gobject (container);
GList *actions = g_object_get_data (G_OBJECT (ggroup), "glade-actions");
......@@ -129,8 +132,9 @@ glade_gtk_action_group_get_children (GladeWidgetAdaptor * adaptor,
void
glade_gtk_action_group_read_child (GladeWidgetAdaptor * adaptor,
GladeWidget * widget, GladeXmlNode * node)
glade_gtk_action_group_read_child (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlNode *node)
{
GladeXmlNode *widget_node;
GladeWidget *child_widget;
......@@ -155,10 +159,10 @@ glade_gtk_action_group_read_child (GladeWidgetAdaptor * adaptor,
void
glade_gtk_action_group_write_child (GladeWidgetAdaptor * adaptor,
GladeWidget * widget,
GladeXmlContext * context,
GladeXmlNode * node)
glade_gtk_action_group_write_child (GladeWidgetAdaptor *adaptor,
GladeWidget *widget,
GladeXmlContext *context,
GladeXmlNode *node)
{
GladeXmlNode *child_node;
......
......@@ -30,8 +30,9 @@
#include "glade-recent-action-editor.h"
void
glade_gtk_action_post_create (GladeWidgetAdaptor * adaptor,
GObject * object, GladeCreateReason reason)
glade_gtk_action_post_create (GladeWidgetAdaptor *adaptor,
GObject *object,
GladeCreateReason reason)
{
GladeWidget *gwidget = glade_widget_get_from_gobject (object);
......@@ -51,7 +52,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
GladeEditable *
glade_gtk_action_create_editable (GladeWidgetAdaptor * adaptor,
glade_gtk_action_create_editable (GladeWidgetAdaptor *adaptor,
GladeEditorPageType type)
{
GladeEditable *editable;
......
......@@ -43,7 +43,7 @@ glade_gtk_app_chooser_button_post_create (GladeWidgetAdaptor *adaptor,
}
GladeEditable *
glade_gtk_app_chooser_button_create_editable (GladeWidgetAdaptor * adaptor,
glade_gtk_app_chooser_button_create_editable (GladeWidgetAdaptor *adaptor,
GladeEditorPageType type)
{
if (type == GLADE_PAGE_GENERAL)
......
......@@ -28,7 +28,7 @@
#include "glade-app-chooser-widget-editor.h"
GladeEditable *
glade_gtk_app_chooser_widget_create_editable (GladeWidgetAdaptor * adaptor,
glade_gtk_app_chooser_widget_create_editable (GladeWidgetAdaptor *adaptor,
GladeEditorPageType type)
{
if (type == GLADE_PAGE_GENERAL)
......
......@@ -26,9 +26,9 @@
#include <gladeui/glade.h>
static void
glade_gtk_assistant_append_new_page (GladeWidget * parent,
GladeProject * project,
const gchar * label,
glade_gtk_assistant_append_new_page (GladeWidget *parent,
GladeProject *project,
const gchar *label,
GtkAssistantPageType type)
{
static GladeWidgetAdaptor *adaptor = NULL;
......@@ -55,7 +55,7 @@ glade_gtk_assistant_append_new_page (GladeWidget * parent,
update its navigation buttons!
*/
static void
glade_gtk_assistant_update_page_type (GtkAssistant * assistant)
glade_gtk_assistant_update_page_type (GtkAssistant *assistant)
{
gint i, current, pages;
GtkWidget *page;
......@@ -92,7 +92,7 @@ glade_gtk_assistant_update_page_type (GtkAssistant * assistant)
}
static gint
glade_gtk_assistant_get_page (GtkAssistant * assistant, GtkWidget * page)
glade_gtk_assistant_get_page (GtkAssistant *assistant, GtkWidget *page)
{
gint i, pages = gtk_assistant_get_n_pages (assistant);
......@@ -104,7 +104,7 @@ glade_gtk_assistant_get_page (GtkAssistant * assistant, GtkWidget * page)
}
static void
glade_gtk_assistant_update_position (GtkAssistant * assistant)
glade_gtk_assistant_update_position (GtkAssistant *assistant)
{
gint i, pages = gtk_assistant_get_n_pages (assistant);