[gedit] Fix compilation.



commit fbff0062f3d9e0a93262334f0dfe2d838afd71ea
Author: Xan Lopez <xan gnome org>
Date:   Fri Feb 11 21:53:21 2011 +0100

    Fix compilation.

 gedit/gedit-overlay-child.c |    4 ++--
 gedit/gedit-overlay-child.h |    2 +-
 gedit/gedit-overlay.c       |    8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gedit/gedit-overlay-child.c b/gedit/gedit-overlay-child.c
index 821732a..eaa35ab 100644
--- a/gedit/gedit-overlay-child.c
+++ b/gedit/gedit-overlay-child.c
@@ -235,7 +235,7 @@ gedit_overlay_child_class_init (GeditOverlayChildClass *klass)
 	                                 g_param_spec_enum ("position",
 	                                                    "Position",
 	                                                    "The Widget Position",
-	                                                    GEDIT_OVERLAY_CHILD_POSITION_TYPE,
+	                                                    GEDIT_TYPE_OVERLAY_CHILD_POSITION,
 	                                                    GEDIT_OVERLAY_CHILD_POSITION_STATIC,
 	                                                    G_PARAM_READWRITE |
 	                                                    G_PARAM_CONSTRUCT |
@@ -269,7 +269,7 @@ gedit_overlay_child_init (GeditOverlayChild *child)
 {
 	child->priv = G_TYPE_INSTANCE_GET_PRIVATE (child,
 	                                           GEDIT_TYPE_OVERLAY_CHILD,
-	                                           GeditOverlayChildPrivate));
+	                                           GeditOverlayChildPrivate);
 
 	gtk_widget_set_has_window (GTK_WIDGET (child), TRUE);
 }
diff --git a/gedit/gedit-overlay-child.h b/gedit/gedit-overlay-child.h
index 3c4ed6d..86e051b 100644
--- a/gedit/gedit-overlay-child.h
+++ b/gedit/gedit-overlay-child.h
@@ -63,7 +63,7 @@ typedef enum
 	GEDIT_OVERLAY_CHILD_POSITION_SOUTH,
 	GEDIT_OVERLAY_CHILD_POSITION_SOUTH_EAST,
 	GEDIT_OVERLAY_CHILD_POSITION_STATIC
-}; GeditOverlayChildPosition;
+} GeditOverlayChildPosition;
 
 GType                     gedit_overlay_child_get_type     (void) G_GNUC_CONST;
 
diff --git a/gedit/gedit-overlay.c b/gedit/gedit-overlay.c
index 8dd04c5..7cff417 100644
--- a/gedit/gedit-overlay.c
+++ b/gedit/gedit-overlay.c
@@ -421,7 +421,7 @@ overlay_add (GtkContainer *overlay,
 	GeditOverlayChild *child;
 
 	/* check that the widget is not added yet */
-	child = get_overlay_child (overlay, widget);
+	child = get_overlay_child (GEDIT_OVERLAY (overlay), widget);
 
 	if (child == NULL)
 	{
@@ -435,7 +435,7 @@ overlay_add (GtkContainer *overlay,
 			gtk_widget_show (GTK_WIDGET (child));
 		}
 
-		add_toplevel_widget (overlay, GTK_WIDGET (child));
+		add_toplevel_widget (GEDIT_OVERLAY (overlay), GTK_WIDGET (child));
 	}
 }
 
@@ -443,7 +443,7 @@ static void
 gedit_overlay_remove (GtkContainer *overlay,
                       GtkWidget    *widget)
 {
-	GeditOverlayPrivate *goverlay = GEDIT_OVERLAY (overlay)->priv;
+	GeditOverlayPrivate *priv = GEDIT_OVERLAY (overlay)->priv;
 	GSList *l;
 
 	for (l = priv->children; l != NULL; l = g_slist_next (l))
@@ -475,7 +475,7 @@ gedit_overlay_forall (GtkContainer *overlay,
 	{
 		GtkWidget *child = GTK_WIDGET (l->data);
 
-		(* callback) (child->child, callback_data);
+		(* callback) (child, callback_data);
 	}
 }
 



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