respect the exit_on_close flag
svn path=/trunk/; revision=7186
This commit is contained in:
parent
908ab38dfa
commit
89ba6b4b3d
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-01-26 Scott Reeves <sreeves@novell.com>
|
||||
|
||||
* control-center.c: respect the exit_on_close flag
|
||||
|
||||
2007-01-26 Rodrigo Moya <rodrigo@gnome-db.org>
|
||||
|
||||
* control-center.schemas.in: added 'Change theme' and 'Set preferred
|
||||
|
|
|
@ -102,7 +102,12 @@ handle_static_action_clicked (Tile * tile, TileEvent * event, gpointer data)
|
|||
|
||||
temp = g_strdup_printf("%s%s", app_data->gconf_prefix, EXIT_SHELL_ON_STATIC_ACTION);
|
||||
if (get_slab_gconf_bool(temp))
|
||||
gtk_main_quit ();
|
||||
{
|
||||
if (app_data->exit_on_close)
|
||||
gtk_main_quit ();
|
||||
else
|
||||
hide_shell (app_data);
|
||||
}
|
||||
g_free (temp);
|
||||
}
|
||||
|
||||
|
@ -136,7 +141,7 @@ main (int argc, char *argv[])
|
|||
|
||||
startup_id = g_strdup (g_getenv (DESKTOP_STARTUP_ID));
|
||||
program = gnome_program_init ("GNOME Control Center", "0.1", LIBGNOMEUI_MODULE,
|
||||
argc, argv, NULL, NULL);
|
||||
argc, argv, NULL, NULL);
|
||||
|
||||
if (apss_already_running (argc, argv, &bonobo_app, "GNOME-NLD-ControlCenter", startup_id))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue