diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-24 17:21:15 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-24 17:21:15 +0000 |
commit | 4d57ef2197461c450aaaf79cdbb31b256ae0e81e (patch) | |
tree | 3f7978c5efe071318fb7301114141d997a709ade /src/main.c | |
parent | dba44731b5864251f9da56b7d0c71f5b729b202a (diff) |
try to suspend sorting while model is updated
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -157,26 +157,8 @@ static gint trg_gtkapp_init(TrgClient * client, int argc, char *argv[]) return exitCode; } -#else - -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)); - trg_main_window_set_start_args(window, args); - auto_connect_if_required(window); - gtk_main(); - - return EXIT_SUCCESS; -} - -#endif - - -/* Win32 mailslots. I've implemented this in win32-mailslot.c */ +#elif WIN32 -#ifdef WIN32 static gint trg_win32_init(TrgClient * client, int argc, char *argv[], gchar ** args) { @@ -201,7 +183,26 @@ static gint trg_win32_init(TrgClient * client, int argc, char *argv[], return EXIT_SUCCESS; } + #else + +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)); + trg_main_window_set_start_args(window, args); + auto_connect_if_required(window); + gtk_main(); + + return EXIT_SUCCESS; +} + +#endif + +/* Win32 mailslots. I've implemented this in win32-mailslot.c */ + +#if !WIN32 static void trg_non_win32_init() { bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); |