2010-05-19 15:27:47 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Christian Dywan
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GTK_COMBO_BOX_TEXT_H__
|
|
|
|
#define __GTK_COMBO_BOX_TEXT_H__
|
|
|
|
|
2018-04-25 14:14:00 +00:00
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2010-05-19 15:27:47 +00:00
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2022-10-07 21:47:28 +00:00
|
|
|
#include <gtk/deprecated/gtkcombobox.h>
|
2010-05-19 15:27:47 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_COMBO_BOX_TEXT (gtk_combo_box_text_get_type ())
|
|
|
|
#define GTK_COMBO_BOX_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_COMBO_BOX_TEXT, GtkComboBoxText))
|
|
|
|
#define GTK_IS_COMBO_BOX_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_COMBO_BOX_TEXT))
|
|
|
|
|
2019-05-27 02:16:58 +00:00
|
|
|
typedef struct _GtkComboBoxText GtkComboBoxText;
|
2010-05-19 15:27:47 +00:00
|
|
|
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-05-19 15:27:47 +00:00
|
|
|
GType gtk_combo_box_text_get_type (void) G_GNUC_CONST;
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-05-19 15:27:47 +00:00
|
|
|
GtkWidget* gtk_combo_box_text_new (void);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-10-15 20:16:45 +00:00
|
|
|
GtkWidget* gtk_combo_box_text_new_with_entry (void);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-05-19 15:27:47 +00:00
|
|
|
void gtk_combo_box_text_append_text (GtkComboBoxText *combo_box,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *text);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-05-19 15:27:47 +00:00
|
|
|
void gtk_combo_box_text_insert_text (GtkComboBoxText *combo_box,
|
2020-07-24 13:54:49 +00:00
|
|
|
int position,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *text);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-05-19 15:27:47 +00:00
|
|
|
void gtk_combo_box_text_prepend_text (GtkComboBoxText *combo_box,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *text);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-10-16 00:07:01 +00:00
|
|
|
void gtk_combo_box_text_remove (GtkComboBoxText *combo_box,
|
2020-07-24 13:54:49 +00:00
|
|
|
int position);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-10-21 12:25:08 +00:00
|
|
|
void gtk_combo_box_text_remove_all (GtkComboBoxText *combo_box);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2020-07-24 18:40:36 +00:00
|
|
|
char *gtk_combo_box_text_get_active_text (GtkComboBoxText *combo_box);
|
2010-05-19 15:27:47 +00:00
|
|
|
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-11-30 05:07:08 +00:00
|
|
|
void gtk_combo_box_text_insert (GtkComboBoxText *combo_box,
|
2020-07-24 13:54:49 +00:00
|
|
|
int position,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *id,
|
|
|
|
const char *text);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-11-30 05:07:08 +00:00
|
|
|
void gtk_combo_box_text_append (GtkComboBoxText *combo_box,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *id,
|
|
|
|
const char *text);
|
2022-10-20 10:11:41 +00:00
|
|
|
GDK_DEPRECATED_IN_4_10_FOR(GtkDropDown and GtkStringList)
|
2010-11-30 05:07:08 +00:00
|
|
|
void gtk_combo_box_text_prepend (GtkComboBoxText *combo_box,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *id,
|
|
|
|
const char *text);
|
2010-05-19 15:27:47 +00:00
|
|
|
|
2022-09-24 01:54:15 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkComboBoxText, g_object_unref)
|
|
|
|
|
2010-05-19 15:27:47 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_COMBO_BOX_TEXT_H__ */
|