diff options
author | Ted Gould <ted@gould.cx> | 2013-08-27 14:02:46 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-27 14:02:46 +0000 |
commit | 6f3d6ce8f7cfafb350518c41ce4e9b7f69a597b2 (patch) | |
tree | 34ee27c492047081e55b29fe3c6076b8e69c2000 /src | |
parent | 8c8e6d342f5234b93c57a7576b50303ed4938317 (diff) | |
parent | d355442ae1233984a6051cc1e259e7cfe15619d3 (diff) | |
download | ayatana-indicator-messages-6f3d6ce8f7cfafb350518c41ce4e9b7f69a597b2.tar.gz ayatana-indicator-messages-6f3d6ce8f7cfafb350518c41ce4e9b7f69a597b2.tar.bz2 ayatana-indicator-messages-6f3d6ce8f7cfafb350518c41ce4e9b7f69a597b2.zip |
Remove unused and slightly used dependencies.
Approved by Charles Kerr, PS Jenkins bot.
Diffstat (limited to 'src')
-rw-r--r-- | src/app-section.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/app-section.c b/src/app-section.c index a741172..1a475f4 100644 --- a/src/app-section.c +++ b/src/app-section.c @@ -25,11 +25,10 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "config.h" #endif -#include <gdk/gdk.h> #include <glib/gi18n.h> #include <gio/gdesktopappinfo.h> #include <gio/gio.h> -#include <libindicator/indicator-desktop-shortcuts.h> +#include "indicator-desktop-shortcuts.h" #include "app-section.h" #include "dbus-data.h" #include "gmenuutils.h" @@ -290,17 +289,6 @@ app_section_finalize (GObject *object) G_OBJECT_CLASS (app_section_parent_class)->dispose (object); } -static GAppLaunchContext * -get_launch_context (guint32 timestamp) -{ - GdkDisplay *display = gdk_display_get_default(); - GdkAppLaunchContext *launch_context = gdk_display_get_app_launch_context (display); - - gdk_app_launch_context_set_timestamp (launch_context, timestamp); - - return G_APP_LAUNCH_CONTEXT (launch_context); -} - /* Respond to one of the shortcuts getting clicked on. */ static void nick_activate_cb (GSimpleAction *action, @@ -526,16 +514,13 @@ activate_cb (GSimpleAction *action, AppSection * mi = APP_SECTION (userdata); AppSectionPrivate * priv = mi->priv; GError *error = NULL; - GAppLaunchContext *launch_context = get_launch_context (g_variant_get_uint32 (param)); - if (!g_app_info_launch (G_APP_INFO (priv->appinfo), NULL, launch_context, &error)) { + if (!g_app_info_launch (G_APP_INFO (priv->appinfo), NULL, NULL, &error)) { g_warning("Unable to execute application for desktop file '%s': %s", g_desktop_app_info_get_filename (priv->appinfo), error->message); g_error_free (error); } - - g_object_unref (launch_context); } static void |