Re : Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Lucas Levrel
--- En date de : Lun 18.2.13, Rena hyperhac...@gmail.com a écrit : Recently I've been developing a Game Boy emulator that uses GtkDrawingArea and GdkPixbuf to display the game screen. In addition to the game output I want to also be able to draw text and shapes on the display window, and

Re: Help Broadway Backend

2013-02-20 Thread Diego Felix (Bill)
I tried this but I can not install this requirement: configure: error: Package requirements (glib-2.0 = 2.35.3atk = 2.7.5 pango = 1.32.4cairo = 1.10.0cairo-gobject = 1.10.0 gdk-pixbuf-2.0 = 2.27.1) were not met: No package 'pango' found When I run configure:

Re: Help Broadway Backend

2013-02-20 Thread Diego Felix (Bill)
When I try to compile a older version of gtk+-3 (3.4.4), I have the same error: When I configure: bill@bill-laptop:~/Downloads/gtk+-3.4.4$ ./configure --prefix=/opt/gtk --enable-x11-backend --enable-broadway-backend checking for a BSD-compatible install... /usr/bin/install -c checking

Re: Help Broadway Backend

2013-02-20 Thread Jasper St. Pierre
You need to update your version of glib. On Sun, Feb 17, 2013 at 9:00 PM, Diego Felix (Bill) diegob...@gmail.comwrote: When I try to compile a older version of gtk+-3 (3.4.4), I have the same error: When I configure: bill@bill-laptop:~/Downloads/gtk+-3.4.4$ ./configure --prefix=/opt/gtk

Re: Help Broadway Backend

2013-02-20 Thread Diego Felix (Bill)
I installed a new version (2.35.7): bill@bill-laptop: pkg-config --modversion glib-2.0 2.35.7 But I can not remove old version 2.32.3, because of packages dependecies, like: ubuntu-desktop, ... How to update old version (2.32.3)? Em 18/02/2013 01:10, Jasper St. Pierre jstpie...@mecheye.net

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Edscott Wilson
2013/2/18 Colomban Wendling lists@herbesfolles.org Or maybe I got you wrong and you'd like to *draw* on your GdkPixbuf? I'm afraid this just isn't possible directly. If you really want to do that, you'll probably have to manually do some pixel conversion. You can create a Cairo surface

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Colomban Wendling
Le 19/02/2013 01:45, Rena a écrit : On Mon, Feb 18, 2013 at 9:24 AM, Colomban Wendling [...] Well, my emulator gets the pixel data from gdk_pixbuf_get_pixels() and writes into that buffer directly; that way it doesn't have to know anything about GDK and can draw pixels by just writing

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Markus Elfring
- if the maybe contains a value, return the NULL of the same type Do any software developers dare to think about extensions around the function g_variant_new_maybe once more? http://developer.gnome.org/glib/2.35/glib-GVariant.html#glib-GVariant.description Regards, Markus

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Simon McVittie
On 20/02/13 09:45, Markus Elfring wrote: Do any software developers dare to think about extensions around the function g_variant_new_maybe once more? Ryan and I have explained several times why we don't think the semantics you requested are useful to have in GLib. Repeatedly asking for the same

can gir files be installed in another directory

2013-02-20 Thread Chantal Wobben
Hello, I trying to port Cinnamon to Crux linux. But I see that Gobject-introspection places the gir files in /usr/local/gir-1.0 But in Crux it is forbidden to place files in /usr/local/ So is it possible to tell gobject-introspection to place the gir files in another directory. Regards,

G_DEBUG_LOCKS - use G_(UN)LOCK macros internally

2013-02-20 Thread Thomas Meyer
Hi, does this patch makes any sense? diff --git a/glib/gthread.c b/glib/gthread.c index ee87574..60cff76 100644 --- a/glib/gthread.c +++ b/glib/gthread.c @@ -522,7 +522,7 @@ G_DEFINE_QUARK (g_thread_error, g_thread_error) /* Local Data {{{1

Re: glib-mkenums in glib 2

2013-02-20 Thread Bernhard Schuster
I would like to see that information - even if I have no instant use for it - but I am pretty sure it will help a lot of people digging for information. Best Bernhard 2013/2/19 John Emmas john...@tiscali.co.uk: On 4 Jan 2013, at 10:49, Matthew Brush wrote: From the last few messages on this

Notebook tab not correctly drawn if tab pos = BOTTOM (gtk 3.5.4, win32)

2013-02-20 Thread th-pitschel
Hello, I was putting a GtkNotebook on a main window widget (using glade) and set the tab position to BOTTOM. This looks alright in glade. However, running the application itself one sees that the tabs are not drawn correctly (they retain round corners and the highlighting orange at the _top_ edge

Re: can gir files be installed in another directory

2013-02-20 Thread Colin Walters
On Fri, 2013-02-15 at 14:14 +0100, Chantal Wobben wrote: Hello, I trying to port Cinnamon to Crux linux. But I see that Gobject-introspection places the gir files in /usr/local/gir-1.0 No; like every other Autotools using component, it places them in whatever you specify as --datadir. And

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Markus Elfring
Ryan and I have explained several times why we don't think the semantics you requested are useful to have in GLib. I replied to your concerns. I was missing a bit more feedback in the meantime. Now I hope that our small discussion can be continued in constructive ways. I want to reset a

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Simon McVittie
On 20/02/13 16:37, Markus Elfring wrote: I need it for concrete adjustments in applications like a partition manager. I don't see how this is relevant to GVariant. How are you using variants? What does the variant represent? What type is it? What data structure are they stored in? Why are you

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Markus Elfring
How are you using variants? I would like to achieve a mapping of nullable objects to indeterminate checkboxes for example. What data structure are they stored in? Candidate: template class Gtk::TreeModelColumn Why are you using a 'maybe' type, as opposed to a GVariant * that may be

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Markus Elfring
I would like to achieve a mapping of nullable objects to indeterminate checkboxes for example. A GVariant with 'maybe' type seems far too complicated for this. Why? I find that GVariant provides a general interface for the handling of nullable data types. I'd use an integer holding a

Re: Function completion for GVariant maybe types?

2013-02-20 Thread Andrew Potter
On Wed, Feb 20, 2013 at 1:44 PM, Markus Elfring markus.elfr...@web.dewrote: I do not think that I can refer to such preallocated objects if I would like to reuse a template class like Gtk::TreeModelColumn. I disagree to your conclusion here. - I would like to copy the data type information

Some shortcomings in gtestutils

2013-02-20 Thread Federico Mena Quintero
Hi, everyone, I've been writing some tests for GtkFileChooserButton and putting them in gtk+/gtk/tests/filechooser.c - this is the old test suite, resurrected and alive. So, I've been learning what gtestutils provides. It is not bad, but it seems pretty pedestrian on some counts. These are

Re: Notebook tab not correctly drawn if tab pos = BOTTOM (gtk 3.5.4, win32)

2013-02-20 Thread Federico Mena Quintero
On Tue, 2013-02-19 at 18:39 +0100, th-pitsc...@uni.de wrote: I was putting a GtkNotebook on a main window widget (using glade) and set the tab position to BOTTOM. This looks alright in glade. However, running the application itself one sees that the tabs are not drawn correctly (they

Re: Some shortcomings in gtestutils

2013-02-20 Thread Sam Spilsbury
On Thu, Feb 21, 2013 at 10:46 AM, Federico Mena Quintero feder...@gnome.org wrote: Hi, everyone, I've been writing some tests for GtkFileChooserButton and putting them in gtk+/gtk/tests/filechooser.c - this is the old test suite, resurrected and alive. So, I've been learning what gtestutils

Re: GUI Testing (was: Some shortcomings in gtestutils)

2013-02-20 Thread John Ralls
On Feb 20, 2013, at 6:46 PM, Federico Mena Quintero feder...@gnome.org wrote: * Now that the a11y infrastructure is included in-the-box with GTK+, it sounds like a good idea to start putting an a11y-based testing infrastructure in GTK+ itself. For the file chooser's tests, I had to do

Re: Function completion for GVariant maybe types?

2013-02-20 Thread John Emmas
On 20 Feb 2013, at 21:44, Markus Elfring wrote: Why do you prefer to use an enumeration instead of the other general application programming interface? Hi Markus. Until a couple of days ago I'd never even encountered GVariant so forgive me if I've misunderstood the concept - but from

Re: Some shortcomings in gtestutils

2013-02-20 Thread Sam Spilsbury
On Thu, Feb 21, 2013 at 1:17 PM, Peter Hutterer peter.hutte...@who-t.net wrote: Having worked with googletest and xorg-gtest [1] for X integration testing, I can say the most annoying bit is to get the whole thing to compile. The C++ ODR prevents us from building gtest and xorg-gtest as library

Re: Some shortcomings in gtestutils

2013-02-20 Thread Peter Hutterer
On Thu, Feb 21, 2013 at 02:39:21PM +0800, Sam Spilsbury wrote: On Thu, Feb 21, 2013 at 1:17 PM, Peter Hutterer peter.hutte...@who-t.net wrote: Having worked with googletest and xorg-gtest [1] for X integration testing, I can say the most annoying bit is to get the whole thing to compile. The