]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkbin.c
Deprecate widget flag: GTK_WIDGET_VISIBLE
[~andy/gtk] / gtk / gtkbin.c
index 812f2df6da463c16deafd4892d80eae13f1ee9bb..3a503c26858f8c5149fd6060602e194886e50113 100644 (file)
@@ -109,12 +109,12 @@ gtk_bin_remove (GtkContainer *container,
 
   g_return_if_fail (bin->child == child);
 
-  widget_was_visible = GTK_WIDGET_VISIBLE (child);
+  widget_was_visible = gtk_widget_get_visible (child);
   
   gtk_widget_unparent (child);
   bin->child = NULL;
   
-  /* queue resize regardless of GTK_WIDGET_VISIBLE (container),
+  /* queue resize regardless of gtk_widget_get_visible (container),
    * since that's what is needed by toplevels, which derive from GtkBin.
    */
   if (widget_was_visible)
@@ -140,8 +140,8 @@ gtk_bin_forall (GtkContainer *container,
  * Gets the child of the #GtkBin, or %NULL if the bin contains
  * no child widget. The returned widget does not have a reference
  * added, so you do not need to unref it.
- * 
- * Return value: pointer to child of the #GtkBin
+ *
+ * Return value: (transfer none): pointer to child of the #GtkBin
  **/
 GtkWidget*
 gtk_bin_get_child (GtkBin *bin)
@@ -182,7 +182,7 @@ static void
 gtk_bin_extended_layout_get_height_for_width (GtkExtendedLayout *layout,
                                               gint               width,
                                               gint              *minimum_height,
-                                              gint               natural_height)
+                                              gint              *natural_height)
 {
   GtkBin *bin = GTK_BIN (layout);