diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-11-25 12:26:07 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-11-25 12:26:07 +0100 |
commit | 9281506c5b264e81a4610a4f6a20f2a42eab207b (patch) | |
tree | dd356bd4bfb601309e6e95bbe3a730d5e091b60b /src/nautilus-x-content-bar.c | |
parent | 7c71b7f383ece8ad9be39fcb28b9377364a35cb3 (diff) | |
download | nautilus-9281506c5b264e81a4610a4f6a20f2a42eab207b.tar.gz |
autorun: move nautilus_launch_application_for_mount ()
Also add the parent window parameter to it, so that we get startup
notification.
Diffstat (limited to 'src/nautilus-x-content-bar.c')
-rw-r--r-- | src/nautilus-x-content-bar.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <string.h> #include "nautilus-x-content-bar.h" -#include <libnautilus-private/nautilus-autorun.h> #include <libnautilus-private/nautilus-icon-info.h> +#include <libnautilus-private/nautilus-program-choosing.h> #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); } } |