make theme installation from GIO-supported sources work (including drag
2008-07-29 Jens Granseuer <jensgr@gmx.net> * appearance-main.c: (main): * appearance-themes.c: (theme_drag_data_received_cb): * theme-installer.c: (gnome_theme_install), (gnome_theme_installer_run): * theme-installer.h: make theme installation from GIO-supported sources work (including drag and drop) (bug #545335) svn path=/trunk/; revision=8827
This commit is contained in:
parent
ff258486a6
commit
7a1896a34b
5 changed files with 36 additions and 42 deletions
|
@ -142,9 +142,12 @@ main (int argc, char **argv)
|
|||
GNOME_PARAM_GOPTION_CONTEXT, option_context,
|
||||
NULL);
|
||||
|
||||
if (install_filename != NULL)
|
||||
gnome_theme_install_from_uri (install_filename, NULL);
|
||||
g_free (install_filename);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue