Re: Getting a Cairo context
I too have been wondering about something similar. How do you get the widget's drawable cairo context outside of the draw callback. Pramathesh On Tue, 2015-03-24 at 15:17 +0300, Sergei Naumov wrote: Hi! I am developing a program that has to draw some data using Cairo. The question I have is about getting a cairo context from outside of the signal draw that the examples describe. I have a multithreaded application where one thread sets up the GTK drawing area, axes, tickmarks, etc. and another thread has to draw in this area. I attach a function to a draw signal on this GTK widget (drawing area) in one thread, but what do I do in another? Thanks in advance, -- Sergei ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Unequal increments in GtkScale or Spin Button
Hi list. Is it possible to specify unequal increments or decrements in scale/range/spinbuttons or adjustments? By that I mean, for example, if the up-arrow of a spin button is pressed, instead of increasing the value by a fixed increment, I change it by arbitrary values - say the value changes from 10 to 16 to 18 to 32 to 60 and so on? Thanks in advance Pramathesh ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Scrolled window child contents showing on other widgets when resizing window in scrolled state
Hi. I am new to programming and gtk+ I am trying to implement a small application using GTK 3.0, glade and Anjuta. The ui consists of a main window, a grid in which are packed a File ChooserWidget (above) and a scrolled window below. The scrolled window has a layout or a drawing area with a viewport as a child. In the layout or the drawing area, a cairo context is obtained by making a call to gdk_cairo_create. The main window's configure event sizes the cairo context and the layout/drawing area to display text in a font face at a large size. The scrolled window is set to vexpand. As the height of the layout increases, its contents can be scrolled as is expected. When I a. vertically scroll the window and b. resize the main toplevel window using the resize grip, I see the cairo context which is hidden by the scrolled window peep out and appear over the file chooser widget. When I release the grip, the content disappears but some traces remain If I shift the scrolled window to the right of the file chooser, I can see the contents of the scrolled window move around under the file chooser widget Idea is to eventually develop an app which affords a preview of some file as the user clicks on the file chooser. However, I am stuck because I can't figure out what is going on. Help will be greatly appreciated Thanks in advance ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
g_spawn_async_with_pipes
Is it possible to pass a file descriptor of a file to g_spawn_async_with_pipes as the stdout parameter so to pipe the output of the child to a file? If so, how? Thanks in advance pramathesh ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
gtk gs widget
Any pointers on how to use the gtk gs widget (which comes with ggv) in a gtk application? Thanks in advance Pramathesh ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list