[gnac] Fixed a bug



commit c6db7612c67ab9d645ae589ae3fc39b0c1786366
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Tue Apr 5 10:30:12 2011 +0100

    Fixed a bug

 src/gnac-main.c |    6 +++---
 src/gnac-ui.c   |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnac-main.c b/src/gnac-main.c
index 9b17883..81f8814 100644
--- a/src/gnac-main.c
+++ b/src/gnac-main.c
@@ -601,9 +601,7 @@ gnac_on_converter_file_completed_cb(LibgnacConverter *converter,
     g_file_trash(file, NULL, &error);
     if (error)
     {
-      if (g_error_matches(error, 
-              G_IO_ERROR,
-              G_IO_ERROR_NOT_SUPPORTED)) 
+      if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
       {
         gint response;
         gchar *filename;
@@ -616,7 +614,9 @@ gnac_on_converter_file_completed_cb(LibgnacConverter *converter,
           return;
         }
 
+        gdk_threads_enter();
         response = gnac_ui_show_error_trash(filename);
+        gdk_threads_leave();
         g_free(filename);
 
         switch (response) {
diff --git a/src/gnac-ui.c b/src/gnac-ui.c
index ddf1aa5..720b6bd 100644
--- a/src/gnac-ui.c
+++ b/src/gnac-ui.c
@@ -1524,7 +1524,7 @@ gnac_ui_show_error_trash(const gchar *filename)
 
   dialog = gtk_message_dialog_new(
       GTK_WINDOW(main_window),
-      GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+      GTK_DIALOG_DESTROY_WITH_PARENT,
       GTK_MESSAGE_QUESTION,
       GTK_BUTTONS_CANCEL,
       _("Failed to move the file to the Trash. Delete it permanently?"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]