~ted/indicator-messages/menu-update

« back to all changes in this revision

Viewing changes to src/launcher-menu-item.c

  • Committer: Ted Gould
  • Date: 2009-08-27 01:53:29 UTC
  • Revision ID: ted@canonical.com-20090827015329-ooy6vnh2kt0y0681
This stuff is crashing big time now.  Not sure why it worked before, but not going to look into it now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        LauncherMenuItemPrivate * priv = LAUNCHER_MENU_ITEM_GET_PRIVATE(self);
161
161
        g_return_if_fail(priv->appinfo != NULL);
162
162
 
163
 
        /* This should manage the X stuff for us */
164
 
        GdkAppLaunchContext * context = gdk_app_launch_context_new();
165
 
 
166
 
        /* Using the current time as we don't have the event
167
 
           time as that's not sent across the bus */
168
 
        GTimeVal time;
169
 
        g_get_current_time(&time);
170
 
        gdk_app_launch_context_set_timestamp(context, time.tv_usec / 1000);
171
 
 
172
163
        GError * error = NULL;
173
 
        if (!g_app_info_launch(priv->appinfo, NULL, G_APP_LAUNCH_CONTEXT(context), &error)) {
 
164
        if (!g_app_info_launch(priv->appinfo, NULL, NULL, &error)) {
174
165
                g_warning("Application failed to launch '%s' because: %s", launcher_menu_item_get_name(self), error->message);
175
166
                g_error_free(error);
176
167
        }
177
168
 
178
 
        g_object_unref(G_OBJECT(context));
179
 
 
180
169
        return;
181
170
}
182
171