From 9281506c5b264e81a4610a4f6a20f2a42eab207b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 25 Nov 2010 12:26:07 +0100 Subject: autorun: move nautilus_launch_application_for_mount () Also add the parent window parameter to it, so that we get startup notification. --- src/nautilus-x-content-bar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nautilus-x-content-bar.c') diff --git a/src/nautilus-x-content-bar.c b/src/nautilus-x-content-bar.c index f70d8181d..d51d6e175 100644 --- a/src/nautilus-x-content-bar.c +++ b/src/nautilus-x-content-bar.c @@ -29,8 +29,8 @@ #include #include "nautilus-x-content-bar.h" -#include #include +#include #define NAUTILUS_X_CONTENT_BAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NAUTILUS_TYPE_X_CONTENT_BAR, NautilusXContentBarPrivate)) @@ -256,7 +256,8 @@ button_clicked_callback (GtkWidget *button, NautilusXContentBar *bar) default_app = g_app_info_get_default_for_type (bar->priv->x_content_type, FALSE); if (default_app != NULL) { - nautilus_autorun_launch_for_mount (bar->priv->mount, default_app); + nautilus_launch_application_for_mount (default_app, bar->priv->mount, + GTK_WINDOW (gtk_widget_get_toplevel (button))); g_object_unref (default_app); } } -- cgit v1.2.1