Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
75 views

I'm writing some C code where I want to have a NULL-terminated GPtrArray containing static strings. Typically, I would use g_ptr_array_new_null_terminated () to construct a NULL-terminated GPtrArray, ...
Newbyte's user avatar
  • 3,957
3 votes
0 answers
56 views

I'd like to build a fake Gimp host in C# to query/run windows gimp plug-in. For reference, at the end of this message, you'll find what I understood of the protocol to talk to a Gimp plug-in. To do ...
v1nce's user avatar
  • 850
2 votes
3 answers
270 views

Is glib part of the implementation said in the C standard? Why? I find glib has this: static inline GList *_g_list_remove_link (GList *list,GList *link){...} If glib is not part of the implementation,...
gsm's user avatar
  • 109
1 vote
2 answers
110 views

I'm writing a unit test with GLib's testing framework where I want to check if two pointers point to the same place in memory. I do NOT want to compare the actual memory which they point to, so ...
Newbyte's user avatar
  • 3,957
0 votes
1 answer
56 views

Following this article, GDB is installed in the same prefix as glib (I'm using official distro packages. However, when I run info auto-load python-scripts, I get No auto-load scripts. I have enable ...
expoodo's user avatar
  • 123
0 votes
1 answer
38 views

I am trying to implement drag-n-drop with Gtkmm4. Inside DragSource's prepare signal callback I return a ContentProvider: // ... char* buffer; gsize length; file->load_contents(buffer, length); ...
xBACP's user avatar
  • 611
0 votes
0 answers
47 views

I create an test_object which contains a function _finalize. G_DECLARE_FINAL_TYPE(TestObject, test_object, TEST, OBJECT, GObject) .... void test_object_finalize(GObject* object) { GObjectClass *...
Yaroslav's user avatar
  • 101
0 votes
2 answers
90 views

I'm writing some testcases for a program using the GLib testing facilities. I want to assert that two floats have the same value, and g_assert_cmpfloat () seemed like an appropriate function for that. ...
Newbyte's user avatar
  • 3,957
0 votes
1 answer
41 views

After adding 10 structures to a GSList, using g_slist_last to retrieve the last structure does not produce the same result as using g_slist_foreach to view the last structure. Code sample: #include &...
9-Pin's user avatar
  • 482
1 vote
1 answer
80 views

I'm writing some GObject code, and so far all my types have implemented an interface but been final types. Now I'm trying to make a new type that implements the same interface but also is a derivable ...
Newbyte's user avatar
  • 3,957
4 votes
5 answers
1k views

I want to upgrade glib to 2.82.5 through homebrew on mac running sequoia, but it failed with this python dependency not found error ==> Upgrading glib 2.82.4 -> 2.82.5 ==> Patching ==> ...
noir's user avatar
  • 227
0 votes
1 answer
73 views

I get different Julian dates for the same Gregorian date depending on the API. For the Gregorian date 2025-02-05: According to longpela, the Julian date is 25036. According to GLib, the Julian date ...
9-Pin's user avatar
  • 482
1 vote
2 answers
85 views

I'm writing some C code using GLib and using GHashTable to store some data. However, sometimes I need to do a "reverse lookup" where I need to find the first key that matches a given value. ...
Newbyte's user avatar
  • 3,957
1 vote
1 answer
52 views

Objective: Spawn a Python script from C/GLib, and detect when Python outputs a string. The following Python script slow_output.py repeatedly prints a string to STDOUT. import time for x in range(10): ...
9-Pin's user avatar
  • 482
1 vote
0 answers
64 views

I approached a problem when I tried to use XXH3_64bit from <xxhash.h> module over the wrapper with __fastcall for GHashTable initialization, but the type definition for GHashFunc requires the ...
Brain_driver_not_found's user avatar
1 vote
0 answers
81 views

Trying to create a function to check available Vulkan extensions, however my executable runs and closes within a second with an error in terminal that I've barely managed to copy. It's a CMake project....
Brain_driver_not_found's user avatar
3 votes
2 answers
386 views

I've been working on an application written in C that uses GLib and exclusively targets Linux. Generally my experience has been that GLib's utilities are useful and generally make writing C easier ...
Newbyte's user avatar
  • 3,957
0 votes
1 answer
101 views

I'm working on a GTK program written in C. In a specific function, adw_combo_row_set_model (), I need to provide a GListModel. I have a GList. How can I either convert the GList into a GListModel or ...
Newbyte's user avatar
  • 3,957
0 votes
1 answer
190 views

I am trying to load a theme from a resource file style.css The following is a basic style that I need to apply window { background-color: orchid; } main.c I then write a basic gtk application and ...
Bret Joseph's user avatar
1 vote
1 answer
750 views

I am trying to use nixOS to build a gtk4 application that requires glib. When running a nix-shell with the following shell.nix: { pkgs ? import <nixpkgs> {} }: pkgs.mkShell { ...
myaumyau's user avatar
1 vote
1 answer
92 views

For testing purposes, I wrote a small program calling a GtkAlertDialog and showing the results of the user selection. I noticed the topic of GCancellable. Despite studying the documentation, I did not ...
Holger's user avatar
  • 1,200
1 vote
2 answers
1k views

When trying to use GTK4 with Rust compiling and running the Hello World example of the GUI development with Rust and GTK 4 fails with the following error: $ PKG_CONFIG_PATH="/opt/homebrew/lib/...
Christoffer Soop's user avatar
0 votes
1 answer
352 views

My glib.h file is located inside of this folder: "C:\msys64\mingw64\include\glib-2.0" This is my settings.json file: { "explorer.confirmDelete": false, "includePath": ...
bangingmyheadontable's user avatar
2 votes
2 answers
128 views

I have a GTK program with 2 GtkButtons and one GtkEntry. I would like to dynamically resize the width of the entry by clicking a button to increase/decrease it. The program I have so far is able to ...
codeology's user avatar
  • 377
0 votes
1 answer
44 views

I'm trying to get pavucontrol-qt (pvcq) to work properly on Mac (yes, PulseAudio works there). The hurdle here is that the Qt/Mac event dispatcher is not based on GLib, so qvcq's current ...
RJVB's user avatar
  • 798

1
2 3 4 5
33