forked from AuroraMiddleware/gtk
window: Add private API to force-resize
Sometimes (read for GtkMenu on X11) it's not enough to resize on show, and relying on the size to be calculated on realization only works the first time a menu is popped up, so add an API that GtkMenu can use to ensure the size of a menu is "refreshed" before passing anything along to gdk_window_move_to_rect().
This commit is contained in:
parent
edb57a9202
commit
461f5fde03
@ -474,7 +474,6 @@ static GdkScreen *gtk_window_check_screen (GtkWindow *window);
|
|||||||
static GtkWindowGeometryInfo* gtk_window_get_geometry_info (GtkWindow *window,
|
static GtkWindowGeometryInfo* gtk_window_get_geometry_info (GtkWindow *window,
|
||||||
gboolean create);
|
gboolean create);
|
||||||
|
|
||||||
static void gtk_window_move_resize (GtkWindow *window);
|
|
||||||
static gboolean gtk_window_compare_hints (GdkGeometry *geometry_a,
|
static gboolean gtk_window_compare_hints (GdkGeometry *geometry_a,
|
||||||
guint flags_a,
|
guint flags_a,
|
||||||
GdkGeometry *geometry_b,
|
GdkGeometry *geometry_b,
|
||||||
@ -9751,7 +9750,7 @@ gtk_window_constrain_position (GtkWindow *window,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
gtk_window_move_resize (GtkWindow *window)
|
gtk_window_move_resize (GtkWindow *window)
|
||||||
{
|
{
|
||||||
/* Overview:
|
/* Overview:
|
||||||
|
@ -140,6 +140,7 @@ void gtk_window_set_unlimited_guessed_size (GtkWindow *window,
|
|||||||
gboolean y);
|
gboolean y);
|
||||||
void gtk_window_force_resize (GtkWindow *window);
|
void gtk_window_force_resize (GtkWindow *window);
|
||||||
void gtk_window_fixate_size (GtkWindow *window);
|
void gtk_window_fixate_size (GtkWindow *window);
|
||||||
|
void gtk_window_move_resize (GtkWindow *window);
|
||||||
|
|
||||||
/* Exported handles */
|
/* Exported handles */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user