Commit 3cda4e2e authored by Steve Baker Baker's avatar Steve Baker Baker

sync with the current CVS glib API

Original commit message from CVS:
sync with the current CVS glib API
parent f279992a
......@@ -73,8 +73,8 @@ G_SIGNAL_RUN_LAST
G_SIGNAL_RUN_FIRST
GCallback
G_CALLBACK
g_signal_newc
g2g_signal_newc
g_signal_new
g2g_signal_new
g_signal_lookup
g_signal_handler_block
g_signal_handler_unblock
......
......@@ -54,11 +54,11 @@ main(int argc, char *argv[])
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (src));
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (parse));
g_signal_connectc (G_OBJECT (parse), "new_pad",
G_CALLBACK (new_pad_created), pipeline, FALSE);
g_signal_connect (G_OBJECT (parse), "new_pad",
G_CALLBACK (new_pad_created), pipeline);
g_signal_connectc (G_OBJECT (src), "eos",
G_CALLBACK (eof), NULL, FALSE);
g_signal_connect (G_OBJECT (src), "eos",
G_CALLBACK (eof), NULL);
gst_pad_connect (gst_element_get_pad (src, "src"),
gst_element_get_pad (parse, "sink"));
......@@ -83,8 +83,8 @@ main(int argc, char *argv[])
'new_pad' that we connected to the mpeg1parser using:
</para>
<programlisting>
g_signal_connectc (G_OBJECT (parse), "new_pad",
G_CALLBACK (new_pad_created), pipeline, FALSE);
g_signal_connect (G_OBJECT (parse), "new_pad",
G_CALLBACK (new_pad_created), pipeline);
</programlisting>
<para>
When an elementary stream has been detected in the system stream,
......
......@@ -51,12 +51,12 @@ main (int argc, char *argv[])
autobin = gst_bin_new ("autobin");
cache = gst_elementfactory_make ("autoplugcache", "cache");
g_signal_connectc (G_OBJECT (cache), "cache_empty",
G_CALLBACK (gst_play_cache_empty), pipeline, FALSE);
g_signal_connect (G_OBJECT (cache), "cache_empty",
G_CALLBACK (gst_play_cache_empty), pipeline);
typefind = gst_elementfactory_make ("typefind", "typefind");
g_signal_connectc (G_OBJECT (typefind), "have_type",
G_CALLBACK (gst_play_have_type), pipeline, FALSE);
g_signal_connect (G_OBJECT (typefind), "have_type",
G_CALLBACK (gst_play_have_type), pipeline);
gst_bin_add (GST_BIN (autobin), cache);
gst_bin_add (GST_BIN (autobin), typefind);
......
......@@ -105,7 +105,7 @@ main(int argc, char *argv[])
...
mpeg2parser = gst_elementfactory_make ("mpeg2parse", "mpeg2parse");
g_signal_connectc (G_OBJECT (mpeg2parser), "new_pad", pad_connect_func, pipeline, FALSE);
g_signal_connect (G_OBJECT (mpeg2parser), "new_pad", pad_connect_func, pipeline);
...
// start the pipeline
......
......@@ -82,8 +82,8 @@ main (int argc, char *argv[])
disksrc = gst_elementfactory_make ("disksrc", "disk_source");
g_assert (disksrc != NULL);
g_object_set (G_OBJECT (disksrc), "location", argv[1], NULL);
g_signal_connectc (G_OBJECT (disksrc), "eos",
G_CALLBACK (eos), thread, FALSE);
g_signal_connect (G_OBJECT (disksrc), "eos",
G_CALLBACK (eos), thread);
queue = gst_elementfactory_make ("queue", "queue");
......
......@@ -95,8 +95,8 @@ main (int argc, char *argv[])
disksrc = gst_elementfactory_make ("disksrc", "disk_source");
g_assert (disksrc != NULL);
g_object_set (G_OBJECT (disksrc), "location", argv[1], NULL);
g_signal_connectc (G_OBJECT (disksrc), "eos",
G_CALLBACK (eos), thread, FALSE);
g_signal_connect (G_OBJECT (disksrc), "eos",
G_CALLBACK (eos), thread);
/* and an audio sink */
audiosink = gst_elementfactory_make ("audiosink", "play_audio");
......
......@@ -85,8 +85,8 @@ main(int argc, char *argv[])
gst_bin_add (GST_BIN (bin), disksrc);
gst_bin_add (GST_BIN (bin), typefind);
g_signal_connectc (G_OBJECT (typefind), "have_type",
G_CALLBACK (type_found), NULL, FALSE);
g_signal_connect (G_OBJECT (typefind), "have_type",
G_CALLBACK (type_found), NULL);
gst_pad_connect (gst_element_get_pad (disksrc, "src"),
gst_element_get_pad (typefind, "sink"));
......
......@@ -196,8 +196,8 @@ xmlNsPtr ns;
ns = xmlNewNs (NULL, "http://gstreamer.net/gst-test/1.0/", "test");
...
thread = gst_elementfactory_make ("thread", "thread");
g_signal_connectc (G_OBJECT (thread), "object_saved",
G_CALLBACK (object_saved), g_strdup ("decoder thread"), FALSE);
g_signal_connect (G_OBJECT (thread), "object_saved",
G_CALLBACK (object_saved), g_strdup ("decoder thread"));
...
</programlisting>
<para>
......@@ -246,7 +246,7 @@ object_saved (GstObject *object, xmlNodePtr parent, gpointer data)
<programlisting>
xml = gst_xml_new ();
g_signal_connectc (G_OBJECT (xml), "object_loaded",
g_signal_connect (G_OBJECT (xml), "object_loaded",
G_CALLBACK (xml_loaded), xml);
ret = gst_xml_parse_file (xml, "xmlTest.gst", NULL);
......
......@@ -169,10 +169,10 @@ int main (int argc, char *argv[])
/* set signal handlers */
g_print ("setting signal handlers\n");
g_signal_connectc (G_OBJECT(cutter), "cut_start",
(GCallback)cut_start_signal, NULL, FALSE);
g_signal_connectc (G_OBJECT(cutter), "cut_stop",
(GCallback)cut_stop_signal, NULL, FALSE);
g_signal_connect (G_OBJECT(cutter), "cut_start",
(GCallback)cut_start_signal, NULL);
g_signal_connect (G_OBJECT(cutter), "cut_stop",
(GCallback)cut_stop_signal, NULL);
/* start playing */
g_print ("setting to play\n");
......
......@@ -28,8 +28,8 @@ int main(int argc,char *argv[])
/* create a disk reader */
disksrc = gst_elementfactory_make("disksrc", "disk_source");
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
g_signal_connectc(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos),NULL,FALSE);
g_signal_connect(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos),NULL);
/* now it's time to get the parser */
parse = gst_elementfactory_make("mp3parse","parse");
......
......@@ -105,12 +105,12 @@ main (int argc, char *argv[])
autobin = gst_bin_new ("autobin");
cache = gst_elementfactory_make ("autoplugcache", "cache");
g_signal_connectc (G_OBJECT (cache), "cache_empty",
G_CALLBACK (gst_play_cache_empty), pipeline, FALSE);
g_signal_connect (G_OBJECT (cache), "cache_empty",
G_CALLBACK (gst_play_cache_empty), pipeline);
typefind = gst_elementfactory_make ("typefind", "typefind");
g_signal_connectc (G_OBJECT (typefind), "have_type",
G_CALLBACK (gst_play_have_type), pipeline, FALSE);
g_signal_connect (G_OBJECT (typefind), "have_type",
G_CALLBACK (gst_play_have_type), pipeline);
gst_bin_add (GST_BIN (autobin), cache);
gst_bin_add (GST_BIN (autobin), typefind);
......
......@@ -276,8 +276,8 @@ create_input_channel (int id, char* location)
gst_bin_add(GST_BIN(channel->pipe), channel->disksrc);
/* connect signal to eos of disksrc */
g_signal_connectc (G_OBJECT(channel->disksrc),"eos",
G_CALLBACK(eos),NULL,FALSE);
g_signal_connect (G_OBJECT(channel->disksrc),"eos",
G_CALLBACK(eos),NULL);
#ifdef DEBUG
......
......@@ -169,7 +169,7 @@ gst_example_class_init (GstExampleClass *klass)
* called asdf. The signal will also pass a pointer to the listeners
* which happens to be the example element itself */
gst_example_signals[ASDF] =
g_signal_newc("asdf", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new("asdf", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstExampleClass, asdf), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
GST_TYPE_EXAMPLE);
......
......@@ -36,8 +36,8 @@ int main(int argc,char *argv[])
disksrc = gst_elementfactory_make("disksrc", "disk_source");
g_assert(disksrc != NULL);
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
g_signal_connectc (G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread, FALSE);
g_signal_connect (G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread);
queue = gst_elementfactory_make("queue", "queue");
......
......@@ -36,8 +36,8 @@ int main(int argc,char *argv[])
disksrc = gst_elementfactory_make("disksrc", "disk_source");
g_assert(disksrc != NULL);
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
g_signal_connectc(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread, FALSE);
g_signal_connect(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread);
queue = gst_elementfactory_make("queue", "queue");
......
......@@ -38,8 +38,8 @@ int main(int argc,char *argv[])
disksrc = gst_elementfactory_make("disksrc", "disk_source");
g_assert(disksrc != NULL);
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
g_signal_connectc(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread, FALSE);
g_signal_connect(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread);
queue = gst_elementfactory_make("queue", "queue");
queue2 = gst_elementfactory_make("queue", "queue2");
......
......@@ -37,8 +37,8 @@ int main(int argc,char *argv[])
disksrc = gst_elementfactory_make("disksrc", "disk_source");
g_assert(disksrc != NULL);
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
g_signal_connectc(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread, FALSE);
g_signal_connect(G_OBJECT(disksrc),"eos",
G_CALLBACK(eos), thread);
/* and an audio sink */
osssink = gst_elementfactory_make("osssink", "play_audio");
......
......@@ -43,8 +43,8 @@ main(int argc, char *argv[])
gst_bin_add(GST_BIN(bin), disksrc);
gst_bin_add(GST_BIN(bin), typefind);
g_signal_connectc (G_OBJECT (typefind), "have_type",
type_found, NULL, FALSE);
g_signal_connect (G_OBJECT (typefind), "have_type",
type_found, NULL);
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
gst_element_get_pad(typefind,"sink"));
......
......@@ -32,12 +32,12 @@ int main(int argc,char *argv[])
//thread = gst_thread_new("thread");
thread = gst_elementfactory_make("thread", "thread");
g_assert(thread != NULL);
g_signal_connectc (G_OBJECT (thread), "object_saved", object_saved, g_strdup ("decoder thread"), FALSE);
g_signal_connect (G_OBJECT (thread), "object_saved", object_saved, g_strdup ("decoder thread"));
thread2 = gst_elementfactory_make("thread", "thread2");
//thread2 = gst_thread_new("thread2");
g_assert(thread2 != NULL);
g_signal_connectc (G_OBJECT (thread2), "object_saved", object_saved, g_strdup ("render thread"), FALSE);
g_signal_connect (G_OBJECT (thread2), "object_saved", object_saved, g_strdup ("render thread"));
/* create a new bin to hold the elements */
bin = gst_bin_new("bin");
......
......@@ -35,7 +35,7 @@ int main(int argc,char *argv[])
xml = gst_xml_new ();
g_signal_connectc (G_OBJECT (xml), "object_loaded", xml_loaded, xml, FALSE);
g_signal_connect (G_OBJECT (xml), "object_loaded", xml_loaded, xml);
ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
g_assert (ret == TRUE);
......
......@@ -73,9 +73,9 @@ int main (int argc,char *argv[]) {
autobin = gst_bin_new("autobin");
cache = gst_elementfactory_make ("autoplugcache","cache");
g_signal_connectc (G_OBJECT(cache),"cache_empty",(GCallback)cache_empty,NULL,FALSE);
g_signal_connect (G_OBJECT(cache),"cache_empty",(GCallback)cache_empty,NULL);
typefind = gst_elementfactory_make ("typefind", "typefind");
g_signal_connectc (G_OBJECT(typefind),"have_type",(GCallback)have_type,&caps,FALSE);
g_signal_connect (G_OBJECT(typefind),"have_type",(GCallback)have_type,&caps);
gst_bin_add (GST_BIN(autobin),cache);
gst_bin_add (GST_BIN(autobin),typefind);
gst_element_connect(cache,"src",typefind,"sink");
......
......@@ -143,12 +143,12 @@ gst_autoplugcache_class_init (GstAutoplugCacheClass *klass)
FALSE,G_PARAM_WRITABLE)); // CHECKME!
gst_autoplugcache_signals[FIRST_BUFFER] =
g_signal_newc ("first_buffer", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("first_buffer", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstAutoplugCacheClass, first_buffer), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
G_TYPE_POINTER);
gst_autoplugcache_signals[CACHE_EMPTY] =
g_signal_newc ("cache_empty", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("cache_empty", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstAutoplugCacheClass, cache_empty), NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
......
......@@ -138,7 +138,7 @@ gst_autoplugger_class_init (GstAutopluggerClass *klass)
/*
gst_autoplugger_signals[_EMPTY] =
g_signal_newc ("_empty", G_OBJECT_TYPE(gobject_class), G_SIGNAL_RUN_LAST,
g_signal_new ("_empty", G_OBJECT_TYPE(gobject_class), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstAutopluggerClass, _empty), NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
*/
......@@ -171,8 +171,8 @@ gst_autoplugger_init (GstAutoplugger *autoplugger)
g_object_set(G_OBJECT(autoplugger->cache),"caps_proxy",TRUE,NULL);
// attach signals to the cache
g_signal_connectc (G_OBJECT (autoplugger->cache), "first_buffer",
G_CALLBACK (gst_autoplugger_cache_first_buffer), autoplugger, FALSE);
g_signal_connect (G_OBJECT (autoplugger->cache), "first_buffer",
G_CALLBACK (gst_autoplugger_cache_first_buffer), autoplugger);
// add the cache to self
gst_bin_add (GST_BIN(autoplugger), autoplugger->cache);
......@@ -182,18 +182,18 @@ gst_autoplugger_init (GstAutoplugger *autoplugger)
autoplugger->cache_srcpad = gst_element_get_pad (autoplugger->cache, "src");
// attach handlers to the typefind pads
g_signal_connectc (G_OBJECT (autoplugger->cache_sinkpad), "caps_changed",
G_CALLBACK (gst_autoplugger_external_sink_caps_changed), autoplugger,FALSE);
g_signal_connectc (G_OBJECT (autoplugger->cache_srcpad), "caps_changed",
G_CALLBACK (gst_autoplugger_external_src_caps_changed), autoplugger,FALSE);
g_signal_connectc (G_OBJECT (autoplugger->cache_sinkpad), "caps_nego_failed",
G_CALLBACK (gst_autoplugger_external_sink_caps_nego_failed), autoplugger,FALSE);
g_signal_connectc (G_OBJECT (autoplugger->cache_srcpad), "caps_nego_failed",
G_CALLBACK (gst_autoplugger_external_src_caps_nego_failed), autoplugger,FALSE);
// g_signal_connectc (G_OBJECT (autoplugger->cache_sinkpad), "connected",
// gst_autoplugger_external_sink_connected, autoplugger,FALSE);
// g_signal_connectc (G_OBJECT (autoplugger->cache_srcpad), "connected",
// gst_autoplugger_external_src_connected, autoplugger,FALSE);
g_signal_connect (G_OBJECT (autoplugger->cache_sinkpad), "caps_changed",
G_CALLBACK (gst_autoplugger_external_sink_caps_changed), autoplugger);
g_signal_connect (G_OBJECT (autoplugger->cache_srcpad), "caps_changed",
G_CALLBACK (gst_autoplugger_external_src_caps_changed), autoplugger);
g_signal_connect (G_OBJECT (autoplugger->cache_sinkpad), "caps_nego_failed",
G_CALLBACK (gst_autoplugger_external_sink_caps_nego_failed), autoplugger);
g_signal_connect (G_OBJECT (autoplugger->cache_srcpad), "caps_nego_failed",
G_CALLBACK (gst_autoplugger_external_src_caps_nego_failed), autoplugger);
// g_signal_connect (G_OBJECT (autoplugger->cache_sinkpad), "connected",
// gst_autoplugger_external_sink_connected, autoplugger);
// g_signal_connect (G_OBJECT (autoplugger->cache_srcpad), "connected",
// gst_autoplugger_external_src_connected, autoplugger);
// ghost both of these pads to the outside world
gst_element_add_ghost_pad (GST_ELEMENT(autoplugger), autoplugger->cache_sinkpad, "sink");
......@@ -488,8 +488,8 @@ gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
// attach the cache_empty handler
// FIXME this is the wrong place, it shouldn't be done until we get successful caps nego!
g_signal_connectc (G_OBJECT(autoplugger->cache),"cache_empty",
G_CALLBACK (gst_autoplugger_cache_empty), autoplugger, FALSE);
g_signal_connect (G_OBJECT(autoplugger->cache),"cache_empty",
G_CALLBACK (gst_autoplugger_cache_empty), autoplugger);
autoplugger->paused--;
if (autoplugger->paused == 0)
......@@ -532,8 +532,8 @@ gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
GST_DEBUG(GST_CAT_AUTOPLUG, "creating typefind and setting signal handler\n");
autoplugger->typefind = gst_elementfactory_make("typefind","unnamed_typefind");
autoplugger->typefind_sinkpad = gst_element_get_pad(autoplugger->typefind,"sink");
g_signal_connectc (G_OBJECT(autoplugger->typefind),"have_type",
G_CALLBACK (gst_autoplugger_typefind_have_type), autoplugger, FALSE);
g_signal_connect (G_OBJECT(autoplugger->typefind),"have_type",
G_CALLBACK (gst_autoplugger_typefind_have_type), autoplugger);
}
// add it to self and attach it
GST_DEBUG(GST_CAT_AUTOPLUG, "adding typefind to self and connecting to cache\n");
......@@ -553,8 +553,8 @@ gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
} else {
// // attach the cache_empty handler, since the cache simply isn't needed
// g_signal_connectc (G_OBJECT(autoplugger->cache),"cache_empty",
// gst_autoplugger_cache_empty,autoplugger,FALSE);
// g_signal_connect (G_OBJECT(autoplugger->cache),"cache_empty",
// gst_autoplugger_cache_empty,autoplugger);
}
}
......
......@@ -226,8 +226,8 @@ gst_autoplug_pads_autoplug (GstElement *src, GstElement *sink)
if (!connected) {
GST_DEBUG (0,"gstpipeline: delaying pad connections for \"%s\" to \"%s\"\n",
GST_ELEMENT_NAME(src), GST_ELEMENT_NAME(sink));
g_signal_connectc (G_OBJECT(src), "new_pad",
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink, FALSE);
g_signal_connect (G_OBJECT(src), "new_pad",
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink);
}
}
......@@ -460,10 +460,10 @@ differ:
data->i = i;
GST_DEBUG (0,"delaying the creation of a ghostpad for %s\n", GST_ELEMENT_NAME (thesrcelement));
g_signal_connectc (G_OBJECT (thesrcelement), "new_pad",
G_CALLBACK (autoplug_dynamic_pad), data, FALSE);
g_signal_connectc (G_OBJECT (thesrcelement), "new_ghost_pad",
G_CALLBACK (autoplug_dynamic_pad), data, FALSE);
g_signal_connect (G_OBJECT (thesrcelement), "new_pad",
G_CALLBACK (autoplug_dynamic_pad), data);
g_signal_connect (G_OBJECT (thesrcelement), "new_ghost_pad",
G_CALLBACK (autoplug_dynamic_pad), data);
}
}
}
......
......@@ -228,10 +228,10 @@ gst_autoplug_pads_autoplug (GstElement *src, GstElement *sink)
if (!connected) {
GST_DEBUG (0,"gstpipeline: delaying pad connections for \"%s\" to \"%s\"\n",
GST_ELEMENT_NAME(src), GST_ELEMENT_NAME(sink));
g_signal_connectc (G_OBJECT(src),"new_pad",
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink, FALSE);
g_signal_connectc (G_OBJECT(src),"new_ghost_pad",
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink, FALSE);
g_signal_connect (G_OBJECT(src),"new_pad",
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink);
g_signal_connect (G_OBJECT(src),"new_ghost_pad",
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink);
}
}
......
......@@ -103,7 +103,7 @@ gst_disksink_class_init (GstDiskSinkClass *klass)
NULL,G_PARAM_READWRITE)); // CHECKME!
gst_disksink_signals[SIGNAL_HANDOFF] =
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstDiskSinkClass, handoff), NULL, NULL,
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
......
......@@ -111,7 +111,7 @@ gst_fakesink_class_init (GstFakeSinkClass *klass)
FALSE, G_PARAM_READWRITE));
gst_fakesink_signals[SIGNAL_HANDOFF] =
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstFakeSinkClass, handoff), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
G_TYPE_POINTER);
......
......@@ -151,7 +151,7 @@ gst_fakesrc_class_init (GstFakeSrcClass *klass)
FALSE, G_PARAM_READWRITE)); // CHECKME
gst_fakesrc_signals[SIGNAL_HANDOFF] =
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstFakeSrcClass, handoff), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
G_TYPE_POINTER);
......
......@@ -105,7 +105,7 @@ gst_identity_class_init (GstIdentityClass *klass)
TRUE,G_PARAM_READWRITE));
gst_identity_signals[SIGNAL_HANDOFF] =
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstIdentityClass, handoff), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
G_TYPE_POINTER);
......
......@@ -101,7 +101,7 @@ gst_multidisksrc_class_init (GstMultiDiskSrcClass *klass)
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
gst_multidisksrc_signals[NEW_FILE] =
g_signal_newc ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstMultiDiskSrcClass, new_file), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
G_TYPE_POINTER);
......
......@@ -101,7 +101,7 @@ gst_multidisksrc_class_init (GstMultiDiskSrcClass *klass)
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
gst_multidisksrc_signals[NEW_FILE] =
g_signal_newc ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstMultiDiskSrcClass, new_file), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
G_TYPE_POINTER);
......
......@@ -249,7 +249,7 @@ g2g_param_spec_string(gchar *name,gchar *nick,gchar *blurb,gchar *def,gint flags
guint
g2g_signal_newc (const gchar *name,
g2g_signal_new (const gchar *name,
GtkType object_type,
GtkSignalRunType signal_flags,
guint function_offset,
......
......@@ -138,9 +138,9 @@ gpointer g2g_object_new(GtkType type,gpointer blah_varargs_stuff);
#define GCallback gpointer // FIXME?
#define G_CALLBACK(f) ((gpointer)(f))
#define g_signal_newc g2g_signal_newc
#define g_signal_new g2g_signal_new
guint
g2g_signal_newc (const gchar *signal_name,
g2g_signal_new (const gchar *signal_name,
GtkType object_type,
GtkSignalRunType signal_flags,
guint function_offset,
......@@ -156,7 +156,7 @@ g_signal_emit(object,signal,detail,args...) \
gtk_signal_emit((GtkObject *)object,signal, ## args )
#define \
g_signal_connectc(object,name,func,func_data,swap) \
g_signal_connect(object,name,func,func_data) \
gtk_signal_connect((GtkObject *)object,name,func,func_data)
#define \
......
......@@ -65,7 +65,7 @@ gst_init (int *argc, char **argv[])
if (!g_thread_supported ()) g_thread_init (NULL);
#ifdef USE_GLIB2
g_type_init(0);
g_type_init();
#else
{
gchar *display;
......
......@@ -77,7 +77,7 @@ gst_autoplug_class_init(GstAutoplugClass *klass)
parent_class = g_type_class_ref (GST_TYPE_OBJECT);
gst_autoplug_signals[NEW_OBJECT] =
g_signal_newc ("new_object", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("new_object", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstAutoplugClass, new_object), NULL, NULL,
g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
GST_TYPE_OBJECT);
......
......@@ -108,7 +108,7 @@ gst_bin_class_init (GstBinClass *klass)
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
gst_bin_signals[OBJECT_ADDED] =
g_signal_newc ("object_added", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_FIRST,
g_signal_new ("object_added", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GstBinClass, object_added), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
GST_TYPE_ELEMENT);
......
......@@ -99,37 +99,37 @@ gst_element_class_init (GstElementClass *klass)
parent_class = g_type_class_ref(GST_TYPE_OBJECT);
gst_element_signals[STATE_CHANGE] =
g_signal_newc ("state_change", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("state_change", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstElementClass, state_change), NULL, NULL,
g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1,
G_TYPE_INT);
gst_element_signals[NEW_PAD] =
g_signal_newc ("new_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("new_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstElementClass, new_pad), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
GST_TYPE_PAD);
gst_element_signals[PAD_REMOVED] =
g_signal_newc ("pad_removed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("pad_removed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstElementClass, pad_removed), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
GST_TYPE_PAD);
gst_element_signals[NEW_GHOST_PAD] =
g_signal_newc ("new_ghost_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
g_signal_new ("new_ghost_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GstElementClass, new_ghost_pad), NULL, NULL,
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
GST_TYPE_PAD);
gst_element_signals[GHOST_PAD_REMOVED] =
g_signal_newc ("ghost_pad_removed", G_TYPE