[nautilus/gtk3-happyness: 11/19] editable-label: use gtk_widget_get_preferred_size()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gtk3-happyness: 11/19] editable-label: use gtk_widget_get_preferred_size()
- Date: Wed, 29 Sep 2010 12:33:20 +0000 (UTC)
commit 117c1e9d410a64f1564c6d861547b6f4129221a7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Sep 29 13:06:10 2010 +0200
editable-label: use gtk_widget_get_preferred_size()
eel/eel-editable-label.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 2e8c4a3..b0d08dc 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1208,7 +1208,7 @@ get_layout_location (EelEditableLabel *label,
if (gtk_widget_get_direction (widget) != GTK_TEXT_DIR_LTR)
xalign = 1.0 - xalign;
- gtk_size_request_get_size (GTK_SIZE_REQUEST (widget), &req, NULL);
+ gtk_widget_get_preferred_size (widget, &req, NULL);
gtk_misc_get_padding (misc, &xpad, &ypad);
gtk_widget_get_allocation (widget, &allocation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]