[gtk+] gtk: Prefix gtk_window_add_embedded_xid() with underscore



commit 5a1755bc50003a4c39d950f38cc8228bb049bb1d
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jan 28 14:28:36 2011 +0100

    gtk: Prefix gtk_window_add_embedded_xid() with underscore
    
    It's a private API after all.
    Same thing for gtk_window_remove_embedded_xid().

 gtk/gtksocket.c        |    4 ++--
 gtk/gtkwindow.c        |    4 ++--
 gtk/gtkwindowprivate.h |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index 6a76b5e..3550f18 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -454,7 +454,7 @@ gtk_socket_end_embedding (GtkSocket *socket)
   GtkWidget *toplevel = gtk_widget_get_toplevel (GTK_WIDGET (socket));
 
   if (GTK_IS_WINDOW (toplevel))
-    gtk_window_remove_embedded_xid (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (socket))),
+    _gtk_window_remove_embedded_xid (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (socket))),
                                     GDK_WINDOW_XID (socket->priv->plug_window));
 
   g_object_unref (private->plug_window);
@@ -1134,7 +1134,7 @@ gtk_socket_add_window (GtkSocket       *socket,
 
       toplevel = gtk_widget_get_toplevel (GTK_WIDGET (socket));
       if (GTK_IS_WINDOW (toplevel))
-	gtk_window_add_embedded_xid (GTK_WINDOW (toplevel), xid);
+	_gtk_window_add_embedded_xid (GTK_WINDOW (toplevel), xid);
 
 #ifdef HAVE_XFIXES
       gdk_error_trap_push ();
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index a461129..e4a17b5 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2295,7 +2295,7 @@ gtk_window_list_toplevels (void)
 }
 
 void
-gtk_window_add_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
+_gtk_window_add_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
 {
   GList *embedded_windows;
 
@@ -2314,7 +2314,7 @@ gtk_window_add_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
 }
 
 void
-gtk_window_remove_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
+_gtk_window_remove_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
 {
   GList *embedded_windows;
   GList *node;
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h
index 18562e9..7815cda 100644
--- a/gtk/gtkwindowprivate.h
+++ b/gtk/gtkwindowprivate.h
@@ -27,9 +27,9 @@ G_BEGIN_DECLS
 
 void            _gtk_window_internal_set_focus (GtkWindow *window,
                                                 GtkWidget *focus);
-void            gtk_window_remove_embedded_xid (GtkWindow       *window,
+void            _gtk_window_remove_embedded_xid (GtkWindow       *window,
                                                 GdkNativeWindow  xid);
-void            gtk_window_add_embedded_xid    (GtkWindow       *window,
+void            _gtk_window_add_embedded_xid    (GtkWindow       *window,
                                                 GdkNativeWindow  xid);
 void            _gtk_window_reposition         (GtkWindow *window,
                                                 gint       x,



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