[gtksourceview] Bump gtk+ and use gtk_size_request_get_size.



commit 27d45c37b9bfc7fc263503bf89017fe62863c594
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Sep 18 21:03:33 2010 +0200

    Bump gtk+ and use gtk_size_request_get_size.

 configure.ac                            |    2 +-
 gtksourceview/gtksourcecompletioninfo.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b41a7f4..d119173 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,7 @@ LT_INIT([disable-static])
 AC_CHECK_HEADERS([unistd.h])
 
 # Dependencies
-GTK_REQUIRED_VERSION=2.90.7
+GTK_REQUIRED_VERSION=2.90.8
 LIBXML_REQUIRED_VERSION=2.6.0
 GLADE_UI_REQUIRED=3.2
 
diff --git a/gtksourceview/gtksourcecompletioninfo.c b/gtksourceview/gtksourcecompletioninfo.c
index 9c2a4b7..9041906 100644
--- a/gtksourceview/gtksourcecompletioninfo.c
+++ b/gtksourceview/gtksourcecompletioninfo.c
@@ -132,7 +132,8 @@ window_resize (GtkSourceCompletionInfo *info)
 	if (info->priv->widget != NULL)
 	{
 		/* Try to resize to fit widget, if necessary */
-		gtk_widget_size_request (info->priv->widget, &req);
+		gtk_size_request_get_size (GTK_SIZE_REQUEST (info->priv->widget),
+		                           &req, NULL);
 		
 		get_scrolled_window_sizing (info, &border, &hscroll, &vscroll);
 		off = (gtk_container_get_border_width (GTK_CONTAINER (info)) + border) * 2;
@@ -504,7 +505,7 @@ use_scrolled_window (GtkSourceCompletionInfo *info,
 	
 	mw = info->priv->max_width;
 	mh = info->priv->max_height;
-	gtk_widget_size_request (widget, &req);
+	gtk_size_request_get_size (GTK_SIZE_REQUEST (widget), &req, NULL);
 	
 	return (mw != -1 && mw < req.width) || (mh != -1 && mh < req.height);
 }



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