101 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
74
views
Vala class methods are present as <function>, not as <method> in generated .gir file created using g-ir-scanner
I found that valac can create .gir file directly from .vala files. But I want to achieve the same thing using g-ir-scanner.
I have a vala hello world code and I want to generate .gir file for it so ...
1
vote
1
answer
82
views
Do I need to manually free memory when using Haskell GI library?
In the Haskell GI libraries, there are many functions for freeing memory. For example destFree in GI.Poppler.Structs.Dest.
Do they really have to be used? Haskell has its own garbage collector, so I ...
1
vote
0
answers
90
views
Using a LSP server for Python with GObject Introspection bindings
I am writing code that heavily used GObject Introspection, so the code starts with:
import gi
from gi.repository import GObject
from gi.repository import GLib
# .. and more of the same
Using the ...
0
votes
1
answer
332
views
pkg-config cannot find adequate gobject-introspection-1.0 dependency on Ubuntu 24.04
I have a meson build that fails with:
Called: `/usr/bin/pkg-config --modversion gobject-introspection-1.0` -> 1
stderr:
Package dependency requirement 'glib-2.0 >= 2.80.0' could not be satisfied....
2
votes
1
answer
483
views
How can I use GObject Introspection to generate Java bindings?
I need to use the GLib library in the spice-gtk. Since, it’s a GLib library, that means I can use GObject introspection to generate Java bindings. I have found out that I need to get GIR XML files ...
0
votes
1
answer
206
views
GObject Introspection launch of GStreamer command to display, record and save a video source to mp4
I am trying to launch a GStreamer command in Python using the Gst.parse_launch() function from GObject Introspection. I have two video sources, one is a mp4 file and one is my webcam.
In terminal, my ...
1
vote
0
answers
38
views
Trigger visual update of CSS-specified property after Gtk3 widget state change
I have a widget on which I am drawing in a python-gtk3 application, and clicking on it triggers a specific action. I want to show some visual feedback on hover, to indicate the widget is interactive. ...
2
votes
1
answer
186
views
How to send a `vararg variadicArguments: kotlin.Any?` to a GObject native call with Kotlin Native?
I'm working on a GIR generator to create Kotlin Native bindings for GTK and other GObject based libraries. I reached a stage where I can almost compile the bindings for GLib but I'm stuck with the ...
1
vote
1
answer
864
views
Difficulties installing some gems (rsvg2 and gobject-introspection) on macOS 13
I'm trying to install the following gems without any luck:
rsvg2
gobject-introspection
Native library of gobject-introspection is installed via brew.
I'm using ruby 2.7.2 installed using RVM
when ever ...
1
vote
0
answers
379
views
Setup macOS13 Ventura with Apple M2 chip - Unable to install header files for compiling C extensions
While setting up a new laptop, macOS 13 Ventura, Apple M2 chip, for RoR.
The directions recommend running the following command:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/...
0
votes
1
answer
333
views
udev interface for python3?
Is there any example on how to capture udev events in Python3? I can't get events working at all in .237 (or 1.0?). And couldn't get any examples of GUdev with Introspection.
I'm not sure where the ...
1
vote
0
answers
108
views
Gtk.ApplicationWindow cannot be a Parent
While porting my App (with modal dialogs) from Gtk(3.0) to Gtk(4.0) I found out that I want to use a Gtk.ApplicationWindow instead of a Gtk.Window. But now the Dialogs are not modal/they do not accept ...
2
votes
0
answers
498
views
gobject-introspection install failure, not build
I am trying to install gobject-introduction in mac M1 using homebrew, but it will occur the following errors. I can not find relevant solution for it. Does any one have experience on it why i can not ...
4
votes
1
answer
520
views
How can I call methods on a GObject class written in C from python?
I am trying to create a GObject class in C and annotate it in a way, so that I can use the class from Python - but I think am missing something, since I get weird errors that I can't understand. Any ...
-1
votes
2
answers
193
views
Strange behaviour for Gtk.TreeView keypress events
I have a Gtk.Treeview which shows rows with items. I want to select lines with button 1 (default behaviour), and, on clicking with button 3 (right), a context menu should appear. Here are the results ...