[anjuta] sourceview: use gtk_widget_preferred_size instead of gtk_widget_size_request



commit 91aa1b0599731f172589530374d20dad6832cf05
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Thu Jan 31 12:12:03 2013 +0100

    sourceview: use gtk_widget_preferred_size instead of gtk_widget_size_request

 plugins/sourceview/assist-tip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sourceview/assist-tip.c b/plugins/sourceview/assist-tip.c
index 746b213..1dd804a 100644
--- a/plugins/sourceview/assist-tip.c
+++ b/plugins/sourceview/assist-tip.c
@@ -133,7 +133,7 @@ assist_tip_get_coordinates(GtkWidget* view, int* x, int* y, GtkTextIter* iter, G
 	
 
 	/* Compute entry width/height */
-	gtk_widget_size_request(entry, &entry_req);
+	gtk_widget_get_preferred_size (entry, &entry_req, NULL);
 	
 	/* ensure that the tip is inside the text_view */
 	gdk_window_get_geometry (window, NULL, NULL, &view_width, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]