当前位置: 首页>>代码示例>>C++>>正文


C++ G_TYPE_CHECK_VALUE_TYPE函数代码示例

本文整理汇总了C++中G_TYPE_CHECK_VALUE_TYPE函数的典型用法代码示例。如果您正苦于以下问题:C++ G_TYPE_CHECK_VALUE_TYPE函数的具体用法?C++ G_TYPE_CHECK_VALUE_TYPE怎么用?C++ G_TYPE_CHECK_VALUE_TYPE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了G_TYPE_CHECK_VALUE_TYPE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: ease_main_value_take_editor_window_info

static void ease_main_value_take_editor_window_info (GValue* value, gpointer v_object) {
	EaseMainEditorWindowInfo* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, EASE_MAIN_TYPE_EDITOR_WINDOW_INFO));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, EASE_MAIN_TYPE_EDITOR_WINDOW_INFO));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		ease_main_editor_window_info_unref (old);
	}
}
开发者ID:rmujica,项目名称:Nitido,代码行数:15,代码来源:ease-main.c

示例2: value_take_hello_world

void value_take_hello_world (GValue* value, gpointer v_object) {
	HelloWorld* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_HELLO_WORLD));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_HELLO_WORLD));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		hello_world_unref (old);
	}
}
开发者ID:darkoverlordofdata,项目名称:sdl2-vala-valama,代码行数:15,代码来源:test.c

示例3: vala_value_take_target_value

void vala_value_take_target_value (GValue* value, gpointer v_object) {
	ValaTargetValue* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VALA_TYPE_TARGET_VALUE));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VALA_TYPE_TARGET_VALUE));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		vala_target_value_unref (old);
	}
}
开发者ID:tangentstorm,项目名称:saiwa,代码行数:15,代码来源:valatargetvalue.c

示例4: value_take_request_handler

void value_take_request_handler (GValue* value, gpointer v_object) {
	RequestHandler* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_REQUEST_HANDLER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_REQUEST_HANDLER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		request_handler_unref (old);
	}
}
开发者ID:BackupTheBerlios,项目名称:wiki4freetz-svn,代码行数:15,代码来源:wikihandler.c

示例5: graph_media_modelos_value_take_sentimiento

void graph_media_modelos_value_take_sentimiento (GValue* value, gpointer v_object) {
	GraphMediaModelosSentimiento* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GRAPH_MEDIA_MODELOS_TYPE_SENTIMIENTO));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GRAPH_MEDIA_MODELOS_TYPE_SENTIMIENTO));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		graph_media_modelos_sentimiento_unref (old);
	}
}
开发者ID:ndrd,项目名称:graphmedia,代码行数:15,代码来源:sentimientos.c

示例6: value_take_graphic

void value_take_graphic (GValue* value, gpointer v_object) {
	Graphic* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GRAPHIC));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GRAPHIC));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		graphic_unref (old);
	}
}
开发者ID:MerelyAPseudonym,项目名称:SmartSim,代码行数:15,代码来源:graphic.c

示例7: value_take_ug_settings

void value_take_ug_settings (GValue* value, gpointer v_object) {
	UGSettings* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_UG_SETTINGS));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_UG_SETTINGS));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		ug_settings_unref (old);
	}
}
开发者ID:fatman2021,项目名称:unity-greeter,代码行数:15,代码来源:settings.c

示例8: gnomenu_value_take_mnemonic_keys

void gnomenu_value_take_mnemonic_keys (GValue* value, gpointer v_object) {
	GnomenuMnemonicKeys* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GNOMENU_TYPE_MNEMONIC_KEYS));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GNOMENU_TYPE_MNEMONIC_KEYS));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		gnomenu_mnemonic_keys_unref (old);
	}
}
开发者ID:cheng-jk,项目名称:mate-globalmenu,代码行数:15,代码来源:mnemonickeys.c

示例9: vala_value_take_iterator

void vala_value_take_iterator (GValue* value, gpointer v_object) {
	ValaIterator* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VALA_TYPE_ITERATOR));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VALA_TYPE_ITERATOR));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		vala_iterator_unref (old);
	}
}
开发者ID:tangentstorm,项目名称:saiwa,代码行数:15,代码来源:iterator.c

示例10: value_take_qtable_entry

void value_take_qtable_entry (GValue* value, gpointer v_object) {
	QtableEntry* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QTABLE_ENTRY));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_QTABLE_ENTRY));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		qtable_entry_unref (old);
	}
}
开发者ID:emillon,项目名称:gmpc,代码行数:15,代码来源:gmpc-widgets-qtable.c

示例11: value_take_property_item

void value_take_property_item (GValue* value, gpointer v_object) {
	PropertyItem* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_PROPERTY_ITEM));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_PROPERTY_ITEM));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		property_item_unref (old);
	}
}
开发者ID:genba,项目名称:SmartSim,代码行数:15,代码来源:propertyitem.c

示例12: value_take_zenmoney

void value_take_zenmoney (GValue* value, gpointer v_object) {
	Zenmoney* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_ZENMONEY));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_ZENMONEY));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		zenmoney_unref (old);
	}
}
开发者ID:bigbn,项目名称:gzen-money,代码行数:15,代码来源:zenmoney.c

示例13: daemon_helpers_value_take_date_time_converter

void daemon_helpers_value_take_date_time_converter (GValue* value, gpointer v_object) {
	DaemonHelpersDateTimeConverter* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, DAEMON_HELPERS_TYPE_DATE_TIME_CONVERTER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, DAEMON_HELPERS_TYPE_DATE_TIME_CONVERTER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		daemon_helpers_date_time_converter_unref (old);
	}
}
开发者ID:SBFh,项目名称:SemesterLeistung,代码行数:15,代码来源:DateTimeConverter.c

示例14: vala_value_take_source_reference

void vala_value_take_source_reference (GValue* value, gpointer v_object) {
	ValaSourceReference* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VALA_TYPE_SOURCE_REFERENCE));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, VALA_TYPE_SOURCE_REFERENCE));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		vala_source_reference_unref (old);
	}
}
开发者ID:tangentstorm,项目名称:saiwa,代码行数:15,代码来源:valasourcereference.c

示例15: value_take_image_exporter

void value_take_image_exporter (GValue* value, gpointer v_object) {
	ImageExporter* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_IMAGE_EXPORTER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_IMAGE_EXPORTER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		image_exporter_unref (old);
	}
}
开发者ID:MerelyAPseudonym,项目名称:SmartSim,代码行数:15,代码来源:imageexporter.c


注:本文中的G_TYPE_CHECK_VALUE_TYPE函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。