fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.8K
active users

#glib

0 posts0 participants0 posts today

glib
adjective
glibber; glibbest
1 a: showing little forethought or preparation : offhand
glib answers
b: marked by ease and informality : nonchalant
c: lacking depth and substance : superficial
glib solutions to knotty problems
2: marked by ease and fluency in speaking or writing often to the point of being insincere or deceitful
a glib politician
3 archaic: smooth, slippery

okay, i think i don't entirely understand when i should claim a reference using g_object_ref and when i shouldn't #GLib #GObject

question 1: should a function that returns a pointer to an object g_object_ref it for the caller's sake?

I have not blogged or talked about the follow-up work to my "GType Next" blog post that I've been doing in my spare time, mainly because it is happening *in my spare time*, and I don't want to give false impressions to people; the other reason is that the time consuming bit is not writing a bunch of code, but it's planning ahead, because the goal is to avoid breaking stuff at all costs…

Ciekawostka: jeżeli różne programy sypią się z błędami typu:

(…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

a macie pewność, że schematy skompilowane, i definitywnie zawierają taki klucz, to może okazać się, że z jakiegoś powodu w waszym katalogu domowym siedzi dodatkowy plik ze skompilowanymi schematami, i jest używany zamiast systemowego.

Czyli:

rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

Fun fact: if random applications are crashing with errors like:

(…): GLib-GIO-ERROR **: 20:46:27.286: Settings schema '…' does not contain a key named '…'

and you've already verified that you've compiled the schemas, and that the schema contains the listed key, then it may mean that for some reason you have another compiled schema file in your home directory, and it's taking precedence.

In other words:

rm ~/.local/share/glib-2.0/schemas/gschemas.compiled

Replied in thread

@eniko C is a very incomplete language. The C std lib is nothing compred to a "proper" one from modern languages like C++ or rust. That is why for example #glib exists, an additional library to provide more functions and utilities, also for working with strings. (It is used heavily in the #GNOME desktop environment)

any #GLib coders out there? i would like to know what's the best way to keep track of async operations, like mounting/unmounting drives, copying files, etc.

i'm using #vala, but i'm pretty sure any C advice would also apply with slight changes