aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 20:53:29 -0500
committerTed Gould <ted@canonical.com>2009-08-26 20:53:29 -0500
commit6af9df41572d52b6115980ac2a1a98a74a71f9f1 (patch)
tree44cffcfbc66db1b6690e00643c05255e1be5c656
parent1077ceea42e73c4c9ef0f368913f18a9a3b092f8 (diff)
downloadayatana-indicator-messages-6af9df41572d52b6115980ac2a1a98a74a71f9f1.tar.gz
ayatana-indicator-messages-6af9df41572d52b6115980ac2a1a98a74a71f9f1.tar.bz2
ayatana-indicator-messages-6af9df41572d52b6115980ac2a1a98a74a71f9f1.zip
This stuff is crashing big time now. Not sure why it worked before, but not going to look into it now.
-rw-r--r--src/launcher-menu-item.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c
index 6678cc5..822196b 100644
--- a/src/launcher-menu-item.c
+++ b/src/launcher-menu-item.c
@@ -160,23 +160,12 @@ activate_cb (LauncherMenuItem * self, gpointer data)
LauncherMenuItemPrivate * priv = LAUNCHER_MENU_ITEM_GET_PRIVATE(self);
g_return_if_fail(priv->appinfo != NULL);
- /* This should manage the X stuff for us */
- GdkAppLaunchContext * context = gdk_app_launch_context_new();
-
- /* Using the current time as we don't have the event
- time as that's not sent across the bus */
- GTimeVal time;
- g_get_current_time(&time);
- gdk_app_launch_context_set_timestamp(context, time.tv_usec / 1000);
-
GError * error = NULL;
- if (!g_app_info_launch(priv->appinfo, NULL, G_APP_LAUNCH_CONTEXT(context), &error)) {
+ if (!g_app_info_launch(priv->appinfo, NULL, NULL, &error)) {
g_warning("Application failed to launch '%s' because: %s", launcher_menu_item_get_name(self), error->message);
g_error_free(error);
}
- g_object_unref(G_OBJECT(context));
-
return;
}