GObject(GLib Object System) provides a portable object system and transparent cross-language interoperability.
Questions tagged [gobject]
336 questions
0
votes
1 answer
GObject.add_emission_hook usage
I was kindly directed to use GObject's "add_emission_hook" following a recent question on SO but I can't seem to find a usage example.
Does anyone have one to share, please?

jldupont
- 93,734
- 56
- 203
- 318
0
votes
3 answers
Making Objects Appear on Click
I am very new to Java programming. I am currently trying to make a game where white balls keep appearing on the screen and the user has to click and drag the ball off onto the right side of the canvas to make it disappear. I am not finished writing…

Emmaline Smith
- 51
- 1
- 1
- 3
0
votes
1 answer
No exceptions from GObject properties in pygobject?
I'm trying to do some exception handling in python3 / pygobject with a property inside one of my custom gobject classes. The code I had was something like this
try:
label = foo.label # This is a GObject.Property
except Exception:
label =…

OdraEncoded
- 3,064
- 3
- 20
- 31
0
votes
1 answer
How to get static constructor like initialization in GObject?
I use GLib/GObject in C, and I have come in some situations where I would want something like static constructors that exist i.e. in C# and Java.
A static constructor would only be run once, upon first creation of an object. What is a nice feature…

Dynalon
- 6,577
- 10
- 54
- 84
0
votes
1 answer
How to build gstreamer project using MinGW?
I've installed the following two msi on my Windows 7 (basic) 64-bit — I downloaded the msi from here.
gstreamer-sdk-devel-x86_64-2013.6.msi
gstreamer-sdk-x86_64-2013.6.msi
Now I'm trying to build this hello world program using MinGW (GCC 4.8.1)…

Nawaz
- 353,942
- 115
- 666
- 851
0
votes
2 answers
Which languages does libpeas support?
The plugin description for a libpeas plugin contains a line determining the Loader and with this the programming language the plugin is written in. It seems the documentation includes not list of available languages. Inspecting the git repository of…

XZS
- 2,374
- 2
- 19
- 38
0
votes
3 answers
How does GPermission work?
GPermission seems to have little to no documentation. How do you actually use it? (I'm currently using it for a GTK LockButton).

Forest Katsch
- 1,485
- 2
- 15
- 26
0
votes
1 answer
error using g_idle_add() in C++, same thing works in C
I need to use g_idle_add() in a C++ code, where a GSourceFunc is another class function and have to pass some arguments also. Have seen its use in C code only. So may be I am not getting the things right
While using g_idle_add() in a C code is…

user2618142
- 1,035
- 2
- 18
- 35
0
votes
2 answers
Including a gobject.h in codeblocks
I want to make class by using C GObject lib in Codeblocks. So I have 2 classes: A.h and A.c
But when i include gobject lib like this:
#include
It gives me an error:
Only can be included…

Aleksander Korovin
- 349
- 3
- 15
0
votes
1 answer
How can I flush a file descriptor returned by pygtk / gnome's gobject.spawn_async
I use the following calls to spawn a process, get back file descriptors for its stdin, stdout, and stderr, and watch for output on its stdout:
[widget.pid,widget.stdin,widget.stdout,widget.stderr] = \
…

mjtrac
- 187
- 9
0
votes
1 answer
GLib program compile error
I am trying to learn glib programming to see the flow when I create an object using g_object_new() but get this error when I compile, need some tips, what am I doing wrong with G_DEFINE_TYPE (line 25)?
gcc -Wall `pkg-config --cflags --libs glib-2.0`…

user2399453
- 2,930
- 5
- 33
- 60
0
votes
1 answer
PySide coexisting with gobject.io_add_watch()?
i'm developping a network application in python, that features zeroconf/avahi, bidirectional UDP-connection and a Qt-interface.
for my bi-directional communication i have written a small class that connects to a remote server via UDP and keeps…

umläute
- 28,885
- 9
- 68
- 122
0
votes
0 answers
DBus Rhythmbox Gobject set Properties
im having trouble with Gobject Introspection in Python.
Im trying to access Rhythmbox via DBUS and i can access the methods inside of org.mpris.MediaPlayer2.Player, but i am trying to set values for the attributes of org.mpris.MediaPlayer2.Player,…

Small Zane
- 33
- 4
0
votes
1 answer
Get parent class in Gobject
I am new to GObject.I confused something about getting pointer to father of one class.For example ,
On Gobject Spec, we have a class:
struct _MamanBarClass {
GObjectClass parent;
/* class members */
};
what is the difference between :…

Ngọc Tân Đỗ
- 99
- 2
- 10
0
votes
0 answers
Linux Error during make gobject-introspection-1.32.1
I want to install gobject-introspection-1.32.1 on my embedded Linux.
But during make this error message appear.
Do anybody now what to do?
-bash-3.2# make
[ -d gir ] || /bin/mkdir -p…

Peter
- 1,629
- 2
- 25
- 45