glib Questions

8

I have compiled pcre 8.38 from source with --enable-utf8 --enable-unicode-properties and a pcretest -C utf retuns 1. a which pcretest returns /home/mybin/bin/pcretest However when compiling glib...
Tyika asked 26/3, 2016 at 22:1

3

So I'm making a Gnome Shell extension. And I want to be able to run some command with a pipe. (The command is actually "xrandr --query | awk 'something'", but that is off topic) So, what I have do...
Nielsen asked 25/11, 2015 at 8:36

1

I use DBus to communicate with logind to get informations about active sessions, etc. I have created the code using gdbus-codegen. I can get informations by using the call and get methods, but I do...
Airsickness asked 17/10, 2017 at 8:3

7

Solved

While programming in C and GTK+, why is it "better" to use g_strdup_printf, g_free, g_strcmp0 etc... and fellow GLib functions?
Nonesuch asked 10/2, 2010 at 20:34

4

Solved

I try to install udev. And udev gives me an error during the ./configure --exists: command not found configure: error: pkg-config and "glib-2.0 >= 2.16" not found, please set GLIB_CFLAGS and GL...
Extravaganza asked 4/9, 2012 at 11:51

2

I tried installing gtk and glib using sudo apt-get install libglib2.0-dev and sudo apt-get install libgtk2.0-dev but locate glib.h does not return any path for glib results of locate glib.h a...
Newman asked 30/7, 2017 at 14:57

2

I am trying to understand which is the current situation of glib regarding Windows, Unix-Like (not necessary Linux) and OSX. I am analyzing if I could use glib for a project and I will need a...
Exhibitive asked 4/1, 2016 at 2:41

1

Solved

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...
Kalsomine asked 27/2, 2017 at 11:50

1

Solved

I have searched on stack overflow to find answer relevant to my problem. But i didn't find any answer. I have a main thread (my main() function) which starts a thread. The new thread runs GMainLo...
Brummell asked 22/2, 2017 at 15:35

5

So here's the world's simplest glib program: #include <glib.h> I try to compile it with gcc test.c and I get: test.c:1:18: error: glib.h: No such file or directory So I make sure that I...
Appreciate asked 17/7, 2009 at 22:43

2

Solved

Using pydev with python-2.7, I wish obtain the device path of connected devices. Now I use this code: from pyudev.glib import GUDevMonitorObserver as MonitorObserver def device_event(observer, ...
Asquith asked 19/9, 2016 at 18:22

1

I am using gtk.gdk.PixbufLoader since several years. Today, I try to load a jpg file from a new android device and get this exception: Traceback (most recent call last): File "myscript.py", line...
Jeanett asked 18/9, 2016 at 19:54

1

Solved

The function glib.spawn_async allows you to hook three callbacks which are called on event on stdout, stderr, and on process completion. How can I mimic the same functionality with subprocess with...
Clothesbasket asked 7/9, 2016 at 7:48

1

Solved

I have installed meld 3.14.2, at last (on NFS share in Redhat 6.3 server), after nearly 40 hours of efforts , installing each and every dependency and at last seems to be successful. But one finale...
Shriver asked 3/3, 2016 at 22:45

3

Solved

I would like to interface an garbage collected language (specifically, it's using the venerable Boehm libgc) to the glib family of APIs. glib and gobject use reference counting internally to manag...
Mchugh asked 4/6, 2011 at 23:35

3

Solved

I'm attempting to build glib-2.36.4 on CentOS5. I realize it would be wiser to upgrade to 6 but this isn't possible because of a customer requirement. I've started a make build and I get the belo...
Campion asked 12/2, 2014 at 0:45

3

Solved

I use GLib to parse some command-line options. The problem is that I want to make two of those options mandatory so that the program terminates with the help screen if the user omits them. My code...
Arrio asked 24/4, 2010 at 13:36

1

Solved

When trying to import glib in python 3 using from gi.repository import glib, I get an error saying: Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 2135, in _f...
Deepfry asked 1/7, 2015 at 2:48

2

Solved

This is an example from the Glib docs for g_cond_wait(): gpointer current_data = NULL; GMutex data_mutex; GCond data_cond; void push_data (gpointer data) { g_mutex_lock (&data_mutex); // (3)...
Seductive asked 16/6, 2015 at 11:39

1

Is there an established approach to embed gettext locale/xy/LC_MESSAGES/* in a PYZ bundle? Specifically to have Gtks automatic widget translation pick them up from within the ZIP archive. For other...
Kingery asked 16/4, 2015 at 21:24

5

Solved

I'm trying to learn how to use D-Bus with C bindings. I've never used D-Bus before. I'm following this tutorial, which I assume is the official one (Freedesktop.org). I've read it until this paragr...
Curio asked 10/1, 2013 at 17:9

3

Solved

The code GValue value = { 0 }; gives the following warning: missing initializer [-Wmissing-field-initializers] I know that's a GCC bug, but is there some trick to remove it? It is really not ni...
Doall asked 14/11, 2012 at 5:50

1

Solved

I have come across a code where they needed an infinite loop & they used GMainLoop *mainloop = NULL; mainloop = g_main_loop_new (NULL, FALSE); g_main_loop_run (mainloop); I have doubt w...
Dike asked 10/12, 2014 at 8:32

2

Solved

Generally speaking do smart pointers such as std::unique_ptr and Glib::RefPtr delete their object when reassigned to point at another object, given they are the only pointers holding that given obj...
Teetotal asked 4/12, 2014 at 19:38

1

Solved

I have some misunderstanding about how GMainLoop work. Main thing - API which add some callbacks into g_main_loop (like g_timeout_add_seconds()) don't take pointer to which loop you want to add tha...
Awestricken asked 16/10, 2014 at 17:37

© 2022 - 2024 — McMap. All rights reserved.