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

How do I load the website into the main activity window rather than a new window?

I used the google glass gdk web loading example void openWebPage(String url) { Uri webpage = Uri.parse(url);Intent intent = new Intent(Intent.ACTION_VIEW, webpage); if (intent.resolveActivity(getPackageManager()) != null) { …
0
votes
1 answer

How to get a window handle of GTK# widget or container?

I use libvlc_media_player_set_hwnd() function in GTK# (Xamarin). But I can't get a HWND of GTK# widget and set it in libvlc_media_player_set_hwnd() function. In GTK+ I can use gdk_x11_drawable_get_xid(), but I haven't found this function in GTK#. So…
konstantin_doncov
  • 2,725
  • 4
  • 40
  • 100
0
votes
1 answer

GCC runs into Out of memory with GTK+3

I'm trying to compile the big project after a libraries update, and one of them was GTK - I need to migrate project from GTK 2.x to GTK 3.x. The compiler doesn't give any syntax error or dependency error, however it stalls with this: g++ …
0
votes
1 answer

Is there support for the HSV color model in cairo / gdk / gtk?

Well, the question is quite simple I think. I would like to specify colors using the HSV color model (https://en.wikipedia.org/wiki/HSL_and_HSV). However, all the cairo code seems to work exclusively with RGB / RGBA specifications. I could not find…
hfhc2
  • 4,182
  • 2
  • 27
  • 56
0
votes
1 answer

gdk_pixbuf_composite usage

I have two png images First one with Width1 2247 Height1 190 and second one with Width2 155 Height2 36. I wan't the second image(src) to be placed in the center of first image(dest). I created pixel buf of both and used gdk_pixbuf_composite as…
bluegenetic
  • 1,365
  • 4
  • 11
  • 15
0
votes
1 answer

pixbuf.subpixbuf alternative in Gtk3

I have a GTK+ 2 application I am porting to GTK+ 3. I have a function to cut out some part of an image - scaled_pb = pb.scale_simple(w,h, GdkPixbuf.InterpType.BILINEAR) scaled_pb = scaled_pb.subpixbuf(abs((width-w)/2),abs((height-h)/2), width,…
svineet
  • 1,859
  • 1
  • 17
  • 28
0
votes
1 answer

gdkCursorNewFromPixmap example error

The example code from gdkCursorNewFromPixmap causes an error on Ubuntu with R 2.14.1 and RGtk2 2.20.25 Code: library(RGtk2) # This data is in X bitmap format, and can be created with the 'bitmap' utility in X11 cursor1_width <- 16 cursor1_height <-…
DGB2000
  • 33
  • 1
  • 4
0
votes
1 answer

GDK Threads not allowing gtk changes(Making timer)

#include #include #include #include #include static GtkWidget *textlabel_question_no; static GtkWidget *textlabel_answer1; static GtkWidget *textlabel_answer2; static GtkWidget…
0
votes
1 answer

use g_thread_new with a struct

I want to start a struct method in an own thread: g_thread_new( "NewThread", mymethod , NULL) The problem is, the program only compiles if I set the method to "static": static gpointer mymethod(gpointer nrp) { puts(this->mystring) ; ... } But if I…
Kenobi
  • 425
  • 1
  • 4
  • 19
0
votes
2 answers

Programatically create form and display bitmap in the form?

Platform: UBUNTU IDE: MonoDevelop 2.8.6.3 Language: C#.NET I have created a function which makes a screenshot and returns that screenshot as a Bitmap. Like this: /* Variable to store bitmap data in */ Bitmap bmp; /* Create screenshot. Return…
user1884325
  • 2,530
  • 1
  • 30
  • 49
0
votes
1 answer

GDK example code

Does anyone have a Gnome GDK example code or tutorials? I know that this is getting annoying, considering so many people ask this but I've tried and tried finding a Gnome GDK tutorial, for like an hour or so and I still don't have any luck, I'm…
Myrl
  • 17
  • 1
0
votes
0 answers

gtkmm - drawing primitives (and text) on window with keeping an old content

I want to draw some primitives (for example lines or text) on given window with gtkmm (gdkmm / gdk) with keeping old content of this window. I guess that using DrawingArea widget may be no helpful because I need draw on the old pixbuf. Maybe I need…
kelsar
  • 108
  • 5
0
votes
1 answer

gdkmm: how to destroy gdk window?

Status quo: I have a custom widget (MyWidget) with an event window. Problem: if I create, show and then, later, hide and destroy the widget I get the following message from the application: Gdk-WARNING **: losing last reference to undestroyed…
krokoziabla
  • 695
  • 1
  • 6
  • 21
0
votes
1 answer

MonoDevelop - Detect Enter Keypress in TextBox

I am currently making a web browser in MonoDevelop using C#, but I am having problems implementing the Keypress event. I already know the code for how to make the web browser navigate, but the problem is that the keypress event for the enter key…
rqmok
  • 834
  • 2
  • 9
  • 20
0
votes
1 answer

Gtk+ Error when Copy / Paste performed outside of application

I'm fairly new to Gtk. I'm working on a GUI application. Everything works great until I press Ctrl + C, Ctrl + V to copy/paste (in an outside application like excel). I am using Windows 8 64bit with a Mingw 32bit compiler. Any help on this issue…
mikeppalmer
  • 41
  • 2
  • 7