summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-02-01 17:10:30 +0100
committerMatthias Clasen <mclasen@redhat.com>2013-02-01 22:58:55 -0500
commitad70142d2ceeba39699160e2c073c0f8ae4c9e6d (patch)
tree55a82da65fd4d43239dd853f384048699204f2bd
parentce869921ab88b344c9a417852837305d24fa155d (diff)
downloadgtk+-ad70142d2ceeba39699160e2c073c0f8ae4c9e6d.tar.gz
scrolledwindow: deprecate gtk_scrolled_window_add_with_viewport()
https://bugzilla.gnome.org/show_bug.cgi?id=693015
-rw-r--r--gtk/gtkscrolledwindow.c4
-rw-r--r--gtk/gtkscrolledwindow.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 665c57049e..be780d417a 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -3100,6 +3100,10 @@ gtk_scrolled_window_remove (GtkContainer *container,
*
* A widget supports scrolling natively if it implements the
* #GtkScrollable interface.
+ *
+ * Deprecated: 3.8: gtk_container_add() will now automatically add
+ * a #GtkViewport if the child doesn't implement #GtkScrollable. This
+ * function now just calls gtk_container_add()
*/
void
gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window,
diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h
index c3fcc63e8d..52c291c0da 100644
--- a/gtk/gtkscrolledwindow.h
+++ b/gtk/gtkscrolledwindow.h
@@ -106,6 +106,7 @@ GtkCornerType gtk_scrolled_window_get_placement (GtkScrolledWindow *scrolle
void gtk_scrolled_window_set_shadow_type (GtkScrolledWindow *scrolled_window,
GtkShadowType type);
GtkShadowType gtk_scrolled_window_get_shadow_type (GtkScrolledWindow *scrolled_window);
+GDK_DEPRECATED_IN_3_8_FOR(gtk_container_add)
void gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window,
GtkWidget *child);