[nautilus/gtk3-happyness: 13/19] [libnautilus-private] Use gtk_widget_get_preferred_size()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gtk3-happyness: 13/19] [libnautilus-private] Use gtk_widget_get_preferred_size()
- Date: Wed, 29 Sep 2010 12:33:30 +0000 (UTC)
commit 0100251bd8de84a0d4d8aa60b95defefb699e45c
Author: Christian Persch <chpe gnome org>
Date: Thu Sep 16 15:16:15 2010 +0200
[libnautilus-private] Use gtk_widget_get_preferred_size()
... instead of the deprecated gtk_widget_get_child_requisition().
libnautilus-private/nautilus-horizontal-splitter.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libnautilus-private/nautilus-horizontal-splitter.c b/libnautilus-private/nautilus-horizontal-splitter.c
index ace3493..b2b1014 100644
--- a/libnautilus-private/nautilus-horizontal-splitter.c
+++ b/libnautilus-private/nautilus-horizontal-splitter.c
@@ -247,10 +247,9 @@ nautilus_horizontal_splitter_size_allocate (GtkWidget *widget,
gdk_window_hide (gtk_paned_get_handle_window (paned));
}
- gtk_size_request_get_size (GTK_SIZE_REQUEST (gtk_paned_get_child1 (paned)),
- &child_requisition,
- NULL);
-
+ gtk_widget_get_preferred_size (gtk_paned_get_child1 (paned),
+ &child_requisition, NULL);
+
child_allocation.x = allocation->x + border_width;
child_allocation.y = allocation->y + border_width;
child_allocation.width = MIN (child_requisition.width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]