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
0
votes
2 answers

GTK3 - Monitoring all signals emitted from a widget

Is there any way to monitor all signals emitted from a widget with GTK3? I know that the event signal is emitted before an event, but I'm not sure of the distinction between "event" and "signal" in GTK terminology - as this does not seem to capture…
bcoughlan
  • 25,987
  • 18
  • 90
  • 141
0
votes
3 answers

Drawing on the GtkDrawingArea with Xlib func

I have a problem. I need to draw on the widget type GtkDrawingArea using functions Xlib (XDrawLine etc). Why? I use the library, which draws with Xlib. And I need to pass any arguments (Display, Window, GC) in the rendering function drawSome (...).…
BeatAngel
  • 3
  • 1
0
votes
1 answer

pygtk issue - unable to create gdk.Color object

I'm creating a simple application through glade, and I want to be able to set the color displayed in the color selection dialog. I found the set_current_color function, however, it requires a gdk.Color object. Trying to import gtk.gdk.Color fails…
Vallery
  • 141
  • 4
0
votes
1 answer

DarkGDK, make a gap between sprite spawn times

I have a for loop in which I declare positions of sprites. But they usually get spawned near each other and it looks horrible. Using such functions as dbWait(1000); freezes all the sprites with it so it's not a solution. Is there a way to make a…
RnD
  • 1,019
  • 5
  • 23
  • 49
0
votes
1 answer

Save an image from JPEG to PNG using libCurl and GdkPixBuff

I'm trying to build up an algorithm that downloads a JPEG image from an URL and saves it as a PNG into the disk. To achieve this I've used libCurl, for download, and GdkPixbuff library for the other stuffs (for a project limitation I'm sticked to…
Archedius
  • 2,887
  • 3
  • 20
  • 24
0
votes
1 answer

How would one go about opening an image not as widget in C/GTK?

What I am trying to do is open several images in C, then create a table comprised of GtkImages who's actual images can be set or reset to one of the initial images(I'm trying to create a chess board). I tried doing this with GTK but I can't use an…
BLUC
  • 2,590
  • 2
  • 15
  • 24
0
votes
1 answer

How to repair "error: gdk-pixbuf/gdk-pixdata.h: No such file or directory?"

I need to rotate a Pixbuf. The vala code contains using Gst, GLib, Posix, Sqlite, Gdk; public class RotateSaveImage { public void RotateSaveImage(string input, string output) { var img = new Pixbuf.from_file(input); var…
jacknad
  • 13,483
  • 40
  • 124
  • 194
0
votes
1 answer

How to emit an gtk.gdk event with a string as a data package in Python

I have a problem in that I need to emit data based on data I receive from a hardware thread. Ideally, I'd like to emit a signal with a data package. I don't know what to fill in for the ???? below. Do I need to make my own event class? Something…
Brian Bruggeman
  • 5,008
  • 2
  • 36
  • 55
0
votes
1 answer

DARK gdk, background covering sprite?

dbLoadImage("media/backdrop.bmp", 2); dbSprite ( 2, 0, 0, 2 ); dbLoadImage("media/greyback.png", 3); dbCreateAnimatedSprite(1, "media/bugsheetsheild.png", 3, 1, 1); 3 is the background that covers the sprite. in the game loop this happens dbSprite(…
user1422770
0
votes
1 answer

How to put gtk.DrawingArea into gtk.Layout

I have some gtk.DrawingArea with circle i painted on it, if i put DA right into the window - everything is ok, but if i put it into the gtk.Layout that i put into the same window - i could not see the DA. Help me please. import…
scythargon
  • 3,363
  • 3
  • 32
  • 62
0
votes
2 answers

LibreOffice OnLine build

I'm trying to compile libreoffice, to use it "online", i.e: in a web browser (see a demo here: http://www.youtube.com/watch?v=CVR7HqDokmA ). When running the executable, I get this error: **Gdk-ERROR **: Unsupported GDK backend: broadway** These…
MarcoS
  • 17,323
  • 24
  • 96
  • 174
-1
votes
1 answer

GTK Image from String

I am trying to display an image based on a string of hex pixel data. The string object being transmitted to me is similar to the following: std::string image_bytes = "0x00, 0x01, 0x02, etc..."; I am trying to process this data using the following…
MamaShark
  • 19
  • 2
-1
votes
1 answer

gtkmm multi-touch device not recognized (Windows)

Version: Gtkmm v3.22 (installed via vcpkg) I've plugged in a multi-touch device that uses the standard Windows driver "HID-compliant touch screen". I've verified that the native Windows WM_TOUCH is capable of multi-touch digitizing with this…
-1
votes
1 answer

How to know when a Gdk.Pixbuf is finished loading

I am loading a Gdk.Pixbuf from bytes: _pixbuf = new Gdk.Pixbuf(bytes); Then, I'd like to read the _pixbuf data. But, it appears that the data is actually loading in the background because the data doesn't exist for a while. If I wait, all is…
Doug Blank
  • 2,031
  • 18
  • 36
-2
votes
1 answer

Same opngl texture2d become all black in GTK but works in glut

I have a program using OpenGL + GLUT that caputre image from camera and use it as a 2D texture. Then display a pointcloud with that texture in the window. It works fine when in GLUT window. But when I change to GTK opengl area. The pointcloud (or…
Josh Chiu
  • 832
  • 2
  • 7
  • 14
1 2 3
21
22