gobject

Material to learn GObject and Glib [closed]

拥有回忆 提交于 2019-12-03 00:18:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am comfortable with C. but need to learn GObject and Glib for gstreamer . All i found on net is Gobject reference manual. Its good but looking for tutorial for Gobject/Glib as the main focus is on gstreamer. So pls share any other resources to learn the glib and gobject. 回答1: Start with Glib, its quite easy

PyGObject GTK+ 3 - Documentation?

蹲街弑〆低调 提交于 2019-12-02 15:38:47
PyGObject appears to have no real documentation. This tutorial is as close as it gets. I've been struggling all morning simply trying to find a description of the arguments accepted by the Gtk.Window constructor. It seems I can't do much reflection in Python because everything in PyGObject is dynamically generated. All I want is to know what arguments I can pass to this constructor! There doesn't appear to be an equivalent of this object in the GTK+ 3 documentation, and reading the source code to figure out the bindings has proven to be an extremely daunting task. Any ideas?? I agree that this

Material to learn GObject and Glib [closed]

妖精的绣舞 提交于 2019-12-02 14:01:10
I am comfortable with C. but need to learn GObject and Glib for gstreamer . All i found on net is Gobject reference manual. Its good but looking for tutorial for Gobject/Glib as the main focus is on gstreamer. So pls share any other resources to learn the glib and gobject. Start with Glib, its quite easy and well described here: Glib Reference Manual GObject is mostly a lot of boilerplate code to achieve object orientation. Try out the "maman bar" examples found in the GObject Reference Manual For me, GStreamer took the most time to understand. The documentation is good but there is alot to

interfacing gobject with C++

吃可爱长大的小学妹 提交于 2019-12-02 10:33:53
I’m trying to create a custom audio sink plugin for gstreamer using the Gst::AudioSink as a base class. For me this involves multiple learning curves as I’m new to gstreamer, gstreamermm and gobject. Also I have no background or real interest in gtkmm as I’m not working on GUI code at present. I am trying to create a class along the lines of: class MyAudioSink: public Gst::AudioSink { public: explicit MyAudioSink(KantarAudioSink *gobj); virtual ~MyAudioSink(); static void class_init(Gst::ElementClass<MyAudioSink> *klass); virtual int write_vfunc(gpointer data, guint length) override; virtual

GObject Gtk, Gnome, Gtk+, Gl, Gtk2, Gtk3…I don't understand?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 16:00:22
all I need some window to host webkit or/and cairo drwaing, but i have to deal with all that first to understand what I'm doing. now. I'm lost and no more understand what's all that about. and things get worse when I try working with binding or trying to figure what are dependencies for something. for example: in python, pyGtk deprecated and replaced by pyGObject(sometimes called pyGl!!) there are many sites, many downloads and versions, mixed outdated and new references, but not one architectural view of the whole thing . what I don't understand..is how all these things mixed with each other

Extending from GtkBin

放肆的年华 提交于 2019-12-01 10:47:48
问题 I'm trying to make a custom widget that resembles the "quick search" entry that Gtk uses on all TreeView-like widgets. Here's a simplified example of my initial idea: from gi.repository import Gtk class QuickSearch(Gtk.Bin): def __init__(self, *args, **kwargs): super(QuickSearch, self).__init__(*args, **kwargs) self.add(Gtk.Entry()) win = Gtk.Window() win.connect("delete-event", Gtk.main_quit) search = QuickSearch() win.add(search) win.show_all() Gtk.main() The problems are the following: If

What does g_signal_connect_swapped() do?

浪尽此生 提交于 2019-11-29 09:06:16
According to GObject reference g_signal_connect_swapped(instance, detailed_signal, c_handler, data); connects a GCallback function to a signal for a particular object. The instance on which the signal is emitted and data will be swapped when calling the handler. I don't quite get what this means. Does this mean that the data will point to the object pointed to by instance and instance will point to the object that was pointed to by data or am I making a mistake here? If former is the case then what is the logic behind this? You understand correctly. This allows you to do tricks like the

What does g_signal_connect_swapped() do?

谁说我不能喝 提交于 2019-11-28 02:28:31
问题 According to GObject reference g_signal_connect_swapped(instance, detailed_signal, c_handler, data); connects a GCallback function to a signal for a particular object. The instance on which the signal is emitted and data will be swapped when calling the handler. I don't quite get what this means. Does this mean that the data will point to the object pointed to by instance and instance will point to the object that was pointed to by data or am I making a mistake here? If former is the case