Questions tagged [gio]

GIO is striving to provide a modern, easy-to-use VFS API that sits at the right level in the library stack, as well as other generally useful APIs for desktop applications (such as networking and D-Bus support). The goal is to overcome the shortcomings of GnomeVFS and provide an API that is so good that developers prefer it over raw POSIX calls. Among other things that means using GObject.

189 questions
0
votes
1 answer

Qt Creator does not find functions inside library

I'm on Ubuntu 13.04 trying to use functions from the gsettingsschema.h library This is my .pro…
hytromo
  • 1,501
  • 2
  • 27
  • 57
0
votes
1 answer

Getting error while reading unicode file in C

I want to read a unicode file in C (Cygwin/GCC) using the following code: #include #include #include void split_parse(char* text){ char** res = g_strsplit(text, "=", 2); printf("Key = %s : ", res[0]); …
Anindya Chatterjee
  • 5,824
  • 13
  • 58
  • 82
0
votes
2 answers

Lost Data over GIO Network Transmission

I have a problem with GIO. I am transmitting data over a network and it works perfectly for a percentage of bytes received (changed via STRINGSIZE) but after that it copies nothing. For Example if STRINGSIZE is 350 it only copies over 50 bytes. Any…
hein13
  • 69
  • 1
  • 4
0
votes
1 answer

GIO socket client server for multiple clients

I want to implement a GIO socket client server program where the server can serve up to say 5 clients at the same time. Is this even possible? How can I modify the following standard server to allow multiple clients to connect in a thread safe way?…
user2399453
  • 2,930
  • 5
  • 33
  • 60
0
votes
1 answer

Am I using Gio GFile monitor_file wrong?

I'm using Gio monitor_file like this. def callback(*args): print 'ok' gio_pointer = Gio.File.new_for_path(os.environ['HOME']+'/temp') monitor = gio_pointer.monitor_file(Gio.FileMonitorFlags.NONE, None) monitor.connect("changed",…
Quentin Engles
  • 2,744
  • 1
  • 20
  • 33
0
votes
1 answer

How can I use Haskell and GIO to read a file?

For example, here's a small piece of a program I'm writing using Haskell and gtk2hs: import System.GIO foreign import ccall safe "g_type_init" g_type_init :: IO () main :: IO () main = do g_type_init let file = fileFromParseName…
damien
  • 902
  • 1
  • 7
  • 12
0
votes
1 answer

Gtk3: getting the icon file name for a mime type

I’m writing a command line program to get the Gtk3 icon file name associated with a mime type... the idea’s to be able to do this: $ ./gtk-mimetype-icon text/html Mime type: text/html Icon file:…
Honore Doktorr
  • 1,585
  • 1
  • 13
  • 20
-2
votes
1 answer

Why next code does not compile?

How do i rewrite next sources properly? It is part of GLib-powered IRC-bot. Compiler crashes with the next error: src/irc.cpp:20:9: error: cannot call member function ‘Glib::ListHandle >…
handicraftsman
  • 181
  • 1
  • 13
-3
votes
1 answer

Avoiding simultaneous bi-directional connections in a P2P network architecture

Okay, I am a certified programmer, been doing all kinds of wonders for many years, but I am finally going to ask a question on a problem that I am utterly unable to solve. I hope Stack Overflow is going to save my life once again, after so many…
Edenia
  • 2,312
  • 1
  • 16
  • 33
1 2 3
12
13