Fix build for the previous change
2008-07-28 Bastien Nocera <hadess@hadess.net> * theme-installer.c (cleanup_tmp_dir): * theme-util.c (theme_delete): Fix build for the previous change svn path=/trunk/; revision=8806
This commit is contained in:
parent
8ed8f4c9ce
commit
946ecfafb6
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-07-28 Bastien Nocera <hadess@hadess.net>
|
||||||
|
|
||||||
|
* theme-installer.c (cleanup_tmp_dir):
|
||||||
|
* theme-util.c (theme_delete): Fix build for the previous change
|
||||||
|
|
||||||
2008-07-28 Bastien Nocera <hadess@hadess.net>
|
2008-07-28 Bastien Nocera <hadess@hadess.net>
|
||||||
|
|
||||||
* theme-util.c:
|
* theme-util.c:
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <gio/gio.h>
|
#include <gio/gio.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
|
||||||
|
#include "capplet-util.h"
|
||||||
#include "file-transfer-dialog.h"
|
#include "file-transfer-dialog.h"
|
||||||
#include "theme-installer.h"
|
#include "theme-installer.h"
|
||||||
#include "theme-util.h"
|
#include "theme-util.h"
|
||||||
|
@ -57,7 +58,7 @@ cleanup_tmp_dir (GIOSchedulerJob *job,
|
||||||
GFile *directory;
|
GFile *directory;
|
||||||
|
|
||||||
directory = g_file_new_for_path (tmp_dir);
|
directory = g_file_new_for_path (tmp_dir);
|
||||||
file_delete_recursive (directory, NULL);
|
capplet_file_delete_recursive (directory, NULL);
|
||||||
g_object_unref (directory);
|
g_object_unref (directory);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -116,7 +116,7 @@ theme_delete (const gchar *name, ThemeType type)
|
||||||
dir = g_file_new_for_path (theme_dir);
|
dir = g_file_new_for_path (theme_dir);
|
||||||
g_free (theme_dir);
|
g_free (theme_dir);
|
||||||
|
|
||||||
if (!file_delete_recursive (dir, NULL)) {
|
if (!capplet_file_delete_recursive (dir, NULL)) {
|
||||||
GtkWidget *info_dialog = gtk_message_dialog_new (NULL,
|
GtkWidget *info_dialog = gtk_message_dialog_new (NULL,
|
||||||
GTK_DIALOG_MODAL,
|
GTK_DIALOG_MODAL,
|
||||||
GTK_MESSAGE_ERROR,
|
GTK_MESSAGE_ERROR,
|
||||||
|
|
Loading…
Add table
Reference in a new issue