~ubuntu-branches/ubuntu/wily/gpaste/wily

« back to all changes in this revision

Viewing changes to src/libgpaste/applet/gpaste-applet-settings.c

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2015-06-19 11:05:16 UTC
  • mfrom: (6.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20150619110516-h53wz9xi9i4k3smb
Tags: 3.16.2.1-1
* Imported Upstream version 3.16.2.1 (Closes: #789255)
* gpaste-applet does not need a manpage - upstream dropped it
* Build-Depends gtk >= 3.16
* Depends gnome-shell >= 3.16
* Major API changes, bump soname to 3 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *      This file is part of GPaste.
3
3
 *
4
 
 *      Copyright 2014 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
 
4
 *      Copyright 2014-2015 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
5
5
 *
6
6
 *      GPaste is free software: you can redistribute it and/or modify
7
7
 *      it under the terms of the GNU General Public License as published by
17
17
 *      along with GPaste.  If not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
 
20
 
#include "gpaste-applet-settings-private.h"
 
20
#include <gpaste-applet-settings.h>
21
21
 
22
 
#include <glib/gi18n-lib.h>
 
22
struct _GPasteAppletSettings
 
23
{
 
24
    GtkMenuItem parent_instance;
 
25
};
23
26
 
24
27
G_DEFINE_TYPE (GPasteAppletSettings, g_paste_applet_settings, GTK_TYPE_MENU_ITEM)
25
28
 
26
29
static void
27
30
g_paste_applet_settings_activate (GtkMenuItem *menu_item G_GNUC_UNUSED)
28
31
{
29
 
    g_spawn_command_line_async (PKGLIBEXECDIR "/gpaste-settings", NULL);
 
32
    g_paste_util_spawn ("Settings");
30
33
 
31
34
    GTK_MENU_ITEM_CLASS (g_paste_applet_settings_parent_class)->activate (menu_item);
32
35
}