Re: Why the code is not compatible?

2015-08-16 Thread Jean Brefort
Hi Igor, The code fallbacks to a default icon size (24x24) if you pass a wrong argument. You should also get a warning in the console if I read the source correctly. Le dimanche 16 août 2015 à 09:06 -0400, Igor Korot a écrit : Hi, Jean, On Sun, Aug 16, 2015 at 8:59 AM, Jean Brefort

Re: Why the code is not compatible?

2015-08-16 Thread Jean Brefort
GtkIconSize is an enum. Acceptable values are 1 to 6, 6 being GTK_ICON_SIZE_DIALOG. (0 means invalid). 48 is undefined. Le dimanche 16 août 2015 à 14:24 +0200, Stefan Salewski a écrit : On Sat, 2015-08-15 at 19:16 -0400, Igor Korot wrote: However, if I explicitely put 48 instead of

Re: charts on gtk+

2015-02-06 Thread Jean Brefort
libgoffice has support for charts. It can be used outside of gnumeric and uses cairo for rendering. Regards, Jean Le vendredi 06 février 2015 à 16:27 -0600, zeta a écrit : Hi there I am new on the community, I am a bachelor student at BUAP, I love gome since I meet it, and know I want to

About GtkBuilder, GMenu, and GAction (was Re: Deprecation of GtkImageMenuItem)

2014-10-23 Thread Jean Brefort
Le jeudi 23 octobre 2014 à 10:31 +0100, Emmanuele Bassi a écrit : another recommendation is to *not* use GtkMenu and friends directly, but to use GtkBuilder, GAction, and GMenu — follow the How Do I document here: https://developer.gnome.org/GMenu/ — to describe your menus with XML, which also

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
This will break abiword as well. Jean Le samedi 21 juin 2014 à 08:02 -0400, Morten Welinder a écrit : Argh! Will the stream of ABI changes never end? Gnumeric uses this to provide a walking-ant cursor large selected areas -- areas too big for processing in the normal paint loop.

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
intensive changes to apps, I'll revert the patches. This is exactly why I sent out the mail. On Sat, Jun 21, 2014 at 9:18 AM, Jean Brefort jean.bref...@normalesup.org wrote: This will break abiword as well. Jean Le samedi 21 juin 2014 à 08:02

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
difficult to balance the requirements of everybody. On Sat, Jun 21, 2014 at 9:44 AM, Jean Brefort jean.bref...@normalesup.org wrote: Both abiword and gnumeric do something like: cr = gdk_cairo_create(win); ...do some drawing then relase the cairo

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
Le samedi 21 juin 2014 à 09:55 -0400, Paul Davis a écrit : On Sat, Jun 21, 2014 at 9:44 AM, Jean Brefort jean.bref...@normalesup.org wrote: Both abiword and gnumeric do something like: cr = gdk_cairo_create(win); ...do some drawing then relase

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
Le samedi 21 juin 2014 à 10:05 -0400, Paul Davis a écrit : On Sat, Jun 21, 2014 at 10:02 AM, Jean Brefort jean.bref...@normalesup.org wrote: you're drawing on the window outside of an expose/draw event? Yes, because using draw

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
Le samedi 21 juin 2014 à 11:05 -0400, Paul Davis a écrit : On Sat, Jun 21, 2014 at 10:35 AM, Jean Brefort jean.bref...@normalesup.org wrote: In gnumeric this arised when we draw an animated rectangle around the selected rectangle. When using the draw event, we

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-21 Thread Jean Brefort
Le samedi 21 juin 2014 à 11:28 -0400, Jasper St. Pierre a écrit : On Sat, Jun 21, 2014 at 10:26 AM, Jasper St. Pierre jstpie...@mecheye.net wrote: Honest question: which ones? The only requirement we have with Wayland is that we know when a paint has begun and when it has

Re: Stock Items Deprecation

2013-07-17 Thread Jean Brefort
Le mercredi 17 juillet 2013 à 11:47 +0200, Murray Cumming a écrit : On Tue, 2013-07-02 at 09:41 -0400, William Jon McCann wrote: Hi, As some of you may have noticed we have recently deprecated Stock Items in master. Some details on this change may be found here:

Re: The issue ionice: execvp failed: No such file or directory once more.

2012-11-07 Thread Jean Brefort
ionice is part of util-linux-ng. Check your installation. Regards, Jean Le mardi 06 novembre 2012 à 15:56 +0800, Hongyi Zhao a écrit : Hi all, I've post a message on this type of issue. Now, I meet it again, sigh;-( See the following code: -- werner@debian-asus:~$ jhbuild

Re: The issue ionice: execvp failed: No such file or directory once more.

2012-11-06 Thread Jean Brefort
system is most probably broken. Le mardi 06 novembre 2012 à 20:36 +0800, Hongyi Zhao a écrit : On 11/06/2012 05:39 PM, Jean Brefort wrote: ionice is part of util-linux-ng. Check your installation. Regards, Jean According to your above advice, I do the following thing: $ git clone git

Re: drawing on offscreen surface

2012-08-10 Thread Jean Brefort
This code is quite strange. Your call to cairo_set_source_surface() is not useful since you use cairo_set_source_rgb() just after. You should call cairo_paint() just after cairo_set_source_surface() if you want it to have any effect. Hope it helps, Jean Le vendredi 10 août 2012 à 13:07 +0530,

Re: drawing on offscreen surface

2012-08-10 Thread Jean Brefort
14:09 +0530, Prasanta Sadhukhan a écrit : On Fri, Aug 10, 2012 at 1:22 PM, Jean Brefort jean.bref...@normalesup.org wrote: This code is quite strange. Your call to cairo_set_source_surface() is not useful since you use cairo_set_source_rgb() just after. You

Re: drawing on offscreen surface

2012-08-10 Thread Jean Brefort
(the blue rectangle) on main window, I would get both blue and green rectangles on main window. Can you please clarify how can I achieve that (both offscreen main window contents being shown on main window)? Thanks in advance!! Regards Prasanta On Fri, Aug 10, 2012 at 2:22 PM, Jean Brefort

Re: drawing on offscreen surface

2012-08-10 Thread Jean Brefort
, Aug 10, 2012 at 2:38 PM, Jean Brefort jean.bref...@normalesup.org wrote: I suppose that surface is the offscreen scene. In that case, ther bule rectangle should not be drawn during the expose event callback, but when you build surface. Then you can use

Re: drawing on offscreen surface

2012-08-10 Thread Jean Brefort
It is not the sme thing. With your latest code, you create surface each time the widget needs redraw. configure events only occur when the widget changes size. Otherwise, you are leaking surface and off_cr. Le vendredi 10 août 2012 à 16:41 +0530, Prasanta Sadhukhan a écrit : Thanks for the code

Custom widget background color

2012-05-17 Thread Jean Brefort
Hi, I wrote a custom widget for which some regions should appear selected. I'm using Ubuntu 12.04, and the theme contains the following: @define-color bg_color #f2f1f0; @define-color selected_bg_color #f07746; @define-color selected_fg_color #ff; * { /* inherit the color from parent by

Re: Setting child properties with GtkBuilder

2012-05-06 Thread Jean Brefort
The property should be in the child node, not in the object node. Regards, Jean Le dimanche 06 mai 2012 à 13:39 +0200, Cedric Sodhi a écrit : Hello, I'm trying to build a tabular interface with GtkBuilder, using GtkGrid. GtkGrid specifies that it provides child properties left-attach and

Re: Setting child properties with GtkBuilder

2012-05-06 Thread Jean Brefort
Sorry, I forgot the packing node. Try that: object class=GtkGrid child object class=GtkLabel/ packing property name=left-attach0/property /packing /child /object You might also use glade to generate the ui file without syntax errors. Regards, Jean

RE: Change background color in GTK 3

2012-02-14 Thread Jean Brefort
This is https://bugzilla.gnome.org/show_bug.cgi?id=656461 Regards, Jean Le mardi 14 février 2012 à 10:00 +0100, Victor henri a écrit : Well I had the issue on ubuntu 11.10. On another machine using ubuntu 11.04 it works... Is it related to theme? Anyway should't

Re: New to GTK, need help

2012-01-22 Thread Jean Brefort
GTK_OBJECT and GTK_SIGNAL_FUNC are obsolete, use G_OBJECT and G_CALLBACK instead. Regards, Jean Le vendredi 20 janvier 2012 à 22:50 +0700, Siravich Khongrod a écrit : Not sure if I am in the right section, but I am new to the GTK+ and I have got the following problems [folk@ASUS GUI] $

Re: RFC: new features

2012-01-11 Thread Jean Brefort
Le jeudi 12 janvier 2012 à 03:59 +0100, Benjamin Otte a écrit : PLOTS This is my personal pet peeve. I often have something I'd like to quickly plot in GTK, but it always ends up being more complicated then I thought, so I either stare at text or use Gnumeric to get my plots. Gnumeric uses

Re: Some questions about g_object_new, gtk_type_window and so on

2011-07-25 Thread Jean Brefort
Hi, Each type has an associated GType value which can be retrieved using the appropriate *_get_type() function. For a GtkButton, the function is: GType gtk_button_get_type(void); and GTK_TYPE_BUTTON is an equivalent macro: #define GTK_TYPE_BUTTON gtk_button_get_type() These are not described in

Re: compile gtk 3 error

2011-07-22 Thread Jean Brefort
Strange, which cairo version do you have? You need at least 1.10.0. May be you have several cairo versions and it does not link to the correct one. Try make V=1 to check which is used. Hope this helps, Jan Le vendredi 22 juillet 2011 à 15:59 +0400, Dmitry Shkirmanov a écrit : Hello, list, i am

Re: compile gtk 3 error

2011-07-22 Thread Jean Brefort
Looks like pango uses /usr/lib/cairo. Did you build pango before cairo? Le vendredi 22 juillet 2011 à 17:14 +0400, Dmitry Shkirmanov a écrit : Strange, which cairo version do you have? You need at least 1.10.0. May be you have several cairo versions and it does not link to the correct one.

Re: Makefile for GTK2 programs?

2010-08-18 Thread Jean Brefort
Le mercredi 18 août 2010 à 10:26 +0300, Juhana Sadeharju a écrit : What CFLAGS and LIBS I should use in Makefiles? I installed GTK2 to home directory, and thus I won't use lddconfig. My programs should take all from ~/gtk2/, and nothing from /usr/include/gtk-1.2/ and nothing gtk-related from

Re: rendering-cleanup

2010-08-16 Thread Jean Brefort
Hi, Sorry to come late to this thread, but I'd like to know how you intend to support things that can't be rendered using cairo? Just like a 3D OpenGL scene. I'm not sure gtkglext would still work. I hope I'm missing something... Regards, Jean Le jeudi 22 juillet 2010 à 04:54 +0200, Benjamin