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).
This commit is contained in:
Benjamin Otte 2013-04-09 11:20:49 +02:00
parent 72290fb538
commit 33f1210f72
2 changed files with 1 additions and 35 deletions

View File

@ -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;
}
void
_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,
geometry,
flags,
width,
height,
new_width,
new_height);
}
}
static void
gtk_window_constrain_size (GtkWindow *window,
GdkGeometry *geometry,

View File

@ -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,