Commit bc939d5f authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

* ALL SOURCE FILES: Removed 8-space indentation, reformatted all code with:

	indent   \
	--braces-after-if-line   \
	--case-brace-indentation0   \
	--case-indentation2   \
	--braces-after-struct-decl-line   \
	--line-length80   --no-tabs  \
	--dont-line-up-parentheses   \
	--continuation-indentation4 \
	--continue-at-parentheses  \
	--honour-newlines  --tab-size8  --indent-level2 -nbbo
parent 7608035b
......@@ -12,6 +12,18 @@
(i.e. from ${prefix}/share/glade3/catalogs instead of ${prefix}/share/glade/catalogs
which is the new path).
* ALL SOURCE FILES: Removed 8-space indentation, reformatted all code with:
indent \
--braces-after-if-line \
--case-brace-indentation0 \
--case-indentation2 \
--braces-after-struct-decl-line \
--line-length80 --no-tabs \
--dont-line-up-parentheses \
--continuation-indentation4 \
--continue-at-parentheses \
--honour-newlines --tab-size8 --indent-level2 -nbbo
2010-12-29 Javier Jardón <jjardon@gnome.org>
* configure.ac: Use upstream gettext
......
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* glade-clipboard.c - An object for handling Cut/Copy/Paste.
*
......@@ -31,73 +30,70 @@
gboolean
glade_single_object_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
glade_single_object_accumulator (GSignalInvocationHint * ihint,
GValue * return_accu,
const GValue * handler_return, gpointer dummy)
{
GObject *object = g_value_get_object (handler_return);
g_value_set_object (return_accu, object);
return (object == NULL);
GObject *object = g_value_get_object (handler_return);
g_value_set_object (return_accu, object);
return (object == NULL);
}
gboolean
glade_integer_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
glade_integer_handled_accumulator (GSignalInvocationHint * ihint,
GValue * return_accu,
const GValue * handler_return,
gpointer dummy)
{
gboolean continue_emission;
gint retval;
retval = g_value_get_int (handler_return);
g_value_set_int (return_accu, retval >> 1);
continue_emission = !(retval & 1);
return continue_emission;
gboolean continue_emission;
gint retval;
retval = g_value_get_int (handler_return);
g_value_set_int (return_accu, retval >> 1);
continue_emission = !(retval & 1);
return continue_emission;
}
/* From gtkmain.c */
gboolean
glade_boolean_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
glade_boolean_handled_accumulator (GSignalInvocationHint * ihint,
GValue * return_accu,
const GValue * handler_return,
gpointer dummy)
{
gboolean continue_emission;
gboolean signal_handled;
signal_handled = g_value_get_boolean (handler_return);
g_value_set_boolean (return_accu, signal_handled);
continue_emission = !signal_handled;
return continue_emission;
gboolean continue_emission;
gboolean signal_handled;
signal_handled = g_value_get_boolean (handler_return);
g_value_set_boolean (return_accu, signal_handled);
continue_emission = !signal_handled;
return continue_emission;
}
gboolean
glade_string_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
glade_string_accumulator (GSignalInvocationHint * ihint,
GValue * return_accu,
const GValue * handler_return, gpointer dummy)
{
const gchar *handler_str;
g_free ((void *)g_value_get_string (return_accu));
handler_str = g_value_get_string (handler_return);
g_value_set_string (return_accu, handler_str);
return (handler_str == NULL);
const gchar *handler_str;
g_free ((void *) g_value_get_string (return_accu));
handler_str = g_value_get_string (handler_return);
g_value_set_string (return_accu, handler_str);
return (handler_str == NULL);
}
gboolean
glade_stop_emission_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
glade_stop_emission_accumulator (GSignalInvocationHint * ihint,
GValue * return_accu,
const GValue * handler_return, gpointer dummy)
{
g_value_copy (handler_return, return_accu);
return FALSE;
g_value_copy (handler_return, return_accu);
return FALSE;
}
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_ACCUMULATORS_H__
#define __GLADE_ACCUMULATORS_H__
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2001 Ximian, Inc.
*
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2006 Juan Pablo Ugarte.
*
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_BUILTINS_H__
#define __GLADE_BUILTINS_H__
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2001 Ximian, Inc.
* Copyright (C) 2004 Imendio AB
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2010 Tristan Van Berkom.
*
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_CLIPBOARD_H__
#define __GLADE_CLIPBOARD_H__
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_COMMAND_H__
#define __GLADE_COMMAND_H__
......
This diff is collapsed.
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __GLADE_CURSOR_H__
#define __GLADE_CURSOR_H__
......
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2003 Joaquin Cuenca Abela
*
......@@ -36,21 +35,20 @@
static void
glade_log_handler (const char *domain,
GLogLevelFlags level,
const char *message,
gpointer data)
GLogLevelFlags level, const char *message, gpointer data)
{
static volatile int want_breakpoint = 0;
static volatile int want_breakpoint = 0;
g_log_default_handler (domain, level, message, data);
if (want_breakpoint && ((level & (G_LOG_LEVEL_CRITICAL /* | G_LOG_LEVEL_WARNING */)) != 0))
G_BREAKPOINT ();
g_log_default_handler (domain, level, message, data);
if (want_breakpoint &&
((level & (G_LOG_LEVEL_CRITICAL /* | G_LOG_LEVEL_WARNING */ )) != 0))
G_BREAKPOINT ();
}
static void
glade_set_log_handler (const char *domain)
{
g_log_set_handler (domain, G_LOG_LEVEL_MASK, glade_log_handler, NULL);
g_log_set_handler (domain, G_LOG_LEVEL_MASK, glade_log_handler, NULL);
}
/**
......@@ -62,10 +60,9 @@ glade_set_log_handler (const char *domain)
void
glade_setup_log_handlers ()
{
glade_set_log_handler ("");
glade_set_log_handler ("GLib");
glade_set_log_handler ("GLib-GObject");
glade_set_log_handler ("Gtk");
glade_set_log_handler ("Gdk");
glade_set_log_handler ("");
glade_set_log_handler ("GLib");
glade_set_log_handler ("GLib-GObject");
glade_set_log_handler ("Gtk");
glade_set_log_handler ("Gdk");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment