menu: Remove global coordinates

This commit removes support for scrolling and
for the keep-up triangle from GtkMenu, and gets
rid of all use of global coordinates.
This commit is contained in:
Matthias Clasen 2019-05-29 17:44:48 -04:00
parent 4e464b4960
commit f645c4e923
2 changed files with 12 additions and 1232 deletions

File diff suppressed because it is too large Load Diff

View File

@ -76,26 +76,11 @@ struct _GtkMenuPrivate
*/
GtkWidget *toplevel;
GtkWidget *top_arrow_widget;
GtkWidget *bottom_arrow_widget;
gint scroll_offset;
gint saved_scroll_offset;
gint scroll_step;
guint scroll_timeout;
guint needs_destruction_ref : 1;
guint scroll_fast : 1;
guint upper_arrow_prelight : 1;
guint lower_arrow_prelight : 1;
guint have_layout : 1;
guint ignore_button_release : 1;
guint no_toggle_size : 1;
guint drag_already_pressed : 1;
guint drag_scroll_started : 1;
/* info used for the table */
guint *heights;
@ -104,24 +89,7 @@ struct _GtkMenuPrivate
gint monitor_num;
/* Cached layout information */
gint n_rows;
gint n_columns;
/* Arrow states */
GtkStateFlags lower_arrow_state;
GtkStateFlags upper_arrow_state;
/* navigation region */
gint navigation_x;
gint navigation_y;
gint navigation_width;
gint navigation_height;
guint navigation_timeout;
gdouble drag_start_y;
gint initial_drag_offset;
};
G_GNUC_INTERNAL