[gnome-control-center] Fix more parentless modal dialogs
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Fix more parentless modal dialogs
- Date: Mon, 24 Aug 2009 03:25:59 +0000 (UTC)
commit ed2fa035853cdae32fb475b611c1c5b6813bf09d
Author: William Jon McCann <jmccann redhat com>
Date: Sun Aug 23 23:22:59 2009 -0400
Fix more parentless modal dialogs
capplets/appearance/appearance-main.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c
index 369af02..081209a 100644
--- a/capplets/appearance/appearance-main.c
+++ b/capplets/appearance/appearance-main.c
@@ -159,13 +159,6 @@ main (int argc, char **argv)
if (!data)
return 1;
- if (install_filename != NULL) {
- GFile *inst = g_file_new_for_commandline_arg (install_filename);
- g_free (install_filename);
- gnome_theme_install (inst, NULL);
- g_object_unref (inst);
- }
-
/* init tabs */
themes_init (data);
style_init (data);
@@ -205,6 +198,13 @@ main (int argc, char **argv)
g_free (page_name);
}
+ if (install_filename != NULL) {
+ GFile *inst = g_file_new_for_commandline_arg (install_filename);
+ g_free (install_filename);
+ gnome_theme_install (inst, GTK_WINDOW (w));
+ g_object_unref (inst);
+ }
+
g_option_context_free (option_context);
/* start the mainloop */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]