gdk Questions

4

Solved

I would like to replace deprecated functions gdk_threads_enter()/leave() in my application that uses threads. The application as it is now, works perfect (although i am not sure if this is the righ...
Siu asked 2/6, 2015 at 22:5

2

Solved

I'm trying to set the cursor to a watch. The problem is that gdk_set_cursor() requires a gdk_window. How do I get the gdk_window of a gtk_window in C? I've seen examples for gtkmm and pygtk but I c...
Maxson asked 22/4, 2012 at 2:7

2

Solved

I'm trying to create a multiple threading with GTK. Gtk.gdk is needed but i received error about no gdk attribute. I'm using a Raspberry Pi with Raspbian. This is how i import GTK library. try: ...
Quickwitted asked 31/3, 2013 at 9:36

2

Solved

I am trying to get the pointer position on screen in Gdk and found gdk_display_get_pointer(), which works fine, but it's marked as deprecated and refers to gdk_device_get_position() now. But how d...
Antiperspirant asked 19/7, 2014 at 20:5

2

Solved

The problem is simple enough, i have a code that generates a pixel buffer. Now i need to present this pixel buffer instead of saving image and then analyzing it after. What would be the solution ...
Cerous asked 20/3, 2020 at 17:30

1

Solved

I had this following code pull from one of the tutorials on line. When I use gtk+-2.0, the following code works fine. But when I try compile with gtk+-3.0, the code gives this error: signal 'e...
Planet asked 10/4, 2018 at 2:3

1

Solved

According to the official GTK documentation, gdouble, gchar, etc are just typedef of the normal C types. What's the point of it ? Why not simply use the traditional name, int, char; why take the t...
Photoreceptor asked 22/2, 2017 at 17:48

4

Solved

I'm creating a small app must be able to receive URLs. If the apps window is open, I should be able to drag a link from a browser and drop it into the app - and the app will save the URL to a datab...
Cooler asked 2/8, 2009 at 21:9

2

Solved

I have this python code that takes screenshot of x screen. #!/usr/bin/python import gtk.gdk w = gtk.gdk.get_default_root_window() sz = w.get_size() print "The size of the window is %d x %d" % sz ...
Flavoprotein asked 10/8, 2013 at 23:30

6

Solved

Yes/no-question: Is there a Groovy GDK function to capitalize the first character of a string? I'm looking for a Groovy equivalent of Perl's ucfirst(..) or Apache Commons StringUtils.capitalize(st...
Barrada asked 25/3, 2009 at 14:24

1

Solved

I'm fairly new to the whole GTK game and want to create an algorithm to take screen shot of all monitors. I was thinking something along these lines: gdk_display_manager_list_displays each displ...
Winebibber asked 9/5, 2015 at 22:7

1

Solved

I'm currently working on a small app to take a screenshot of all the physical monitors. I am getting very confused though between all the terminology. I understand: that we can have multiple displ...
Hyacinthus asked 13/5, 2015 at 6:50

3

Is groovy's extension module feature a hybrid form of java's inheritance feature? Why are the extension-module needs to be declared as static?
Oxidation asked 26/4, 2015 at 14:51

2

At the beginning of my Gtk-Gdk-Cairo-Pango app, I create the window: GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); First, there is GtkWindow, but gtk_create_window returns GtkWidget, no...
Selfconsistent asked 16/12, 2014 at 22:22

2

Solved

Using gdk_screen_get_monitor_geometry, I can get the total area in pixels and the relative position of each monitor, even when there are two or more used as a single screen. However, I want to get...
Torrens asked 8/4, 2010 at 8:50

1

I'm trying to make Guake terminal work correctly in Unity. Its window have width that is equal to screen width. But because of Unity left bar window's right border becomes invisible. So, I want to ...
Newfashioned asked 6/5, 2012 at 16:24

1

I'm a complete newbie with Gtk# and Gdk# and I'm completely lost as to how to get started. All I'm trying to do is to draw points and lines in whatever widget/pixmap/image and then display them in...
Argeliaargent asked 2/2, 2012 at 13:22

1

I'm investigating an issue and ran across some suspicious code involving comparison of Date instances using comparison operators. e.g. def stamp = ... //Date def offset = ... //Integer def d = ...
Pugging asked 7/2, 2011 at 21:8

1

Solved

I have a program that displays an animation with a fixed frame rate (say 30 fps) in a window. Currently I use SDL but unfortunately it lacks desktop integration(like drag & drop) and now I wan...
Brackely asked 3/1, 2011 at 19:28

1

Solved

I've started learning Lisp recently and wanted to write a program which uses gtk interface. I've installed lambda-gtk bindings (on CMUCL). I want to have putpixel/getpixel ability on a pixbuf. But ...
Dysthymia asked 16/11, 2009 at 16:25
1

© 2022 - 2024 — McMap. All rights reserved.