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

Get screen vendor and serial number under Linux

I have an instance of Gdk::Screen which represents a monitor connected to my computer. How can I read that monitor's vendor ID and/or serial number? Getting the Vendor ID and Serial Number from an XScreen would also suffice. Reading the EDID of the…
Fabian Schuiki
  • 1,268
  • 7
  • 18
0
votes
0 answers

In GNOME/gdk/gtkmm/cairo, a equivalent series of codes for MS Windows "TransparentBlt()"?

How can I port MFC TotalDC.TransparentBlt(position.x, position.y, width, height, &image1DC, 0, 0, width, height, RGB(255, 255, 255)); to GNOME/gdk/gtkmm/cairo? I know that MFC "BitBlt();" can be ported…
Frank
  • 1
  • 1
0
votes
1 answer

How does GDK_POINTER_MOTION_HINT_MASK work?

I'm trying to understand this code example I found in the GTK+ 3.0 reference manual: #include /* Surface to store current scribbles */ static cairo_surface_t *surface = NULL; static void clear_surface (void) { cairo_t *cr; cr =…
Ed Crap
  • 51
  • 1
  • 1
  • 7
0
votes
0 answers

error running a gui application on systemd services

I am trying to run a gui commands in systemd services which i want it to execute on system startup. these are my files. oversteer.sh file: #!/bin/bash sleep 1s export DISPLAY=:99.0 export SCREEN_WIDTH=1200 export SCREEN_HEIGHT=960 export…
siddharth
  • 57
  • 7
0
votes
1 answer

In coding a gdk_pixbuf_module, getting undefined reference to `gdk_pixbuf_webp_anim_get_type' that is handled(?) by gdk macros

So I am working on my first gdk_pixbuf_module. Adding animation to the webp module. Despite trying numerous variations in the header file and c file, I keep getting these link errors that I believe are related to the gdk_pixbuf macros. My guess is I…
alangh
  • 63
  • 6
0
votes
1 answer

What GTK+ sub-process/threading/program execution/etc should I use if I want to launch a program from a GTK+ app?

If I wanted to run, say stty, which controls the terminal settings ( like character by character, or line by line), what would be the best way to do this. I want to use GTK+ tools. Would it be better to create a new thread, then run the program from…
ADBeveridge
  • 650
  • 3
  • 15
0
votes
1 answer

undefined symbol: gdk_display_get_primary_monitor

I was trying to launch TuringBot software that I just installed on my Linux 16.04, and I got an error: ./TuringBot: symbol lookup error: ./TuringBot: undefined symbol: gdk_display_get_primary_monitor I have tried upgrading my system sudo apt-get…
philgun
  • 149
  • 8
0
votes
1 answer

GDK4: No display available in terminal application

I am trying to copy some text to the clipboard in a terminal application using GDK4. As far as I understand, this is done using a clipboard object, which is obtained from a GdKDisplay. However, there seems to be no display available. Here is a…
staxyz
  • 167
  • 5
0
votes
0 answers

Does GtkAboutDialog crashes when trying to show for the second time

I am using a GtkAboutDialog to open on a button click. It works fine on the first click but on the second click it just crashes. On the button clicked signal I am just using gtk_widget_show() to display the dialog. The about dialog is described in a…
Vahan
  • 166
  • 13
0
votes
1 answer

Undefined Reference to gdk_pixbuf_save & gdk_pixbuf_new_from_data

I have the following code it is a modification of code found here. In conjunction with this tutorial here. static void * snapshot_function(void *userdata){ CustomData *data = (CustomData *) userdata; gint width, height; GstSample…
Bowman
  • 27
  • 1
  • 3
0
votes
1 answer

GdkWindow for wxWidgets

For many years I have been using this code to get a GdkWindow, but now it doesn't seem to return a result that can be used in other gdk functions. Any suggestions? GdkWindow *Tvgintf_wx::getSurface (Point2D sizeParam) { dcbuffer = new…
0
votes
1 answer

Gdk-CRITICAL **: 10:33:28.827: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

I has run the following code by VSCode: import numpy as np import matplotlib.pyplot as plt a = np.array([2, 4, 5]) plt.plot(a) print('Hello') Its output didn't show matplotlib figure but still print 'Hello'. This is output log: Unable to init…
Tung Ng.
  • 1,241
  • 2
  • 8
  • 12
0
votes
0 answers

Delete an added GdkEventMask

If you use a GtkEventBox and add an event, say GDK_BUTTON_MOTION_MASK via gtk_widget_add_events, how can we delete this event from the event box again?
onemorequestion
  • 1,056
  • 1
  • 10
  • 15
0
votes
0 answers

Obtain image data of separate application using Python3 on Linux

Summary: How can I get the image data (a screenshot) of an application by its window name in Linux for further processing using Python 3.X I need to do some image detection on GUIs running in both Linux and Windows. I have working code for Windows…
daviegravee
  • 171
  • 2
  • 12
0
votes
0 answers

GDK: setting event mask on root window to intercept map events is not working

I recently wanted to start developing a window manager to get to know the X Server better. My choice initially fell on raw XCB to talk with the X Server, but it was quickly dropped when I discovered GDK, which seems to be a high-level wrapper around…
Federico Luzzi
  • 128
  • 1
  • 10