~ubuntu-branches/ubuntu/hardy/gnome-commander/hardy

« back to all changes in this revision

Viewing changes to src/gnome-cmd-combo.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-06-13 15:39:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060613153948-gvrt3mb2ddk5u62o
Tags: 1.2.0-3
added --disable-scrollkeeper on build

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
22
22
 * file for a list of people on the GTK+ Team.  See the ChangeLog
23
23
 * files for a list of changes.  These files are distributed with
24
 
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
 
24
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25
25
 */
26
26
 
27
27
/*
34
34
#ifndef __GNOME_CMD_COMBO_H__
35
35
#define __GNOME_CMD_COMBO_H__
36
36
 
37
 
#define GNOME_CMD_COMBO(obj)                    GTK_CHECK_CAST (obj, gnome_cmd_combo_get_type (), GnomeCmdCombo)
38
 
#define GNOME_CMD_COMBO_CLASS(klass)    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_combo_get_type (), GnomeCmdComboClass)
 
37
#define GNOME_CMD_COMBO(obj)            GTK_CHECK_CAST (obj, gnome_cmd_combo_get_type (), GnomeCmdCombo)
 
38
#define GNOME_CMD_COMBO_CLASS(klass)    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_combo_get_type (), GnomeCmdComboClass)
39
39
#define GNOME_CMD_IS_COMBO(obj)       GTK_CHECK_TYPE (obj, gnome_cmd_combo_get_type ())
40
40
 
41
41
typedef struct _GnomeCmdCombo GnomeCmdCombo;
48
48
 
49
49
/* you should access only the entry and list fields directly */
50
50
struct _GnomeCmdCombo {
51
 
        GtkHBox hbox;
52
 
        GtkWidget *entry;
53
 
        GtkWidget *button;
54
 
        GtkWidget *popup;
55
 
        GtkWidget *popwin;
56
 
        GtkWidget *list;
57
 
        gboolean is_popped;
58
 
 
59
 
        guint entry_change_id;
60
 
        guint list_change_id;
61
 
 
62
 
        guint value_in_list:1;
63
 
        guint ok_if_empty:1;
64
 
        
 
51
    GtkHBox hbox;
 
52
    GtkWidget *entry;
 
53
    GtkWidget *button;
 
54
    GtkWidget *popup;
 
55
    GtkWidget *popwin;
 
56
    GtkWidget *list;
 
57
    gboolean is_popped;
 
58
 
 
59
    guint entry_change_id;
 
60
    guint list_change_id;
 
61
 
 
62
    guint value_in_list:1;
 
63
    guint ok_if_empty:1;
 
64
 
65
65
    guint16 current_button;
66
 
        guint activate_id;
67
 
 
68
 
        gpointer sel_data;
69
 
        gchar *sel_text;
70
 
        
71
 
        gint widest_pixmap;
72
 
        gint highest_pixmap;
73
 
        gint text_col;
 
66
    guint activate_id;
 
67
 
 
68
    gpointer sel_data;
 
69
    gchar *sel_text;
 
70
 
 
71
    gint widest_pixmap;
 
72
    gint highest_pixmap;
 
73
    gint text_col;
74
74
};
75
75
 
76
76
struct _GnomeCmdComboClass {
77
 
        GtkHBoxClass parent_class;
 
77
    GtkHBoxClass parent_class;
78
78
 
79
 
        void (* item_selected)     (GnomeCmdCombo *combo,
80
 
                                                                gpointer data);
81
 
        void (* popwin_hidden)     (GnomeCmdCombo *combo);      
 
79
    void (* item_selected)     (GnomeCmdCombo *combo,
 
80
                                gpointer data);
 
81
    void (* popwin_hidden)     (GnomeCmdCombo *combo);
82
82
};
83
83
 
84
84
guint
86
86
 
87
87
GtkWidget *
88
88
gnome_cmd_combo_new                   (gint num_cols,
89
 
                                                                           gint text_col,
90
 
                                                                           gchar **col_titles);
 
89
                                       gint text_col,
 
90
                                       gchar **col_titles);
91
91
 
92
92
void
93
93
gnome_cmd_combo_clear                 (GnomeCmdCombo *combo);
94
94
 
95
95
gint
96
96
gnome_cmd_combo_append                (GnomeCmdCombo *combo,
97
 
                                                                           gchar         **text,
98
 
                                                                           gpointer      data);
 
97
                                       gchar         **text,
 
98
                                       gpointer      data);
99
99
 
100
100
gint
101
101
gnome_cmd_combo_insert                (GnomeCmdCombo *combo,
102
 
                                                                           gchar         **text,
103
 
                                                                           gpointer      data);
 
102
                                       gchar         **text,
 
103
                                       gpointer      data);
104
104
 
105
105
void
106
106
gnome_cmd_combo_set_pixmap            (GnomeCmdCombo *combo,
107
 
                                                                           gint           row,
108
 
                                                                           gint           col,
109
 
                                                                           GnomeCmdPixmap *pixmap);
 
107
                                       gint           row,
 
108
                                       gint           col,
 
109
                                       GnomeCmdPixmap *pixmap);
110
110
 
111
111
void
112
112
gnome_cmd_combo_popup_list            (GnomeCmdCombo *combo);
113
113
 
114
114
void
115
115
gnome_cmd_combo_select_text           (GnomeCmdCombo *combo,
116
 
                                                                           const gchar *text);
 
116
                                       const gchar *text);
117
117
 
118
118
void
119
119
gnome_cmd_combo_select_data           (GnomeCmdCombo *combo,
120
 
                                                                           gpointer data);
 
120
                                       gpointer data);
121
121
 
122
122
void
123
123
gnome_cmd_combo_update_style          (GnomeCmdCombo *combo);