GtkImageMenuItem:: forall includes the internal GtkImage Widget?



Hi everyone,

Isn't the GtkImage in a GtkImageMenuItem an internal widget?

The following code assumes GtkImage is an external widget. But
GtkImageMenuItem is from a GtkBin, thus it should not have more than a
child.

------------------
static void
gtk_image_menu_item_forall (GtkContainer   *container,
                            gboolean        include_internals,
                            GtkCallback     callback,
                            gpointer        callback_data)
{
  GtkImageMenuItem *image_menu_item = GTK_IMAGE_MENU_ITEM (container);

  (* GTK_CONTAINER_CLASS (gtk_image_menu_item_parent_class)->forall)
(container,
                                      include_internals,
                                      callback,
                                      callback_data);

  if (image_menu_item->image)
/*    ^---shall here be an 'include_internals &&' ?*/
    (* callback) (image_menu_item->image, callback_data);
}
------------------

Yu



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