Questions tagged [gdk]

Used to tag things that relate to the GIMP Drawing Kit. The GIMP Drawing Kit is the low-level library that provides platform abstraction for the GTK+ widget toolkit.

Best used to tag things that relate to the GIMP Drawing Kit.

Unfortunately there's some overlap with which deals with the (Google) Glass Development Kit.

317 questions
2
votes
2 answers

GDK function not found

I have a gtk program in which I am calling a gdk function. I am compiling the program using: gcc `pkg-config --cflags --libs gtk+-2.0 cairo glib-2.0` ... and I have included #include it gives me the error: undefined reference to…
mihajlv
  • 2,275
  • 4
  • 36
  • 59
2
votes
1 answer

How to get XID of Gtk2 GtkDrawingArea to embed Mplayer

I'm writing a Gtk2 application that among other things needs to have Mplayer play a video into aGtkDrawingArea. From what I can tell, this is possible if one can find the XID of theGtkDrawingArea and pass this as a parameter to Mplayer. However, I'm…
Chimera
  • 5,884
  • 7
  • 49
  • 81
1
vote
2 answers

How to copy Gdk.image?

Is it possible to make a copy of Gdk.image object using lablgtk2 for Ocaml? I tried to find 'copy' or 'clone' methods but failed.
Alfa07
  • 3,314
  • 3
  • 26
  • 39
1
vote
1 answer

Saving an image (jpg) on a remote server without local hard disk

I have a linux app programmed in C which uses gdk for image stuff. The images are sent to a remote server through FTP (with libcurl). Currently I'm saving the images first to a local hard disk with gdk_pixbuf_save, but this seems kinda useless…
drwn
  • 82
  • 1
  • 6
1
vote
1 answer

C, GTK: window stops updating

I'm developing an application that periodically draws images on a GTK Drawing Area inside a window. The rendering first works well and the window content gets repainted if I drag another window over the drawing one, but after some random amount of…
lynix
  • 145
  • 8
1
vote
1 answer

Detect mouse leaving pygtk window

In PyGTK application, I'd like to detect when the mousepointer leaves my top-level window. window = gtk.Window(gtk.WINDOW_TOPLEVEL) ... window.connect("leave-notify-event", window_exit, "") However that callback is only triggered when the mouse…
OJW
  • 4,514
  • 6
  • 40
  • 48
1
vote
1 answer

how to take screenShot in vala

I have the following program does not work NOTE: compiled on windows 7. Gdk.Screen screen = Gdk.Screen.get_default (); Gdk.Window rootWin2 = screen.get_active_window (); int width, height; rootWin2.get_size (out width, out…
rChavz
  • 235
  • 3
  • 16
1
vote
0 answers

How to move gtk window on a specific position on the screen under wayland?

I'm trying to move the gtk window to a certain position on the screen under wayland. Here is the demo script, but it's not working. What should be changed to make it work, Can someone check this please? - #include #include…
sJANA
  • 11
  • 2
1
vote
2 answers

GtkWidget not immediately redrawn

I have an application in which I have a Log in screen. There is a button for logging in. When pressed, the GtkButton should be set to insensitive to give the user feedback. After clicking the button, a login request is done via CURL. Because this is…
Laura
  • 149
  • 2
  • 15
1
vote
1 answer

How do I set the clipboard with a Texture in Gdk4 using Python?

nautilus-image-copypaste is a Nautilus extension that allows users to set the clipboard from image files and to create image files from the clipboard. Reading the clipboard works, however I can't figure out how to set the clipboard at line 108. The…
Reece
  • 7,616
  • 4
  • 30
  • 46
1
vote
1 answer

Bug in the Groovy 1.8.0 String class .tokenize(String) method?

Messing around with Groovy for a work project I ran into this oddity: def string = "__RNDHPD(70.2300000..70.2310000)" def params = [] string.find(/(?<=\().*?(?=\))/).tokenize("..").each { params << it.trim() } // should yield [70.2300000,70.2310000]…
Philip Lombardi
  • 1,276
  • 2
  • 17
  • 26
1
vote
0 answers

Use Multiple GDK Display Back-Ends Simultaneously (in Docker)?

I apologize in advance if the answer to this question is an obvious "no," but in the interest of leaving no stone unturned (and the fact that I am by no means an expert in this area), I am hazarding asking this question here: I have a GTK…
Leigh K
  • 561
  • 6
  • 20
1
vote
0 answers

How to find floating devices in gtkmm

I am unable to find a list of floating devices in gtkmm. I can find all the seats associated with a display, but these only contain slaves and master devices. Is there a master list that enumerates all devices (including floating devices)? I've also…
1
vote
1 answer

How to resolve error: invalid use of incomplete type ‘GdkSurface {aka struct _GdkSurface}’?

Questions about incomplete type errors have already been asked here often, but all of the solutions provided there do not help in my case. Adding a forward declaration makes no sense, as GdkSurface has been forward declared already in the Gdk…
TheEagle
  • 5,808
  • 3
  • 11
  • 39
1
vote
1 answer

How do I avoid a race condition at the end of a GTask that updates a GTK UI?

I'm building a gtk3 application and was trying to figure out to avoid a race condition at the completion of a GTask that updates the UI. As the function (data_acq()) called by the GTask is long-running, I have a progress bar that updates (via…
Zino
  • 35
  • 6