Commit 9ccad0c9 authored by Committed by Matthias Clasen
Make the GtkComboBox in list mode scroll if the list is too large to fit
Mon Jul 26 00:38:27 2004 Matthias Clasen <email@example.com> Make the GtkComboBox in list mode scroll if the list is too large to fit in the popup. (#135543) * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a scrolled window to the popup in list mode. (gtk_combo_box_list_position): Calculate the height of the popup so that it fits on the screen, set the scrollbar policy of the scrolled window appropriately. (gtk_combo_box_popup): Use the height calculated by gtk_combo_box_list_position(). (gtk_combo_box_remeasure): Don't add unnecessary padding. (gtk_combo_box_size_request): But add the focus with here. (gtk_combo_box_list_setup): Connect to enter notify on the popup window to activate auto scrolling. (gtk_combo_box_list_enter_notify): Activate auto scrolling. (gtk_combo_box_list_button_pressed): Setup a timeout for auto scrolling. (gtk_combo_box_list_scroll_timeout): Timeout function for auto scrolling. (gtk_combo_box_list_auto_scroll): Scroll the list when the pointer leaves the window.
Showing with 295 additions and 47 deletions