From 5563da141e1fd0474f1eeedb967209c55227abae Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 25 Jan 2012 11:59:32 +0000 Subject: issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements). --- src/main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 329f421..aca0276 100644 --- a/src/main.c +++ b/src/main.c @@ -96,8 +96,9 @@ message_received_cb(UniqueApp * app G_GNUC_UNUSED, return res; } -static gint trg_libunique_init(TrgClient * client, int argc, - gchar * argv[], gchar ** args) +static gint +trg_libunique_init(TrgClient * client, int argc, + gchar * argv[], gchar ** args) { UniqueApp *app = unique_app_new_with_commands("uk.org.eth0.trg", NULL, "add", COMMAND_ADD, @@ -159,8 +160,8 @@ static gint trg_gtkapp_init(TrgClient * client, int argc, char *argv[]) #elif WIN32 -static gint trg_win32_init(TrgClient * client, int argc, char *argv[], - gchar ** args) +static gint +trg_win32_init(TrgClient * client, int argc, char *argv[], gchar ** args) { gchar *moddir = g_win32_get_package_installation_directory_of_module(NULL); @@ -186,8 +187,8 @@ static gint trg_win32_init(TrgClient * client, int argc, char *argv[], #else -static gint trg_simple_init(TrgClient * client, int argc, char *argv[], - gchar ** args) +static gint +trg_simple_init(TrgClient * client, int argc, char *argv[], gchar ** args) { TrgMainWindow *window = trg_main_window_new(client, should_be_minimised(argc, argv)); -- cgit v1.2.3