~ubuntu-branches/ubuntu/natty/gtkhtml3.14/natty

« back to all changes in this revision

Viewing changes to components/html-editor/gi-combo-box.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-02 11:18:16 UTC
  • mfrom: (1.2.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602111816-t7rv5r7z58i0lkb4
Tags: 1:3.27.2-0ubuntu1
* New upstream version
* debian/rules:
  - updated library version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
 
/*
3
 
 * gtk-combo-box.h - a customizable combobox
4
 
 * Copyright 2000, 2001, Ximian, Inc.
5
 
 *
6
 
 * Authors:
7
 
 *   Miguel de Icaza <miguel@ximian.com>
8
 
 *
9
 
 * This library is free software; you can redistribute it and/or
10
 
 * modify it under the terms of the GNU Library General Public
11
 
 * License, version 2, as published by the Free Software Foundation.
12
 
 *
13
 
 * This library is distributed in the hope that it will be useful, but
14
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
 * Library General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Library General Public
19
 
 * License along with this library; if not, write to the Free Software
20
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
 
 * 02110-1301, USA.
22
 
 */
23
 
 
24
 
#ifndef GI_COMBO_BOX_H
25
 
#define GI_COMBO_BOX_H
26
 
 
27
 
#include <gtk/gtk.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define GI_COMBO_BOX_TYPE          (gi_combo_box_get_type())
32
 
#define GI_COMBO_BOX(obj)           G_TYPE_CHECK_INSTANCE_CAST (obj, gi_combo_box_get_type (), GiComboBox)
33
 
#define GI_COMBO_BOX_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, gi_combo_box_get_type (), GiComboBoxClass)
34
 
#define GI_IS_COMBO_BOX(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, gi_combo_box_get_type ())
35
 
 
36
 
typedef struct _GiComboBox         GiComboBox;
37
 
typedef struct _GiComboBoxPrivate GiComboBoxPrivate;
38
 
typedef struct _GiComboBoxClass   GiComboBoxClass;
39
 
 
40
 
struct _GiComboBox {
41
 
        GtkHBox hbox;
42
 
        GiComboBoxPrivate *priv;
43
 
};
44
 
 
45
 
struct _GiComboBoxClass {
46
 
        GtkHBoxClass parent_class;
47
 
 
48
 
        GtkWidget *(*pop_down_widget) (GiComboBox *cbox);
49
 
 
50
 
        /*
51
 
         * invoked when the popup has been hidden, if the signal
52
 
         * returns TRUE, it means it should be killed from the
53
 
         */
54
 
        gboolean  *(*pop_down_done)   (GiComboBox *cbox, GtkWidget *);
55
 
 
56
 
        /*
57
 
         * Notification signals.
58
 
         */
59
 
        void      (*pre_pop_down)     (GiComboBox *cbox);
60
 
        void      (*post_pop_hide)    (GiComboBox *cbox);
61
 
};
62
 
 
63
 
GType    gi_combo_box_get_type    (void);
64
 
void       gi_combo_box_construct   (GiComboBox *combo_box,
65
 
                                      GtkWidget   *display_widget,
66
 
                                      GtkWidget   *optional_pop_down_widget);
67
 
void       gi_combo_box_get_pos     (GiComboBox *combo_box, int *x, int *y);
68
 
 
69
 
GtkWidget *gi_combo_box_new         (GtkWidget *display_widget,
70
 
                                      GtkWidget *optional_pop_down_widget);
71
 
void       gi_combo_box_popup_hide  (GiComboBox *combo_box);
72
 
 
73
 
void       gi_combo_box_set_display (GiComboBox *combo_box,
74
 
                                      GtkWidget *display_widget);
75
 
 
76
 
void       gi_combo_box_set_title   (GiComboBox *combo,
77
 
                                      const gchar *title);
78
 
 
79
 
void       gi_combo_box_set_tearable        (GiComboBox *combo,
80
 
                                              gboolean tearable);
81
 
void       gi_combo_box_set_arrow_sensitive (GiComboBox *combo,
82
 
                                              gboolean sensitive);
83
 
void       gi_combo_box_set_arrow_relief    (GiComboBox *cc,
84
 
                                              GtkReliefStyle relief);
85
 
 
86
 
G_END_DECLS
87
 
 
88
 
#endif