當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。