Previous: g-type-depth, Up: Type hierarchy and type relations


4.3.5 g-type-next-base

— Function: g-type-next-base
     (g-type-next-base leaf-type root-type) => base-type
leaf-type
A GType designator
root-type
A GType designator
base-type
A GType designator

Returns the next type that should be traversed from root-type in order to reach leaf-type. E.g., given type hierarchy:

     + GObject
      \
       + GInitiallyUnowned
        \
         + GtkObject
         |\
         | + GtkAdjustment
          \
           + GtkWidget
            \
             + GtkContainer
              \
               + GtkTable

the following will be returned:

     (g-type-next-base "GtkTable" "GObject") => "GInitiallyUnowned"
     (g-type-next-base "GtkTable" "GInitiallyUnowned") => "GtkObject"
     (g-type-next-base "GtkTable" "GtkObject") => "GtkWidget"
     (g-type-next-base "GtkTable" "GtkWidget") => "GtkContainer"
     (g-type-next-base "GtkTable" "GtkContainer") => "GtkTable"