[gnome-settings-daemon] automount: That dialog was an orphan anyway!
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] automount: That dialog was an orphan anyway!
- Date: Sat, 24 Sep 2011 00:52:21 +0000 (UTC)
commit 1610dc9fc519d24265a36e6bd15c2cadcccd668a
Author: Bastien Nocera <hadess hadess net>
Date: Sat Sep 24 01:07:21 2011 +0100
automount: That dialog was an orphan anyway!
Never had a parent, so no need to have one as a parameter.
plugins/automount/gsd-automount-manager.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/plugins/automount/gsd-automount-manager.c b/plugins/automount/gsd-automount-manager.c
index e2e29f4..1a13f17 100644
--- a/plugins/automount/gsd-automount-manager.c
+++ b/plugins/automount/gsd-automount-manager.c
@@ -58,12 +58,11 @@ G_DEFINE_TYPE (GsdAutomountManager, gsd_automount_manager, G_TYPE_OBJECT)
static GtkDialog *
show_error_dialog (const char *primary_text,
- const char *secondary_text,
- GtkWindow *parent)
+ const char *secondary_text)
{
GtkWidget *dialog;
- dialog = gtk_message_dialog_new (parent,
+ dialog = gtk_message_dialog_new (NULL,
0,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
@@ -152,8 +151,7 @@ volume_mount_cb (GObject *source_object,
primary = g_strdup_printf (_("Unable to mount %s"), name);
g_free (name);
show_error_dialog (primary,
- error->message,
- NULL);
+ error->message);
g_free (primary);
}
g_error_free (error);
@@ -265,11 +263,10 @@ autorun_show_window (GMount *mount, gpointer user_data)
name = g_mount_get_name (mount);
primary = g_strdup_printf (_("Unable to open a folder for %s"), name);
g_free (name);
- show_error_dialog (primary,
- error->message,
- NULL);
+ show_error_dialog (primary,
+ error->message);
g_free (primary);
- g_error_free (error);
+ g_error_free (error);
}
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]