gnome-control-center r8460 - trunk/capplets/appearance
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8460 - trunk/capplets/appearance
- Date: Sat, 9 Feb 2008 14:35:12 +0000 (GMT)
Author: jensg
Date: Sat Feb 9 14:35:12 2008
New Revision: 8460
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8460&view=rev
Log:
2008-02-09 Jens Granseuer <jensgr gmx net>
* theme-installer.c: (gnome_theme_installer_run): make sure we're done
with the dialog before we destroy it (bug #515414)
Modified:
trunk/capplets/appearance/ChangeLog
trunk/capplets/appearance/theme-installer.c
Modified: trunk/capplets/appearance/theme-installer.c
==============================================================================
--- trunk/capplets/appearance/theme-installer.c (original)
+++ trunk/capplets/appearance/theme-installer.c Sat Feb 9 14:35:12 2008
@@ -707,17 +707,19 @@
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
{
filename_selected = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
+
+ folder = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (dialog));
+ g_strlcpy (old_folder, folder, 255);
+ g_free (folder);
+
gtk_widget_destroy (dialog);
+
gnome_theme_install_from_uri (filename_selected, parent);
g_free (filename_selected);
}
else
gtk_widget_destroy (dialog);
- folder = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (dialog));
- g_strlcpy (old_folder, folder, 255);
- g_free (folder);
-
/*
* we're relying on the gnome theme info module to pick up changes
* to the themes so we don't need to update the model here
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]