gobject-introspection r630 - trunk/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r630 - trunk/giscanner
- Date: Sat, 27 Sep 2008 22:00:49 +0000 (UTC)
Author: walters
Date: Sat Sep 27 22:00:48 2008
New Revision: 630
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=630&view=rev
Log:
Rename similarly-named function just for clarity
Modified:
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Sat Sep 27 22:00:48 2008
@@ -169,7 +169,7 @@
# Helper functions
- def _create_type(self, type_id):
+ def _type_from_gtype(self, type_id):
ctype = cgobject.type_name(type_id)
type_name = type_name_from_ctype(ctype)
type_name = type_name.replace('*', '')
@@ -589,7 +589,7 @@
def _introspect_signals(self, node, type_id):
for signal_info in cgobject.signal_list(type_id):
- rtype = self._create_type(signal_info.return_type)
+ rtype = self._type_from_gtype(signal_info.return_type)
return_ = Return(rtype)
signal = GLibSignal(signal_info.signal_name, return_)
for i, parameter in enumerate(signal_info.get_params()):
@@ -597,7 +597,7 @@
name = 'object'
else:
name = 'p%s' % (i-1, )
- ptype = self._create_type(parameter)
+ ptype = self._type_from_gtype(parameter)
param = Parameter(name, ptype)
signal.parameters.append(param)
node.signals.append(signal)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]