Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
* gtk/gtkcombo.c: try completion on MOD1-TAB. Handle case when the combo->list is empty.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>
|
||||||
|
|
||||||
|
* gtk/gtkcombo.c: try completion on MOD1-TAB.
|
||||||
|
Handle case when the combo->list is empty.
|
||||||
|
|
||||||
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
* gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
|
||||||
|
@ -118,13 +118,16 @@ gtk_combo_entry_key_press (GtkEntry * entry, GdkEventKey * event, GtkCombo * com
|
|||||||
GList *li;
|
GList *li;
|
||||||
|
|
||||||
/* completion */
|
/* completion */
|
||||||
if (event->keyval == GDK_Tab)
|
if ((event->keyval == GDK_Tab) && (event->state & GDK_MOD1_MASK))
|
||||||
{
|
{
|
||||||
GCompletion * cmpl;
|
GCompletion * cmpl;
|
||||||
gchar* prefix;
|
gchar* prefix;
|
||||||
gchar* nprefix = NULL;
|
gchar* nprefix = NULL;
|
||||||
gint pos;
|
gint pos;
|
||||||
|
|
||||||
|
if ( !GTK_LIST(combo->list)->children )
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
gtk_signal_emit_stop_by_name (GTK_OBJECT (entry), "key_press_event");
|
gtk_signal_emit_stop_by_name (GTK_OBJECT (entry), "key_press_event");
|
||||||
cmpl = g_completion_new((GCompletionFunc)gtk_combo_func);
|
cmpl = g_completion_new((GCompletionFunc)gtk_combo_func);
|
||||||
g_completion_add_items(cmpl, GTK_LIST(combo->list)->children);
|
g_completion_add_items(cmpl, GTK_LIST(combo->list)->children);
|
||||||
|
Reference in New Issue
Block a user