mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
widget: Remove _gtk_widget_override_size_request()
The function was only used by the geometry widget.
This commit is contained in:
parent
08974a1e9a
commit
5dd2087d19
@ -11118,52 +11118,6 @@ gtk_widget_has_size_request (GtkWidget *widget)
|
|||||||
return !(widget->priv->width == -1 && widget->priv->height == -1);
|
return !(widget->priv->width == -1 && widget->priv->height == -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* _gtk_widget_override_size_request:
|
|
||||||
* @widget: a #GtkWidget
|
|
||||||
* @width: new forced minimum width
|
|
||||||
* @height: new forced minimum height
|
|
||||||
* @old_width: location to store previous forced minimum width
|
|
||||||
* @old_height: location to store previous forced minimum height
|
|
||||||
*
|
|
||||||
* Temporarily establishes a forced minimum size for a widget; this
|
|
||||||
* is used by GtkWindow when calculating the size to add to the
|
|
||||||
* window’s geometry widget. Cached sizes for the widget and its
|
|
||||||
* parents are invalidated, so that subsequent calls to the size
|
|
||||||
* negotiation machinery produce the overridden result, but the
|
|
||||||
* widget is not queued for relayout or redraw. The old size must
|
|
||||||
* be restored with _gtk_widget_restore_size_request() or things
|
|
||||||
* will go screwy.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
_gtk_widget_override_size_request (GtkWidget *widget,
|
|
||||||
int width,
|
|
||||||
int height,
|
|
||||||
int *old_width,
|
|
||||||
int *old_height)
|
|
||||||
{
|
|
||||||
gtk_widget_get_size_request (widget, old_width, old_height);
|
|
||||||
gtk_widget_set_usize_internal (widget, width, height,
|
|
||||||
GTK_QUEUE_RESIZE_INVALIDATE_ONLY);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* _gtk_widget_restore_size_request:
|
|
||||||
* @widget: a #GtkWidget
|
|
||||||
* @old_width: saved forced minimum size
|
|
||||||
* @old_height: saved forced minimum size
|
|
||||||
*
|
|
||||||
* Undoes the operation of_gtk_widget_override_size_request().
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
_gtk_widget_restore_size_request (GtkWidget *widget,
|
|
||||||
int old_width,
|
|
||||||
int old_height)
|
|
||||||
{
|
|
||||||
gtk_widget_set_usize_internal (widget, old_width, old_height,
|
|
||||||
GTK_QUEUE_RESIZE_INVALIDATE_ONLY);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_widget_set_events:
|
* gtk_widget_set_events:
|
||||||
* @widget: a #GtkWidget
|
* @widget: a #GtkWidget
|
||||||
|
@ -181,14 +181,6 @@ void _gtk_widget_add_attached_window (GtkWidget *widget,
|
|||||||
void _gtk_widget_remove_attached_window (GtkWidget *widget,
|
void _gtk_widget_remove_attached_window (GtkWidget *widget,
|
||||||
GtkWindow *window);
|
GtkWindow *window);
|
||||||
|
|
||||||
void _gtk_widget_override_size_request (GtkWidget *widget,
|
|
||||||
int width,
|
|
||||||
int height,
|
|
||||||
int *old_width,
|
|
||||||
int *old_height);
|
|
||||||
void _gtk_widget_restore_size_request (GtkWidget *widget,
|
|
||||||
int old_width,
|
|
||||||
int old_height);
|
|
||||||
void _gtk_widget_get_preferred_size_for_size (GtkWidget *widget,
|
void _gtk_widget_get_preferred_size_for_size (GtkWidget *widget,
|
||||||
GtkOrientation orientation,
|
GtkOrientation orientation,
|
||||||
gint size,
|
gint size,
|
||||||
|
Loading…
Reference in New Issue
Block a user