case MOZ_GTK_WINDOW: return moz_gtk_window_paint(drawable, rect, cliprect); break;
moz_gtk_widget_paint(GtkThemeWidgetType widget, GdkDrawable* drawable,                     GdkRectangle* rect, GdkRectangle* cliprect,                     GtkWidgetState* state, gint flags){    switch (widget) {    case MOZ_GTK_BUTTON:        ensure_button_widget();        return moz_gtk_button_paint(drawable, rect, cliprect, state,                                    (GtkReliefStyle) flags, gButtonWidget);        break;    case MOZ_GTK_CHECKBUTTON:    case MOZ_GTK_RADIOBUTTON:        return moz_gtk_toggle_paint(drawable, rect, cliprect, state,                                    (gboolean) flags,                                    (widget == MOZ_GTK_RADIOBUTTON));        break;    case MOZ_GTK_SCROLLBAR_BUTTON:        return moz_gtk_scrollbar_button_paint(drawable, rect, cliprect,                                              state, (GtkArrowType) flags);        break;    case MOZ_GTK_SCROLLBAR_TRACK_HORIZONTAL:    case MOZ_GTK_SCROLLBAR_TRACK_VERTICAL:        return moz_gtk_scrollbar_trough_paint(widget, drawable, rect,                                              cliprect, state);        break;    case MOZ_GTK_SCROLLBAR_THUMB_HORIZONTAL:    case MOZ_GTK_SCROLLBAR_THUMB_VERTICAL:        return moz_gtk_scrollbar_thumb_paint(widget, drawable, rect,                                             cliprect, state);        break;    case MOZ_GTK_GRIPPER:        return moz_gtk_gripper_paint(drawable, rect, cliprect, state);        break;    case MOZ_GTK_ENTRY:        return moz_gtk_entry_paint(drawable, rect, cliprect, state);        break;    case MOZ_GTK_DROPDOWN_ARROW:        return moz_gtk_dropdown_arrow_paint(drawable, rect, cliprect, state);        break;    case MOZ_GTK_CHECKBUTTON_CONTAINER:    case MOZ_GTK_RADIOBUTTON_CONTAINER:        return moz_gtk_container_paint(drawable, rect, cliprect, state,                                       (widget == MOZ_GTK_RADIOBUTTON_CONTAINER));        break;    case MOZ_GTK_TOOLBAR:        return moz_gtk_toolbar_paint(drawable, rect, cliprect);        break;    case MOZ_GTK_TOOLTIP:        return moz_gtk_tooltip_paint(drawable, rect, cliprect);        break;    case MOZ_GTK_FRAME:        return moz_gtk_frame_paint(drawable, rect, cliprect);        break;    case MOZ_GTK_PROGRESSBAR:        return moz_gtk_progressbar_paint(drawable, rect, cliprect);        break;    case MOZ_GTK_PROGRESS_CHUNK:        return moz_gtk_progress_chunk_paint(drawable, rect, cliprect);        break;    case MOZ_GTK_TAB:        return moz_gtk_tab_paint(drawable, rect, cliprect, flags);        break;    case MOZ_GTK_TABPANELS:        return moz_gtk_tabpanels_paint(drawable, rect, cliprect);        break;    default:        g_warning("Unknown widget type: %d", widget);    }    return MOZ_GTK_UNKNOWN_WIDGET;}