Esempio n. 1
0
func init() {
	//Register GdkEvent to gobject (In Go)
	t := C.gdk_event_get_type()
	gobject.RegisterCType(gobject.GType(t), newEventFromNative)
	init_events()
	init_mask()
}
Esempio n. 2
0
func init() {
	GdkType = gdkTypes{}
	GdkType.DEVICE = g.GType(C.gdk_device_get_type())
}
Esempio n. 3
0
// PANGO init funcs {{{
func init() {

	// Initialize PangoWeight
	PangoWeight.THIN = 100
	PangoWeight.ULTRALIGHT = 200
	PangoWeight.LIGHT = 300
	PangoWeight.BOOK = 380
	PangoWeight.NORMAL = 400
	PangoWeight.MEDIUM = 500
	PangoWeight.SEMIBOLD = 600
	PangoWeight.BOLD = 700
	PangoWeight.ULTRABOLD = 800
	PangoWeight.HEAVY = 900
	PangoWeight.ULTRAHEAVY = 1000

	// Initialize PangoStyle
	PangoStyle.NORMAL = 0
	PangoStyle.OBLIQUE = 1
	PangoStyle.ITALIC = 2

	// Initialize PangoScale
	PangoScale.Scale = 1024
	PangoScale.XX_SMALL = float64(0.5787037037037)
	PangoScale.X_SMALL = float64(0.6444444444444)
	PangoScale.SMALL = float64(0.8333333333333)
	PangoScale.MEDIUM = float64(1.0)
	PangoScale.LARGE = float64(1.2)
	PangoScale.X_LARGE = float64(1.4399999999999)
	PangoScale.XX_LARGE = float64(1.728)

	// Initialize PangoUnderline
	PangoUnderline.NONE = 0
	PangoUnderline.SINGLE = 1
	PangoUnderline.DOUBLE = 2
	PangoUnderline.LOW = 3
	PangoUnderline.ERROR = 4

	// Initialize PangoVariant
	PangoVariant.NORMAL = 0
	PangoVariant.SMALL_CAPS = 1

	// Initialize PangoStretch
	PangoStretch.ULTRA_CONDENSED = 0
	PangoStretch.EXTRA_CONDENSED = 1
	PangoStretch.CONDENSED = 2
	PangoStretch.SEMI_CONDENSED = 3
	PangoStretch.NORMAL = 4
	PangoStretch.SEMI_EXPANDED = 5
	PangoStretch.EXPANDED = 6
	PangoStretch.EXTRA_EXPANDED = 7
	PangoStretch.ULTRA_EXPANDED = 8

	// Initialize PangoGravity
	PangoGravity.SOUTH = 0
	PangoGravity.EAST = 1
	PangoGravity.NORTH = 2
	PangoGravity.WEST = 3
	PangoGravity.AUTO = 4

	// Initialize PangoFontMask
	PangoFontMask.FAMILY = 1 << 0
	PangoFontMask.STYLE = 1 << 1
	PangoFontMask.VARIANT = 1 << 2
	PangoFontMask.WEIGHT = 1 << 3
	PangoFontMask.STRETCH = 1 << 4
	PangoFontMask.SIZE = 1 << 5
	PangoFontMask.GRAVITY = 1 << 6

	// Init PangoTypes
	PangoTypes.CONTEXT = gobject.GType(C.pango_context_get_type())
	PangoTypes.FONT = gobject.GType(C.pango_font_get_type())
	PangoTypes.FONT_FAMILY = gobject.GType(C.pango_font_family_get_type())
	PangoTypes.FONT_FACE = gobject.GType(C.pango_font_face_get_type())
	PangoTypes.FONT_MAP = gobject.GType(C.pango_font_map_get_type())
	PangoTypes.FONTSET = gobject.GType(C.pango_fontset_get_type())
	PangoTypes.FONT_DESCRIPTION = gobject.GType(C.pango_font_description_get_type())
	PangoTypes.LAYOUT = gobject.GType(C.pango_layout_get_type())

	// Register PangoContext type
	gobject.RegisterCType(PangoTypes.CONTEXT, newContextFromNative)
	gobject.RegisterGoType(PangoTypes.CONTEXT, nativeFromContext)

	// Register Font type
	gobject.RegisterCType(PangoTypes.FONT, newFontFromNative)
	gobject.RegisterGoType(PangoTypes.FONT, nativeFromFont)

	// Register FontFamily type
	gobject.RegisterCType(PangoTypes.FONT_FAMILY, newFontFamilyFromNative)
	gobject.RegisterGoType(PangoTypes.FONT_FAMILY, nativeFromFontFamily)

	// Register FontFace type
	gobject.RegisterCType(PangoTypes.FONT_FACE, newFontFaceFromNative)
	gobject.RegisterGoType(PangoTypes.FONT_FACE, nativeFromFontFace)

	// Register FontMap type
	gobject.RegisterCType(PangoTypes.FONT_MAP, newFontMapFromNative)
	gobject.RegisterGoType(PangoTypes.FONT_MAP, nativeFromFontMap)

	// Register Fontset type
	gobject.RegisterCType(PangoTypes.FONTSET, newFontsetFromNative)
	gobject.RegisterGoType(PangoTypes.FONTSET, nativeFromFontset)

	// Register FontDescription type
	gobject.RegisterCType(PangoTypes.FONT_DESCRIPTION, newFontDescriptionFromNative)
	gobject.RegisterGoType(PangoTypes.FONT_DESCRIPTION, nativeFromFontDescription)

	// Register Layout type
	gobject.RegisterCType(PangoTypes.LAYOUT, newLayoutFromNative)
	gobject.RegisterGoType(PangoTypes.LAYOUT, nativeFromLayout)

} // }}}
Esempio n. 4
0
// GDK3 INIT FUNCS {{{
func init() {
	C.gdk_init(nil, nil)
	GdkType.DEVICE = gobject.GType(C.gdk_device_get_type())
	GdkType.RECTANGLE = gobject.GType(C.gdk_rectangle_get_type())
	GdkType.RGBA = gobject.GType(C.gdk_rgba_get_type())
	GdkType.COLOR = gobject.GType(C.gdk_color_get_type())
	GdkType.EVENT = gobject.GType(C.gdk_event_get_type())
	GdkType.DISPLAY = gobject.GType(C.gdk_display_get_type())
	GdkType.SCREEN = gobject.GType(C.gdk_screen_get_type())
	GdkType.WINDOW = gobject.GType(C.gdk_window_get_type())
	GdkType.MODIFIER_TYPE = gobject.GType(C.gdk_modifier_type_get_type())

	// Register Rectangle
	gobject.RegisterCType(GdkType.RECTANGLE, newRectangleFromNative)
	gobject.RegisterGoType(GdkType.RECTANGLE, nativeFromRectangle)

	// Register RGBA type
	gobject.RegisterCType(GdkType.RGBA, newRGBAFromNative)
	gobject.RegisterGoType(GdkType.RGBA, nativeFromRGBA)

	// Register GdkModifier
	gobject.RegisterCType(GdkType.MODIFIER_TYPE, gdkModifierFromNative)

	// Initialize GdkModifier
	GdkModifier.SHIFT_MASK = 1 << 0
	GdkModifier.LOCK_MASK = 1 << 1
	GdkModifier.CONTROL_MASK = 1 << 2
	GdkModifier.MOD1_MASK = 1 << 3
	GdkModifier.MOD2_MASK = 1 << 4
	GdkModifier.MOD3_MASK = 1 << 5
	GdkModifier.MOD4_MASK = 1 << 6
	GdkModifier.MOD5_MASK = 1 << 7
	GdkModifier.BUTTON1_MASK = 1 << 8
	GdkModifier.BUTTON2_MASK = 1 << 9
	GdkModifier.BUTTON3_MASK = 1 << 10
	GdkModifier.BUTTON4_MASK = 1 << 11
	GdkModifier.BUTTON5_MASK = 1 << 12
	GdkModifier.SUPER_MASK = 1 << 26
	GdkModifier.HYPER_MASK = 1 << 27
	GdkModifier.META_MASK = 1 << 28
	GdkModifier.RELEASE_MASK = 1 << 30
	GdkModifier.MODIFIER_MASK = 0x5c001fff

	//Register GdkEvent to gobject (In Go)
	gobject.RegisterCType(GdkType.EVENT, newEventFromNative)
	init_events()
	init_mask()

	// Register GdkDisplay type
	gobject.RegisterCType(GdkType.DISPLAY, newDisplayFromNative)
	gobject.RegisterGoType(GdkType.DISPLAY, nativeFromDisplay)

	// Register GdkDevice type
	gobject.RegisterCType(GdkType.DEVICE, newDeviceFromNative)
	gobject.RegisterGoType(GdkType.DEVICE, nativeFromDevice)

	// Register GdkScreen type
	gobject.RegisterCType(GdkType.SCREEN, newScreenFromNative)
	gobject.RegisterGoType(GdkType.SCREEN, nativeFromScreen)

	//Register GdkWindow type
	gobject.RegisterCType(GdkType.WINDOW, newWindowFromNative)
	gobject.RegisterGoType(GdkType.WINDOW, nativeFromWindow)
}
Esempio n. 5
0
func init() {
	GtkType.ABOUT_DIALOG = g.GType(C.gtk_about_dialog_get_type())
	GtkType.ACCEL_GROUP = g.GType(C.gtk_accel_group_get_type())
	GtkType.ACCEL_LABEL = g.GType(C.gtk_accel_label_get_type())
	GtkType.ACCEL_MAP = g.GType(C.gtk_accel_map_get_type())
	GtkType.ACCESSIBLE = g.GType(C.gtk_accessible_get_type())
	GtkType.ACTION_GROUP = g.GType(C.gtk_action_group_get_type())
	GtkType.ACTION = g.GType(C.gtk_action_get_type())
	GtkType.ACTIVATABLE = g.GType(C.gtk_activatable_get_type())
	GtkType.ADJUSTMENT = g.GType(C.gtk_adjustment_get_type())
	GtkType.ALIGNMENT = g.GType(C.gtk_alignment_get_type())
	GtkType.APP_CHOOSER_BUTTON = g.GType(C.gtk_app_chooser_button_get_type())
	GtkType.APP_CHOOSER_DIALOG = g.GType(C.gtk_app_chooser_dialog_get_type())
	GtkType.APP_CHOOSER = g.GType(C.gtk_app_chooser_get_type())
	GtkType.APP_CHOOSER_WIDGET = g.GType(C.gtk_app_chooser_widget_get_type())
	GtkType.APPLICATION = g.GType(C.gtk_application_get_type())
	GtkType.ARROW = g.GType(C.gtk_arrow_get_type())
	GtkType.ASPECT_FRAME = g.GType(C.gtk_aspect_frame_get_type())
	GtkType.ASSISTANT = g.GType(C.gtk_assistant_get_type())
	GtkType.BUTTON_BOX = g.GType(C.gtk_button_box_get_type())
	GtkType.BIN = g.GType(C.gtk_bin_get_type())
	GtkType.BORDER = g.GType(C.gtk_border_get_type())
	GtkType.BOX = g.GType(C.gtk_box_get_type())
	GtkType.BUILDABLE = g.GType(C.gtk_buildable_get_type())
	GtkType.BUILDER = g.GType(C.gtk_builder_get_type())
	GtkType.BUTTON = g.GType(C.gtk_button_get_type())
	GtkType.CALENDAR = g.GType(C.gtk_calendar_get_type())
	GtkType.CELL_AREA_BOX = g.GType(C.gtk_cell_area_box_get_type())
	GtkType.CELL_AREA_CONTEXT = g.GType(C.gtk_cell_area_context_get_type())
	GtkType.CELL_AREA = g.GType(C.gtk_cell_area_get_type())
	GtkType.CELL_EDITABLE = g.GType(C.gtk_cell_editable_get_type())
	GtkType.CELL_LAYOUT = g.GType(C.gtk_cell_layout_get_type())
	GtkType.CELL_RENDERER_ACCEL = g.GType(C.gtk_cell_renderer_accel_get_type())
	GtkType.CELL_RENDERER_COMBO = g.GType(C.gtk_cell_renderer_combo_get_type())
	GtkType.CELL_RENDERER = g.GType(C.gtk_cell_renderer_get_type())
	GtkType.CELL_RENDERER_PIXBUF = g.GType(C.gtk_cell_renderer_pixbuf_get_type())
	GtkType.CELL_RENDERER_PROGRESS = g.GType(C.gtk_cell_renderer_progress_get_type())
	GtkType.CELL_RENDERER_SPIN = g.GType(C.gtk_cell_renderer_spin_get_type())
	GtkType.CELL_RENDERER_SPINNER = g.GType(C.gtk_cell_renderer_spinner_get_type())
	GtkType.CELL_RENDERER_TEXT = g.GType(C.gtk_cell_renderer_text_get_type())
	GtkType.CELL_RENDERER_TOGGLE = g.GType(C.gtk_cell_renderer_toggle_get_type())
	GtkType.CELL_VIEW = g.GType(C.gtk_cell_view_get_type())
	GtkType.CHECK_BUTTON = g.GType(C.gtk_check_button_get_type())
	GtkType.CHECK_MENU_ITEM = g.GType(C.gtk_check_menu_item_get_type())
	GtkType.CLIPBOARD = g.GType(C.gtk_clipboard_get_type())
	GtkType.COLOR_BUTTON = g.GType(C.gtk_color_button_get_type())
	GtkType.COLOR_SELECTION_DIALOG = g.GType(C.gtk_color_selection_dialog_get_type())
	GtkType.COLOR_SELECTION = g.GType(C.gtk_color_selection_get_type())
	GtkType.COMBO_BOX = g.GType(C.gtk_combo_box_get_type())
	GtkType.COMBO_BOX_TEXT = g.GType(C.gtk_combo_box_text_get_type())
	GtkType.CONTAINER = g.GType(C.gtk_container_get_type())
	GtkType.CSS_PROVIDER = g.GType(C.gtk_css_provider_get_type())
	GtkType.DIALOG = g.GType(C.gtk_dialog_get_type())
	GtkType.DRAWING_AREA = g.GType(C.gtk_drawing_area_get_type())
	GtkType.EDITABLE = g.GType(C.gtk_editable_get_type())
	GtkType.ENTRY_BUFFER = g.GType(C.gtk_entry_buffer_get_type())
	GtkType.ENTRY_COMPLETION = g.GType(C.gtk_entry_completion_get_type())
	GtkType.ENTRY = g.GType(C.gtk_entry_get_type())
	GtkType.EVENT_BOX = g.GType(C.gtk_event_box_get_type())
	GtkType.EXPANDER = g.GType(C.gtk_expander_get_type())
	GtkType.FILE_CHOOSER_BUTTON = g.GType(C.gtk_file_chooser_button_get_type())
	GtkType.FILE_CHOOSER_DIALOG = g.GType(C.gtk_file_chooser_dialog_get_type())
	GtkType.FILE_CHOOSER = g.GType(C.gtk_file_chooser_get_type())
	GtkType.FILE_CHOOSER_WIDGET = g.GType(C.gtk_file_chooser_widget_get_type())
	GtkType.FILE_FILTER = g.GType(C.gtk_file_filter_get_type())
	GtkType.FIXED = g.GType(C.gtk_fixed_get_type())
	GtkType.FONT_BUTTON = g.GType(C.gtk_font_button_get_type())
	GtkType.FONT_SELECTION = g.GType(C.gtk_font_selection_get_type())
	GtkType.FONT_SELECTION_DIALOG = g.GType(C.gtk_font_selection_dialog_get_type())
	GtkType.FRAME = g.GType(C.gtk_frame_get_type())
	GtkType.GRADIENT = g.GType(C.gtk_gradient_get_type())
	GtkType.GRID = g.GType(C.gtk_grid_get_type())
	GtkType.HANDLE_BOX = g.GType(C.gtk_handle_box_get_type())
	GtkType.HBUTTON_BOX = g.GType(C.gtk_hbutton_box_get_type())
	GtkType.HBOX = g.GType(C.gtk_hbox_get_type())
	GtkType.HPANED = g.GType(C.gtk_hpaned_get_type())
	GtkType.HSCALE = g.GType(C.gtk_hscale_get_type())
	GtkType.HSCROLLBAR = g.GType(C.gtk_hscrollbar_get_type())
	GtkType.HSEPARATOR = g.GType(C.gtk_hseparator_get_type())
	GtkType.HSV = g.GType(C.gtk_hsv_get_type())
	GtkType.ICON_FACTORY = g.GType(C.gtk_icon_factory_get_type())
	GtkType.ICON_SET = g.GType(C.gtk_icon_set_get_type())
	GtkType.ICON_SOURCE = g.GType(C.gtk_icon_source_get_type())
	GtkType.ICON_INFO = g.GType(C.gtk_icon_info_get_type())
	GtkType.ICON_THEME = g.GType(C.gtk_icon_theme_get_type())
	GtkType.ICON_VIEW = g.GType(C.gtk_icon_view_get_type())
	GtkType.IMAGE = g.GType(C.gtk_image_get_type())
	GtkType.IMAGE_MENU_ITEM = g.GType(C.gtk_image_menu_item_get_type())
	GtkType.IM_CONTEXT = g.GType(C.gtk_im_context_get_type())
	GtkType.IM_CONTEXT_SIMPLE = g.GType(C.gtk_im_context_simple_get_type())
	GtkType.IM_MULTICONTEXT = g.GType(C.gtk_im_multicontext_get_type())
	GtkType.INFO_BAR = g.GType(C.gtk_info_bar_get_type())
	GtkType.INVISIBLE = g.GType(C.gtk_invisible_get_type())
	GtkType.LABEL = g.GType(C.gtk_label_get_type())
	GtkType.LAYOUT = g.GType(C.gtk_layout_get_type())
	GtkType.LINK_BUTTON = g.GType(C.gtk_link_button_get_type())
	GtkType.LIST_STORE = g.GType(C.gtk_list_store_get_type())
	GtkType.MENU_BAR = g.GType(C.gtk_menu_bar_get_type())
	GtkType.MENU = g.GType(C.gtk_menu_get_type())
	GtkType.MENU_ITEM = g.GType(C.gtk_menu_item_get_type())
	GtkType.MENU_SHELL = g.GType(C.gtk_menu_shell_get_type())
	GtkType.MENU_TOOL_BUTTON = g.GType(C.gtk_menu_tool_button_get_type())
	GtkType.MESSAGE_DIALOG = g.GType(C.gtk_message_dialog_get_type())
	GtkType.MISC = g.GType(C.gtk_misc_get_type())
	GtkType.MOUNT_OPERATION = g.GType(C.gtk_mount_operation_get_type())
	GtkType.NOTEBOOK = g.GType(C.gtk_notebook_get_type())
	GtkType.NUMERABLE_ICON = g.GType(C.gtk_numerable_icon_get_type())
	GtkType.OFFSCREEN_WINDOW = g.GType(C.gtk_offscreen_window_get_type())
	GtkType.ORIENTABLE = g.GType(C.gtk_orientable_get_type())
	GtkType.PAGE_SETUP = g.GType(C.gtk_page_setup_get_type())
	GtkType.PANED = g.GType(C.gtk_paned_get_type())
	GtkType.PAPER_SIZE = g.GType(C.gtk_paper_size_get_type())
	GtkType.PLUG = g.GType(C.gtk_plug_get_type())
	GtkType.PRINT_CONTEXT = g.GType(C.gtk_print_context_get_type())
	GtkType.PRINT_OPERATION = g.GType(C.gtk_print_operation_get_type())
	GtkType.PRINT_OPERATION_PREVIEW = g.GType(C.gtk_print_operation_preview_get_type())
	GtkType.PRINT_SETTINGS = g.GType(C.gtk_print_settings_get_type())
	GtkType.PROGRESS_BAR = g.GType(C.gtk_progress_bar_get_type())
	GtkType.RADIO_ACTION = g.GType(C.gtk_radio_action_get_type())
	GtkType.RADIO_BUTTON = g.GType(C.gtk_radio_button_get_type())
	GtkType.RADIO_MENU_ITEM = g.GType(C.gtk_radio_menu_item_get_type())
	GtkType.RADIO_TOOL_BUTTON = g.GType(C.gtk_radio_tool_button_get_type())
	GtkType.RANGE = g.GType(C.gtk_range_get_type())
	GtkType.RC_STYLE = g.GType(C.gtk_rc_style_get_type())
	GtkType.RECENT_ACTION = g.GType(C.gtk_recent_action_get_type())
	GtkType.RECENT_CHOOSER_DIALOG = g.GType(C.gtk_recent_chooser_dialog_get_type())
	GtkType.RECENT_CHOOSER = g.GType(C.gtk_recent_chooser_get_type())
	GtkType.RECENT_CHOOSER_MENU = g.GType(C.gtk_recent_chooser_menu_get_type())
	GtkType.RECENT_CHOOSER_WIDGET = g.GType(C.gtk_recent_chooser_widget_get_type())
	GtkType.RECENT_FILTER = g.GType(C.gtk_recent_filter_get_type())
	GtkType.RECENT_INFO = g.GType(C.gtk_recent_info_get_type())
	GtkType.RECENT_MANAGER = g.GType(C.gtk_recent_manager_get_type())
	GtkType.SCALE_BUTTON = g.GType(C.gtk_scale_button_get_type())
	GtkType.SCALE = g.GType(C.gtk_scale_get_type())
	GtkType.SCROLLABLE = g.GType(C.gtk_scrollable_get_type())
	GtkType.SCROLLBAR = g.GType(C.gtk_scrollbar_get_type())
	GtkType.SCROLLED_WINDOW = g.GType(C.gtk_scrolled_window_get_type())
	GtkType.SELECTION_DATA = g.GType(C.gtk_selection_data_get_type())
	GtkType.TARGET_LIST = g.GType(C.gtk_target_list_get_type())
	GtkType.SEPARATOR = g.GType(C.gtk_separator_get_type())
	GtkType.SEPARATOR_MENU_ITEM = g.GType(C.gtk_separator_menu_item_get_type())
	GtkType.SEPARATOR_TOOL_ITEM = g.GType(C.gtk_separator_tool_item_get_type())
	GtkType.SETTINGS = g.GType(C.gtk_settings_get_type())
	GtkType.SIZE_GROUP = g.GType(C.gtk_size_group_get_type())
	GtkType.SOCKET = g.GType(C.gtk_socket_get_type())
	GtkType.SPIN_BUTTON = g.GType(C.gtk_spin_button_get_type())
	GtkType.SPINNER = g.GType(C.gtk_spinner_get_type())
	GtkType.STATUSBAR = g.GType(C.gtk_statusbar_get_type())
	GtkType.STATUS_ICON = g.GType(C.gtk_status_icon_get_type())
	GtkType.STYLE_CONTEXT = g.GType(C.gtk_style_context_get_type())
	GtkType.STYLE = g.GType(C.gtk_style_get_type())
	GtkType.STYLE_PROPERTIES = g.GType(C.gtk_style_properties_get_type())
	GtkType.STYLE_PROVIDER = g.GType(C.gtk_style_provider_get_type())
	GtkType.SWITCH = g.GType(C.gtk_switch_get_type())
	GtkType.SYMBOLIC_COLOR = g.GType(C.gtk_symbolic_color_get_type())
	GtkType.TABLE = g.GType(C.gtk_table_get_type())
	GtkType.TEAROFF_MENU_ITEM = g.GType(C.gtk_tearoff_menu_item_get_type())
	GtkType.TEXT_ATTRIBUTES = g.GType(C.gtk_text_attributes_get_type())
	GtkType.TEXT_BUFFER = g.GType(C.gtk_text_buffer_get_type())
	GtkType.TEXT_CHILD_ANCHOR = g.GType(C.gtk_text_child_anchor_get_type())
	GtkType.TEXT_ITER = g.GType(C.gtk_text_iter_get_type())
	GtkType.TEXT_MARK = g.GType(C.gtk_text_mark_get_type())
	GtkType.TEXT_TAG = g.GType(C.gtk_text_tag_get_type())
	GtkType.TEXT_TAG_TABLE = g.GType(C.gtk_text_tag_table_get_type())
	GtkType.TEXT_VIEW = g.GType(C.gtk_text_view_get_type())
	GtkType.THEMING_ENGINE = g.GType(C.gtk_theming_engine_get_type())
	GtkType.TOGGLE_ACTION = g.GType(C.gtk_toggle_action_get_type())
	GtkType.TOGGLE_BUTTON = g.GType(C.gtk_toggle_button_get_type())
	GtkType.TOGGLE_TOOL_BUTTON = g.GType(C.gtk_toggle_tool_button_get_type())
	GtkType.TOOLBAR = g.GType(C.gtk_toolbar_get_type())
	GtkType.TOOL_BUTTON = g.GType(C.gtk_tool_button_get_type())
	GtkType.TOOL_ITEM_GROUP = g.GType(C.gtk_tool_item_group_get_type())
	GtkType.TOOL_ITEM = g.GType(C.gtk_tool_item_get_type())
	GtkType.TOOL_PALETTE = g.GType(C.gtk_tool_palette_get_type())
	GtkType.TOOL_SHELL = g.GType(C.gtk_tool_shell_get_type())
	GtkType.TOOLTIP = g.GType(C.gtk_tooltip_get_type())
	GtkType.TREE_DRAG_SOURCE = g.GType(C.gtk_tree_drag_source_get_type())
	GtkType.TREE_DRAG_DEST = g.GType(C.gtk_tree_drag_dest_get_type())
	GtkType.TREE_MODEL_FILTER = g.GType(C.gtk_tree_model_filter_get_type())
	GtkType.TREE_MODEL = g.GType(C.gtk_tree_model_get_type())
	GtkType.TREE_ITER = g.GType(C.gtk_tree_iter_get_type())
	GtkType.TREE_PATH = g.GType(C.gtk_tree_path_get_type())
	GtkType.TREE_ROW_REFERENCE = g.GType(C.gtk_tree_row_reference_get_type())
	GtkType.TREE_MODEL_SORT = g.GType(C.gtk_tree_model_sort_get_type())
	GtkType.TREE_SELECTION = g.GType(C.gtk_tree_selection_get_type())
	GtkType.TREE_SORTABLE = g.GType(C.gtk_tree_sortable_get_type())
	GtkType.TREE_STORE = g.GType(C.gtk_tree_store_get_type())
	GtkType.TREE_VIEW_COLUMN = g.GType(C.gtk_tree_view_column_get_type())
	GtkType.TREE_VIEW = g.GType(C.gtk_tree_view_get_type())
	GtkType.UI_MANAGER = g.GType(C.gtk_ui_manager_get_type())
	GtkType.VBUTTON_BOX = g.GType(C.gtk_vbutton_box_get_type())
	GtkType.VBOX = g.GType(C.gtk_vbox_get_type())
	GtkType.VIEWPORT = g.GType(C.gtk_viewport_get_type())
	GtkType.VOLUME_BUTTON = g.GType(C.gtk_volume_button_get_type())
	GtkType.VPANED = g.GType(C.gtk_vpaned_get_type())
	GtkType.VSCALE = g.GType(C.gtk_vscale_get_type())
	GtkType.VSCROLLBAR = g.GType(C.gtk_vscrollbar_get_type())
	GtkType.VSEPARATOR = g.GType(C.gtk_vseparator_get_type())
	GtkType.WIDGET = g.GType(C.gtk_widget_get_type())
	GtkType.REQUISITION = g.GType(C.gtk_requisition_get_type())
	GtkType.WIDGET_PATH = g.GType(C.gtk_widget_path_get_type())
	GtkType.WINDOW = g.GType(C.gtk_window_get_type())
	GtkType.WINDOW_GROUP = g.GType(C.gtk_window_group_get_type())
	GtkType.LICENSE = g.GType(C.gtk_license_get_type())
	GtkType.ACCEL_FLAGS = g.GType(C.gtk_accel_flags_get_type())
	GtkType.ASSISTANT_PAGE_TYPE = g.GType(C.gtk_assistant_page_type_get_type())
	GtkType.BUILDER_ERROR = g.GType(C.gtk_builder_error_get_type())
	GtkType.CALENDAR_DISPLAY_OPTIONS = g.GType(C.gtk_calendar_display_options_get_type())
	GtkType.CELL_RENDERER_STATE = g.GType(C.gtk_cell_renderer_state_get_type())
	GtkType.CELL_RENDERER_MODE = g.GType(C.gtk_cell_renderer_mode_get_type())
	GtkType.CELL_RENDERER_ACCEL_MODE = g.GType(C.gtk_cell_renderer_accel_mode_get_type())
	GtkType.CSS_PROVIDER_ERROR = g.GType(C.gtk_css_provider_error_get_type())
	GtkType.DEBUG_FLAG = g.GType(C.gtk_debug_flag_get_type())
	GtkType.DIALOG_FLAGS = g.GType(C.gtk_dialog_flags_get_type())
	GtkType.RESPONSE_TYPE = g.GType(C.gtk_response_type_get_type())
	GtkType.DEST_DEFAULTS = g.GType(C.gtk_dest_defaults_get_type())
	GtkType.TARGET_FLAGS = g.GType(C.gtk_target_flags_get_type())
	GtkType.ENTRY_ICON_POSITION = g.GType(C.gtk_entry_icon_position_get_type())
	GtkType.ALIGN = g.GType(C.gtk_align_get_type())
	GtkType.ARROW_PLACEMENT = g.GType(C.gtk_arrow_placement_get_type())
	GtkType.ARROW_TYPE = g.GType(C.gtk_arrow_type_get_type())
	GtkType.ATTACH_OPTIONS = g.GType(C.gtk_attach_options_get_type())
	GtkType.BUTTON_BOX_STYLE = g.GType(C.gtk_button_box_style_get_type())
	GtkType.DELETE_TYPE = g.GType(C.gtk_delete_type_get_type())
	GtkType.DIRECTION_TYPE = g.GType(C.gtk_direction_type_get_type())
	GtkType.EXPANDER_STYLE = g.GType(C.gtk_expander_style_get_type())
	GtkType.ICON_SIZE = g.GType(C.gtk_icon_size_get_type())
	GtkType.SENSITIVITY_TYPE = g.GType(C.gtk_sensitivity_type_get_type())
	GtkType.TEXT_DIRECTION = g.GType(C.gtk_text_direction_get_type())
	GtkType.JUSTIFICATION = g.GType(C.gtk_justification_get_type())
	GtkType.MENU_DIRECTION_TYPE = g.GType(C.gtk_menu_direction_type_get_type())
	GtkType.MESSAGE_TYPE = g.GType(C.gtk_message_type_get_type())
	GtkType.MOVEMENT_STEP = g.GType(C.gtk_movement_step_get_type())
	GtkType.SCROLL_STEP = g.GType(C.gtk_scroll_step_get_type())
	GtkType.ORIENTATION = g.GType(C.gtk_orientation_get_type())
	GtkType.CORNER_TYPE = g.GType(C.gtk_corner_type_get_type())
	GtkType.PACK_TYPE = g.GType(C.gtk_pack_type_get_type())
	GtkType.PATH_PRIORITY_TYPE = g.GType(C.gtk_path_priority_type_get_type())
	GtkType.PATH_TYPE = g.GType(C.gtk_path_type_get_type())
	GtkType.POLICY_TYPE = g.GType(C.gtk_policy_type_get_type())
	GtkType.POSITION_TYPE = g.GType(C.gtk_position_type_get_type())
	GtkType.RELIEF_STYLE = g.GType(C.gtk_relief_style_get_type())
	GtkType.RESIZE_MODE = g.GType(C.gtk_resize_mode_get_type())
	GtkType.SCROLL_TYPE = g.GType(C.gtk_scroll_type_get_type())
	GtkType.SELECTION_MODE = g.GType(C.gtk_selection_mode_get_type())
	GtkType.SHADOW_TYPE = g.GType(C.gtk_shadow_type_get_type())
	GtkType.STATE_TYPE = g.GType(C.gtk_state_type_get_type())
	GtkType.TOOLBAR_STYLE = g.GType(C.gtk_toolbar_style_get_type())
	GtkType.WINDOW_POSITION = g.GType(C.gtk_window_position_get_type())
	GtkType.WINDOW_TYPE = g.GType(C.gtk_window_type_get_type())
	GtkType.WRAP_MODE = g.GType(C.gtk_wrap_mode_get_type())
	GtkType.SORT_TYPE = g.GType(C.gtk_sort_type_get_type())
	GtkType.IM_PREEDIT_STYLE = g.GType(C.gtk_im_preedit_style_get_type())
	GtkType.IM_STATUS_STYLE = g.GType(C.gtk_im_status_style_get_type())
	GtkType.PACK_DIRECTION = g.GType(C.gtk_pack_direction_get_type())
	GtkType.PRINT_PAGES = g.GType(C.gtk_print_pages_get_type())
	GtkType.PAGE_SET = g.GType(C.gtk_page_set_get_type())
	GtkType.NUMBER_UP_LAYOUT = g.GType(C.gtk_number_up_layout_get_type())
	GtkType.PAGE_ORIENTATION = g.GType(C.gtk_page_orientation_get_type())
	GtkType.PRINT_QUALITY = g.GType(C.gtk_print_quality_get_type())
	GtkType.PRINT_DUPLEX = g.GType(C.gtk_print_duplex_get_type())
	GtkType.UNIT = g.GType(C.gtk_unit_get_type())
	GtkType.TREE_VIEW_GRID_LINES = g.GType(C.gtk_tree_view_grid_lines_get_type())
	GtkType.DRAG_RESULT = g.GType(C.gtk_drag_result_get_type())
	GtkType.SIZE_REQUEST_MODE = g.GType(C.gtk_size_request_mode_get_type())
	GtkType.SCROLLABLE_POLICY = g.GType(C.gtk_scrollable_policy_get_type())
	GtkType.STATE_FLAGS = g.GType(C.gtk_state_flags_get_type())
	GtkType.REGION_FLAGS = g.GType(C.gtk_region_flags_get_type())
	GtkType.JUNCTION_SIDES = g.GType(C.gtk_junction_sides_get_type())
	GtkType.BORDER_STYLE = g.GType(C.gtk_border_style_get_type())
	GtkType.FILE_CHOOSER_ACTION = g.GType(C.gtk_file_chooser_action_get_type())
	GtkType.FILE_CHOOSER_CONFIRMATION = g.GType(C.gtk_file_chooser_confirmation_get_type())
	GtkType.FILE_CHOOSER_ERROR = g.GType(C.gtk_file_chooser_error_get_type())
	GtkType.FILE_FILTER_FLAGS = g.GType(C.gtk_file_filter_flags_get_type())
	GtkType.ICON_LOOKUP_FLAGS = g.GType(C.gtk_icon_lookup_flags_get_type())
	GtkType.ICON_THEME_ERROR = g.GType(C.gtk_icon_theme_error_get_type())
	GtkType.ICON_VIEW_DROP_POSITION = g.GType(C.gtk_icon_view_drop_position_get_type())
	GtkType.IMAGE_TYPE = g.GType(C.gtk_image_type_get_type())
	GtkType.BUTTONS_TYPE = g.GType(C.gtk_buttons_type_get_type())
	GtkType.NOTEBOOK_TAB = g.GType(C.gtk_notebook_tab_get_type())
	GtkType.PRINT_STATUS = g.GType(C.gtk_print_status_get_type())
	GtkType.PRINT_OPERATION_RESULT = g.GType(C.gtk_print_operation_result_get_type())
	GtkType.PRINT_OPERATION_ACTION = g.GType(C.gtk_print_operation_action_get_type())
	GtkType.PRINT_ERROR = g.GType(C.gtk_print_error_get_type())
	GtkType.RC_FLAGS = g.GType(C.gtk_rc_flags_get_type())
	GtkType.RC_TOKEN_TYPE = g.GType(C.gtk_rc_token_type_get_type())
	GtkType.RECENT_SORT_TYPE = g.GType(C.gtk_recent_sort_type_get_type())
	GtkType.RECENT_CHOOSER_ERROR = g.GType(C.gtk_recent_chooser_error_get_type())
	GtkType.RECENT_FILTER_FLAGS = g.GType(C.gtk_recent_filter_flags_get_type())
	GtkType.RECENT_MANAGER_ERROR = g.GType(C.gtk_recent_manager_error_get_type())
	GtkType.SIZE_GROUP_MODE = g.GType(C.gtk_size_group_mode_get_type())
	GtkType.SPIN_BUTTON_UPDATE_POLICY = g.GType(C.gtk_spin_button_update_policy_get_type())
	GtkType.SPIN_TYPE = g.GType(C.gtk_spin_type_get_type())
	GtkType.TEXT_BUFFER_TARGET_INFO = g.GType(C.gtk_text_buffer_target_info_get_type())
	GtkType.TEXT_SEARCH_FLAGS = g.GType(C.gtk_text_search_flags_get_type())
	GtkType.TEXT_WINDOW_TYPE = g.GType(C.gtk_text_window_type_get_type())
	GtkType.TOOLBAR_SPACE_STYLE = g.GType(C.gtk_toolbar_space_style_get_type())
	GtkType.TOOL_PALETTE_DRAG_TARGETS = g.GType(C.gtk_tool_palette_drag_targets_get_type())
	GtkType.TREE_MODEL_FLAGS = g.GType(C.gtk_tree_model_flags_get_type())
	GtkType.TREE_VIEW_DROP_POSITION = g.GType(C.gtk_tree_view_drop_position_get_type())
	GtkType.TREE_VIEW_COLUMN_SIZING = g.GType(C.gtk_tree_view_column_sizing_get_type())
	GtkType.UI_MANAGER_ITEM_TYPE = g.GType(C.gtk_ui_manager_item_type_get_type())
	GtkType.WIDGET_HELP_TYPE = g.GType(C.gtk_widget_help_type_get_type())

	// Initialize GtkShadowType
	GtkShadow.NONE = GtkShadowType(0)
	GtkShadow.IN = GtkShadowType(1)
	GtkShadow.OUT = GtkShadowType(2)
	GtkShadow.ETCHED_IN = GtkShadowType(3)
	GtkShadow.ETCHED_OUT = GtkShadowType(4)

	// Initialize GtkStock
	GtkStock.ABOUT = GtkStockIDType("gtk-about")
	GtkStock.ADD = GtkStockIDType("gtk-add")
	GtkStock.APPLY = GtkStockIDType("gtk-apply")
	GtkStock.BOLD = GtkStockIDType("gtk-bold")
	GtkStock.CANCEL = GtkStockIDType("gtk-cancel")
	GtkStock.CAPS_LOCK_WARNING = GtkStockIDType("gtk-caps-lock-warning")
	GtkStock.CDROM = GtkStockIDType("gtk-cdrom")
	GtkStock.CLEAR = GtkStockIDType("gtk-clear")
	GtkStock.CLOSE = GtkStockIDType("gtk-close")
	GtkStock.COLOR_PICKER = GtkStockIDType("gtk-color-picker")
	GtkStock.CONNECT = GtkStockIDType("gtk-connect")
	GtkStock.CONVERT = GtkStockIDType("gtk-convert")
	GtkStock.COPY = GtkStockIDType("gtk-copy")
	GtkStock.CUT = GtkStockIDType("gtk-cut")
	GtkStock.DELETE = GtkStockIDType("gtk-delete")
	GtkStock.DIALOG_AUTHENTICATION = GtkStockIDType("gtk-dialog-authentication")
	GtkStock.DIALOG_INFO = GtkStockIDType("gtk-dialog-info")
	GtkStock.DIALOG_WARNING = GtkStockIDType("gtk-dialog-warning")
	GtkStock.DIALOG_ERROR = GtkStockIDType("gtk-dialog-error")
	GtkStock.DIALOG_QUESTION = GtkStockIDType("gtk-dialog-question")
	GtkStock.DIRECTORY = GtkStockIDType("gtk-directory")
	GtkStock.DISCARD = GtkStockIDType("gtk-discard")
	GtkStock.DISCONNECT = GtkStockIDType("gtk-disconnect")
	GtkStock.DND = GtkStockIDType("gtk-dnd")
	GtkStock.DND_MULTIPLE = GtkStockIDType("gtk-dnd-multiple")
	GtkStock.EDIT = GtkStockIDType("gtk-edit")
	GtkStock.EXECUTE = GtkStockIDType("gtk-execute")
	GtkStock.FILE = GtkStockIDType("gtk-file")
	GtkStock.FIND = GtkStockIDType("gtk-find")
	GtkStock.FIND_AND_REPLACE = GtkStockIDType("gtk-find-and-replace")
	GtkStock.FLOPPY = GtkStockIDType("gtk-floppy")
	GtkStock.FULLSCREEN = GtkStockIDType("gtk-fullscreen")
	GtkStock.GOTO_BOTTOM = GtkStockIDType("gtk-goto-bottom")
	GtkStock.GOTO_FIRST = GtkStockIDType("gtk-goto-first")
	GtkStock.GOTO_LAST = GtkStockIDType("gtk-goto-last")
	GtkStock.GOTO_TOP = GtkStockIDType("gtk-goto-top")
	GtkStock.GO_BACK = GtkStockIDType("gtk-go-back")
	GtkStock.GO_DOWN = GtkStockIDType("gtk-go-down")
	GtkStock.GO_FORWARD = GtkStockIDType("gtk-go-forward")
	GtkStock.GO_UP = GtkStockIDType("gtk-go-up")
	GtkStock.HARDDISK = GtkStockIDType("gtk-harddisk")
	GtkStock.HELP = GtkStockIDType("gtk-help")
	GtkStock.HOME = GtkStockIDType("gtk-home")
	GtkStock.INDEX = GtkStockIDType("gtk-index")
	GtkStock.INDENT = GtkStockIDType("gtk-indent")
	GtkStock.INFO = GtkStockIDType("gtk-info")
	GtkStock.ITALIC = GtkStockIDType("gtk-italic")
	GtkStock.JUMP_TO = GtkStockIDType("gtk-jump-to")
	GtkStock.JUSTIFY_CENTER = GtkStockIDType("gtk-justify-center")
	GtkStock.JUSTIFY_FILL = GtkStockIDType("gtk-justify-fill")
	GtkStock.JUSTIFY_LEFT = GtkStockIDType("gtk-justify-left")
	GtkStock.JUSTIFY_RIGHT = GtkStockIDType("gtk-justify-right")
	GtkStock.LEAVE_FULLSCREEN = GtkStockIDType("gtk-leave-fullscreen")
	GtkStock.MISSING_IMAGE = GtkStockIDType("gtk-missing-image")
	GtkStock.MEDIA_FORWARD = GtkStockIDType("gtk-media-forward")
	GtkStock.MEDIA_NEXT = GtkStockIDType("gtk-media-next")
	GtkStock.MEDIA_PAUSE = GtkStockIDType("gtk-media-pause")
	GtkStock.MEDIA_PLAY = GtkStockIDType("gtk-media-play")
	GtkStock.MEDIA_PREVIOUS = GtkStockIDType("gtk-media-previous")
	GtkStock.MEDIA_RECORD = GtkStockIDType("gtk-media-record")
	GtkStock.MEDIA_REWIND = GtkStockIDType("gtk-media-rewind")
	GtkStock.MEDIA_STOP = GtkStockIDType("gtk-media-stop")
	GtkStock.NETWORK = GtkStockIDType("gtk-network")
	GtkStock.NEW = GtkStockIDType("gtk-new")
	GtkStock.NO = GtkStockIDType("gtk-no")
	GtkStock.OK = GtkStockIDType("gtk-ok")
	GtkStock.OPEN = GtkStockIDType("gtk-open")
	GtkStock.ORIENTATION_PORTRAIT = GtkStockIDType("gtk-orientation-portrait")
	GtkStock.ORIENTATION_LANDSCAPE = GtkStockIDType("gtk-orientation-landscape")
	GtkStock.ORIENTATION_REVERSE_LANDSCAPE = GtkStockIDType("gtk-orientation-reverse-landscape")
	GtkStock.ORIENTATION_REVERSE_PORTRAIT = GtkStockIDType("gtk-orientation-reverse-portrait")
	GtkStock.PAGE_SETUP = GtkStockIDType("gtk-page-setup")
	GtkStock.PASTE = GtkStockIDType("gtk-paste")
	GtkStock.PREFERENCES = GtkStockIDType("gtk-preferences")
	GtkStock.PRINT = GtkStockIDType("gtk-print")
	GtkStock.PRINT_ERROR = GtkStockIDType("gtk-print-error")
	GtkStock.PRINT_PAUSED = GtkStockIDType("gtk-print-paused")
	GtkStock.PRINT_PREVIEW = GtkStockIDType("gtk-print-preview")
	GtkStock.PRINT_REPORT = GtkStockIDType("gtk-print-report")
	GtkStock.PRINT_WARNING = GtkStockIDType("gtk-print-warning")
	GtkStock.PROPERTIES = GtkStockIDType("gtk-properties")
	GtkStock.QUIT = GtkStockIDType("gtk-quit")
	GtkStock.REDO = GtkStockIDType("gtk-redo")
	GtkStock.REFRESH = GtkStockIDType("gtk-refresh")
	GtkStock.REMOVE = GtkStockIDType("gtk-remove")
	GtkStock.REVERT_TO_SAVED = GtkStockIDType("gtk-revert-to-saved")
	GtkStock.SAVE = GtkStockIDType("gtk-save")
	GtkStock.SAVE_AS = GtkStockIDType("gtk-save-as")
	GtkStock.SELECT_ALL = GtkStockIDType("gtk-select-all")
	GtkStock.SELECT_COLOR = GtkStockIDType("gtk-select-color")
	GtkStock.SELECT_FONT = GtkStockIDType("gtk-select-font")
	GtkStock.SORT_ASCENDING = GtkStockIDType("gtk-sort-ascending")
	GtkStock.SORT_DESCENDING = GtkStockIDType("gtk-sort-descending")
	GtkStock.SPELL_CHECK = GtkStockIDType("gtk-spell-check")
	GtkStock.STOP = GtkStockIDType("gtk-stop")
	GtkStock.STRIKETHROUGH = GtkStockIDType("gtk-strikethrough")
	GtkStock.UNDELETE = GtkStockIDType("gtk-undelete")
	GtkStock.UNDERLINE = GtkStockIDType("gtk-underline")
	GtkStock.UNDO = GtkStockIDType("gtk-undo")
	GtkStock.UNINDENT = GtkStockIDType("gtk-unindent")
	GtkStock.YES = GtkStockIDType("gtk-yes")
	GtkStock.ZOOM_100 = GtkStockIDType("gtk-zoom-100")
	GtkStock.ZOOM_FIT = GtkStockIDType("gtk-zoom-fit")
	GtkStock.ZOOM_IN = GtkStockIDType("gtk-zoom-in")
	GtkStock.ZOOM_OUT = GtkStockIDType("gtk-zoom-out")

	// Initialize GtkPosition
	GtkPosition.POS_LEFT = GtkPositionType(0)
	GtkPosition.POS_RIGHT = GtkPositionType(1)
	GtkPosition.POS_TOP = GtkPositionType(2)
	GtkPosition.POS_BOTTOM = GtkPositionType(3)
}