Change so that updates of selection don't take effect immediately, but

Wed Nov 13 17:03:19 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkcombo.c: Change so that updates of selection
        don't take effect immediately, but only when popdown
        is closed with a button release within the combo
        or Return/Enter.

        * gtk/gtkcombo.c: Support Alt-Down to pop down the
        combo, Alt-Up to pop it back up, Space to immediately
        select current item.

        * gtk/gtkcombo.c (gtk_combo_entry_key_press): Don't
        move the focus when we get to the ends of the list
        entries.

        * gtk/gtkcombo.c: Fix handling of state in ad-hoc
        keybinding handling to be a bit more reasonable.

        * gtk/gtkcombo.c (gtk_combo_popup_list): Clear
        last_focus_child when no item is selected so we
        don't start focusing from some random place.

        * gtk/gtkcombo.c (gtk_combo_init): Make
        gtk_combo_set_use_arrows_always, enable_arrows_always
        properties have no effect, they were an awful idea.
        Always behave as if enable_arrows_always is true.

        * gtk/gtknotebook.c: Fix a warning.
This commit is contained in:
Owen Taylor
2002-11-14 04:46:20 +00:00
committed by Owen Taylor
parent 98aaac018d
commit a03f567e2f
10 changed files with 258 additions and 75 deletions

View File

@ -48,14 +48,21 @@ typedef struct _GtkComboClass GtkComboClass;
/* you should access only the entry and list fields directly */
struct _GtkCombo {
GtkHBox hbox;
/*< public >*/
GtkWidget *entry;
/*< private >*/
GtkWidget *button;
GtkWidget *popup;
GtkWidget *popwin;
/*< public >*/
GtkWidget *list;
/*< private >*/
guint entry_change_id;
guint list_change_id;
guint list_change_id; /* unused */
guint value_in_list:1;
guint ok_if_empty:1;