Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkactionable.h
Go to the documentation of this file.
1/*
2 * Copyright © 2012 Canonical Limited
3 *
4 * This library is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * licence or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Authors: Ryan Lortie <desrt@desrt.ca>
18 */
19
20#pragma once
21
22#include <glib-object.h>
23#include <gdk/gdk.h>
24
26
27#define GTK_TYPE_ACTIONABLE (gtk_actionable_get_type ())
28#define GTK_ACTIONABLE(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
29 GTK_TYPE_ACTIONABLE, GtkActionable))
30#define GTK_IS_ACTIONABLE(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
31 GTK_TYPE_ACTIONABLE))
32#define GTK_ACTIONABLE_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), \
33 GTK_TYPE_ACTIONABLE, GtkActionableInterface))
34
36typedef struct _GtkActionable GtkActionable;
37
39{
40 /*< private >*/
42
43 /*< public >*/
44
45 const char * (* get_action_name) (GtkActionable *actionable);
46 void (* set_action_name) (GtkActionable *actionable,
47 const char *action_name);
48 GVariant * (* get_action_target_value) (GtkActionable *actionable);
50 GVariant *target_value);
51};
52
55
60 const char *action_name);
61
66 GVariant *target_value);
67
70 const char *format_string,
71 ...);
72
75 const char *detailed_action_name);
76
78
80
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GDK_AVAILABLE_IN_ALL void gtk_actionable_set_action_name(GtkActionable *actionable, const char *action_name)
GDK_AVAILABLE_IN_ALL void gtk_actionable_set_detailed_action_name(GtkActionable *actionable, const char *detailed_action_name)
GDK_AVAILABLE_IN_ALL void gtk_actionable_set_action_target(GtkActionable *actionable, const char *format_string,...)
GDK_AVAILABLE_IN_ALL const char * gtk_actionable_get_action_name(GtkActionable *actionable)
GDK_AVAILABLE_IN_ALL GVariant * gtk_actionable_get_action_target_value(GtkActionable *actionable)
GDK_AVAILABLE_IN_ALL void gtk_actionable_set_action_target_value(GtkActionable *actionable, GVariant *target_value)
GDK_AVAILABLE_IN_ALL GType gtk_actionable_get_type(void) G_GNUC_CONST
struct _GtkActionable GtkActionable
gsize GType
Definition gtype.h:427
typedefG_BEGIN_DECLS struct _GVariant GVariant
Definition gvariant.h:36
void(* set_action_target_value)(GtkActionable *actionable, GVariant *target_value)
void(* set_action_name)(GtkActionable *actionable, const char *action_name)