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

Change GtkScale font/align/color

Is there a simple way to change the value-text's font, align and color of a GtkScale widget? For example, I want to have a red and bold number, instead of the standard black one.
Genesis Rock
  • 707
  • 2
  • 5
  • 16
1
vote
0 answers

NDK debugging fails with gdbserver error: "Function not defined"

NDK debugging on Windows fails. I use Cygwin and gdb to debug native code. I can attach debugger to an app process, but then I receive errors: gdbserver: symbol is not loaded and a dialog with following message: "Error stopping at Java_***_***…
Taras
  • 2,526
  • 3
  • 33
  • 63
1
vote
1 answer

MonoDevelop project build fails with 'The type or namespace 'GDK' could not be found

'...are you missing a using directive or an assembly reference?' I tried the solution in this question Gtk# in monodevelop not working anymore after upgrading to ubuntu 11.10 unity but appears to not work here. I am running on Mtn Lion with lastest…
Ants
  • 1,338
  • 16
  • 27
1
vote
1 answer

DarkGDK changing display mode makes sprites dissapear

After executing the application, user clicks the start button. At the time I want to change the display to different dimensions. But doing that the screen becomes black and images doesn't paste. while ( LoopGDK ( ) ) { …
RnD
  • 1,019
  • 5
  • 23
  • 49
1
vote
1 answer

Create a gtk.gdk.Pixbuf from binary data

I am struggling to get binary data into a gtk.gdk.pixbuf. This should illuminate my problem: file = open("image.jpg", "rb") //Ultimately this is going to come from a BLOB binary = f.read() //I created a pixbuf directly from the jpg //and took the…
jsj
  • 9,019
  • 17
  • 58
  • 103
1
vote
2 answers

Convert GIcon into GdkPixbuf

I'm using the GAppInfo/GDesktopAppInfo. GIcon *icon = gtk_app_info_get_icon (G_APP_INFO(appinfo)); Now I need to put it on a GtkIconView but I found that there is no way to create a GdkPixbuf from GIcon. Anyone knows this? Thanks very much! EDIT 1:…
ekd123
  • 525
  • 7
  • 19
1
vote
1 answer

Multithreading, gtk3 and cairo: drawing in a cairo surface

I'm trying to draw into a cairo image surface from a thread and I'm getting an assertion error: gtk_mt: /build/buildd/cairo-1.10.2/src/cairo-surface.c:385: _cairo_surface_begin_modification: Assertion `! surface->finished' failed. Aborted (core…
Emanuel Landeholm
  • 1,396
  • 1
  • 15
  • 21
1
vote
3 answers

Gdk-WARNING **: /build/....../gdkdrawable-x11.c:952 drawable is not a pixmap or window

My OS is Ubuntu 11.10, I started Sublime Text 2 from the terminal, everytime when I operated it, this Gdk-warning will be shown on the terminal, it's very annoying. How to fix it? $ subl . & [1] 4294 $ (subl:4294): Gdk-WARNING **:…
khakistone
  • 85
  • 2
  • 7
0
votes
2 answers

Drawing directly to the screen via GTK or GDK

I am working on a demo application for a library me and two colleagues are writing to allow GNOME applications that run audio events though libCanberra to allow users to select visual events to replace them. This is an accessibility-minded effort to…
RyanG
  • 6,773
  • 5
  • 25
  • 24
0
votes
1 answer

Where can I find a list of the GDK_comma, GDK_dollar, ... constants?

A C project contains a couple of lines including GDK_comma, GDK_dollar, GDK_o, etc. Where can I find a list of these constants? Specifically, I'm looking for the constant for ö (ö).
Andreas
  • 7,470
  • 10
  • 51
  • 73
0
votes
2 answers

How to resize gtk.gdk.Pixmap

I am created an instance of gtk.gdk.Pixmap, and painted on it something. For example: pixmap = gtk.gdk.Pixmap(widget.window,100,800) pixmap.draw_rectangle(gc, True, 0, 0, 100, 800) pixmap.draw_line(gc, 0, 0,100, 800) How can I to resize the Pixmap?…
Habibutsu
  • 592
  • 1
  • 8
  • 20
0
votes
0 answers

Glade GDK buttons have awful top border

Buttons that i have created in drag & drop glade window have some awful top border/outline just like this I Tried to set border relief to none and setting border in style.css but nothing seems to work. I would appreciate help, thanks!
0
votes
0 answers

c - segfault in gdk function if assigning value to (subsequent) struct variables

Description I'm having trouble tracking down the cause of a segfault (no core dump). When assigning a values (from another variable) to *trans_theta, *trans_x, or *trans_y, my program gives a segfault when I close the GUI window. Backtrace gives a…
manateed
  • 1
  • 1
0
votes
3 answers

Simulate mouse/keyboard events (gtk + HOOPS 3D)

how can I simulate mouse/keyboard events in gtk/gdk? I have a window widget containing HOOPS 3D widget and need to simulate mouse clicking on various parts of the window, along with simulating keyboard, ie. CTRL pressed, etc. I found…
Marin
  • 1,311
  • 16
  • 35
0
votes
1 answer

Ubuntu: How to get the name of the active keyboard using C++ gtk or xkb

I am working with code( C++, ubuntu, gdk, xkb) where I use a german Keyboard which is on the top of the list in settings->Keyboard->input sources . In my program I can access the keycode, keyval, keymaps used for the language which is on top of that…
user3443063
  • 1,455
  • 4
  • 23
  • 37