diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
commit | 5563da141e1fd0474f1eeedb967209c55227abae (patch) | |
tree | 79edb6566aecd22050117f9728b17e40156fd093 /src/main.c | |
parent | 4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff) |
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).
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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)); |