/tmp/cvs3vKuoV

Original commit message from CVS:
/tmp/cvs3vKuoV
This commit is contained in:
Andy Wingo 2005-08-16 16:47:45 +00:00
parent 1a39bca0ea
commit e3c70bcaeb
5 changed files with 38 additions and 5 deletions

View file

@ -1,3 +1,11 @@
2005-08-16 Andy Wingo <wingo@pobox.com>
* gst/gst.defs (get_pad_template): Change to operate on elements
and not their classes so it can be wrapped in pygtk 2.6.
* gst/gstelement.override (_wrap_gst_element_get_pad_template):
New override.
2005-08-11 Edward Hervey <edward@fluendo.com> 2005-08-11 Edward Hervey <edward@fluendo.com>
* gst/gst.override: (pygst_debug_log): * gst/gst.override: (pygst_debug_log):

2
common

@ -1 +1 @@
Subproject commit 856fbbfa88621ab67df141ead8d4d3df32c5c176 Subproject commit 8ff526a316f9b576e727b8e32cba0a53cdec07a6

View file

@ -168,7 +168,7 @@ class Window(gtk.Window):
if m: if m:
self.selected_pipe = m.get_value(i, 1) self.selected_pipe = m.get_value(i, 1)
pasteable = escape(self.selected_pipe, '\n)(') pasteable = escape(self.selected_pipe, '\n)(')
l.set_markup('<small><tt>%s</tt></small>' % pasteable) l.set_markup('<big><big><tt>%s</tt></big></big>' % pasteable)
else: else:
self.selected_pipe = None self.selected_pipe = None
l.set_markup('') l.set_markup('')

View file

@ -764,9 +764,10 @@
) )
) )
; 9 August 05 - changed to be a method on elements and not classes - wingo
(define-method get_pad_template (define-method get_pad_template
(of-object "GstElementClass") (of-object "GstElement")
(c-name "gst_element_class_get_pad_template") (c-name "gst_element_get_pad_template")
(return-type "GstPadTemplate*") (return-type "GstPadTemplate*")
(parameters (parameters
'("const-gchar*" "name") '("const-gchar*" "name")

View file

@ -1,4 +1,4 @@
/* -*- Mode: C; c-basic-offset: 4 -*- */ /* -*- Mode: C; c-basic-offset: 8 -*- */
/* gst-python /* gst-python
* Copyright (C) 2005 Johan Dahlin * Copyright (C) 2005 Johan Dahlin
* *
@ -26,6 +26,30 @@ ignore
gst_element_get_property gst_element_get_property
gst_element_set_property gst_element_set_property
%% %%
override gst_element_get_pad_template args
static PyObject *
_wrap_gst_element_get_pad_template(PyGObject *self, PyObject *args)
{
PyObject *ret;
gchar *name;
GstPadTemplate *tmpl;
if (!PyArg_ParseTuple(args, "s:GstElement.get_pad_template", &name))
return NULL;
tmpl = gst_element_class_get_pad_template
(GST_ELEMENT_GET_CLASS (self->obj), name);
if (tmpl) {
ret = pygobject_new (G_OBJECT (tmpl));
} else {
ret = Py_None;
Py_INCREF (ret);
}
return ret;
}
%%
override gst_element_get_pad_list noargs override gst_element_get_pad_list noargs
static PyObject * static PyObject *
_wrap_gst_element_get_pad_list(PyGObject *self) _wrap_gst_element_get_pad_list(PyGObject *self)