Questions tagged [gobject]

GObject(GLib Object System) provides a portable object system and transparent cross-language interoperability.

336 questions
57
votes
5 answers

pygobject-2.28.6 won't configure: No package 'gobject-introspection-1.0' found, how do I resolve?

I'm trying to get pygobject-2.28.6 to compile in cygwin (version in repository is 2.28.4 which has some issues). Here is the tail of ./configure: checking for GLIB - version >= 2.24.0... yes (version 2.34.3) checking for ffi... checking for FFI...…
Stupac
  • 631
  • 1
  • 6
  • 6
51
votes
6 answers

Material to learn GObject and Glib

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…
rahijain
  • 885
  • 1
  • 8
  • 10
41
votes
2 answers

What exactly are GLib and GObject?

I have been looking into the source code of python-mpdor and it mentions that it is gobject-based, for easy event handling (in the high-level client class). Can someone explain to me in simple terms what exactly are Glib and GObject and how do…
RanRag
  • 48,359
  • 38
  • 114
  • 167
30
votes
4 answers

Why Was the GObject System Created?

The Introduction Okay, so after version 0.60 of GTK+, the designers realized that for future development and progress, the entire toolkit needed to be rewritten to be object-oriented. Now, since C doesn't support OOP, to provide object-orientation…
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
30
votes
1 answer

What does g_signal_connect_swapped() do?

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…
Aaron S
  • 5,023
  • 4
  • 29
  • 30
26
votes
5 answers

PyGObject GTK+ 3 - Documentation?

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…
HOLOGRAPHICpizza
  • 975
  • 1
  • 9
  • 14
16
votes
3 answers

Can Vala be used without GObject?

I'm new to Vala. I'm not familiar with GObject. As I understand it, GObject was spun off from the GLib project from GNOME. Correct me if I'm wrong. I do like the syntax and implementation of Vala very much, yet it is not in my intentions to write…
thwd
  • 23,956
  • 8
  • 74
  • 108
15
votes
8 answers

ImportError: No module named gi.repository

I'm trying to launch python script on Ubuntu 10.04: from gi.repository import Nautilus, GObject It doesn't work: Traceback (most recent call last): File "script.py", line 1, in from gi.repository import Nautilus, GObject …
user3617166
  • 151
  • 1
  • 1
  • 3
13
votes
5 answers

ModuleNotFoundError: No module named 'gi'

I am trying to run the following program: import gi gi.require_version('Gst', '1.0') from gi.repository import GObject, Gst Bu I am getting: Traceback (most recent call last): File "application.py", line 2, in import…
Gabrielle
  • 812
  • 2
  • 7
  • 28
11
votes
1 answer

Why does python gstreamer crash without "gobject.threads_init()" at the top of my script?

I have written a python script to use gstreamer (pygst and gst modules) to calculate replaygain tags, and it was crashing inconsistently with various gobject errors. I found somewhere that you could fix this by putting the following boilerplate at…
Ryan C. Thompson
  • 40,856
  • 28
  • 97
  • 159
10
votes
3 answers

GObject vs C++: What benefits does GObj offer, and how does it compare in speed/size?

What does it offer to an object oriented language such as C++? or is it not possible to use GTK+ without it? Is the GObject implementation of objects is of a similar quality to that of C++ in terms of the size and speed of an executable assuming…
user280407
10
votes
3 answers

Is it safe to call a C function with more arguments than it expects?

I'm repeatedly bumping into the problem of setting up signal handlers in GTK+ code, not needing several of the parameters and tempted to use the same function as the handler for several signals, whose handlers have different signatures - but with…
Bernd Jendrissek
  • 1,088
  • 6
  • 15
10
votes
1 answer

GTK+ 3.0: How to use a Gtk.TreeStore with custom model items?

I'm trying to develop a GTK application in Python and I'm really stuck with the correct usage of a gtk.TreeStore. My main problem: I've already parsed some JSON and I have my own data structure which ist basically a Python list and two kinds of…
f4lco
  • 3,728
  • 5
  • 28
  • 53
9
votes
2 answers

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

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…
KA1
  • 643
  • 6
  • 15
9
votes
3 answers

Mysterious GObject warning: assertion `G_IS_OBJECT (object)' failed

I have a warning when I run my GTK (Python GObject introspection) application and I can't figure out its source. When the application is loading and I'm populating a GtkListStore, after the very first time I append a row, I get the following…
user626998
1
2 3
22 23