[gtk+] widget: Remove gtk_widget_size_request
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Remove gtk_widget_size_request
- Date: Sun, 16 Oct 2016 16:34:04 +0000 (UTC)
commit b3bd5fefb1ca2c513a3fb30c66b42aa1ff6468f6
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 4 18:10:39 2016 +0200
widget: Remove gtk_widget_size_request
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkwidget.c | 29 -----------------------------
gtk/gtkwidget.h | 3 ---
3 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 9c378ac..73f846d 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -5073,7 +5073,6 @@ gtk_widget_get_scale_factor
GtkTickCallback
gtk_widget_add_tick_callback
gtk_widget_remove_tick_callback
-gtk_widget_size_request
gtk_widget_get_child_requisition
gtk_widget_size_allocate
gtk_widget_size_allocate_with_baseline
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b910923..3080010 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5540,35 +5540,6 @@ gtk_widget_get_frame_clock (GtkWidget *widget)
}
/**
- * gtk_widget_size_request:
- * @widget: a #GtkWidget
- * @requisition: (out): a #GtkRequisition to be filled in
- *
- * This function is typically used when implementing a #GtkContainer
- * subclass. Obtains the preferred size of a widget. The container
- * uses this information to arrange its child widgets and decide what
- * size allocations to give them with gtk_widget_size_allocate().
- *
- * You can also call this function from an application, with some
- * caveats. Most notably, getting a size request requires the widget
- * to be associated with a screen, because font information may be
- * needed. Multihead-aware applications should keep this in mind.
- *
- * Also remember that the size request is not necessarily the size
- * a widget will actually be allocated.
- *
- * Deprecated: 3.0: Use gtk_widget_get_preferred_size() instead.
- **/
-void
-gtk_widget_size_request (GtkWidget *widget,
- GtkRequisition *requisition)
-{
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
- gtk_widget_get_preferred_size (widget, requisition, NULL);
-}
-
-/**
* gtk_widget_get_child_requisition:
* @widget: a #GtkWidget
* @requisition: (out): a #GtkRequisition to be filled in
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 2d9fce6..f9d42c0 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -664,9 +664,6 @@ void gtk_widget_queue_allocate (GtkWidget *widget);
GDK_AVAILABLE_IN_3_8
GdkFrameClock* gtk_widget_get_frame_clock (GtkWidget *widget);
-GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size)
-void gtk_widget_size_request (GtkWidget *widget,
- GtkRequisition *requisition);
GDK_AVAILABLE_IN_ALL
void gtk_widget_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]