forked from AuroraMiddleware/gtk
Check if the completion is the same one as the old one.
2004-01-23 Anders Carlsson <andersca@gnome.org> * gtk/gtkentry.c: (gtk_entry_set_completion): Check if the completion is the same one as the old one. * gtk/gtkentrycompletion.c: * gtk/gtkentrycompletion.h: Move GET_PRIVATE macro into .c file, fix a trivial spelling error.
This commit is contained in:
parent
79ab6d9b4e
commit
42f1406dbf
@ -4716,6 +4716,9 @@ gtk_entry_set_completion (GtkEntry *entry,
|
||||
|
||||
old = gtk_entry_get_completion (entry);
|
||||
|
||||
if (old == completion)
|
||||
return;
|
||||
|
||||
if (old)
|
||||
{
|
||||
if (old->priv->completion_timeout)
|
||||
|
@ -52,6 +52,7 @@ enum
|
||||
PROP_MINIMUM_KEY_LENGTH
|
||||
};
|
||||
|
||||
#define GTK_ENTRY_COMPLETION_GET_PRIVATE(obj)(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionPrivate))
|
||||
|
||||
static void gtk_entry_completion_class_init (GtkEntryCompletionClass *klass);
|
||||
static void gtk_entry_completion_cell_layout_init (GtkCellLayoutIface *iface);
|
||||
|
@ -35,7 +35,6 @@ G_BEGIN_DECLS
|
||||
#define GTK_IS_ENTRY_COMPLETION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ENTRY_COMPLETION))
|
||||
#define GTK_IS_ENTRY_COMPLETION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ENTRY_COMPLETION))
|
||||
#define GTK_ENTRY_COMPLETION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionClass))
|
||||
#define GTK_ENTRY_COMPLETION_GET_PRIVATE(obj)(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_ENTRY_COMPLETION, GtkEntryCompletionPrivate))
|
||||
|
||||
typedef struct _GtkEntryCompletion GtkEntryCompletion;
|
||||
typedef struct _GtkEntryCompletionClass GtkEntryCompletionClass;
|
||||
|
Loading…
Reference in New Issue
Block a user