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
1
vote
1 answer

unable to load TIFF images using gdk_pixbuf_loader

I wait to load images from memory (jpegs and tiffs) into gdk_pixbuf_loader_write(). I have sample/test code that loads jpegs just fine but fails to display tiff images. The tiff images open fine with other viewers (eye of gnome etc) so the tiff is…
Ray
  • 21
  • 3
1
vote
2 answers

ArchLinux LibreOfficeFresh unable to start

My System: - ArchLinux - LibreOfficeFresh 5.0.2-3 - Xorg116 - Catalyst Graphics Drivers Problem: LibreOfficeFresh is unable to start since I have installed catalyst, so since i switched from MESA to catalyst. Error Description: [tekkkz@thinkpad…
Martin Fischer
  • 697
  • 1
  • 6
  • 27
1
vote
1 answer

Impossible to create a Glass application

When I try to create an application for Google Glass, I can't select Glass on the menu of Android Studio. The "check" is disabled: I have the correct path of the SDK assigned to Android Studio, and the API 19 is installed correctly: Tests that I…
adlagar
  • 877
  • 10
  • 31
1
vote
1 answer

Gnome GJS Error: Gdk.Keymap.get_modifier_state is not a function

I'm trying to get the keyboard modifier state, porting this GDK example here to Gnome GJS to use it in a Gnome extension. The code below is modified official demo from https://developer.gnome.org/gnome-devel-demos/stable/hellognome.js.html.en . The…
user.dz
  • 962
  • 2
  • 19
  • 39
1
vote
1 answer

queue_draw_area with a specific handler?

I'm using Cairo with a gi.repository.Gtk.DrawingArea, and I need to handle two different kinds of events: Update a summary line (draw_summary()) Draw a new dot (draw_dot() Ideally I'd invalidate only a small area (like a vertical strip of my…
Bosh
  • 8,138
  • 11
  • 51
  • 77
1
vote
1 answer

Gtk2 Multi Thread gdk_pixbuf_get_from_drawable Questions

Hi there fellow GTKers I am in a situation where I am writing a plug in for Firefox which is a GTK2 app. I need to execute gdk_pixbuf_get_from_drawable, now this function needs to run on the main thread. I read this article:…
yatg
  • 1,121
  • 1
  • 9
  • 15
1
vote
1 answer

Methods to install custom style properties in GTK+-widgets

I'm writing custom GtkWidgets for a small library and therefore need custom style properties. I usually use the gtk_widget_class_install_style_property-function during the class-initialisation to do that. However I could not find a way to install a…
1
vote
1 answer

Undefined reference to `gdk_color_parse'

I'm using GTK + 3.0 Lib, and I'm getting errors: Undefined reference to `gdk_color_parse' My source code: int connectPS3(GtkWidget *button) { HINSTANCE hLib; hLib = LoadLibrary("CCAPI.DLL"); gchar *ip; ip = "192.168.0.40"; …
user5049116
1
vote
0 answers

GDK2 and GDK3 methods to get pixbuff of root window failing (with error message)

I am trying to get a pixbuf, i used gdk3 method and gdk2 method and both are failing. Using ctypes here but issue is not ctypes, I'm sure of it, so tagging with that would confuse the ctypes folk. So I only put gtk tags. GDK3 method var cRootWin =…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
1
vote
0 answers

ruby memory leak Gdk::PixbufLoader

So I'm beginning to wonder how leaky the gnome2 libraries for ruby1.8.6 are. #!/usr/bin/env ruby require 'gtk2' while true sleep 0.1 pixbuf = Gdk::PixbufLoader.new pixbuf = nil end this leaks about 16kb/sec according to watch -n 1 ps -o…
Reed Debaets
  • 482
  • 1
  • 6
  • 18
1
vote
0 answers

How to break on gdk_x_error() using gdb?

My problem is the following: An application (namely eclipse) crashes on my machine, and shows the following error message: The error was 'BadWindow (invalid Window parameter)'. (Details: serial 16911 error_code 3 request_code 3 minor_code 0) (Note…
manuel
  • 533
  • 6
  • 16
1
vote
0 answers

Send key combination from C using X11 (GTK, GDK) functions

I need exact equivalent of command (in C code) system("xdotool key alt+o"); but much more portable (and less overloaded for so simple task). I write for GTK so i prefer some GTK function, but something for GDK or even for X11 also looks to be…
user2223633
  • 151
  • 1
  • 1
  • 10
1
vote
0 answers

Rendering a GtkPixbuf in a GtkDrawingArea with C

So I am using C and I am trying to render a GtkPixbuf in a GtkDrawingArea. I have a GtkThread that should be in charge of forcing the draw every N seconds. I don't get any errors or warnings, but, my code still doesn't produce the intended results.…
The Dude
  • 661
  • 2
  • 11
  • 20
1
vote
0 answers

Building error in make step, gdk, libbat.la, MT_global_exit

i'm trying to build MonetDB from source on CentOS. Typically the problems occur in the make step, I run the configuration as follows ./configure -prefix=$HOME/MonetDB--disable-geom --disable-strict This works perfectly fine. However, using "make"…
Den Mar
  • 11
  • 1
1
vote
2 answers

How do I remove (or apply) transparency on a gdk-pixbuf?

I have a c++ program in which a gdk-pixbuf is created. I want to output it as an image, so I call gdk_pixbuf_save_to_stream(pixbuf,stream,type,NULL,&err,NULL). This works fine when "type" is png or tiff, but with jpeg or bmp it just produces a…
Andrew Stacey
  • 1,004
  • 8
  • 17