[nautilus] editable-label: use gtk_widget_get_preferred_size()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] editable-label: use gtk_widget_get_preferred_size()
- Date: Thu, 30 Sep 2010 16:51:23 +0000 (UTC)
commit 4963a3c9e5526ffd139b1b0b5bff18b6ea91a717
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]