[brasero] Fix use of functions that were only in brasero not in nautilus extension
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix use of functions that were only in brasero not in nautilus extension
- Date: Wed, 24 Jun 2009 07:30:08 +0000 (UTC)
commit e1b48fdfc2f77666f8a9f00e2a1f87770b6a700e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Jun 23 21:21:13 2009 +0200
Fix use of functions that were only in brasero not in nautilus extension
src/brasero-project-name.c | 27 +++++++++++----------------
1 files changed, 11 insertions(+), 16 deletions(-)
---
diff --git a/src/brasero-project-name.c b/src/brasero-project-name.c
index df280fe..82e1baf 100644
--- a/src/brasero-project-name.c
+++ b/src/brasero-project-name.c
@@ -29,6 +29,8 @@
#include <gtk/gtk.h>
+#include "brasero-misc.h"
+
#include "brasero-medium.h"
#include "brasero-volume.h"
@@ -68,22 +70,15 @@ static void
brasero_project_name_data_icon_error (BraseroProjectName *project,
GError *error)
{
- if (error) {
- brasero_app_alert (brasero_app_get_default (),
- /* Translators: this is a picture not
- * a disc image */
- C_("picture", "Please select another image."),
- error->message,
- GTK_MESSAGE_ERROR);
- }
- else {
- brasero_app_alert (brasero_app_get_default (),
- /* Translators: this is a picture not
- * a disc image */
- C_("picture", "Please select another image."),
- _("Unknown error"),
- GTK_MESSAGE_ERROR);
- }
+ GtkWidget *toplevel;
+
+ toplevel = gtk_widget_get_toplevel (GTK_WIDGET (project));
+ brasero_utils_message_dialog (toplevel,
+ /* Translators: this is a picture not
+ * a disc image */
+ C_("picture", "Please select another image."),
+ error? error->message:_("Unknown error"),
+ GTK_MESSAGE_ERROR);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]