aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/gal-combo-box.h
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-11-18 05:05:15 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-11-18 05:05:15 +0800
commit9582e8159c9862e160d8b7569c534c8196e40686 (patch)
tree1d109d0cdc7eefa80a92e311deec17cbe13fd366 /widgets/misc/gal-combo-box.h
parentf0e50562beaab4f171655307cb0b042faabe02ca (diff)
downloadgsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.tar
gsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.tar.gz
gsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.tar.bz2
gsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.tar.lz
gsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.tar.xz
gsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.tar.zst
gsoc2013-evolution-9582e8159c9862e160d8b7569c534c8196e40686.zip
renamespace and move to here build new files
2003-11-17 Mike Kestner <mkestner@ximian.com> * gal/widgets/gtk-combo* : renamespace and move to * gal/widgets/gal-combo* : here * gal/widgets/Makefile.am : build new files 2003-11-17 Mike Kestner <mkestner@ximian.com> * e-table-config.c : use new gal_combo_* namespace. svn path=/trunk/; revision=23402
Diffstat (limited to 'widgets/misc/gal-combo-box.h')
-rw-r--r--widgets/misc/gal-combo-box.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/widgets/misc/gal-combo-box.h b/widgets/misc/gal-combo-box.h
new file mode 100644
index 0000000000..0a05c52d84
--- /dev/null
+++ b/widgets/misc/gal-combo-box.h
@@ -0,0 +1,91 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * gtk-combo-box.h - a customizable combobox
+ * Copyright 2000, 2001, Ximian, Inc.
+ *
+ * Authors:
+ * Miguel de Icaza <miguel@ximian.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License, version 2, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef _GAL_COMBO_BOX_H_
+#define _GAL_COMBO_BOX_H_
+
+#include <gtk/gtkhbox.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#define GAL_COMBO_BOX_TYPE (gal_combo_box_get_type())
+#define GAL_COMBO_BOX(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gal_combo_box_get_type (), GalComboBox)
+#define GAL_COMBO_BOX_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gal_combo_box_get_type (), GalComboBoxClass)
+#define GAL_IS_COMBO_BOX(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gal_combo_box_get_type ())
+
+typedef struct _GalComboBox GalComboBox;
+typedef struct _GalComboBoxPrivate GalComboBoxPrivate;
+typedef struct _GalComboBoxClass GalComboBoxClass;
+
+struct _GalComboBox {
+ GtkHBox hbox;
+ GalComboBoxPrivate *priv;
+};
+
+struct _GalComboBoxClass {
+ GtkHBoxClass parent_class;
+
+ GtkWidget *(*pop_down_widget) (GalComboBox *cbox);
+
+ /*
+ * invoked when the popup has been hidden, if the signal
+ * returns TRUE, it means it should be killed from the
+ */
+ gboolean *(*pop_down_done) (GalComboBox *cbox, GtkWidget *);
+
+ /*
+ * Notification signals.
+ */
+ void (*pre_pop_down) (GalComboBox *cbox);
+ void (*post_pop_hide) (GalComboBox *cbox);
+};
+
+GtkType gal_combo_box_get_type (void);
+void gal_combo_box_construct (GalComboBox *combo_box,
+ GtkWidget *display_widget,
+ GtkWidget *optional_pop_down_widget);
+void gal_combo_box_get_pos (GalComboBox *combo_box, int *x, int *y);
+
+GtkWidget *gal_combo_box_new (GtkWidget *display_widget,
+ GtkWidget *optional_pop_down_widget);
+void gal_combo_box_popup_hide (GalComboBox *combo_box);
+
+void gal_combo_box_set_display (GalComboBox *combo_box,
+ GtkWidget *display_widget);
+
+void gal_combo_box_set_title (GalComboBox *combo,
+ const gchar *title);
+
+void gal_combo_box_set_tearable (GalComboBox *combo,
+ gboolean tearable);
+void gal_combo_box_set_arrow_sensitive (GalComboBox *combo,
+ gboolean sensitive);
+void gal_combo_box_set_arrow_relief (GalComboBox *cc,
+ GtkReliefStyle relief);
+#ifdef __cplusplus
+};
+#endif /* __cplusplus */
+
+#endif /* _GAL_COMBO_BOX_H_ */