Updated Spanish translation
[anjuta-git-plugin.git] / libegg / menu / egg-combo-action.h
blobaf2d2b8c7617a4602d4f1217453e33e6dff591dd
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* egg-combo-action widget
5 * Copyright (C) Naba Kumar <naba@gnome.org>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
22 #ifndef EGG_COMBO_ACTION_H
23 #define EGG_COMBO_ACTION_H
25 #include <gtk/gtk.h>
26 #include <libegg/menu/egg-entry-action.h>
28 #define EGG_TYPE_COMBO_ACTION (egg_combo_action_get_type ())
29 #define EGG_COMBO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_COMBO_ACTION, EggComboAction))
30 #define EGG_COMBO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_COMBO_ACTION, EggComboActionClass))
31 #define EGG_IS_COMBO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_COMBO_ACTION))
32 #define EGG_IS_COMBO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EGG_TYPE_COMBO_ACTION))
33 #define EGG_COMBO_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EGG_TYPE_COMBO_ACTION, EggComboActionClass))
35 typedef struct _EggComboAction EggComboAction;
36 typedef struct _EggComboActionClass EggComboActionClass;
37 typedef struct _EggComboActionPriv EggComboActionPriv;
39 struct _EggComboAction
41 GtkAction parent;
42 EggComboActionPriv *priv;
45 struct _EggComboActionClass
47 GtkActionClass parent_class;
48 void (*changed) (EggComboAction *combo_action, GtkTreeIter *active_iter);
51 GType egg_combo_action_get_type (void);
52 void egg_combo_action_set_model (EggComboAction *action, GtkTreeModel *model);
53 GtkTreeModel* egg_combo_action_get_model (EggComboAction *action);
54 gboolean egg_combo_action_get_active_iter (EggComboAction *action,
55 GtkTreeIter *iter);
56 void egg_combo_action_set_active_iter (EggComboAction *action,
57 GtkTreeIter* iter);
59 #endif