Questions tagged [gobject]

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

336 questions
6
votes
1 answer

Using Cairo Regions in python with gi.repository

I can't seem to get cairo regions working in within using the gintrospection. For example from gi.repository import cairo reg = cairo.Region() will give me Traceback (most recent call last): File "", line 1, in MemoryError and…
Nikhil
  • 61
  • 3
6
votes
1 answer

Should I learn GObject and GLib to work with GTK?

I have to develop a native application on Linux for a school project. I chose to work with GTK and I started to read the official guide. The GTK API itself is pretty easy to understand but I'm facing problems with GObject and GLib, they are hard to…
Mathieu
  • 311
  • 2
  • 12
6
votes
3 answers

How to use gexiv2 in python?

I just compiled exiv2 and gexiv2 for my debian machiene and now I want to start working with gexiv2 to edit IPTC data using python. The gexiv2 website presents the following line of code: from gi.repository import GExiv2 But that already results…
JasonTS
  • 2,479
  • 4
  • 32
  • 48
6
votes
1 answer

Glib signals - How to check if a handler of an instance is already blocked?

After a handler of an instance has been blocked with g_signal_handler_block, is it possible to check if the handler is still being blocked or has been unblocked by g_signal_handler_unblock in the meantime, apart from storing the state in a boolean…
GTK 1.2.6 fanboy
  • 839
  • 1
  • 5
  • 20
5
votes
2 answers

python gobject.mainloop gobbles signal events

I have one module which uses python "threading" for concurrency, and "signal" for shutdown hook: signal.signal(signal.SIGINT, self.shutdownhook) I have another module which uses dbus and…
pstanton
  • 35,033
  • 24
  • 126
  • 168
5
votes
3 answers

Can not import modules from gi.repository

I can not import modules from gi.repository. Specifically not Gtk and GObject. I experienced this error both on Ubuntu 14.04 LTS and after reinstall also on Linux Mint 17. from gi.repository import Gtk, GObject Results in the 'unresolved reference'…
John Slathon
  • 353
  • 2
  • 6
  • 15
5
votes
1 answer

PyGI install on Windows cannot find Python installation

I tried to install PyGI with the windows installer available here : http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar I use Python 3.3 on Windows 7 x64. The setup started and said that no available Python install was found. The…
Mike Choko
  • 91
  • 1
  • 9
5
votes
2 answers

In Gobject, how to override parent class's method belong to an interface?

GObject class A implements interface IA, B is a derived class of A. How can B override A's method that is part of the interface IA? Or, is this possible in GObject? I know how to override parent class methods, but when inheritance meets…
faceclean
  • 3,781
  • 8
  • 39
  • 58
5
votes
1 answer

Is GObject used much outside of GNOME?

I understand GObject started out as part of gtk+ and was later separated from the GUI related elements. What I would like to know is: it used outside gtk+ ? what about other desktop environments, and other OSs like Windows or Mac OS? Are there any…
Nishant George Agrwal
  • 2,059
  • 2
  • 12
  • 14
4
votes
2 answers

gtk networking tutorials / resources / examples

Does anyone now where i can find some good tutorials / code samples regarding networking in gtk / glib. I'm trying to write a client application that connects to a simple server that echos back what it receives, using Gtk2 and i'm not sure how to go…
Vlad Balmos
  • 3,372
  • 19
  • 34
4
votes
1 answer

gobject/gnome/glib bindings for D using GIR?

Does anyone know if there are bindings for the gobject family of librares (glib, Gnome, clutter, etc) available for the D language that use the GIR introspection mechanism? I would like to write an app targeting GTK 3 and Clutter. Unfortunately, I…
David Given
  • 13,277
  • 9
  • 76
  • 123
4
votes
1 answer

Are there any Linux alternatives to libgpod for reading/writing iPod databases?

I am writing a C program to sync my iPod, in the same spirit as gtkpod but for the console. Gtkpod uses their own library, libgpod, for connecting to ipod dbs. I want to know if there are any GObject/GLib-free libraries available that I could use…
rhdoenges
  • 709
  • 1
  • 4
  • 4
4
votes
1 answer

Is there a way to get a list of all installed fonts in the system in GTK

Hi I am making a Gtk application and need to run a code to get a list of all the installed fonts in my system to use it to create a list similar to the Gtk.FontChooserWidget, is there any built-in function in Gtk that can do this ?
user10864898
4
votes
1 answer

Couldn't find include 'GObject-2.0.gir'

I am trying to install totem-pl-parser-3.10.7 on my Ubuntu 14.04, and after the autogen.sh + configure end successfully, I build with make. But I receive the following error: Couldn't find include 'GObject-2.0.gir' (search path: ['.', '.',…
Carlo Benussi
  • 165
  • 1
  • 14
4
votes
2 answers

Is there an official way to create discrete-valued range widget in GTK?

From what I can see, the behavior any Range-based widget is defined by an Adjustements one. Since there seems to be no official way to restrict the range to a few discrete values, I have tried a lots of ways to actually reset the values. What…
JohnW
  • 505
  • 3
  • 14
1 2
3
22 23