| 727 |
727 |
| 728 /* move the entire directory to new location */ |
728 /* move the entire directory to new location */ |
| 729 g_rename(purple_theme_get_dir(theme), theme_dest); |
729 g_rename(purple_theme_get_dir(theme), theme_dest); |
| 730 |
730 |
| 731 g_free(theme_dest); |
731 g_free(theme_dest); |
| 732 g_remove(destdir); |
732 if (g_remove(destdir) != 0) { |
| |
733 purple_debug_error("gtkprefs", |
| |
734 "couldn't remove temp (dest) path\n"); |
| |
735 } |
| 733 g_object_unref(theme); |
736 g_object_unref(theme); |
| 734 |
737 |
| 735 prefs_themes_refresh(); |
738 prefs_themes_refresh(); |
| 736 |
739 |
| 737 } else { |
740 } else { |