Commit 33f1210f authored by Benjamin Otte's avatar Benjamin Otte

window: Remove an unused function.

Luckily, we don't need to support an implementation of a minimal WM for
linux-fb anymore (which is what this function was added for).
parent 72290fb5
......@@ -5602,6 +5602,7 @@ gtk_window_guess_default_size (GtkWindow *window,
info = gtk_window_get_geometry_info (window, FALSE);
if (info)
g_print ("last geometry info was %d %d\n", info->last.configure_request.width, info->last.configure_request.height);
/* MAX() works even if the last request is unset with -1 */
*width = MAX (*width, info->last.configure_request.width);
*height = MAX (*height, info->last.configure_request.height);
......@@ -8783,36 +8784,6 @@ gtk_window_compare_hints (GdkGeometry *geometry_a,
return TRUE;
_gtk_window_constrain_size (GtkWindow *window,
gint width,
gint height,
gint *new_width,
gint *new_height)
GtkWindowPrivate *priv;
GtkWindowGeometryInfo *info;
g_return_if_fail (GTK_IS_WINDOW (window));
priv = window->priv;
info = priv->geometry_info;
if (info)
GdkWindowHints flags = info->last.flags;
GdkGeometry *geometry = &info->last.geometry;
gtk_window_constrain_size (window,
static void
gtk_window_constrain_size (GtkWindow *window,
GdkGeometry *geometry,
......@@ -30,11 +30,6 @@ void _gtk_window_internal_set_focus (GtkWindow *window,
void _gtk_window_reposition (GtkWindow *window,
gint x,
gint y);
void _gtk_window_constrain_size (GtkWindow *window,
gint width,
gint height,
gint *new_width,
gint *new_height);
void _gtk_window_group_add_grab (GtkWindowGroup *window_group,
GtkWidget *widget);
void _gtk_window_group_remove_grab (GtkWindowGroup *window_group,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment