Re: deprecated gtk_cairo_create

2017-01-06 Thread Sergei Kolomeeyets
redraw the main line? It's definitely a good idea to gather all codes of axes drawing into special function and put it into a configure event handler. What do you recommend that I do now (if "off-screen' drawing is much more expensive and in general is a very niche use cases)? Regards, Serg

deprecated gtk_cairo_create

2016-12-30 Thread Sergei Kolomeeyets
Hi, everyone I'm struggling with migration from gtk2. Well gtk_cairo_create is deprecated in gtk3. And it looks the changes are very serious (or I'm sach silly that even do not understand what should I do instead of it ). Is there anybody who use Drawing Area in GTK3 and can explain the right way

Interpretation of gtk warnings and errors messages

2015-11-13 Thread Sergei Kolomeeyets
Hi everyone! Can anybody be so kind to help me with sources (docs of web) with relevant information or any ideas concerning interpretation of gtk messages like this: (main_1:31671): Gtk-WARNING **: /build/buildd-gtk+2.0_2.24.10-2-i386-Tg7Q_2/gtk+2.0-2.24.10/gtk/gtkwidget.c:5683: widget not within

key values on key pressed

2013-11-22 Thread Sergei Kolomeeyets
Hi, to write a trivial key-press handler like the following: static gboolean key_pressed (GtkWidget *area, GdkEventKey *event, GPtrArray *ptLinePoints) { GError *error; guint tt; if (event-keyval == GDK_Delete) { ... } if (event-keyval == GDK_Return) { ... } return FALSE; }