Use libunique in the shell to have a single-instance shell

This requires a slight API meaning change in libslab:
create_main_window() doesn't run gtk_main() anymore. This wasn't a good
thing anyway.
This commit is contained in:
Vincent Untz 2009-08-08 15:07:16 +02:00
parent aefc22db89
commit 915b55e3fb
3 changed files with 61 additions and 7 deletions

View file

@ -138,7 +138,6 @@ create_main_window (AppShellData * app_data, const gchar * app_name, const gchar
gtk_window_set_position (GTK_WINDOW (app_data->main_app), GTK_WIN_POS_CENTER);
if (!hidden)
show_shell (app_data);
gtk_main ();
return TRUE;
}