2
* Copyright 2013 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Lars Uebernickel <lars.uebernickel@canonical.com>
20
#ifndef __IDO_ACTION_HELPER_H__
21
#define __IDO_ACTION_HELPER_H__
25
#define IDO_TYPE_ACTION_HELPER (ido_action_helper_get_type ())
26
#define IDO_ACTION_HELPER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), IDO_TYPE_ACTION_HELPER, IdoActionHelper))
27
#define IDO_IS_ACTION_HELPER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), IDO_TYPE_ACTION_HELPER))
29
typedef struct _IdoActionHelper IdoActionHelper;
31
GType ido_menu_item_get_type (void);
33
IdoActionHelper * ido_action_helper_new (GtkWidget *widget,
34
GActionGroup *action_group,
35
const gchar *action_name,
38
GtkWidget * ido_action_helper_get_widget (IdoActionHelper *helper);
40
GVariant * ido_action_helper_get_action_target (IdoActionHelper *helper);
42
void ido_action_helper_activate (IdoActionHelper *helper);