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

Python 2.7 strange behaviour of getPixel function with gtk

I have a problem with my pixel_at function in my code. Here are all necessary code snippets. Here is my Helper module: import gtk.gdk def pixel_at(x, y): gtk.gdk rw = gtk.gdk.get_default_root_window() pixbuf =…
7Orion7
  • 57
  • 1
  • 7
0
votes
1 answer

Android Studio gradle building failed (Failed to find target)

I have imported an example project from MYO sdk, and i get this error: Error:failed to find target Google Inc.:Glass Development Kit Preview:19 : /Users/mytbrgr/Library/Android/sdk Open Android SDK Manager I currently running latest version of…
Amit Berger
  • 479
  • 2
  • 8
0
votes
1 answer

How to combine a number of screens into a single display in gtk

I have a problem where i am supposed to export the display to many other screens where those screens form a part of a single display( ie many screens combine to make a single display). I know i have to use GdkScreen for it but i still dont kno how…
0
votes
2 answers

Displaying RGB Image in GTK+-2.2

I'm writing a class that can take my own RGB images and display them to windows using GTK+-2.2. My Image class stores the images as packed 24-bit RGB bytes, so the conversion should be trivial. I'm using the gdk_draw_rgb(...) method to draw to my…
rcv
  • 6,078
  • 9
  • 43
  • 63
0
votes
1 answer

how to export the display faster to another system in gtk?

I have to run my scrolling gtk application on systems which are in network. But the display is slower when i try to run the application by doing telnet to other systems. Is there any way to render images fast on other systems? Can GdkDisplay be of…
0
votes
1 answer

how to store image data in X server in gtk, gdk?

Is there anyway to store image data in X server memory so that rendering of images, (for example in scrolling), is faster and so that round trips to x client can be reduced?
0
votes
1 answer

Gdk.Screen.get_default() not working after PyInstaller

Once again, I have a problem with PyInstaller-compiled executables not working the same way as python scripts do... I need to read the system screen resolution in my program, so I've added this simple function for it: # Get screen size for…
XArgon
  • 359
  • 4
  • 14
0
votes
1 answer

Image Always returning Null

Im checking the size of image files and if the files are large then im re-sizing it so that the processing is faster. But when I use the resize code I always get a null reference exception pointing to image.I tried debugging-> the resized Bitmap…
techno
  • 6,100
  • 16
  • 86
  • 192
0
votes
0 answers

What is the timestamp given by GdkEventKey::time relative to

The documentation sais [1] guint32 time; the time of the event in milliseconds. Relative to what? The time since latest event Process lifetime System boot time I need to know the time when a key was hit. [1]…
user877329
  • 6,717
  • 8
  • 46
  • 88
0
votes
1 answer

gst_video_overlay_set_window_handle from GTK#

I trying to display video in GTK# using Gstreamer via P/Invoke(on Ubuntu). I tried to use many code samples but nothing is working. Here is one of them: GTK# code: [DllImport("libgstTestDLL.so", CharSet = CharSet.Ansi, CallingConvention =…
konstantin_doncov
  • 2,725
  • 4
  • 40
  • 100
0
votes
0 answers

XGrabPointer is failing with code AlreadyGrabbed, XUngrabPointer wont ungrab

I am trying to get the XEvents, and then decide whether it should continue like normal or be blocked. Basically what gdk_window_add_filter is doing: https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-add-filter I attempted it with…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

GTK/GDK/x11 Remove the Close/Max/Min Buttons

Is it possible to use GTK/GDK/X11 to write a function which on call, hides the min/max/close buttons, and on call again I can show them again? I found way to disable them but not remove them. Any help would be awesome. Thanks
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

Creating a GdkPixbuf from raw Bitmap data

I am trying to port a Clean graphics library (specifically, ObjectIO) to Linux with GDK. The library consists of a non-OS-specific part, which I don't want to touch because of compatibility issues, and an OS-specific part which I can touch. One of…
user1544337
0
votes
2 answers

Gtkmm - change minimum size of Window

I try to change the minimum size of an Gtk::Window. It should be possible to shrink the window to a smaller size then the biggest container in it to a specific size. I try several approaches you can see below. Nothing shows any effect. The minimum…
Alex44
  • 3,597
  • 7
  • 39
  • 56
0
votes
0 answers

Placed over special UI, but special UI appears through (unclickable)

I opened a new window, I made it fullscreen and then set it to always on top with XSendEvent on _NET_WM_STATE to set _NET_WM_STATE_ABOVE and then I XFlush'ed. This makes the window appear on top of everything this is great. Aside: I then draw the…
yatg
  • 1,121
  • 1
  • 9
  • 15