[nautilus] overlay: sync with gedit upstream



commit 23aa30fec0da95b58a9336da58115a3a04a21eb4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 25 09:59:40 2011 -0500

    overlay: sync with gedit upstream
    
    As one of my patches got rejected.

 src/gedit-overlay.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/gedit-overlay.c b/src/gedit-overlay.c
index eeaf2ea..168036b 100644
--- a/src/gedit-overlay.c
+++ b/src/gedit-overlay.c
@@ -199,17 +199,7 @@ gedit_overlay_size_allocate (GtkWidget     *widget,
 	/* if a relative widget exists place the floating widgets in relation to it */
 	if (priv->relative_widget)
 	{
-		GtkWidget *child;
-
-		/* if the relative widget is a scrolled window, place the children
-		 * inside of it to avoid covering the scrollbars.
-		 */
-		if (GTK_IS_SCROLLED_WINDOW (priv->relative_widget)) {
-			child = gtk_bin_get_child (GTK_BIN (priv->relative_widget));
-			gtk_widget_get_allocation (child, &main_alloc);
-		} else {
-            		gtk_widget_get_allocation (priv->relative_widget, &main_alloc);
-		}
+		gtk_widget_get_allocation (priv->relative_widget, &main_alloc);
 	}
 
 	for (l = priv->children; l != NULL; l = g_slist_next (l))



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