Пример #1
0
GType
gdk_region_get_type(void)
{
    static GType our_type = 0;

    if (our_type == 0)
        our_type = g_boxed_type_register_static ("GdkRegion",
                    (GBoxedCopyFunc)gdk_region_copy,
                    (GBoxedFreeFunc)gdk_region_destroy);
    return our_type;
}
Пример #2
0
GType
g_value_array_get_type (void)
{
  static GType type_id = 0;

  if (!type_id)
    type_id = g_boxed_type_register_static ("GValueArray",
					    (GBoxedCopyFunc) g_value_array_copy,
					    (GBoxedFreeFunc) g_value_array_free);
  return type_id;
}
Пример #3
0
GType
g_gstring_get_type (void)
{
  static GType type_id = 0;

  if (!type_id)
    type_id = g_boxed_type_register_static ("GString",	/* the naming is a bit odd, but GString is obviously not G_TYPE_STRING */
					    gstring_copy,
					    gstring_free);
  return type_id;
}
Пример #4
0
GType
g_value_get_type (void)
{
  static GType type_id = 0;

  if (!type_id)
    type_id = g_boxed_type_register_static ("GValue",
					    value_copy,
					    value_free);
  return type_id;
}
Пример #5
0
GType
g_closure_get_type (void)
{
  static GType type_id = 0;

  if (!type_id)
    type_id = g_boxed_type_register_static ("GClosure",
					    (GBoxedCopyFunc) g_closure_ref,
					    (GBoxedFreeFunc) g_closure_unref);
  return type_id;
}
Пример #6
0
GType
gtk_target_list_get_type(void)
{
    static GType our_type = 0;

    if (our_type == 0)
        our_type = g_boxed_type_register_static ("GtkTargetList",
                    (GBoxedCopyFunc)rbgtk_target_list_copy,
                    (GBoxedFreeFunc)gtk_target_list_unref);
    return our_type;
}
Пример #7
0
GType
pango_layout_iter_get_type(void)
{
    static GType our_type = 0;

    if (our_type == 0)
        our_type = g_boxed_type_register_static ("PangoLayoutIter",
                    (GBoxedCopyFunc)layout_iter_copy,
                    (GBoxedFreeFunc)pango_layout_iter_free);
    return our_type;
}
GType
gi_constructor_info_get_type(void)
{
    static GType type = 0;
    if (type == 0) {
        type = g_boxed_type_register_static("GIConstructorInfo",
                                            (GBoxedCopyFunc)g_base_info_ref,
                                            (GBoxedFreeFunc)g_base_info_unref);
    }
    return type;
}
Пример #9
0
GType
gegl_random_get_type (void)
{
  static GType our_type = 0;

  if (our_type == 0)
    our_type = g_boxed_type_register_static (g_intern_static_string ("GeglRandom"),
                                             (GBoxedCopyFunc) gegl_random_duplicate,
                                             (GBoxedFreeFunc) g_free);
  return our_type;
}
Пример #10
0
GType
gnm_color_get_type (void)
{
	static GType t = 0;

	if (t == 0)
		t = g_boxed_type_register_static ("GnmColor",
			 (GBoxedCopyFunc)style_color_ref,
			 (GBoxedFreeFunc)style_color_unref);
	return t;
}
Пример #11
0
GType
nmn_mobile_access_method_get_type (void)
{
    static GType type = 0;

    if (G_UNLIKELY (type == 0)) {
        type = g_boxed_type_register_static ("NmnMobileAccessMethod",
                                             (GBoxedCopyFunc) nmn_mobile_access_method_ref,
                                             (GBoxedFreeFunc) nmn_mobile_access_method_unref);
    }
    return type;
}
Пример #12
0
GType
gimp_rgb_get_type (void)
{
  static GType rgb_type = 0;

  if (!rgb_type)
    rgb_type = g_boxed_type_register_static ("GimpRGB",
                                             (GBoxedCopyFunc) gimp_rgb_copy,
                                             (GBoxedFreeFunc) g_free);

  return rgb_type;
}
/**
 * Get the GLib type ID for a DBusGConnection boxed type.
 *
 * @returns GLib type
 */
GType
dbus_g_connection_get_g_type (void)
{
  static GType our_type = 0;
  
  if (our_type == 0)
    our_type = g_boxed_type_register_static ("DBusGConnection",
                                             (GBoxedCopyFunc) dbus_g_connection_ref,
                                             (GBoxedFreeFunc) dbus_g_connection_unref);

  return our_type;
}
Пример #14
0
GType
gimp_bezier_desc_get_type (void)
{
  static GType type = 0;

  if (! type)
    type = g_boxed_type_register_static ("GimpBezierDesc",
                                         (GBoxedCopyFunc) gimp_bezier_desc_copy,
                                         (GBoxedFreeFunc) gimp_bezier_desc_free);

  return type;
}
Пример #15
0
GType
gnc_value_list_get_type (void)
{
    static GType type = 0;
    if (type == 0)
    {
	type = g_boxed_type_register_static ("gnc_value_list",
					     (GBoxedCopyFunc)gnc_value_list_copy,
					     (GBoxedFreeFunc)gnc_value_list_free);
    }
    return type;
}
Пример #16
0
GType
gnm_criteria_get_type (void)
{
	static GType t = 0;

	if (t == 0) {
		t = g_boxed_type_register_static ("GnmCriteria",
			 (GBoxedCopyFunc)gnm_criteria_ref,
			 (GBoxedFreeFunc)free_criteria);
	}
	return t;
}
Пример #17
0
GType
gnm_app_extra_ui_get_type (void)
{
	static GType t = 0;

	if (t == 0) {
		t = g_boxed_type_register_static ("GnmAppExtraUI",
			 (GBoxedCopyFunc)gnm_app_extra_ui_ref,
			 (GBoxedFreeFunc)gnm_app_extra_ui_ref);
	}
	return t;
}
Пример #18
0
GType
nmn_mobile_provider_get_type (void)
{
    static GType type = 0;

    if (G_UNLIKELY (type == 0)) {
        type = g_boxed_type_register_static ("NmnMobileProvider",
                                             (GBoxedCopyFunc) nmn_mobile_provider_ref,
                                             (GBoxedFreeFunc) nmn_mobile_provider_unref);
    }
    return type;
}
Пример #19
0
GType
gnm_action_get_type (void)
{
	static GType t = 0;

	if (t == 0) {
		t = g_boxed_type_register_static ("GnmAction",
			 (GBoxedCopyFunc)gnm_action_copy,
			 (GBoxedFreeFunc)gnm_action_free);
	}
	return t;
}
GType 
anjuta_plugin_description_get_type (void)
{
	static GType type_id = 0;

	if (!type_id)
		type_id = g_boxed_type_register_static ("AnjutaPluginDescription",
		                                        (GBoxedCopyFunc) anjuta_plugin_description_copy,
		                                        (GBoxedFreeFunc) anjuta_plugin_description_free);

	return type_id;
}
Пример #21
0
GType
cinnamon_generic_container_allocation_get_type (void)
{
  static GType gtype = G_TYPE_INVALID;
  if (gtype == G_TYPE_INVALID)
    {
      gtype = g_boxed_type_register_static ("CinnamonGenericContainerAllocation",
         (GBoxedCopyFunc)cinnamon_generic_container_allocation_ref,
         (GBoxedFreeFunc)cinnamon_generic_container_allocation_unref);
    }
  return gtype;
}
Пример #22
0
GType
gimp_anchor_get_type (void)
{
  static GType anchor_type = 0;

  if (!anchor_type)
    anchor_type = g_boxed_type_register_static ("GimpAnchor",
                                                (GBoxedCopyFunc) gimp_anchor_copy,
                                                (GBoxedFreeFunc) gimp_anchor_free);

  return anchor_type;
}
Пример #23
0
GType
iris_rrobin_get_type (void)
{
	static GType rrobin_type = 0;
	if (G_UNLIKELY (!rrobin_type))
		rrobin_type = g_boxed_type_register_static (
				"IrisRRobin",
				(GBoxedCopyFunc)iris_rrobin_ref,
				(GBoxedFreeFunc)iris_rrobin_unref);
	return rrobin_type;

}
Пример #24
0
GType
pango_glyph_string_get_type (void)
{
  static GType our_type = 0;

  if (G_UNLIKELY (our_type == 0))
    our_type = g_boxed_type_register_static (I_("PangoGlyphString"),
					     (GBoxedCopyFunc)pango_glyph_string_copy,
					     (GBoxedFreeFunc)pango_glyph_string_free);

  return our_type;
}
Пример #25
0
GType
adg_table_cell_get_type(void)
{
    static GType cell_type = 0;

    if (G_UNLIKELY(cell_type == 0))
        cell_type = g_boxed_type_register_static("AdgTableCell",
                                                 (GBoxedCopyFunc) adg_table_cell_dup,
                                                 (GBoxedFreeFunc) adg_table_cell_free);

    return cell_type;
}
Пример #26
0
GType
gst_index_entry_get_type (void)
{
  static GType index_entry_type = 0;

  if (!index_entry_type) {
    index_entry_type = g_boxed_type_register_static ("GstFlvDemuxIndexEntry",
        (GBoxedCopyFunc) gst_index_entry_copy,
        (GBoxedFreeFunc) gst_index_entry_free);
  }
  return index_entry_type;
}
Пример #27
0
GType
gimp_hsl_get_type (void)
{
  static GType hsl_type = 0;

  if (!hsl_type)
    hsl_type = g_boxed_type_register_static ("GimpHSL",
                                              (GBoxedCopyFunc) gimp_hsl_copy,
                                              (GBoxedFreeFunc) g_free);

  return hsl_type;
}
Пример #28
0
GType
json_object_get_type (void)
{
  static GType object_type = 0;

  if (G_UNLIKELY (!object_type))
    object_type = g_boxed_type_register_static (g_intern_static_string ("JsonObject"),
                                                (GBoxedCopyFunc) json_object_ref,
                                                (GBoxedFreeFunc) json_object_unref);

  return object_type;
}
/**
 * Get the GLib type ID for a DBusGMessage boxed type.
 *
 * @returns GLib type
 */
GType
dbus_g_message_get_g_type (void)
{
  static GType our_type = 0;
  
  if (our_type == 0)
    our_type = g_boxed_type_register_static ("DBusGMessage",
                                             (GBoxedCopyFunc) dbus_g_message_ref,
                                             (GBoxedFreeFunc) dbus_g_message_unref);

  return our_type;
}
Пример #30
0
static GType
g_io_scheduler_job_get_type(void)
{
        static GType our_type = 0;

        if (our_type == 0)
                our_type = g_boxed_type_register_static("GIOSchedulerJob",
                                                        (GBoxedCopyFunc)ioschedulerjob_copy,
                                                        (GBoxedFreeFunc)ioschedulerjob_free);

        return our_type;
}