static void _edit_contact_action (MnbPeoplePanel *panel, AnerleyItem *item) { MnbPeoplePanelPrivate *priv = GET_PRIVATE (panel); gchar *command_line; const gchar *uid; if (priv->panel_client) { uid = anerley_econtact_item_get_uid ((AnerleyEContactItem *)item); command_line = g_strdup_printf ("contacts --uid %s", uid); if (!mpl_panel_client_launch_application (priv->panel_client, command_line)) { g_warning (G_STRLOC ": Error launching contacts for uid: %s", uid); g_free (command_line); } else { g_free (command_line); if (priv->panel_client) mpl_panel_client_hide (priv->panel_client); } } }
static void launch_date_config (ClutterActor *actor, MnpWorldClock *clock) { MnpWorldClockPrivate *priv = GET_PRIVATE (clock); if (priv->panel_client) { mpl_panel_client_hide(priv->panel_client); mpl_panel_client_launch_application (priv->panel_client, "/usr/bin/gnome-control-center datetime"); } }
static void dawati_bt_shell_launch (DawatiBtShell *shell, const char *cmd) { DawatiBtShellPrivate *priv = GET_PRIVATE (shell); if (priv->panel_client) { if (mpl_panel_client_launch_application (priv->panel_client, cmd)) mpl_panel_client_hide (priv->panel_client); } else { g_spawn_command_line_async (cmd, NULL); } }