|
Packit Service |
fb6fa5 |
/* gtkentryprivate.h
|
|
Packit Service |
fb6fa5 |
* Copyright (C) 2003 Kristian Rietveld <kris@gtk.org>
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
fb6fa5 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
fb6fa5 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
fb6fa5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fb6fa5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fb6fa5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fb6fa5 |
* Library General Public License for more details.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
fb6fa5 |
* License along with this library; if not, write to the
|
|
Packit Service |
fb6fa5 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit Service |
fb6fa5 |
* Boston, MA 02111-1307, USA.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef __GTK_ENTRY_PRIVATE_H__
|
|
Packit Service |
fb6fa5 |
#define __GTK_ENTRY_PRIVATE_H__
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtktreeviewcolumn.h>
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtktreemodelfilter.h>
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtkliststore.h>
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtkentrycompletion.h>
|
|
Packit Service |
fb6fa5 |
#include <gtk/gtkentry.h>
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_BEGIN_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
struct _GtkEntryCompletionPrivate
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
GtkWidget *entry;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GtkWidget *tree_view;
|
|
Packit Service |
fb6fa5 |
GtkTreeViewColumn *column;
|
|
Packit Service |
fb6fa5 |
GtkTreeModelFilter *filter_model;
|
|
Packit Service |
fb6fa5 |
GtkListStore *actions;
|
|
Packit Service |
fb6fa5 |
gboolean first_sel_changed;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GtkEntryCompletionMatchFunc match_func;
|
|
Packit Service |
fb6fa5 |
gpointer match_data;
|
|
Packit Service |
fb6fa5 |
GDestroyNotify match_notify;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gint minimum_key_length;
|
|
Packit Service |
fb6fa5 |
gint text_column;
|
|
Packit Service |
fb6fa5 |
gint current_selected;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gchar *case_normalized_key;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* only used by GtkEntry when attached: */
|
|
Packit Service |
fb6fa5 |
GtkWidget *popup_window;
|
|
Packit Service |
fb6fa5 |
GtkWidget *vbox;
|
|
Packit Service |
fb6fa5 |
GtkWidget *scrolled_window;
|
|
Packit Service |
fb6fa5 |
GtkWidget *action_view;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gulong completion_timeout;
|
|
Packit Service |
fb6fa5 |
gulong changed_id;
|
|
Packit Service |
fb6fa5 |
gulong insert_text_id;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
guint ignore_enter : 1;
|
|
Packit Service |
fb6fa5 |
guint has_completion : 1;
|
|
Packit Service |
fb6fa5 |
guint inline_completion : 1;
|
|
Packit Service |
fb6fa5 |
guint popup_completion : 1;
|
|
Packit Service |
fb6fa5 |
guint popup_set_width : 1;
|
|
Packit Service |
fb6fa5 |
guint popup_single_match : 1;
|
|
Packit Service |
fb6fa5 |
guint inline_selection : 1;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gchar *completion_prefix;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GSource *check_completion_idle;
|
|
Packit Service |
fb6fa5 |
};
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion);
|
|
Packit Service |
fb6fa5 |
void _gtk_entry_completion_popup (GtkEntryCompletion *completion);
|
|
Packit Service |
fb6fa5 |
void _gtk_entry_completion_popdown (GtkEntryCompletion *completion);
|
|
Packit Service |
fb6fa5 |
gchar * _gtk_entry_completion_compute_prefix (GtkEntryCompletion *completion,
|
|
Packit Service |
fb6fa5 |
const char *key);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void _gtk_entry_get_borders (GtkEntry *entry,
|
|
Packit Service |
fb6fa5 |
gint *xborder,
|
|
Packit Service |
fb6fa5 |
gint *yborder);
|
|
Packit Service |
fb6fa5 |
void _gtk_entry_effective_inner_border (GtkEntry *entry,
|
|
Packit Service |
fb6fa5 |
GtkBorder *border);
|
|
Packit Service |
fb6fa5 |
void _gtk_entry_reset_im_context (GtkEntry *entry);
|
|
Packit Service |
fb6fa5 |
G_END_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif /* __GTK_ENTRY_PRIVATE_H__ */
|