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

GdkPixbuf Collection

I need to create GdkPixBuf collection. I try to save pixbufs in GList - mw->disp_list: GtkTreeIter iter; int i = 0; for (i; i < g_list_length(list) - 1; ++i) { char* file = image_list_get_current_file_path( list ); …
0xAX
  • 20,957
  • 26
  • 117
  • 206
0
votes
1 answer

X11 Equivalent of gdk_pixbuf_add_alpha

In x11 I have obtained the binary blob by using XGetImage. In GDK we have this function that adds alpha of 255 to the Pixbuf: https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-Utilities.html#gdk-pixbuf-add-alpha I was wondering if there is a…
yatg
  • 1,121
  • 1
  • 9
  • 15
0
votes
0 answers

Starting with gdk_default_root_window -> Get all monitors

I am writing a function to get x, y, width, and height of all the monitors of the multi moniotr setup. I found this solution: https://stackoverflow.com/a/23608025/5062337 So I implemented it with jsctypes: var collMonInfos = []; …
yatg
  • 1,121
  • 1
  • 9
  • 15
0
votes
1 answer

GDK2 Alternative for gdk_window_set_fullscreen_mode

I'm trying to set my window to be GDK_FULLSCREEN_ON_ALL_MONITORS but for this I have to use gdk_window_set_fullscreen_mode, what is the GDK2 version of this? Thanks
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

GTK Window Cover Entire Screen

I'm working on a small educational piece of work, I create a window and its supposed to cover the entire monitor. However "special" areas are not being covered as seen in the screnshot at bottom. My window is a solid red with no menu bar scroll bar…
Noitidart
  • 35,443
  • 37
  • 154
  • 323
0
votes
1 answer

gdk (gtk3) in codeblocks on windows 7

I have configured gtk3+ (I've changed gtk2+ to gtk3+) in codeblocks 13.2 on windows 7, and created new gtk+ (exmaple) project. This example projcet was compiled and works properly. Next I included gdk: #include But when I added the…
ninjaaa
  • 293
  • 2
  • 11
0
votes
1 answer

Linker error with gdk_pixbuf_xlib_get_from_drawable

If I attempt to use the function gdk_pixbuf_xlib_get_from_drawable, it results in the following linker error: undefined reference to gdk_pixbuf_xlib_get_from_drawable I am compiling it using the gtk+-2.0 and libwnck-1.0 pkg-config options, like…
adlo
  • 63
  • 8
0
votes
1 answer

Getting X Cursor in WebKit GTK2+ widget if run by startx

I try to write kiosk web browser and run it automaticly after system boot. It's simple GTK2+ application, with WebKit used as browser. It starts from ~/.xinitrc: exec /home/kiosk-user/bin/browser 'http://localhost/' Source code browser.c: #include…
0
votes
1 answer

Problems displaying string in gtk3 Textview

I have a struct that i populate to update my textview widget (note i am mixing C and C++ code, and my compiler is g++) struct wdata { // some other variables; // assume all the widget are initiated properly struct *GUI { all the widgets...}; …
Sam Gomari
  • 733
  • 4
  • 13
  • 37
0
votes
1 answer

Does gdk_color_copy really allocate memory?

My impression from the gdk docs is that gdk_color_copy allocates memory: Makes a copy of a color structure. The result must be freed using gdk_color_free(). The future-version gdk_rgba_copy clearly does: A newly allocated GdkRGBA, with the…
user3467349
  • 3,043
  • 4
  • 34
  • 61
0
votes
1 answer

Google Glass User Authentication in PHP

Good day. I'm trying to create a authentication page in my glassware as google requirement using PHP and I'm stuck for days. I followed instruction here but can't make it work. This is my code:
rapidoodle
  • 340
  • 1
  • 3
  • 23
0
votes
1 answer

Does GdkRectangle have an activate event?

I want to make a GdkRectangle clickable so that I can select it and get a dot in every corner of the rectangle, implying that the user can move or resize the rectangle. Is there an event that triggers when a GdkRectangle is clicked? What's the…
Pieter
  • 31,619
  • 76
  • 167
  • 242
0
votes
1 answer

Ellipse object in GDK

In GDK there's an object called GdkRectangle that is used to draw rectangles. Is there a similar object for ellipses?
Pieter
  • 31,619
  • 76
  • 167
  • 242
0
votes
2 answers

Receive push notification in Google Glass

I would like to receive notifications in Google Glass (in my Android smartphone I can do this trough Google Cloud Messaging), but in Glass, Google Play Services are not available... Is there any alternative?
0
votes
0 answers

I am developing a application using JAVA & GTK+ on UBUNTU 14.04 64 bit OS . But continuously getting exception in loading the glade file

I am getting exception while running. It compiles correctly but can't start application. So how can i handle this exception and run my code. The Exception is: DANGER: Gdk-WARNING, gdk_window_set_icon_list: icons too large Exception in thread…
Rahul K Jha
  • 788
  • 9
  • 18