From yahyai-0@hotmail.com Mon Aug 1 07:17:16 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1456D7500D0 for ; Mon, 1 Aug 2011 07:17:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -100.623 X-Spam-Level: X-Spam-Status: No, score=-100.623 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.723, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ayIMne+0ki4I for ; Mon, 1 Aug 2011 07:17:14 +0000 (UTC) X-Greylist: delayed 332 seconds by postgrey-1.32 at menubar.gnome.org; Mon, 01 Aug 2011 07:17:14 UTC Received: from dub0-omc3-s20.dub0.hotmail.com (dub0-omc3-s20.dub0.hotmail.com [157.55.2.29]) by menubar.gnome.org (Postfix) with ESMTP id 67451750093 for ; Mon, 1 Aug 2011 07:17:05 +0000 (UTC) Received: from DUB112-W48 ([157.55.2.7]) by dub0-omc3-s20.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 1 Aug 2011 00:11:32 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_288627ac-808a-45a7-82da-6af5ec9d90f7_" X-Originating-IP: [188.140.132.19] From: "MysteriousMan ." To: Subject: How I can change the translation from the program? Date: Mon, 1 Aug 2011 11:11:32 +0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 01 Aug 2011 07:11:32.0249 (UTC) FILETIME=[3DC36890:01CC501A] X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2011 07:17:16 -0000 --_288627ac-808a-45a7-82da-6af5ec9d90f7_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit Hi there I have done translate my program for two languages (EN , AR) . And I have add button to switch between those languages How I can implement this ? (change the language from the program) thanks in advance --_288627ac-808a-45a7-82da-6af5ec9d90f7_ Content-Type: text/html; charset="windows-1256" Content-Transfer-Encoding: 8bit

Hi there

I have done translate  my program for two languages (EN , AR) .
And I have add button to switch between those languages 
How I can implement this ? (change the language from the program)

thanks in advance
--_288627ac-808a-45a7-82da-6af5ec9d90f7_-- From tweenk.pl@gmail.com Mon Aug 1 17:06:02 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D1DC75019D for ; Mon, 1 Aug 2011 17:06:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NE3wFzgsY0UJ for ; Mon, 1 Aug 2011 17:06:00 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 339C675002C for ; Mon, 1 Aug 2011 17:05:51 +0000 (UTC) Received: by ywm39 with SMTP id 39so1345554ywm.27 for ; Mon, 01 Aug 2011 10:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Xja8gpjGOEZ5DioAagCCMRJSo46LPqpt8yb2savOo4Q=; b=pHKXgrO+iTZ345cAHQlEYNas6vcLCV0q+RELY8eSbSOntn4tvkll7I4s+1RgIUuLsI 0oc48x0oYeZD3XNK1RPArTUKRgztRtMd9rLo9SQ2LVnNtOiVN7GsUVryIt66lRziX0Y2 zkRDlYeWyt2lgJFYeixq8fGGHccZHD/v4Vz1g= MIME-Version: 1.0 Received: by 10.68.1.38 with SMTP id 6mr6750040pbj.526.1312218349896; Mon, 01 Aug 2011 10:05:49 -0700 (PDT) Received: by 10.68.41.225 with HTTP; Mon, 1 Aug 2011 10:05:49 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Aug 2011 19:05:49 +0200 Message-ID: Subject: Re: How I can change the translation from the program? From: =?UTF-8?Q?Krzysztof_Kosi=C5=84ski?= To: "MysteriousMan ." Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2011 17:06:02 -0000 2011/8/1 MysteriousMan . : > > Hi there > > I have done translate=C2=A0 my program for two languages (EN , AR) . > And I have add button to switch between those languages > How I can implement this ? (change the language from the program) In Inkscape this is done by storing a preference in a file, and on the next start of the program the setting from the preferences is used to set the LANGUAGE environmental variable before any calls to gettext are made: setenv("LANGUAGE", ui_lang, TRUE); Regards, Krzysztof From yahyai-0@hotmail.com Tue Aug 2 08:47:50 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89C3D7502E2 for ; Tue, 2 Aug 2011 08:47:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -100.517 X-Spam-Level: X-Spam-Status: No, score=-100.517 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1.929, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.801, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gY1Aah+I8QYy for ; Tue, 2 Aug 2011 08:47:48 +0000 (UTC) X-Greylist: delayed 331 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 02 Aug 2011 08:47:47 UTC Received: from dub0-omc1-s37.dub0.hotmail.com (dub0-omc1-s37.dub0.hotmail.com [157.55.0.236]) by menubar.gnome.org (Postfix) with ESMTP id C412A750075 for ; Tue, 2 Aug 2011 08:47:39 +0000 (UTC) Received: from DUB112-W60 ([157.55.0.237]) by dub0-omc1-s37.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 2 Aug 2011 01:42:05 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_0814b152-ffdc-43ec-b5ba-f5f5088383c3_" X-Originating-IP: [188.140.135.64] From: "MysteriousMan ." To: Subject: RE: How I can change the translation from the program? Date: Tue, 2 Aug 2011 12:42:05 +0400 Importance: Normal In-Reply-To: References: , MIME-Version: 1.0 X-OriginalArrivalTime: 02 Aug 2011 08:42:05.0856 (UTC) FILETIME=[0EDBCA00:01CC50F0] Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 08:47:50 -0000 --_0814b152-ffdc-43ec-b5ba-f5f5088383c3_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit I have add the following setenv("LANG", "ar", TRUE); setenv ("LANGUAGE", "ar", TRUE); The program is in english , and Ar.po exist on po folder But the language didn't change even if I restart the program 10 times > Date: Mon, 1 Aug 2011 19:05:49 +0200 > Subject: Re: How I can change the translation from the program? > From: tweenk.pl@gmail.com > To: yahyai-0@hotmail.com > CC: gtkmm-list@gnome.org > > 2011/8/1 MysteriousMan . : > > > > Hi there > > > > I have done translate my program for two languages (EN , AR) . > > And I have add button to switch between those languages > > How I can implement this ? (change the language from the program) > > In Inkscape this is done by storing a preference in a file, and on the > next start of the program the setting from the preferences is used to > set the LANGUAGE environmental variable before any calls to gettext > are made: > > setenv("LANGUAGE", ui_lang, TRUE); > > Regards, Krzysztof --_0814b152-ffdc-43ec-b5ba-f5f5088383c3_ Content-Type: text/html; charset="windows-1256" Content-Transfer-Encoding: 8bit
I have add the following

setenv("LANG", "ar", TRUE);
setenv ("LANGUAGE", "ar", TRUE);

The program is in english , and Ar.po exist on po folder
But the language didn't change even if I restart the program 10 times

> Date: Mon, 1 Aug 2011 19:05:49 +0200
> Subject: Re: How I can change the translation from the program?
> From: tweenk.pl@gmail.com
> To: yahyai-0@hotmail.com
> CC: gtkmm-list@gnome.org
>
> 2011/8/1 MysteriousMan . <yahyai-0@hotmail.com>:
> >
> > Hi there
> >
> > I have done translate  my program for two languages (EN , AR) .
> > And I have add button to switch between those languages
> > How I can implement this ? (change the language from the program)
>
> In Inkscape this is done by storing a preference in a file, and on the
> next start of the program the setting from the preferences is used to
> set the LANGUAGE environmental variable before any calls to gettext
> are made:
>
> setenv("LANGUAGE", ui_lang, TRUE);
>
> Regards, Krzysztof
--_0814b152-ffdc-43ec-b5ba-f5f5088383c3_-- From t.harty1@physics.ox.ac.uk Tue Aug 2 11:16:59 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E35C0750068 for ; Tue, 2 Aug 2011 11:16:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5 X-Spam-Level: X-Spam-Status: No, score=-5 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.801] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id urUEIJiTAsfB for ; Tue, 2 Aug 2011 11:16:56 +0000 (UTC) X-Greylist: delayed 1498 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 02 Aug 2011 11:16:56 UTC Received: from fallback1.mail.ox.ac.uk (fallback1.mail.ox.ac.uk [163.1.2.175]) by menubar.gnome.org (Postfix) with ESMTP id 4FDF975000A for ; Tue, 2 Aug 2011 11:16:47 +0000 (UTC) Received: from relay2.mail.ox.ac.uk ([163.1.2.161]) by fallback1.mail.ox.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1QoCZq-00065H-4Q for gtkmm-list@gnome.org; Tue, 02 Aug 2011 11:51:58 +0100 Received: from exchange-cas1.physics.ox.ac.uk ([163.1.74.82]) by relay2.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QoCZf-0005bo-9Y for gtkmm-list@gnome.org; Tue, 02 Aug 2011 11:51:47 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS1.physics.ox.ac.uk ([fe80::c42f:17a5:9fa5:3b33%10]) with mapi id 14.01.0323.000; Tue, 2 Aug 2011 11:51:47 +0100 From: Thomas Harty To: "gtkmm-list@gnome.org" Subject: Images in GTKmm Thread-Topic: Images in GTKmm Thread-Index: AcxRAi0CddeFsNUtS9+26CsqI/T2gg== Date: Tue, 2 Aug 2011 10:51:47 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.182.2] Content-Type: multipart/alternative; boundary="_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA68EXCHNG14physics_" MIME-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 11:17:00 -0000 --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA68EXCHNG14physics_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want to put an image into a box in such a way that the image will shrink = to fit into empty space in the box, whilst preserving its aspect ratio. Thu= s, the dimensions of the image should be determined by the dimensions of th= e objects around it. The image needs to shrink and expand with the box (e.g= . if the user re-sizes the main window). For example, I want to put a few items in a VBox and have these items deter= mine the width of the VBox. I then want to be able to add the image to the = VBox in such a way that it doesn't resize the box, but rather fits into the= space. If there is space left above/below the widget (due to the constrain= t of preserving it's aspect ratio), this should be filled with padding, rat= her than the image expanding to fill the space. What's the best way of accomplishing this in Gtkmm? Tom --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA68EXCHNG14physics_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I want to put an image into a box in such a way that the image will = shrink to fit into empty space in the box, whilst preserving its aspect rat= io. Thus, the dimensions of the image should be determined by the dimensions of the objects around it. The image= needs to shrink and expand with the box (e.g. if the user re-sizes the mai= n window).

For example, I want to put a few items in a VBox and have these items deter= mine the width of the VBox. I then want to be able to add the image to the = VBox in such a way that it doesn't resize the box, but rather fits into the= space. If there is space left above/below the widget (due to the constraint of preserving it's aspect ratio), this s= hould be filled with padding, rather than the image expanding to fill the s= pace.

What's the best way of accomplishing this in Gtkmm?

Tom
--_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA68EXCHNG14physics_-- From yann@leydier.info Tue Aug 2 15:29:16 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF3FE7501B7 for ; Tue, 2 Aug 2011 15:29:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uwyvXq4Twsr5 for ; Tue, 2 Aug 2011 15:29:15 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by menubar.gnome.org (Postfix) with ESMTP id E5BB475007F for ; Tue, 2 Aug 2011 15:29:04 +0000 (UTC) Received: from [192.168.0.21] (sal69-3-78-192-148-193.fbxo.proxad.net [78.192.148.193]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MZQZl-1R57MR0sYv-00LC81; Tue, 02 Aug 2011 17:29:02 +0200 Message-ID: <4E3817BD.6080409@leydier.info> Date: Tue, 02 Aug 2011 17:29:01 +0200 From: Yann LEYDIER User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Images in GTKmm References: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk> In-Reply-To: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Je37zS8t4jb7BSMOEDBK4ubq2EryOQf2myvd74uS/0u zEJfzPwdoTKnWOYXkGp4CN+68iWKyYprM7E7g4WJemRUFIr6CM bzZE+1+jFmdt+w0e1Ku7SLnHdprJktjcqgSC+tP92RMhrY0Y29 3dII1tITsY4enzXT70rIC8IBA1LQ6uL+ICsWkRO0G6l09qR1+K bxfa6W9yak1JhZ5Ar0m25SFC/nWVb0c+1LWF9mxnUc= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 15:29:17 -0000 I would do this with a DrawingArea. It is possible to resize a Pixbuf to the size of the DrawingArea and render it in a callback plugged to the expose_event signal. But I don't known if it is the best way! ;) yann On 02/08/11 12:51, Thomas Harty wrote: > I want to put an image into a box in such a way that the image will > shrink to fit into empty space in the box, whilst preserving its aspect > ratio. Thus, the dimensions of the image should be determined by the > dimensions of the objects around it. The image needs to shrink and > expand with the box (e.g. if the user re-sizes the main window). > > For example, I want to put a few items in a VBox and have these items > determine the width of the VBox. I then want to be able to add the image > to the VBox in such a way that it doesn't resize the box, but rather > fits into the space. If there is space left above/below the widget (due > to the constraint of preserving it's aspect ratio), this should be > filled with padding, rather than the image expanding to fill the space. > > What's the best way of accomplishing this in Gtkmm? > > Tom > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From tweenk.pl@gmail.com Tue Aug 2 16:16:40 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B2BAA750122 for ; Tue, 2 Aug 2011 16:16:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GF=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MtxaZRiWWX9m for ; Tue, 2 Aug 2011 16:16:39 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id D237275010D for ; Tue, 2 Aug 2011 16:16:30 +0000 (UTC) Received: by yxl31 with SMTP id 31so6312275yxl.27 for ; Tue, 02 Aug 2011 09:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4kPWEtPaFP3Cu2r4jksMC9YB/XfPiSGJSOUfxbcQC2g=; b=TK8rcESd4PUUEyB94YWPd6e5H0ARMGahEEuit1i56QU3rV6pDZ74Q7X/Z6sVzVyarZ 8AnVG6GkqCqIpC/bpDR82zPyP/hdxzPPatARYxFOvq40C0B74gQAvV8HFqx68jMI/0fy CCIDn9DVzpZGBosSjQNWV/cA5Psvu+AWK12Gw= MIME-Version: 1.0 Received: by 10.68.1.38 with SMTP id 6mr8376199pbj.526.1312301788595; Tue, 02 Aug 2011 09:16:28 -0700 (PDT) Received: by 10.68.41.225 with HTTP; Tue, 2 Aug 2011 09:16:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Aug 2011 18:16:28 +0200 Message-ID: Subject: Re: How I can change the translation from the program? From: =?UTF-8?Q?Krzysztof_Kosi=C5=84ski?= To: "MysteriousMan ." Content-Type: text/plain; charset=UTF-8 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 16:16:40 -0000 2011/8/2 MysteriousMan . : > I have add the following > > setenv("LANG", "ar", TRUE); > setenv ("LANGUAGE", "ar", TRUE); > > The program is in english , and Ar.po exist on po folder > But the language didn't change even if I restart the program 10 times That's not everything: 1. You need to call textdomain() to set the translation domain, usually your app's name, e.g. textdomain("your_app") 2. During build, you need to compile the .po files to .mo files using msgfmt (there are Autotools scripts to help) and then put them in the correct directory, e.g. /usr/local/share/locale/ar/LC_MESSAGES/your_app.mo (make install should do this for you) 3. The text domain name you've set on program start must match the name of the .mo file Regards, Krzysztof From t.harty1@physics.ox.ac.uk Tue Aug 2 17:06:13 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F82C75012E for ; Tue, 2 Aug 2011 17:06:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.847 X-Spam-Level: X-Spam-Status: No, score=-4.847 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.801, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MlXw1k1bAI9g for ; Tue, 2 Aug 2011 17:06:10 +0000 (UTC) Received: from relay1.mail.ox.ac.uk (relay1.mail.ox.ac.uk [129.67.1.165]) by menubar.gnome.org (Postfix) with ESMTP id E2D20750127 for ; Tue, 2 Aug 2011 17:06:01 +0000 (UTC) Received: from exchange-cas2.physics.ox.ac.uk ([163.1.74.83]) by relay1.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QoIPn-0001f2-58; Tue, 02 Aug 2011 18:05:59 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS2.physics.ox.ac.uk ([fe80::fc0a:452e:a0b7:22c7%10]) with mapi id 14.01.0323.000; Tue, 2 Aug 2011 18:05:59 +0100 From: Thomas Harty To: Yann LEYDIER , "gtkmm-list@gnome.org" Subject: RE: Images in GTKmm Thread-Topic: Images in GTKmm Thread-Index: AcxRAi0CddeFsNUtS9+26CsqI/T2ggAHlimAAAVidvs= Date: Tue, 2 Aug 2011 17:05:58 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9DAA4@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk>, <4E3817BD.6080409@leydier.info> In-Reply-To: <4E3817BD.6080409@leydier.info> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.182.2] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 17:06:13 -0000 Thank you for the reply.=0A= =0A= I tried following the example here: http://developer.gnome.org/gtkmm-tutori= al/3.0/sec-draw-images.html.en to test out using a Pixbuf in a Drawing area= , but got a few compile-time errors (n.b. I'm using gtkmm 3.0):=0A= =0A= error: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawable=92= =0A= error: =91get_style=92 was not declared in this scope=0A= error: =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92=0A= =0A= I had a look in the class reference (http://developer.gnome.org/gtkmm/3.1/c= lassGdk_1_1Pixbuf.html) and couldn't see render_to_drawable. Has this been = depreciated in gtkmm 3? If so, what's the appropriate way to do this now?= =0A= =0A= Tom=0A= =0A= =0A= =0A= ________________________________________=0A= From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf= of Yann LEYDIER [yann@leydier.info]=0A= Sent: 02 August 2011 16:29=0A= To: gtkmm-list@gnome.org=0A= Subject: Re: Images in GTKmm=0A= =0A= I would do this with a DrawingArea. It is possible to resize a Pixbuf to=0A= the size of the DrawingArea and render it in a callback plugged to the=0A= expose_event signal.=0A= =0A= But I don't known if it is the best way! ;)=0A= yann=0A= =0A= On 02/08/11 12:51, Thomas Harty wrote:=0A= > I want to put an image into a box in such a way that the image will=0A= > shrink to fit into empty space in the box, whilst preserving its aspect= =0A= > ratio. Thus, the dimensions of the image should be determined by the=0A= > dimensions of the objects around it. The image needs to shrink and=0A= > expand with the box (e.g. if the user re-sizes the main window).=0A= >=0A= > For example, I want to put a few items in a VBox and have these items=0A= > determine the width of the VBox. I then want to be able to add the image= =0A= > to the VBox in such a way that it doesn't resize the box, but rather=0A= > fits into the space. If there is space left above/below the widget (due= =0A= > to the constraint of preserving it's aspect ratio), this should be=0A= > filled with padding, rather than the image expanding to fill the space.= =0A= >=0A= > What's the best way of accomplishing this in Gtkmm?=0A= >=0A= > Tom=0A= >=0A= >=0A= >=0A= > _______________________________________________=0A= > gtkmm-list mailing list=0A= > gtkmm-list@gnome.org=0A= > http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= =0A= _______________________________________________=0A= gtkmm-list mailing list=0A= gtkmm-list@gnome.org=0A= http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= From smso@graduate.hku.hk Tue Aug 2 17:17:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A852D75016D for ; Tue, 2 Aug 2011 17:17:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -3.402 X-Spam-Level: X-Spam-Status: No, score=-3.402 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.801, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wh4q19CV+r6Z for ; Tue, 2 Aug 2011 17:17:53 +0000 (UTC) X-Greylist: delayed 814 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 02 Aug 2011 17:17:53 UTC Received: from mail5.hku.hk (mail5.hku.hk [147.8.2.125]) by menubar.gnome.org (Postfix) with ESMTP id 50971750127 for ; Tue, 2 Aug 2011 17:17:44 +0000 (UTC) Received: from localhost (webmail02.hku.hk [147.8.2.176]) by mail5.hku.hk (8.13.8/8.13.8) with ESMTP id p72H4602031069 for ; Wed, 3 Aug 2011 01:04:06 +0800 Received: from pcd314049.netvigator.com (pcd314049.netvigator.com [203.218.104.49]) by imp3.webmail.hku.hk (IMP) with HTTP for ; Wed, 3 Aug 2011 01:04:06 +0800 Message-ID: <1312304646.4e382e067330b@imp3.webmail.hku.hk> Date: Wed, 3 Aug 2011 01:04:06 +0800 From: smso@graduate.hku.hk To: gtkmm-list@gnome.org Subject: Re: Images in GTKmm MIME-Version: 1.0 Content-Type: text/plain; charset=BIG5 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 203.218.104.49 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (mail5.hku.hk [147.8.2.125]); Wed, 03 Aug 2011 01:04:07 +0800 (HKT) X-MailScanner-Information: Services provided by HKU Computer Centre X-MailScanner-ID: p72H4602031069 X-MailScanner: 0 X-MailScanner-From: smso@graduate.hku.hk X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 17:17:56 -0000 You should subclass Gtk::DrawingArea and implement at least: virtual bool on_configure_event(GdkEventConfigure *event); virtual bool on_expose_event(GdkEventExpose *event); some steps: 1. calculate the image offsets, scale, etc. 2. with the info in (1), render the pixbuf to the offscreen pixmap like so: pixmap->draw_pixbuf(..., pixbuf, ...); 3. shows the contents of pixmap in on_expose_event() function: get_window()->draw_drawable ( get_style()->get_fg_gc(get_state()), pixmap, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height ); Best regards, smso From yann@leydier.info Tue Aug 2 17:20:07 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 867F775016D for ; Tue, 2 Aug 2011 17:20:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zNA3gYa6r40c for ; Tue, 2 Aug 2011 17:20:06 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by menubar.gnome.org (Postfix) with ESMTP id 9A11B75019F for ; Tue, 2 Aug 2011 17:19:56 +0000 (UTC) Received: from [192.168.0.21] (sal69-3-78-192-148-193.fbxo.proxad.net [78.192.148.193]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LjLyR-1RNNCQ3iSl-00cmr8; Tue, 02 Aug 2011 19:19:54 +0200 Message-ID: <4E3831B9.9040209@leydier.info> Date: Tue, 02 Aug 2011 19:19:53 +0200 From: Yann LEYDIER User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: "gtkmm-list@gnome.org" Subject: Re: Images in GTKmm References: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk>, <4E3817BD.6080409@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9DAA4@EXCHNG14.physics.ox.ac.uk> In-Reply-To: <69464CD235B9A04DACEAA1DB7151ACAB13A9DAA4@EXCHNG14.physics.ox.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:Ht1jtg8TeofYxYoJe0m6+t1lFv0sQght+rMxWrf5r+C heoug+kv3FuvdKivsge7UunUFI7jlnbjGwJC7cY2L2Oq3pkVRp mhiHQ37T766K2aB+xm+LOAQM6yg9BS2E2y0KAeHDE3AuS56PhA u4WicTO7gZPvjidolEcE1YYFwhCEDm5Q5aQjyOAbqG2obYr+qP WkyFD3Olh0RQQZzz9ubptbl1vVQGdyh3zHLAmd7KQc= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 17:20:07 -0000 I'm not using Gtkmm 3, but you might have to use cairomm to do that. In Gtkmm 2, I render the Pixbuf to a Pixmap and then use Gdk::Window::draw_drawable on the DrawingArea's Gdk window. Perhaps it still works in API 3… yann On 02/08/11 19:05, Thomas Harty wrote: > Thank you for the reply. > > I tried following the example here: http://developer.gnome.org/gtkmm-tutorial/3.0/sec-draw-images.html.en to test out using a Pixbuf in a Drawing area, but got a few compile-time errors (n.b. I'm using gtkmm 3.0): > > error: ‘class Gdk::Pixbuf’ has no member named ‘render_to_drawable’ > error: ‘get_style’ was not declared in this scope > error: ‘RGB_DITHER_NONE’ is not a member of ‘Gdk’ > > I had a look in the class reference (http://developer.gnome.org/gtkmm/3.1/classGdk_1_1Pixbuf.html) and couldn't see render_to_drawable. Has this been depreciated in gtkmm 3? If so, what's the appropriate way to do this now? > > Tom > > > > ________________________________________ > From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf of Yann LEYDIER [yann@leydier.info] > Sent: 02 August 2011 16:29 > To: gtkmm-list@gnome.org > Subject: Re: Images in GTKmm > > I would do this with a DrawingArea. It is possible to resize a Pixbuf to > the size of the DrawingArea and render it in a callback plugged to the > expose_event signal. > > But I don't known if it is the best way! ;) > yann > > On 02/08/11 12:51, Thomas Harty wrote: >> I want to put an image into a box in such a way that the image will >> shrink to fit into empty space in the box, whilst preserving its aspect >> ratio. Thus, the dimensions of the image should be determined by the >> dimensions of the objects around it. The image needs to shrink and >> expand with the box (e.g. if the user re-sizes the main window). >> >> For example, I want to put a few items in a VBox and have these items >> determine the width of the VBox. I then want to be able to add the image >> to the VBox in such a way that it doesn't resize the box, but rather >> fits into the space. If there is space left above/below the widget (due >> to the constraint of preserving it's aspect ratio), this should be >> filled with padding, rather than the image expanding to fill the space. >> >> What's the best way of accomplishing this in Gtkmm? >> >> Tom >> >> >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From t.harty1@physics.ox.ac.uk Tue Aug 2 17:49:38 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 48C2975016D for ; Tue, 2 Aug 2011 17:49:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.847 X-Spam-Level: X-Spam-Status: No, score=-4.847 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.801, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id haFblCCLEOig for ; Tue, 2 Aug 2011 17:49:34 +0000 (UTC) Received: from relay1.mail.ox.ac.uk (relay1.mail.ox.ac.uk [129.67.1.165]) by menubar.gnome.org (Postfix) with ESMTP id 3E405750127 for ; Tue, 2 Aug 2011 17:49:25 +0000 (UTC) Received: from exchange-cas2.physics.ox.ac.uk ([163.1.74.83]) by relay1.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QoJ5n-00079W-6H; Tue, 02 Aug 2011 18:49:23 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS2.physics.ox.ac.uk ([fe80::fc0a:452e:a0b7:22c7%10]) with mapi id 14.01.0323.000; Tue, 2 Aug 2011 18:49:23 +0100 From: Thomas Harty To: Yann LEYDIER , "gtkmm-list@gnome.org" Subject: RE: Images in GTKmm Thread-Topic: Images in GTKmm Thread-Index: AcxRAi0CddeFsNUtS9+26CsqI/T2ggAHlimAAAVidvv///PmgIAAEwRb Date: Tue, 2 Aug 2011 17:49:22 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9DABD@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk>, <4E3817BD.6080409@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9DAA4@EXCHNG14.physics.ox.ac.uk>, <4E3831B9.9040209@leydier.info> In-Reply-To: <4E3831B9.9040209@leydier.info> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.182.2] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 17:49:38 -0000 Thanks. It looks like these won't work in gtkmm3. E.g. the "Changes in gtkm= m 3" notes:=0A= =0A= 9. Gdk::Pixmap and Gdk::Bitmap were removed in favour of Gdk::Pixbuf.=0A= =0A= I had a look in the Gdk::window api (http://developer.gnome.org/gtkmm/stabl= e/classGdk_1_1Window.html), but couldn't see a draw_drawable method.=0A= =0A= Any idea how to do this in gtkmm3?=0A= =0A= Tom=0A= ________________________________________=0A= From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf= of Yann LEYDIER [yann@leydier.info]=0A= Sent: 02 August 2011 18:19=0A= To: gtkmm-list@gnome.org=0A= Subject: Re: Images in GTKmm=0A= =0A= I'm not using Gtkmm 3, but you might have to use cairomm to do that.=0A= =0A= In Gtkmm 2, I render the Pixbuf to a Pixmap and then use=0A= Gdk::Window::draw_drawable on the DrawingArea's Gdk window. Perhaps it=0A= still works in API 3=85=0A= =0A= =0A= yann=0A= =0A= On 02/08/11 19:05, Thomas Harty wrote:=0A= > Thank you for the reply.=0A= >=0A= > I tried following the example here: http://developer.gnome.org/gtkmm-tuto= rial/3.0/sec-draw-images.html.en to test out using a Pixbuf in a Drawing ar= ea, but got a few compile-time errors (n.b. I'm using gtkmm 3.0):=0A= >=0A= > error: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawable= =92=0A= > error: =91get_style=92 was not declared in this scope=0A= > error: =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92=0A= >=0A= > I had a look in the class reference (http://developer.gnome.org/gtkmm/3.1= /classGdk_1_1Pixbuf.html) and couldn't see render_to_drawable. Has this bee= n depreciated in gtkmm 3? If so, what's the appropriate way to do this now?= =0A= >=0A= > Tom=0A= >=0A= >=0A= >=0A= > ________________________________________=0A= > From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on beha= lf of Yann LEYDIER [yann@leydier.info]=0A= > Sent: 02 August 2011 16:29=0A= > To: gtkmm-list@gnome.org=0A= > Subject: Re: Images in GTKmm=0A= >=0A= > I would do this with a DrawingArea. It is possible to resize a Pixbuf to= =0A= > the size of the DrawingArea and render it in a callback plugged to the=0A= > expose_event signal.=0A= >=0A= > But I don't known if it is the best way! ;)=0A= > yann=0A= >=0A= > On 02/08/11 12:51, Thomas Harty wrote:=0A= >> I want to put an image into a box in such a way that the image will=0A= >> shrink to fit into empty space in the box, whilst preserving its aspect= =0A= >> ratio. Thus, the dimensions of the image should be determined by the=0A= >> dimensions of the objects around it. The image needs to shrink and=0A= >> expand with the box (e.g. if the user re-sizes the main window).=0A= >>=0A= >> For example, I want to put a few items in a VBox and have these items=0A= >> determine the width of the VBox. I then want to be able to add the image= =0A= >> to the VBox in such a way that it doesn't resize the box, but rather=0A= >> fits into the space. If there is space left above/below the widget (due= =0A= >> to the constraint of preserving it's aspect ratio), this should be=0A= >> filled with padding, rather than the image expanding to fill the space.= =0A= >>=0A= >> What's the best way of accomplishing this in Gtkmm?=0A= >>=0A= >> Tom=0A= >>=0A= >>=0A= >>=0A= >> _______________________________________________=0A= >> gtkmm-list mailing list=0A= >> gtkmm-list@gnome.org=0A= >> http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= >=0A= > _______________________________________________=0A= > gtkmm-list mailing list=0A= > gtkmm-list@gnome.org=0A= > http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= =0A= _______________________________________________=0A= gtkmm-list mailing list=0A= gtkmm-list@gnome.org=0A= http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= From harryhaaren@gmail.com Tue Aug 2 20:02:20 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46A5E750110 for ; Tue, 2 Aug 2011 20:02:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 98qAKko-EJZr for ; Tue, 2 Aug 2011 20:02:16 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 3537075008A for ; Tue, 2 Aug 2011 20:02:07 +0000 (UTC) Received: by gyf3 with SMTP id 3so127178gyf.27 for ; Tue, 02 Aug 2011 13:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MqESetnWBpGMMnMAgqiJ/CdEtGbjlnabwdD9wTx0l3U=; b=kvU7bweYwOPQiKZ6OwG92TDK9rh2FuAtipryUlnJPehivW04aRDKb0KGtHmY+y57cI dj5Vu95Tjaj2UVyBMJJ6j5bLjtELh/Q2gI+2ObYzVytww9ETmfWh1CbulfgXdYhSAEEQ PpQZzNltsS4bjzspKmc55hpuFdNW8Qe+wGblU= MIME-Version: 1.0 Received: by 10.143.92.10 with SMTP id u10mr975280wfl.16.1312315325974; Tue, 02 Aug 2011 13:02:05 -0700 (PDT) Received: by 10.142.172.19 with HTTP; Tue, 2 Aug 2011 13:02:05 -0700 (PDT) In-Reply-To: <69464CD235B9A04DACEAA1DB7151ACAB13A9DABD@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk> <4E3817BD.6080409@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9DAA4@EXCHNG14.physics.ox.ac.uk> <4E3831B9.9040209@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9DABD@EXCHNG14.physics.ox.ac.uk> Date: Tue, 2 Aug 2011 21:02:05 +0100 Message-ID: Subject: Re: Images in GTKmm From: Harry van Haaren To: Thomas Harty Content-Type: multipart/alternative; boundary=000e0cd24e20d687c604a98b3805 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 20:02:20 -0000 --000e0cd24e20d687c604a98b3805 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Thomas, Gtk 3 uses Cairo for its drawing backend, so one option would be to subclas= s Gtk::DrawingArea, and then load a .png or so with Cairo, and copy that to the cairo surface (& hence the Gtk::DrawingArea), after which you can display the DrawingArea as a normal widget. Another option is to use Gdk::Pixbuf and friends. This might be the easier option, but provides less flexibility. This link provides up to date (ie: Gtk3) info on both: See this link: http://developer.gnome.org/gtkmm-tutorial/3.0/sec-draw-images.html.en Good luck! -Harry On Tue, Aug 2, 2011 at 6:49 PM, Thomas Harty wro= te: > Thanks. It looks like these won't work in gtkmm3. E.g. the "Changes in > gtkmm 3" notes: > > 9. Gdk::Pixmap and Gdk::Bitmap were removed in favour of Gdk::Pixbuf. > > I had a look in the Gdk::window api ( > http://developer.gnome.org/gtkmm/stable/classGdk_1_1Window.html), but > couldn't see a draw_drawable method. > > Any idea how to do this in gtkmm3? > > Tom > ________________________________________ > From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on > behalf of Yann LEYDIER [yann@leydier.info] > Sent: 02 August 2011 18:19 > To: gtkmm-list@gnome.org > Subject: Re: Images in GTKmm > > I'm not using Gtkmm 3, but you might have to use cairomm to do that. > > In Gtkmm 2, I render the Pixbuf to a Pixmap and then use > Gdk::Window::draw_drawable on the DrawingArea's Gdk window. Perhaps it > still works in API 3=85 > > > yann > > On 02/08/11 19:05, Thomas Harty wrote: > > Thank you for the reply. > > > > I tried following the example here: > http://developer.gnome.org/gtkmm-tutorial/3.0/sec-draw-images.html.en to > test out using a Pixbuf in a Drawing area, but got a few compile-time err= ors > (n.b. I'm using gtkmm 3.0): > > > > error: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawabl= e=92 > > error: =91get_style=92 was not declared in this scope > > error: =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92 > > > > I had a look in the class reference ( > http://developer.gnome.org/gtkmm/3.1/classGdk_1_1Pixbuf.html) and couldn'= t > see render_to_drawable. Has this been depreciated in gtkmm 3? If so, what= 's > the appropriate way to do this now? > > > > Tom > > > > > > > > ________________________________________ > > From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on > behalf of Yann LEYDIER [yann@leydier.info] > > Sent: 02 August 2011 16:29 > > To: gtkmm-list@gnome.org > > Subject: Re: Images in GTKmm > > > > I would do this with a DrawingArea. It is possible to resize a Pixbuf t= o > > the size of the DrawingArea and render it in a callback plugged to the > > expose_event signal. > > > > But I don't known if it is the best way! ;) > > yann > > > > On 02/08/11 12:51, Thomas Harty wrote: > >> I want to put an image into a box in such a way that the image will > >> shrink to fit into empty space in the box, whilst preserving its aspec= t > >> ratio. Thus, the dimensions of the image should be determined by the > >> dimensions of the objects around it. The image needs to shrink and > >> expand with the box (e.g. if the user re-sizes the main window). > >> > >> For example, I want to put a few items in a VBox and have these items > >> determine the width of the VBox. I then want to be able to add the ima= ge > >> to the VBox in such a way that it doesn't resize the box, but rather > >> fits into the space. If there is space left above/below the widget (du= e > >> to the constraint of preserving it's aspect ratio), this should be > >> filled with padding, rather than the image expanding to fill the space= . > >> > >> What's the best way of accomplishing this in Gtkmm? > >> > >> Tom > >> > >> > >> > >> _______________________________________________ > >> gtkmm-list mailing list > >> gtkmm-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > --000e0cd24e20d687c604a98b3805 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Thomas,

Gtk 3 uses Cairo for its drawing backend, so one option w= ould be to subclass Gtk::DrawingArea, and then load a .png or so with Cairo= , and copy that to the cairo surface (& hence the Gtk::DrawingArea), af= ter which you can display the DrawingArea as a normal widget.

Another option is to use Gdk::Pixbuf and friends. This might be the eas= ier option, but provides less flexibility.

This link provides up to = date (ie: Gtk3) info on both:
See this link: http://developer.gno= me.org/gtkmm-tutorial/3.0/sec-draw-images.html.en

Good luck! -Harry



On Tue, Aug= 2, 2011 at 6:49 PM, Thomas Harty <t.harty1@physics.ox.ac.uk> wrote:
Thanks. It looks = like these won't work in gtkmm3. E.g. the "Changes in gtkmm 3"= ; notes:

9. Gdk::Pixmap and Gdk::Bitmap were removed in favour of Gdk::Pixbuf.

I had a look in the Gdk::window api (http://developer.gn= ome.org/gtkmm/stable/classGdk_1_1Window.html), but couldn't see a d= raw_drawable method.

Any idea how to do this in gtkmm3?

Tom
________________________________________
From: gtkmm-list-bounces@gn= ome.org [gtkmm-list-bou= nces@gnome.org] on behalf of Yann LEYDIER [yann@leydier.info]
Sent: 02 August 2011 18:19
To: gtkmm-list@gnome.org
Subject: Re: Images in GTKmm

I'm not using Gtkmm 3, but you might have to use cairomm to do that.
In Gtkmm 2, I render the Pixbuf to a Pixmap and then use
Gdk::Window::draw_drawable on the DrawingArea's Gdk window. Perhaps it<= br> still works in API 3=85


yann

On 02/08/11 19:05, Thomas Harty wrote:
> Thank you for the reply.
>
> I tried following the example here: http://de= veloper.gnome.org/gtkmm-tutorial/3.0/sec-draw-images.html.en to test ou= t using a Pixbuf in a Drawing area, but got a few compile-time errors (n.b.= I'm using gtkmm 3.0):
>
> error: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawab= le=92
> error: =91get_style=92 was not declared in this scope
> error: =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92
>
> I had a look in the class reference (http://developer.= gnome.org/gtkmm/3.1/classGdk_1_1Pixbuf.html) and couldn't see rende= r_to_drawable. Has this been depreciated in gtkmm 3? If so, what's the = appropriate way to do this now?
>
> Tom
>
>
>
> ________________________________________
> From: gtkmm-list-bounc= es@gnome.org [gtkmm-lis= t-bounces@gnome.org] on behalf of Yann LEYDIER [yann@leydier.info]
> Sent: 02 August 2011 16:29
> To: gtkmm-list@gnome.org > Subject: Re: Images in GTKmm
>
> I would do this with a DrawingArea. It is possible to resize a Pixbuf = to
> the size of the DrawingArea and render it in a callback plugged to the=
> expose_event signal.
>
> But I don't known if it is the best way! ;)
> yann
>
> On 02/08/11 12:51, Thomas Harty wrote:
>> I want to put an image into a box in such a way that the image wil= l
>> shrink to fit into empty space in the box, whilst preserving its a= spect
>> ratio. Thus, the dimensions of the image should be determined by t= he
>> dimensions of the objects around it. The image needs to shrink and=
>> expand with the box (e.g. if the user re-sizes the main window). >>
>> For example, I want to put a few items in a VBox and have these it= ems
>> determine the width of the VBox. I then want to be able to add the= image
>> to the VBox in such a way that it doesn't resize the box, but = rather
>> fits into the space. If there is space left above/below the widget= (due
>> to the constraint of preserving it's aspect ratio), this shoul= d be
>> filled with padding, rather than the image expanding to fill the s= pace.
>>
>> What's the best way of accomplishing this in Gtkmm?
>>
>> Tom
>>
>>
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

--000e0cd24e20d687c604a98b3805-- From t.harty1@physics.ox.ac.uk Wed Aug 3 11:51:10 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82AEB7500AF for ; Wed, 3 Aug 2011 11:51:10 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.761 X-Spam-Level: X-Spam-Status: No, score=-4.761 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.716, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7AwUUq7BFt4g for ; Wed, 3 Aug 2011 11:51:06 +0000 (UTC) Received: from relay0.mail.ox.ac.uk (relay0.mail.ox.ac.uk [129.67.1.161]) by menubar.gnome.org (Postfix) with ESMTP id DE96D750086 for ; Wed, 3 Aug 2011 11:50:57 +0000 (UTC) Received: from exchange-cas2.physics.ox.ac.uk ([163.1.74.83]) by relay0.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QoZyQ-0003kL-18; Wed, 03 Aug 2011 12:50:54 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS2.physics.ox.ac.uk ([fe80::fc0a:452e:a0b7:22c7%10]) with mapi id 14.01.0323.000; Wed, 3 Aug 2011 12:50:54 +0100 From: Thomas Harty To: Harry van Haaren Subject: RE: Images in GTKmm Thread-Topic: Images in GTKmm Thread-Index: AcxRAi0CddeFsNUtS9+26CsqI/T2ggAHlimAAAVidvv///PmgIAAEwRbgAAaTYCAARm2Ow== Date: Wed, 3 Aug 2011 11:50:53 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9DB04@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA68@EXCHNG14.physics.ox.ac.uk> <4E3817BD.6080409@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9DAA4@EXCHNG14.physics.ox.ac.uk> <4E3831B9.9040209@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9DABD@EXCHNG14.physics.ox.ac.uk>, In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.182.2] Content-Type: multipart/alternative; boundary="_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DB04EXCHNG14physics_" MIME-Version: 1.0 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2011 11:51:10 -0000 --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DB04EXCHNG14physics_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Harry, I tried that originally, but I got complier errors: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawable=92 =91get_style=92 was not declared in this scope =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92 (I'm including and and compiling with: g++ `pkg-config = gtkmm-3.0 --cflags --libs`) I had a look in Pixbuf reference (http://developer.gnome.org/gtkmm/unstable= /classGdk_1_1Pixbuf.html) and couldn't see any reference to render_to_drawa= ble. I also couldn't find this in the headers or any of the widgets it's de= rived from. The gdkmm/gdk/pixbf.h had the comment: //Use Gdk::Drawable::draw_pixbuf() instead of gdk_pixbuf_render_to_drawable= (), gdk_pixbuf_render_to_drawable_alpha(). Any ideas? ________________________________ From: Harry van Haaren [harryhaaren@gmail.com] Sent: 02 August 2011 21:02 To: Thomas Harty Cc: Yann LEYDIER; gtkmm-list@gnome.org Subject: Re: Images in GTKmm Hi Thomas, Gtk 3 uses Cairo for its drawing backend, so one option would be to subclas= s Gtk::DrawingArea, and then load a .png or so with Cairo, and copy that to= the cairo surface (& hence the Gtk::DrawingArea), after which you can disp= lay the DrawingArea as a normal widget. Another option is to use Gdk::Pixbuf and friends. This might be the easier = option, but provides less flexibility. This link provides up to date (ie: Gtk3) info on both: See this link: http://developer.gnome.org/gtkmm-tutorial/3.0/sec-draw-image= s.html.en Good luck! -Harry On Tue, Aug 2, 2011 at 6:49 PM, Thomas Harty > wrote: Thanks. It looks like these won't work in gtkmm3. E.g. the "Changes in gtkm= m 3" notes: 9. Gdk::Pixmap and Gdk::Bitmap were removed in favour of Gdk::Pixbuf. I had a look in the Gdk::window api (http://developer.gnome.org/gtkmm/stabl= e/classGdk_1_1Window.html), but couldn't see a draw_drawable method. Any idea how to do this in gtkmm3? Tom ________________________________________ From: gtkmm-list-bounces@gnome.org [gt= kmm-list-bounces@gnome.org] on behalf = of Yann LEYDIER [yann@leydier.info] Sent: 02 August 2011 18:19 To: gtkmm-list@gnome.org Subject: Re: Images in GTKmm I'm not using Gtkmm 3, but you might have to use cairomm to do that. In Gtkmm 2, I render the Pixbuf to a Pixmap and then use Gdk::Window::draw_drawable on the DrawingArea's Gdk window. Perhaps it still works in API 3=85 yann On 02/08/11 19:05, Thomas Harty wrote: > Thank you for the reply. > > I tried following the example here: http://developer.gnome.org/gtkmm-tuto= rial/3.0/sec-draw-images.html.en to test out using a Pixbuf in a Drawing ar= ea, but got a few compile-time errors (n.b. I'm using gtkmm 3.0): > > error: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawable= =92 > error: =91get_style=92 was not declared in this scope > error: =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92 > > I had a look in the class reference (http://developer.gnome.org/gtkmm/3.1= /classGdk_1_1Pixbuf.html) and couldn't see render_to_drawable. Has this bee= n depreciated in gtkmm 3? If so, what's the appropriate way to do this now? > > Tom > > > > ________________________________________ > From: gtkmm-list-bounces@gnome.org [= gtkmm-list-bounces@gnome.org] on behal= f of Yann LEYDIER [yann@leydier.info] > Sent: 02 August 2011 16:29 > To: gtkmm-list@gnome.org > Subject: Re: Images in GTKmm > > I would do this with a DrawingArea. It is possible to resize a Pixbuf to > the size of the DrawingArea and render it in a callback plugged to the > expose_event signal. > > But I don't known if it is the best way! ;) > yann > > On 02/08/11 12:51, Thomas Harty wrote: >> I want to put an image into a box in such a way that the image will >> shrink to fit into empty space in the box, whilst preserving its aspect >> ratio. Thus, the dimensions of the image should be determined by the >> dimensions of the objects around it. The image needs to shrink and >> expand with the box (e.g. if the user re-sizes the main window). >> >> For example, I want to put a few items in a VBox and have these items >> determine the width of the VBox. I then want to be able to add the image >> to the VBox in such a way that it doesn't resize the box, but rather >> fits into the space. If there is space left above/below the widget (due >> to the constraint of preserving it's aspect ratio), this should be >> filled with padding, rather than the image expanding to fill the space. >> >> What's the best way of accomplishing this in Gtkmm? >> >> Tom >> >> >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DB04EXCHNG14physics_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Harry,

I tried that originally, but I got complier errors:

=91class Gdk::Pixbuf=92 has no member named =91render_to_drawable=92
=91get_style=92 was not declared in this scope
=91RGB_DITHER_NONE=92 is not a member of =91Gdk=92

(I'm including <gtkmm.h> and <gdkmm.h> and compiling with: g= 3;+ `pkg-config gtkmm-3.0 --cflags --libs`)

I had a look in Pixbuf reference (http://developer.gno= me.org/gtkmm/unstable/classGdk_1_1Pixbuf.html) and couldn't see any ref= erence to render_to_drawable. I also couldn't find this in the headers or any of the widgets it's derived from.= The gdkmm/gdk/pixbf.h had the comment:

//Use Gdk::Drawable::draw_pixbuf() instead of gdk_pixbuf_render_to_drawable= (), gdk_pixbuf_render_to_drawable_alpha().

Any ideas?

From: Harry van Haaren [harryhaaren@gmail= .com]
Sent: 02 August 2011 21:02
To: Thomas Harty
Cc: Yann LEYDIER; gtkmm-list@gnome.org
Subject: Re: Images in GTKmm

Hi Thomas,

Gtk 3 uses Cairo for its drawing backend, so one option would be to subclas= s Gtk::DrawingArea, and then load a .png or so with Cairo, and copy that to= the cairo surface (& hence the Gtk::DrawingArea), after which you can = display the DrawingArea as a normal widget.

Another option is to use Gdk::Pixbuf and friends. This might be the easier = option, but provides less flexibility.

This link provides up to date (ie: Gtk3) info on both:
See this link: http://developer.gnome.org/gtkmm-tutorial/3.0/sec-draw-images.html.en
Good luck! -Harry



On Tue, Aug 2, 2011 at 6:49 PM, Thomas Harty <t.harty1= @physics.ox.ac.uk> wrote:
Thanks. It looks like these won't work in gtkmm3. E.g. the "Changes in= gtkmm 3" notes:

9. Gdk::Pixmap and Gdk::Bitmap were removed in favour of Gdk::Pixbuf.

I had a look in the Gdk::window api (http://developer.gn= ome.org/gtkmm/stable/classGdk_1_1Window.html), but couldn't see a draw_= drawable method.

Any idea how to do this in gtkmm3?

Tom
________________________________________
From: gtk= mm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf of Yann L= EYDIER [yann@leydier= .info]
Sent: 02 August 2011 18:19
To: gtkmm-list@gnome.org
Subject: Re: Images in GTKmm

I'm not using Gtkmm 3, but you might have to use cairomm to do that.

In Gtkmm 2, I render the Pixbuf to a Pixmap and then use
Gdk::Window::draw_drawable on the DrawingArea's Gdk window. Perhaps it
still works in API 3=85


yann

On 02/08/11 19:05, Thomas Harty wrote:
> Thank you for the reply.
>
> I tried following the example here: http://developer.gnome.org/gtkmm-tutorial/3.0/sec-draw-images.html.en t= o test out using a Pixbuf in a Drawing area, but got a few compile-time err= ors (n.b. I'm using gtkmm 3.0):
>
> error: =91class Gdk::Pixbuf=92 has no member named =91render_to_drawab= le=92
> error: =91get_style=92 was not declared in this scope
> error: =91RGB_DITHER_NONE=92 is not a member of =91Gdk=92
>
> I had a look in the class reference (http://developer.= gnome.org/gtkmm/3.1/classGdk_1_1Pixbuf.html) and couldn't see render_to= _drawable. Has this been depreciated in gtkmm 3? If so, what's the appropriate way to do this now?
>
> Tom
>
>
>
> ________________________________________
> From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf of Y= ann LEYDIER [yann@le= ydier.info]
> Sent: 02 August 2011 16:29
> To: gtkmm-li= st@gnome.org
> Subject: Re: Images in GTKmm
>
> I would do this with a DrawingArea. It is possible to resize a Pixbuf = to
> the size of the DrawingArea and render it in a callback plugged to the=
> expose_event signal.
>
> But I don't known if it is the best way! ;)
> yann
>
> On 02/08/11 12:51, Thomas Harty wrote:
>> I want to put an image into a box in such a way that the image wil= l
>> shrink to fit into empty space in the box, whilst preserving its a= spect
>> ratio. Thus, the dimensions of the image should be determined by t= he
>> dimensions of the objects around it. The image needs to shrink and=
>> expand with the box (e.g. if the user re-sizes the main window). >>
>> For example, I want to put a few items in a VBox and have these it= ems
>> determine the width of the VBox. I then want to be able to add the= image
>> to the VBox in such a way that it doesn't resize the box, but rath= er
>> fits into the space. If there is space left above/below the widget= (due
>> to the constraint of preserving it's aspect ratio), this should be=
>> filled with padding, rather than the image expanding to fill the s= pace.
>>
>> What's the best way of accomplishing this in Gtkmm?
>>
>> Tom
>>
>>
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-li= st@gnome.org
>> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@g= nome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.= org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.= org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

--_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DB04EXCHNG14physics_-- From SRS0=4RB2=2W=melix.net=yo35@bounces.m4x.org Thu Aug 4 10:00:31 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0E5B7750079 for ; Thu, 4 Aug 2011 10:00:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.902 X-Spam-Level: X-Spam-Status: No, score=-1.902 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w1hkpzTn8rM7 for ; Thu, 4 Aug 2011 10:00:28 +0000 (UTC) X-Greylist: delayed 573 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 04 Aug 2011 10:00:27 UTC Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by menubar.gnome.org (Postfix) with ESMTP id E67EF75004D for ; Thu, 4 Aug 2011 10:00:19 +0000 (UTC) Received: from [192.168.1.71] (156.11.103.84.rev.sfr.net [84.103.11.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 4E70314045561 for ; Thu, 4 Aug 2011 11:50:43 +0200 (CEST) Message-ID: <4E3A6B72.4070105@melix.net> Date: Thu, 04 Aug 2011 11:50:42 +0200 From: Yoann Le Montagner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Exception handling and Windows Content-Type: multipart/mixed; boundary="------------020109010900010408070806" X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Aug 4 11:50:43 2011 +0200 (CEST)) X-Org-Mail: yoann.le-montagner.2005@polytechnique.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 10:00:31 -0000 This is a multi-part message in MIME format. --------------020109010900010408070806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I have a problem with exception handling on Windows. In my application, I set up a global exception handler with the function Glib::add_exception_handler, so that this handler is supposed to be called when an exception is thrown during the execution of the main loop. It works fine when the program is built under Linux, but the exception handler set up by Glib::add_exception_handler is never called when the program is built under Windows. I enclose a simple testcase. When clicking on the button: - under Linux, the exception is normally catched in my_exception_handler, - under Windows, the program terminates. What's wrong? Thanks for your help. Yoann --------------020109010900010408070806 Content-Type: text/x-c++src; name="testcase.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="testcase.cpp" #include #include #include #include #include class MyWindow : public Gtk::Window { Gtk::Button my_button; public: void on_button_clicked() { throw std::exception(); } MyWindow() : Gtk::Window(), my_button("Do it!") { my_button.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::on_button_clicked)); set_size_request(300, 200); add(my_button); show_all_children(); } }; void my_exception_handler() { std::cerr << "Call to my_exception_handler" << std::endl; try { throw; } catch(std::exception &err) { std::cerr << "Exception catched. What: " << err.what() << std::endl; } catch(...) { std::cerr << "Something catched. Don't know what." << std::endl; } } int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Glib::add_exception_handler(sigc::ptr_fun(&my_exception_handler)); MyWindow window; Gtk::Main::run(window); return 0; } --------------020109010900010408070806-- From armin@arbur.net Thu Aug 4 11:17:54 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D11CB750086 for ; Thu, 4 Aug 2011 11:17:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fG79jWb35rCM for ; Thu, 4 Aug 2011 11:17:52 +0000 (UTC) Received: from dd17810.kasserver.com (dd17810.kasserver.com [85.13.138.113]) by menubar.gnome.org (Postfix) with ESMTP id CE589750006 for ; Thu, 4 Aug 2011 11:17:43 +0000 (UTC) Received: from [129.13.102.206] (ekplx66.physik.uni-karlsruhe.de [129.13.102.206]) by dd17810.kasserver.com (Postfix) with ESMTPSA id 715DDA008A; Thu, 4 Aug 2011 13:17:40 +0200 (CEST) Subject: Re: Exception handling and Windows From: Armin Burgmeier To: Yoann Le Montagner In-Reply-To: <4E3A6B72.4070105@melix.net> References: <4E3A6B72.4070105@melix.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 04 Aug 2011 13:17:39 +0200 Message-ID: <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 11:17:55 -0000 Hi Yoann, are you using MinGW or MSVC? If the former, then you should make sure to use the same compiler as the one the official binaries were built with, see http://live.gnome.org/action/info/gtkmm/MSWindows/ Cheers, Armin On Thu, 2011-08-04 at 11:50 +0200, Yoann Le Montagner wrote: > Hi, > > I have a problem with exception handling on Windows. In my application, > I set up a global exception handler with the function > Glib::add_exception_handler, so that this handler is supposed to be > called when an exception is thrown during the execution of the main > loop. It works fine when the program is built under Linux, but the > exception handler set up by Glib::add_exception_handler is never called > when the program is built under Windows. > > I enclose a simple testcase. When clicking on the button: > - under Linux, the exception is normally catched in my_exception_handler, > - under Windows, the program terminates. > > What's wrong? Thanks for your help. > > Yoann > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From SRS0=4RB2=2W=melix.net=yo35@bounces.m4x.org Thu Aug 4 12:37:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D99BD7500AA for ; Thu, 4 Aug 2011 12:37:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.748 X-Spam-Level: X-Spam-Status: No, score=-1.748 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2GwlheRde8ST for ; Thu, 4 Aug 2011 12:37:54 +0000 (UTC) Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by menubar.gnome.org (Postfix) with ESMTP id 7416775004D for ; Thu, 4 Aug 2011 12:37:45 +0000 (UTC) Received: from [192.168.1.71] (156.11.103.84.rev.sfr.net [84.103.11.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 8E89914045569 for ; Thu, 4 Aug 2011 14:37:43 +0200 (CEST) Message-ID: <4E3A9297.6060504@melix.net> Date: Thu, 04 Aug 2011 14:37:43 +0200 From: Yoann Le Montagner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Exception handling and Windows References: <4E3A6B72.4070105@melix.net> <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> In-Reply-To: <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Aug 4 14:37:43 2011 +0200 (CEST)) X-Org-Mail: yoann.le-montagner.2005@polytechnique.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 12:37:57 -0000 Hi, Thanks for your help. I was using MinGW, version 4.5.2 (the one provided on http://www.mingw.org/ ). I changed for the version you suggested (http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/sezero_20101003/), which labeled 4.4.5. With this version of the compiler, the behavior of the testcase program is different, but is still wrong ! When clicking on the button, I get : - with mingw 4.5.2: >terminate called after throwing an instance of 'std::exception' > what(): std::exception and then the program terminates - with mingw 4.4.5: >Call to my_exception_handler >terminate called without an active exception and then the program terminates The latest case behave as if the exception were first caught before calling to 'my_exception_handler': if I comment the try-catch block in this function, I get : >Call to my_exception_handler and then the program continues. Any idea? Yoann Le 04/08/2011 13:17, Armin Burgmeier a écrit : > Hi Yoann, > > are you using MinGW or MSVC? If the former, then you should make sure to > use the same compiler as the one the official binaries were built with, > see http://live.gnome.org/action/info/gtkmm/MSWindows/ > > Cheers, > Armin > > On Thu, 2011-08-04 at 11:50 +0200, Yoann Le Montagner wrote: >> Hi, >> >> I have a problem with exception handling on Windows. In my application, >> I set up a global exception handler with the function >> Glib::add_exception_handler, so that this handler is supposed to be >> called when an exception is thrown during the execution of the main >> loop. It works fine when the program is built under Linux, but the >> exception handler set up by Glib::add_exception_handler is never called >> when the program is built under Windows. >> >> I enclose a simple testcase. When clicking on the button: >> - under Linux, the exception is normally catched in my_exception_handler, >> - under Windows, the program terminates. >> >> What's wrong? Thanks for your help. >> >> Yoann >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > From yahyai-0@hotmail.com Thu Aug 4 13:49:26 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ED8C97500AA for ; Thu, 4 Aug 2011 13:49:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -100.443 X-Spam-Level: X-Spam-Status: No, score=-100.443 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1.929, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.804, SPF_PASS=-0.001, TW_GF=0.077, TW_GT=0.077, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IN3O92y98cIQ for ; Thu, 4 Aug 2011 13:49:21 +0000 (UTC) Received: from dub0-omc1-s7.dub0.hotmail.com (dub0-omc1-s7.dub0.hotmail.com [157.55.0.206]) by menubar.gnome.org (Postfix) with ESMTP id 2B5F0750086 for ; Thu, 4 Aug 2011 13:49:12 +0000 (UTC) Received: from DUB112-W17 ([157.55.0.237]) by dub0-omc1-s7.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 4 Aug 2011 06:49:10 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_dbd29d19-8856-4edf-924d-3cd7feb200f1_" X-Originating-IP: [188.140.134.255] From: "MysteriousMan ." To: Subject: RE: How I can change the translation from the program? Date: Thu, 4 Aug 2011 17:49:09 +0400 Importance: Normal In-Reply-To: References: , , , MIME-Version: 1.0 X-OriginalArrivalTime: 04 Aug 2011 13:49:10.0488 (UTC) FILETIME=[499F0580:01CC52AD] Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 13:49:26 -0000 --_dbd29d19-8856-4edf-924d-3cd7feb200f1_ Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit I have installed the program and the translation worked.. thanks Krzysztof > Date: Tue, 2 Aug 2011 18:16:28 +0200 > Subject: Re: How I can change the translation from the program? > From: tweenk.pl@gmail.com > To: yahyai-0@hotmail.com > CC: gtkmm-list@gnome.org > > 2011/8/2 MysteriousMan . : > > I have add the following > > > > setenv("LANG", "ar", TRUE); > > setenv ("LANGUAGE", "ar", TRUE); > > > > The program is in english , and Ar.po exist on po folder > > But the language didn't change even if I restart the program 10 times > > That's not everything: > 1. You need to call textdomain() to set the translation domain, > usually your app's name, e.g. textdomain("your_app") > 2. During build, you need to compile the .po files to .mo files using > msgfmt (there are Autotools scripts to help) and then put them in the > correct directory, e.g. > /usr/local/share/locale/ar/LC_MESSAGES/your_app.mo (make install > should do this for you) > 3. The text domain name you've set on program start must match the > name of the .mo file > > Regards, Krzysztof --_dbd29d19-8856-4edf-924d-3cd7feb200f1_ Content-Type: text/html; charset="windows-1256" Content-Transfer-Encoding: 8bit

I have installed the program and the translation worked..

thanks Krzysztof

> Date: Tue, 2 Aug 2011 18:16:28 +0200
> Subject: Re: How I can change the translation from the program?
> From: tweenk.pl@gmail.com
> To: yahyai-0@hotmail.com
> CC: gtkmm-list@gnome.org
>
> 2011/8/2 MysteriousMan . <yahyai-0@hotmail.com>:
> > I have add the following
> >
> > setenv("LANG", "ar", TRUE);
> > setenv ("LANGUAGE", "ar", TRUE);
> >
> > The program is in english , and Ar.po exist on po folder
> > But the language didn't change even if I restart the program 10 times
>
> That's not everything:
> 1. You need to call textdomain() to set the translation domain,
> usually your app's name, e.g. textdomain("your_app")
> 2. During build, you need to compile the .po files to .mo files using
> msgfmt (there are Autotools scripts to help ) and then put them in the
> correct directory, e.g.
> /usr/local/share/locale/ar/LC_MESSAGES/your_app.mo (make install
> should do this for you)
> 3. The text domain name you've set on program start must match the
> name of the .mo file
>
> Regards, Krzysztof
--_dbd29d19-8856-4edf-924d-3cd7feb200f1_-- From sylvain.mouquet@gmail.com Thu Aug 4 20:26:33 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C9187500DE for ; Thu, 4 Aug 2011 20:26:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.535 X-Spam-Level: X-Spam-Status: No, score=-2.535 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r8dv+6YqzrKA for ; Thu, 4 Aug 2011 20:26:30 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id 414E67500E5 for ; Thu, 4 Aug 2011 20:26:20 +0000 (UTC) Received: by wwf25 with SMTP id 25so1508920wwf.27 for ; Thu, 04 Aug 2011 13:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=4mAg6+HyJfk2lUUSZUhOfCpMFug5PdGdbgLdMQpNkE8=; b=Tpebyx8Gb9irtbNVOWEA5y46wjb20IMD4jSnTRWPDc0oW5rlnHGFbhOZko+GBRvZIO wa8mQgqCGG8104hbDtPYzoVUd/SFteCR4ZTaKp9szkGrXD/6NClcJEds4jAeJ/KHWPLe G5WqTbVlOiljcjsNmiHWxnmrhMRE6Ddw82s3M= MIME-Version: 1.0 Received: by 10.227.198.73 with SMTP id en9mr1069908wbb.74.1312489578852; Thu, 04 Aug 2011 13:26:18 -0700 (PDT) Received: by 10.227.39.148 with HTTP; Thu, 4 Aug 2011 13:26:18 -0700 (PDT) Date: Thu, 4 Aug 2011 22:26:18 +0200 Message-ID: Subject: Gtkmm 3.0 valgrind From: sylvain mouquet To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=0015174c3c361e717204a9b3cb2a X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2011 20:26:33 -0000 --0015174c3c361e717204a9b3cb2a Content-Type: text/plain; charset=ISO-8859-1 Hi, I use this little example : #include int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Gtk::Window window; Gtk::Main::run(window); return EXIT_SUCCESS; } g++ sample.cpp -o simple `pkg-config gtkmm-3.0 --cflags --libs` i get this error with valgrind : sylvain2@sylvain-desktop:~/Bureau/dev/gtkmm3$ valgrind ./simple ==25595== Memcheck, a memory error detector ==25595== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==25595== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==25595== Command: ./simple ==25595== ==25595== Conditional jump or move depends on uninitialised value(s) ==25595== at 0x9AC30CB: __GI___strcasecmp_l (strcmp.S:243) ==25595== by 0x9A5CF60: __gconv_open (gconv_open.c:70) ==25595== by 0x9A6B106: _nl_find_msg (dcigettext.c:990) ==25595== by 0x9A6B818: __dcigettext (dcigettext.c:654) ==25595== by 0x5FCF98E: gtk_get_option_group (gtkmain.c:976) ==25595== by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) ==25595== by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) ==25595== by 0x5FCFC48: gtk_init (gtkmain.c:1184) ==25595== by 0x51269BB: Gtk::Main::init(int*, char***, bool) (main.cc:304) ==25595== by 0x5126B55: Gtk::Main::Main(int&, char**&, bool) (main.cc:257) ==25595== by 0x400B8C: main (in /home/sylvain2/Bureau/dev/gtkmm3/simple) ==25595== ==25595== Use of uninitialised value of size 8 ==25595== at 0x9AC5204: __GI___strcasecmp_l (strcmp.S:2257) ==25595== by 0x9A5CF60: __gconv_open (gconv_open.c:70) ==25595== by 0x9A6B106: _nl_find_msg (dcigettext.c:990) ==25595== by 0x9A6B818: __dcigettext (dcigettext.c:654) ==25595== by 0x5FCF98E: gtk_get_option_group (gtkmain.c:976) ==25595== by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) ==25595== by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) ==25595== by 0x5FCFC48: gtk_init (gtkmain.c:1184) ==25595== by 0x51269BB: Gtk::Main::init(int*, char***, bool) (main.cc:304) ==25595== by 0x5126B55: Gtk::Main::Main(int&, char**&, bool) (main.cc:257) ==25595== by 0x400B8C: main (in /home/sylvain2/Bureau/dev/gtkmm3/simple) ==25595== ==25595== Use of uninitialised value of size 8 ==25595== at 0x9AC5208: __GI___strcasecmp_l (strcmp.S:2258) ==25595== by 0x9A5CF60: __gconv_open (gconv_open.c:70) ==25595== by 0x9A6B106: _nl_find_msg (dcigettext.c:990) ==25595== by 0x9A6B818: __dcigettext (dcigettext.c:654) ==25595== by 0x5FCF98E: gtk_get_option_group (gtkmain.c:976) ==25595== by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) ==25595== by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) ==25595== by 0x5FCFC48: gtk_init (gtkmain.c:1184) ==25595== by 0x51269BB: Gtk::Main::init(int*, char***, bool) (main.cc:304) ==25595== by 0x5126B55: Gtk::Main::Main(int&, char**&, bool) (main.cc:257) ==25595== by 0x400B8C: main (in /home/sylvain2/Bureau/dev/gtkmm3/simple) ==25595== ==25595== Invalid read of size 8 ==25595== at 0x9AC532F: __GI___strncasecmp_l (strcmp.S:213) ==25595== by 0x9A7BFAE: ____strtod_l_internal (strtod_l.c:577) ==25595== by 0x8DF14D0: g_ascii_strtod (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) ==25595== by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF6F1728: xmlParseStartTag (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) ==25595== Address 0xd16e060 is 0 bytes inside a block of size 7 alloc'd ==25595== at 0x4C2901C: malloc (vg_replace_malloc.c:236) ==25595== by 0x8DD8A62: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) ==25595== by 0x8DF106D: g_strdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) ==25595== by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF6F1728: xmlParseStartTag (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF26878E: rsvg_handle_write (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF03EC10: ??? (in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so) ==25595== ==25595== Invalid read of size 8 ==25595== at 0x9AC5337: __GI___strncasecmp_l (strcmp.S:215) ==25595== by 0x9A7BFAE: ____strtod_l_internal (strtod_l.c:577) ==25595== by 0x8DF14D0: g_ascii_strtod (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) ==25595== by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF6F1728: xmlParseStartTag (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) ==25595== Address 0xd16e068 is 1 bytes after a block of size 7 alloc'd ==25595== at 0x4C2901C: malloc (vg_replace_malloc.c:236) ==25595== by 0x8DD8A62: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) ==25595== by 0x8DF106D: g_strdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) ==25595== by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF6F1728: xmlParseStartTag (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) ==25595== by 0xF26878E: rsvg_handle_write (in /usr/lib/librsvg-2.so.2.32.1) ==25595== by 0xF03EC10: ??? (in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so) ==25595== What is the problem ? Thanks, Sylvain --0015174c3c361e717204a9b3cb2a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I use this little example :
#include = <gtkmm.h>

int main(int argc, char *argv[])
{
=A0 Gtk::Main kit(argc, argv);

=A0 Gtk::Window window;

=A0 Gtk::Main::run(window)= ;

=A0 return EXIT_SUCCESS;
}
<= br>
g++ sample.cpp -o simple `pkg-config gtkmm-3.0 --cflags = --libs`

i get this error with valgrind :

sylvain2@sylvain-desktop:~/Bureau/dev/gtkmm3$ valgrind ./simple
=3D=3D25595=3D=3D Memcheck, a memory error detector
=3D= =3D25595=3D=3D Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward= et al.
=3D=3D25595=3D=3D Using Valgrind-3.6.1 and LibVEX; rerun with -h for c= opyright info
=3D=3D25595=3D=3D Command: ./simple
=3D= =3D25595=3D=3D=A0
=3D=3D25595=3D=3D Conditional jump or move depe= nds on uninitialised value(s)
=3D=3D25595=3D=3D =A0 =A0at 0x9AC30CB: __GI___strcasecmp_l (strcmp.S:2= 43)
=3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_op= en.c:70)
=3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dci= gettext.c:990)
=3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettex= t (dcigettext.c:654)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c= :976)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkm= ain.c:1088)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check= (gtkmain.c:1129)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init= (gtkmain.c:1184)
=3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, = bool) (main.cc:304)
=3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::M= ain::Main(int&, char**&, bool) (main.cc:257)
=3D=3D25595= =3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/dev/gtkmm3/simple= )
=3D=3D25595=3D=3D=A0
=3D=3D25595=3D=3D Use of uninitialised = value of size 8
=3D=3D25595=3D=3D =A0 =A0at 0x9AC5204: __GI___str= casecmp_l (strcmp.S:2257)
=3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: = __gconv_open (gconv_open.c:70)
=3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990)
=3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654= )
=3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gt= kmain.c:976)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_arg= s (gtkmain.c:1088)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129)=
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184)=
=3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, cha= r***, bool) (main.cc:304)
=3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char**&= ;, bool) (main.cc:257)
=3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main= (in /home/sylvain2/Bureau/dev/gtkmm3/simple)
=3D=3D25595=3D=3D= =A0
=3D=3D25595=3D=3D Use of uninitialised value of size 8
=3D=3D25595=3D=3D =A0 =A0at 0x9AC5208: __GI___strcasecmp_l (strcmp.S:2= 258)
=3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_o= pen.c:70)
=3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dc= igettext.c:990)
=3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigette= xt (dcigettext.c:654)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c= :976)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkm= ain.c:1088)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check= (gtkmain.c:1129)
=3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init= (gtkmain.c:1184)
=3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, = bool) (main.cc:304)
=3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::M= ain::Main(int&, char**&, bool) (main.cc:257)
=3D=3D25595= =3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/dev/gtkmm3/simple= )
=3D=3D25595=3D=3D=A0
=3D=3D25595=3D=3D Invalid read of size = 8
=3D=3D25595=3D=3D =A0 =A0at 0x9AC532F: __GI___strncasecmp_l (st= rcmp.S:213)
=3D=3D25595=3D=3D =A0 =A0by 0x9A7BFAE: ____strtod_l_i= nternal (strtod_l.c:577)
=3D=3D25595=3D=3D =A0 =A0by 0x8DF14D0: g= _ascii_strtod (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
=3D=3D25595=3D=3D =A0 =A0by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF261483: ??? (in /usr/lib/li= brsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF262BD1: ??? (in= /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/li= brsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in= /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/l= ibxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /= usr/lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: = xmlParseChunk (in /usr/lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0Address 0xd16e060 is 0 bytes inside a block of si= ze 7 alloc'd
=3D=3D25595=3D=3D =A0 =A0at 0x4C2901C: malloc (v= g_replace_malloc.c:236)
=3D=3D25595=3D=3D =A0 =A0by 0x8DD8A62: g_= malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
=3D=3D25595=3D=3D =A0 =A0by 0x8DF106D: g_strdup (in /lib/x86_64-linux-= gnu/libglib-2.0.so.0.2800.6)
=3D=3D25595=3D=3D =A0 =A0by 0xF262B9= E: ??? (in /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 = =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/li= brsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlPars= eStartTag (in /usr/lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7= .8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr= /lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF26878E: rsv= g_handle_write (in /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF03EC10: ??? (in /usr/lib/gdk-pixbuf-2.0= /2.10.0/loaders/libpixbufloader-svg.so)
=3D=3D25595=3D=3D=A0
=3D=3D25595=3D=3D Invalid read of size 8
=3D=3D25595=3D=3D = =A0 =A0at 0x9AC5337: __GI___strncasecmp_l (strcmp.S:215)
=3D=3D25595=3D=3D =A0 =A0by 0x9A7BFAE: ____strtod_l_internal (strtod_l= .c:577)
=3D=3D25595=3D=3D =A0 =A0by 0x8DF14D0: g_ascii_strtod (in= /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
=3D=3D25595=3D=3D= =A0 =A0by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF262BD1: ??? (in /usr/lib/li= brsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in= /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/li= brsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlPars= eStartTag (in /usr/lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7= .8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr= /lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0Address 0xd16e068 is = 1 bytes after a block of size 7 alloc'd
=3D=3D25595=3D=3D =A0 =A0at 0x4C2901C: malloc (vg_replace_malloc.c:236= )
=3D=3D25595=3D=3D =A0 =A0by 0x8DD8A62: g_malloc (in /lib/x86_64= -linux-gnu/libglib-2.0.so.0.2800.6)
=3D=3D25595=3D=3D =A0 =A0by 0= x8DF106D: g_strdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
=3D=3D25595=3D=3D =A0 =A0by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/li= brsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in= /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (i= n /usr/lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1= E: ??? (in /usr/lib/libxml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libx= ml2.so.2.7.8)
=3D=3D25595=3D=3D =A0 =A0by 0xF26878E: rsvg_handle_= write (in /usr/lib/librsvg-2.so.2.32.1)
=3D=3D25595=3D=3D =A0 =A0= by 0xF03EC10: ??? (in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloade= r-svg.so)
=3D=3D25595=3D=3D=A0

What is the problem ?
Thanks,
Sylvain
--0015174c3c361e717204a9b3cb2a-- From SRS0=s4tO=2X=melix.net=yo35@bounces.m4x.org Fri Aug 5 10:25:32 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C0A8B750112 for ; Fri, 5 Aug 2011 10:25:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.748 X-Spam-Level: X-Spam-Status: No, score=-1.748 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eoj9kLCQ8dsG for ; Fri, 5 Aug 2011 10:25:28 +0000 (UTC) X-Greylist: delayed 388 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 05 Aug 2011 10:25:28 UTC Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by menubar.gnome.org (Postfix) with ESMTP id 57EF37500B4 for ; Fri, 5 Aug 2011 10:25:20 +0000 (UTC) Received: from [192.168.1.71] (156.11.103.84.rev.sfr.net [84.103.11.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id CE8FD140000B5 for ; Fri, 5 Aug 2011 12:18:50 +0200 (CEST) Message-ID: <4E3BC38A.3090909@melix.net> Date: Fri, 05 Aug 2011 12:18:50 +0200 From: Yoann Le Montagner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Exception handling and Windows References: <4E3A6B72.4070105@melix.net> <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> <4E3A9297.6060504@melix.net> In-Reply-To: <4E3A9297.6060504@melix.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Fri Aug 5 12:18:51 2011 +0200 (CEST)) X-Org-Mail: yoann.le-montagner.2005@polytechnique.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 10:25:33 -0000 Hi, I've managed to get around my problem by building the gtkmm libraries by myself, with the latest version of the MinGW compiler. Yoann Le 04/08/2011 14:37, Yoann Le Montagner a écrit : > Hi, > > Thanks for your help. I was using MinGW, version 4.5.2 (the one > provided on http://www.mingw.org/ ). I changed for the version you > suggested > (http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/sezero_20101003/), > which labeled 4.4.5. With this version of the compiler, the behavior > of the testcase program is different, but is still wrong ! When > clicking on the button, I get : > > - with mingw 4.5.2: > >terminate called after throwing an instance of 'std::exception' > > what(): std::exception > and then the program terminates > > - with mingw 4.4.5: > >Call to my_exception_handler > >terminate called without an active exception > and then the program terminates > > The latest case behave as if the exception were first caught before > calling to 'my_exception_handler': if I comment the try-catch block in > this function, I get : > >Call to my_exception_handler > and then the program continues. > > Any idea? > > Yoann > > > Le 04/08/2011 13:17, Armin Burgmeier a écrit : >> Hi Yoann, >> >> are you using MinGW or MSVC? If the former, then you should make sure to >> use the same compiler as the one the official binaries were built with, >> see http://live.gnome.org/action/info/gtkmm/MSWindows/ >> >> Cheers, >> Armin >> >> On Thu, 2011-08-04 at 11:50 +0200, Yoann Le Montagner wrote: >>> Hi, >>> >>> I have a problem with exception handling on Windows. In my application, >>> I set up a global exception handler with the function >>> Glib::add_exception_handler, so that this handler is supposed to be >>> called when an exception is thrown during the execution of the main >>> loop. It works fine when the program is built under Linux, but the >>> exception handler set up by Glib::add_exception_handler is never called >>> when the program is built under Windows. >>> >>> I enclose a simple testcase. When clicking on the button: >>> - under Linux, the exception is normally catched in >>> my_exception_handler, >>> - under Windows, the program terminates. >>> >>> What's wrong? Thanks for your help. >>> >>> Yoann >>> >>> _______________________________________________ >>> gtkmm-list mailing list >>> gtkmm-list@gnome.org >>> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From acolomb@schickhardt.org Fri Aug 5 11:05:58 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E5D997500FD for ; Fri, 5 Aug 2011 11:05:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.046 X-Spam-Level: X-Spam-Status: No, score=-4.046 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l5BdMZpfN-uk for ; Fri, 5 Aug 2011 11:05:53 +0000 (UTC) X-Greylist: delayed 782 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 05 Aug 2011 11:05:53 UTC Received: from smtp1.belwue.de (smtp1.belwue.de [129.143.2.12]) by menubar.gnome.org (Postfix) with ESMTP id 89B987500F0 for ; Fri, 5 Aug 2011 11:05:45 +0000 (UTC) Received: from mbox1.belwue.de (mbox1-0.belwue.de [129.143.71.24]) by smtp1.belwue.de with ESMTP id p75Aqe9q022218 for ; Fri, 5 Aug 2011 12:52:40 +0200 (MEST) env-from (acolomb@schickhardt.org) Received: from [91.47.61.125] (account acolomb@schickhardt.org HELO [192.168.0.100]) by be0.mbox1.belwue.de (CommuniGate Pro SMTP 5.3.14) with ESMTPSA id 1787396 for gtkmm-list@gnome.org; Fri, 05 Aug 2011 12:52:40 +0200 Message-ID: <4E3BCB6F.8030804@schickhardt.org> Date: Fri, 05 Aug 2011 12:52:31 +0200 From: Andre Colomb User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Exception handling and Windows References: <4E3A6B72.4070105@melix.net> <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> <4E3A9297.6060504@melix.net> <4E3BC38A.3090909@melix.net> In-Reply-To: <4E3BC38A.3090909@melix.net> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig82C96DBB3B579AE3B18601A4" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 11:05:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig82C96DBB3B579AE3B18601A4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yoann Le Montagner wrote: > I've managed to get around my problem by building the gtkmm libraries b= y > myself, with the latest version of the MinGW compiler. That's exactly what I did a while back. One problem is the default exception handling ABI in GCC, which changed from SJLJ to DW2 recently. You can look for a libgcc*.dll in the Gtkmm binaries and compare with the one in your MinGW build system. Newer MinGW versions ship libgcc_s_dw2-1.dll, so you might end up dynamically linking to two different libgcc DLLs. See also: http://gcc.gnu.org/wiki/WindowsGCCImprovements Another problem seems to be exceptions thrown in callback functions. Since signal handlers are actually called from the Gtk C libraries, C++ exceptions are hard to get handed through these to e.g. the main routine. There is a comment about this somewhere in the Gtkmm documentation, just couldn't find a reference right now: "Always catch your exceptions locally within the signal callback." I figure quite some people will still get bitten by this incompatibility, so I wanted to collect some facts I found. Anyone care to extend the info in GNOME Live? (https://live.gnome.org/gtkmm/MSWindows) Regards, Andr=C3=A9 --=20 Greetings... From: Andre Colomb --------------enig82C96DBB3B579AE3B18601A4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk47y28ACgkQZ6c/lG/u2qw9hACfdsS+kd4hqx7GKTlnRUGh4rG4 ZRYAnRVBBkSfVUiSl1BE5YGTGiegGOEr =SYMY -----END PGP SIGNATURE----- --------------enig82C96DBB3B579AE3B18601A4-- From armin@arbur.net Fri Aug 5 11:32:29 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 06E917500B4 for ; Fri, 5 Aug 2011 11:32:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.669 X-Spam-Level: X-Spam-Status: No, score=-1.669 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BM=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13CKnlIHHlm6 for ; Fri, 5 Aug 2011 11:32:25 +0000 (UTC) Received: from dd17810.kasserver.com (dd17810.kasserver.com [85.13.138.113]) by menubar.gnome.org (Postfix) with ESMTP id 864767500C2 for ; Fri, 5 Aug 2011 11:32:16 +0000 (UTC) Received: from [129.13.102.206] (ekplx66.physik.uni-karlsruhe.de [129.13.102.206]) by dd17810.kasserver.com (Postfix) with ESMTPSA id DE5CBA05FA; Fri, 5 Aug 2011 13:32:13 +0200 (CEST) Subject: Re: Exception handling and Windows From: Armin Burgmeier To: Andre Colomb In-Reply-To: <4E3BCB6F.8030804@schickhardt.org> References: <4E3A6B72.4070105@melix.net> <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> <4E3A9297.6060504@melix.net> <4E3BC38A.3090909@melix.net> <4E3BCB6F.8030804@schickhardt.org> Content-Type: text/plain; charset="UTF-8" Date: Fri, 05 Aug 2011 13:32:13 +0200 Message-ID: <1312543933.7813.0.camel@ekplx66.physik.uni-karlsruhe.de> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 11:32:29 -0000 On Fri, 2011-08-05 at 12:52 +0200, Andre Colomb wrote: > Yoann Le Montagner wrote: > > I've managed to get around my problem by building the gtkmm libraries by > > myself, with the latest version of the MinGW compiler. > > That's exactly what I did a while back. One problem is the default > exception handling ABI in GCC, which changed from SJLJ to DW2 recently. > You can look for a libgcc*.dll in the Gtkmm binaries and compare with > the one in your MinGW build system. Newer MinGW versions ship > libgcc_s_dw2-1.dll, so you might end up dynamically linking to two > different libgcc DLLs. > > See also: http://gcc.gnu.org/wiki/WindowsGCCImprovements > > Another problem seems to be exceptions thrown in callback functions. > Since signal handlers are actually called from the Gtk C libraries, C++ > exceptions are hard to get handed through these to e.g. the main > routine. There is a comment about this somewhere in the Gtkmm > documentation, just couldn't find a reference right now: "Always catch > your exceptions locally within the signal callback." Exceptions from callback functions are catched by glibmm in order to avoid passing them through the C libraries. Armin From qdlacz@gmail.com Fri Aug 5 12:44:51 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B0AE07500B4 for ; Fri, 5 Aug 2011 12:44:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pFPqCEq5xlgO for ; Fri, 5 Aug 2011 12:44:47 +0000 (UTC) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by menubar.gnome.org (Postfix) with ESMTP id BDC6875002B for ; Fri, 5 Aug 2011 12:44:38 +0000 (UTC) Received: by iye7 with SMTP id 7so2643953iye.3 for ; Fri, 05 Aug 2011 05:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=JFhY+5p/ndn2mhO+1poTLr85fydSpOukk0Q3TvRWotQ=; b=iou5qelMF9Kehxf3hMVncNd1R+p8P8iUKIEXXDHt+9+U4SUEc8g3/34fey6/fly3YF h3fx59K/50YYU9QFHmKIQAZk02anS9em5oTdeUSQEBBPfN1uRylTecumSm/tndb2EYrs /aCsVf0D9dePOIq1DT638lgDSfFrZULnKzHc0= MIME-Version: 1.0 Received: by 10.42.149.67 with SMTP id u3mr2201467icv.124.1312548276781; Fri, 05 Aug 2011 05:44:36 -0700 (PDT) Received: by 10.42.4.208 with HTTP; Fri, 5 Aug 2011 05:44:36 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Aug 2011 14:44:36 +0200 Message-ID: Subject: Re: Gtkmm 3.0 valgrind From: Krzesimir Nowak To: sylvain mouquet Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 12:44:51 -0000 2011/8/4 sylvain mouquet : > Hi, > I use this little example : > #include > int main(int argc, char *argv[]) > { > =A0 Gtk::Main kit(argc, argv); > =A0 Gtk::Window window; > =A0 Gtk::Main::run(window); > =A0 return EXIT_SUCCESS; > } > g++ sample.cpp -o simple `pkg-config gtkmm-3.0 --cflags --libs` > i get this error with valgrind : > sylvain2@sylvain-desktop:~/Bureau/dev/gtkmm3$ valgrind ./simple > =3D=3D25595=3D=3D Memcheck, a memory error detector > =3D=3D25595=3D=3D Copyright (C) 2002-2010, and GNU GPL'd, by Julian Sewar= d et al. > =3D=3D25595=3D=3D Using Valgrind-3.6.1 and LibVEX; rerun with -h for copy= right info > =3D=3D25595=3D=3D Command: ./simple > =3D=3D25595=3D=3D > =3D=3D25595=3D=3D Conditional jump or move depends on uninitialised value= (s) > =3D=3D25595=3D=3D =A0 =A0at 0x9AC30CB: __GI___strcasecmp_l (strcmp.S:243) > =3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_open.c:70) > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990) > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c:97= 6) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184) > =3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, boo= l) > (main.cc:304) > =3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char**&, boo= l) > (main.cc:257) > =3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/dev/= gtkmm3/simple) > =3D=3D25595=3D=3D > =3D=3D25595=3D=3D Use of uninitialised value of size 8 > =3D=3D25595=3D=3D =A0 =A0at 0x9AC5204: __GI___strcasecmp_l (strcmp.S:2257= ) > =3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_open.c:70) > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990) > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c:97= 6) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184) > =3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, boo= l) > (main.cc:304) > =3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char**&, boo= l) > (main.cc:257) > =3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/dev/= gtkmm3/simple) > =3D=3D25595=3D=3D > =3D=3D25595=3D=3D Use of uninitialised value of size 8 > =3D=3D25595=3D=3D =A0 =A0at 0x9AC5208: __GI___strcasecmp_l (strcmp.S:2258= ) > =3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_open.c:70) > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990) > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c:97= 6) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) > =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184) > =3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, boo= l) > (main.cc:304) > =3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char**&, boo= l) > (main.cc:257) > =3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/dev/= gtkmm3/simple) > =3D=3D25595=3D=3D > =3D=3D25595=3D=3D Invalid read of size 8 > =3D=3D25595=3D=3D =A0 =A0at 0x9AC532F: __GI___strncasecmp_l (strcmp.S:213= ) > =3D=3D25595=3D=3D =A0 =A0by 0x9A7BFAE: ____strtod_l_internal (strtod_l.c:= 577) > =3D=3D25595=3D=3D =A0 =A0by 0x8DF14D0: g_ascii_strtod (in > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > =3D=3D25595=3D=3D =A0 =A0by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/libx= ml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2= .so.2.7.8) > =3D=3D25595=3D=3D =A0Address 0xd16e060 is 0 bytes inside a block of size = 7 alloc'd > =3D=3D25595=3D=3D =A0 =A0at 0x4C2901C: malloc (vg_replace_malloc.c:236) > =3D=3D25595=3D=3D =A0 =A0by 0x8DD8A62: g_malloc (in > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > =3D=3D25595=3D=3D =A0 =A0by 0x8DF106D: g_strdup (in > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > =3D=3D25595=3D=3D =A0 =A0by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/libx= ml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2= .so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF26878E: rsvg_handle_write (in > /usr/lib/librsvg-2.so.2.32.1) > =3D=3D25595=3D=3D =A0 =A0by 0xF03EC10: ??? (in > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so) > =3D=3D25595=3D=3D > =3D=3D25595=3D=3D Invalid read of size 8 > =3D=3D25595=3D=3D =A0 =A0at 0x9AC5337: __GI___strncasecmp_l (strcmp.S:215= ) > =3D=3D25595=3D=3D =A0 =A0by 0x9A7BFAE: ____strtod_l_internal (strtod_l.c:= 577) > =3D=3D25595=3D=3D =A0 =A0by 0x8DF14D0: g_ascii_strtod (in > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > =3D=3D25595=3D=3D =A0 =A0by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/libx= ml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2= .so.2.7.8) > =3D=3D25595=3D=3D =A0Address 0xd16e068 is 1 bytes after a block of size 7= alloc'd > =3D=3D25595=3D=3D =A0 =A0at 0x4C2901C: malloc (vg_replace_malloc.c:236) > =3D=3D25595=3D=3D =A0 =A0by 0x8DD8A62: g_malloc (in > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > =3D=3D25595=3D=3D =A0 =A0by 0x8DF106D: g_strdup (in > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > =3D=3D25595=3D=3D =A0 =A0by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32= .1) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/libx= ml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2= .so.2.7.8) > =3D=3D25595=3D=3D =A0 =A0by 0xF26878E: rsvg_handle_write (in > /usr/lib/librsvg-2.so.2.32.1) > =3D=3D25595=3D=3D =A0 =A0by 0xF03EC10: ??? (in > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so) > =3D=3D25595=3D=3D > What is the problem ? > Thanks, > Sylvain > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > Maybe try running your application with G_SLICE environment variable set to always-malloc. In general, this doesn't have anything to do with gtkmm - more like with GTK+, which gtkmm is wrapping. From sylvain.mouquet@gmail.com Fri Aug 5 19:43:34 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DE99D75007D for ; Fri, 5 Aug 2011 19:43:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X3Yhz-Fd7-bw for ; Fri, 5 Aug 2011 19:43:30 +0000 (UTC) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by menubar.gnome.org (Postfix) with ESMTP id 2139A750021 for ; Fri, 5 Aug 2011 19:43:21 +0000 (UTC) Received: by wwg11 with SMTP id 11so798342wwg.3 for ; Fri, 05 Aug 2011 12:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6Cq4SHiwuoRKk2WRYvE/L0d7redgr2H3xMF9yBXqth8=; b=n4H6MeLv9D4GNQSSKdUNscBXCsLCseLu8tgQDGcHDFdpF0mWSa6LzQXkE8GEVtrsmJ HHH0K1MFysxFHl19QNwlpvUuN4cIVf/4aXC/OCUV6RLwUiQ3uE+IDiqDf3FgMPmvydsg qFyTWzJjRegRx2HiuTkuBFZVAM0iOX8OfELHM= MIME-Version: 1.0 Received: by 10.227.127.135 with SMTP id g7mr2232390wbs.96.1312573399766; Fri, 05 Aug 2011 12:43:19 -0700 (PDT) Received: by 10.227.39.148 with HTTP; Fri, 5 Aug 2011 12:43:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Aug 2011 21:43:19 +0200 Message-ID: Subject: Re: Gtkmm 3.0 valgrind From: sylvain mouquet To: Krzesimir Nowak Content-Type: multipart/alternative; boundary=0016364ed9e63c175804a9c74f92 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 19:43:35 -0000 --0016364ed9e63c175804a9c74f92 Content-Type: text/plain; charset=ISO-8859-1 Ok i have found this article about valgrind and gtk : http://live.gnome.org/Valgrind "G_SLICE and G_DEBUG env vars make sure to turn off glib's memory optimizations, so that they do not confuse valgrind." when i use : G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=vgdump your-program i get the same errors. i comple and run the application in x86_64 platform. Gtkmm is compatible with x86_64 ? Thanks Sylvain 2011/8/5 Krzesimir Nowak > 2011/8/4 sylvain mouquet : > > Hi, > > I use this little example : > > #include > > int main(int argc, char *argv[]) > > { > > Gtk::Main kit(argc, argv); > > Gtk::Window window; > > Gtk::Main::run(window); > > return EXIT_SUCCESS; > > } > > g++ sample.cpp -o simple `pkg-config gtkmm-3.0 --cflags --libs` > > i get this error with valgrind : > > sylvain2@sylvain-desktop:~/Bureau/dev/gtkmm3$ valgrind ./simple > > ==25595== Memcheck, a memory error detector > > ==25595== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. > > ==25595== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright > info > > ==25595== Command: ./simple > > ==25595== > > ==25595== Conditional jump or move depends on uninitialised value(s) > > ==25595== at 0x9AC30CB: __GI___strcasecmp_l (strcmp.S:243) > > ==25595== by 0x9A5CF60: __gconv_open (gconv_open.c:70) > > ==25595== by 0x9A6B106: _nl_find_msg (dcigettext.c:990) > > ==25595== by 0x9A6B818: __dcigettext (dcigettext.c:654) > > ==25595== by 0x5FCF98E: gtk_get_option_group (gtkmain.c:976) > > ==25595== by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) > > ==25595== by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) > > ==25595== by 0x5FCFC48: gtk_init (gtkmain.c:1184) > > ==25595== by 0x51269BB: Gtk::Main::init(int*, char***, bool) > > (main.cc:304) > > ==25595== by 0x5126B55: Gtk::Main::Main(int&, char**&, bool) > > (main.cc:257) > > ==25595== by 0x400B8C: main (in > /home/sylvain2/Bureau/dev/gtkmm3/simple) > > ==25595== > > ==25595== Use of uninitialised value of size 8 > > ==25595== at 0x9AC5204: __GI___strcasecmp_l (strcmp.S:2257) > > ==25595== by 0x9A5CF60: __gconv_open (gconv_open.c:70) > > ==25595== by 0x9A6B106: _nl_find_msg (dcigettext.c:990) > > ==25595== by 0x9A6B818: __dcigettext (dcigettext.c:654) > > ==25595== by 0x5FCF98E: gtk_get_option_group (gtkmain.c:976) > > ==25595== by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) > > ==25595== by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) > > ==25595== by 0x5FCFC48: gtk_init (gtkmain.c:1184) > > ==25595== by 0x51269BB: Gtk::Main::init(int*, char***, bool) > > (main.cc:304) > > ==25595== by 0x5126B55: Gtk::Main::Main(int&, char**&, bool) > > (main.cc:257) > > ==25595== by 0x400B8C: main (in > /home/sylvain2/Bureau/dev/gtkmm3/simple) > > ==25595== > > ==25595== Use of uninitialised value of size 8 > > ==25595== at 0x9AC5208: __GI___strcasecmp_l (strcmp.S:2258) > > ==25595== by 0x9A5CF60: __gconv_open (gconv_open.c:70) > > ==25595== by 0x9A6B106: _nl_find_msg (dcigettext.c:990) > > ==25595== by 0x9A6B818: __dcigettext (dcigettext.c:654) > > ==25595== by 0x5FCF98E: gtk_get_option_group (gtkmain.c:976) > > ==25595== by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088) > > ==25595== by 0x5FCFC18: gtk_init_check (gtkmain.c:1129) > > ==25595== by 0x5FCFC48: gtk_init (gtkmain.c:1184) > > ==25595== by 0x51269BB: Gtk::Main::init(int*, char***, bool) > > (main.cc:304) > > ==25595== by 0x5126B55: Gtk::Main::Main(int&, char**&, bool) > > (main.cc:257) > > ==25595== by 0x400B8C: main (in > /home/sylvain2/Bureau/dev/gtkmm3/simple) > > ==25595== > > ==25595== Invalid read of size 8 > > ==25595== at 0x9AC532F: __GI___strncasecmp_l (strcmp.S:213) > > ==25595== by 0x9A7BFAE: ____strtod_l_internal (strtod_l.c:577) > > ==25595== by 0x8DF14D0: g_ascii_strtod (in > > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > > ==25595== by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF6F1728: xmlParseStartTag (in > /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) > > ==25595== Address 0xd16e060 is 0 bytes inside a block of size 7 alloc'd > > ==25595== at 0x4C2901C: malloc (vg_replace_malloc.c:236) > > ==25595== by 0x8DD8A62: g_malloc (in > > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > > ==25595== by 0x8DF106D: g_strdup (in > > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > > ==25595== by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF6F1728: xmlParseStartTag (in > /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF26878E: rsvg_handle_write (in > > /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF03EC10: ??? (in > > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so) > > ==25595== > > ==25595== Invalid read of size 8 > > ==25595== at 0x9AC5337: __GI___strncasecmp_l (strcmp.S:215) > > ==25595== by 0x9A7BFAE: ____strtod_l_internal (strtod_l.c:577) > > ==25595== by 0x8DF14D0: g_ascii_strtod (in > > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > > ==25595== by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF6F1728: xmlParseStartTag (in > /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) > > ==25595== Address 0xd16e068 is 1 bytes after a block of size 7 alloc'd > > ==25595== at 0x4C2901C: malloc (vg_replace_malloc.c:236) > > ==25595== by 0x8DD8A62: g_malloc (in > > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > > ==25595== by 0x8DF106D: g_strdup (in > > /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6) > > ==25595== by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF6F1728: xmlParseStartTag (in > /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF6FACEF: xmlParseChunk (in /usr/lib/libxml2.so.2.7.8) > > ==25595== by 0xF26878E: rsvg_handle_write (in > > /usr/lib/librsvg-2.so.2.32.1) > > ==25595== by 0xF03EC10: ??? (in > > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so) > > ==25595== > > What is the problem ? > > Thanks, > > Sylvain > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > > > Maybe try running your application with G_SLICE environment variable > set to always-malloc. In general, this doesn't have anything to do > with gtkmm - more like with GTK+, which gtkmm is wrapping. > -- Cordialement, Sylvain --0016364ed9e63c175804a9c74f92 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok

i have found this article about valgrind and gtk := =A0http://live.gnome.org/Valgrind<= /a>

"G_SLICE and G_DEBUG env vars make sure to turn of= f glib's memory optimizations, so that they do not confuse valgrind.&qu= ot;

when i use :

G_SLICE=3Dalways-malloc=A0G_DEBUG=3Dgc-friendly=A0valgrind=A0--tool=3D= memcheck=A0--leak-check=3Dfull=A0--leak-resolution=3Dhigh=A0--num-callers= =3D20=A0--log-file=3Dvgdump=A0your-program

i get the same errors.
i comple and run th= e application in=A0x86_64 platform. Gtkmm is compatible with x86_64 ?

Thanks
Sylvain

2011/8/5 Krzesimir Nowak &= lt;qdlacz@gmail.com>
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex;"> 2011/8/4 sylvain mouquet <s= ylvain.mouquet@gmail.com>:
> Hi,
> I use this little example :
> #include <gtkmm.h>
> int main(int argc, char *argv[])
> {
> =A0 Gtk::Main kit(argc, argv);
> =A0 Gtk::Window window;
> =A0 Gtk::Main::run(window);
> =A0 return EXIT_SUCCESS;
> }
> g++ sample.cpp -o simple `pkg-config gtkmm-3.0 --cflags --libs`
> i get this error with valgrind :
> sylvain2@sylvain-desktop:~/Bureau/dev/gtkmm3$ valgrind ./simple
> =3D=3D25595=3D=3D Memcheck, a memory error detector
> =3D=3D25595=3D=3D Copyright (C) 2002-2010, and GNU GPL'd, by Julia= n Seward et al.
> =3D=3D25595=3D=3D Using Valgrind-3.6.1 and LibVEX; rerun with -h for c= opyright info
> =3D=3D25595=3D=3D Command: ./simple
> =3D=3D25595=3D=3D
> =3D=3D25595=3D=3D Conditional jump or move depends on uninitialised va= lue(s)
> =3D=3D25595=3D=3D =A0 =A0at 0x9AC30CB: __GI___strcasecmp_l (strcmp.S:2= 43)
> =3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_open.c:70)<= br> > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990)=
> =3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c= :976)
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184)
> =3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, = bool)
> (main.cc:304)
> =3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char*= *&, bool)
> (main.cc:257)
> =3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/d= ev/gtkmm3/simple)
> =3D=3D25595=3D=3D
> =3D=3D25595=3D=3D Use of uninitialised value of size 8
> =3D=3D25595=3D=3D =A0 =A0at 0x9AC5204: __GI___strcasecmp_l (strcmp.S:2= 257)
> =3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_open.c:70)<= br> > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990)=
> =3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c= :976)
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184)
> =3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, = bool)
> (main.cc:304)
> =3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char*= *&, bool)
> (main.cc:257)
> =3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/d= ev/gtkmm3/simple)
> =3D=3D25595=3D=3D
> =3D=3D25595=3D=3D Use of uninitialised value of size 8
> =3D=3D25595=3D=3D =A0 =A0at 0x9AC5208: __GI___strcasecmp_l (strcmp.S:2= 258)
> =3D=3D25595=3D=3D =A0 =A0by 0x9A5CF60: __gconv_open (gconv_open.c:70)<= br> > =3D=3D25595=3D=3D =A0 =A0by 0x9A6B106: _nl_find_msg (dcigettext.c:990)=
> =3D=3D25595=3D=3D =A0 =A0by 0x9A6B818: __dcigettext (dcigettext.c:654)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCF98E: gtk_get_option_group (gtkmain.c= :976)
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFBA1: gtk_parse_args (gtkmain.c:1088)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC18: gtk_init_check (gtkmain.c:1129)=
> =3D=3D25595=3D=3D =A0 =A0by 0x5FCFC48: gtk_init (gtkmain.c:1184)
> =3D=3D25595=3D=3D =A0 =A0by 0x51269BB: Gtk::Main::init(int*, char***, = bool)
> (main.cc:304)
> =3D=3D25595=3D=3D =A0 =A0by 0x5126B55: Gtk::Main::Main(int&, char*= *&, bool)
> (main.cc:257)
> =3D=3D25595=3D=3D =A0 =A0by 0x400B8C: main (in /home/sylvain2/Bureau/d= ev/gtkmm3/simple)
> =3D=3D25595=3D=3D
> =3D=3D25595=3D=3D Invalid read of size 8
> =3D=3D25595=3D=3D =A0 =A0at 0x9AC532F: __GI___strncasecmp_l (strcmp.S:= 213)
> =3D=3D25595=3D=3D =A0 =A0by 0x9A7BFAE: ____strtod_l_internal (strtod_l= .c:577)
> =3D=3D25595=3D=3D =A0 =A0by 0x8DF14D0: g_ascii_strtod (in
> /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
> =3D=3D25595=3D=3D =A0 =A0by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/l= ibxml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7= .8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libx= ml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0Address 0xd16e060 is 0 bytes inside a block of si= ze 7 alloc'd
> =3D=3D25595=3D=3D =A0 =A0at 0x4C2901C: malloc (vg_replace_malloc.c:236= )
> =3D=3D25595=3D=3D =A0 =A0by 0x8DD8A62: g_malloc (in
> /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
> =3D=3D25595=3D=3D =A0 =A0by 0x8DF106D: g_strdup (in
> /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
> =3D=3D25595=3D=3D =A0 =A0by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/l= ibxml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7= .8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libx= ml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF26878E: rsvg_handle_write (in
> /usr/lib/librsvg-2.so.2.32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF03EC10: ??? (in
> /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so)
> =3D=3D25595=3D=3D
> =3D=3D25595=3D=3D Invalid read of size 8
> =3D=3D25595=3D=3D =A0 =A0at 0x9AC5337: __GI___strncasecmp_l (strcmp.S:= 215)
> =3D=3D25595=3D=3D =A0 =A0by 0x9A7BFAE: ____strtod_l_internal (strtod_l= .c:577)
> =3D=3D25595=3D=3D =A0 =A0by 0x8DF14D0: g_ascii_strtod (in
> /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
> =3D=3D25595=3D=3D =A0 =A0by 0xF249D66: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF261483: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF262BD1: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/l= ibxml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7= .8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libx= ml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0Address 0xd16e068 is 1 bytes after a block of siz= e 7 alloc'd
> =3D=3D25595=3D=3D =A0 =A0at 0x4C2901C: malloc (vg_replace_malloc.c:236= )
> =3D=3D25595=3D=3D =A0 =A0by 0x8DD8A62: g_malloc (in
> /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
> =3D=3D25595=3D=3D =A0 =A0by 0x8DF106D: g_strdup (in
> /lib/x86_64-linux-gnu/libglib-2.0.so.0.2800.6)
> =3D=3D25595=3D=3D =A0 =A0by 0xF262B9E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2639B4: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF266C3E: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF2675EA: ??? (in /usr/lib/librsvg-2.so.2= .32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F1728: xmlParseStartTag (in /usr/lib/l= ibxml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6F9F1E: ??? (in /usr/lib/libxml2.so.2.7= .8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF6FACEF: xmlParseChunk (in /usr/lib/libx= ml2.so.2.7.8)
> =3D=3D25595=3D=3D =A0 =A0by 0xF26878E: rsvg_handle_write (in
> /usr/lib/librsvg-2.so.2.32.1)
> =3D=3D25595=3D=3D =A0 =A0by 0xF03EC10: ??? (in
> /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so)
> =3D=3D25595=3D=3D
> What is the problem ?
> Thanks,
> Sylvain
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>

Maybe try running your application with G_SLICE environment variable
set to always-malloc. In general, this doesn't have anything to do
with gtkmm - more like with GTK+, which gtkmm is wrapping.



--
Cordialement,
Sylvai= n
--0016364ed9e63c175804a9c74f92-- From t.harty1@physics.ox.ac.uk Tue Aug 2 10:41:48 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 097E1750096 for ; Tue, 2 Aug 2011 10:41:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5 X-Spam-Level: X-Spam-Status: No, score=-5 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.801] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8vimE3r3Rxv5 for ; Tue, 2 Aug 2011 10:41:45 +0000 (UTC) Received: from relay8.mail.ox.ac.uk (relay8.mail.ox.ac.uk [129.67.1.171]) by menubar.gnome.org (Postfix) with ESMTP id 7AEC075000A for ; Tue, 2 Aug 2011 10:41:37 +0000 (UTC) Received: from exchange-cas2.physics.ox.ac.uk ([163.1.74.83]) by relay8.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QoCPm-0004hb-Sy for gtkmm-list@gnome.org; Tue, 02 Aug 2011 11:41:34 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS2.physics.ox.ac.uk ([fe80::fc0a:452e:a0b7:22c7%10]) with mapi id 14.01.0323.000; Tue, 2 Aug 2011 11:41:34 +0100 From: Thomas Harty To: "gtkmm-list@gnome.org" Subject: Images in GTKmm Thread-Topic: Images in GTKmm Thread-Index: AcxQ83+tjEoRdhOYS9Klao5uK2OV6Q== Date: Tue, 2 Aug 2011 10:41:34 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9DA38@EXCHNG14.physics.ox.ac.uk> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.182.2] Content-Type: multipart/alternative; boundary="_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA38EXCHNG14physics_" MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 10 Aug 2011 16:25:33 +0000 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 10:41:48 -0000 --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA38EXCHNG14physics_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I want to put an image into a box in such a way that the image will shrink = to fit into empty space in the box, whilst preserving its aspect ratio. Thu= s, the dimensions of the image should be determined by the dimensions of th= e objects around it. The image needs to shrink and expand with the box (e.g= . if the user re-sizes the main window). For example, I want to put a few items in a VBox and have these items deter= mine the width of the VBox. I then want to be able to add the image to the = VBox in such a way that it doesn't resize the box, but rather fits into the= space. If there is space left above/below the widget (due to the constrain= t of preserving it's aspect ratio), this should be filled with padding, rat= her than the image expanding to fill the space. What's the best way of accomplishing this in Gtkmm? Tom --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA38EXCHNG14physics_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I want to put an image into a box in such a way that the image will = shrink to fit into empty space in the box, whilst preserving its aspect rat= io. Thus, the dimensions of the image should be determined by the dimensions of the objects around it. The image= needs to shrink and expand with the box (e.g. if the user re-sizes the mai= n window).

For example, I want to put a few items in a VBox and have these items deter= mine the width of the VBox. I then want to be able to add the image to the = VBox in such a way that it doesn't resize the box, but rather fits into the= space. If there is space left above/below the widget (due to the constraint of preserving it's aspect ratio), this s= hould be filled with padding, rather than the image expanding to fill the s= pace.

What's the best way of accomplishing this in Gtkmm?

Tom
--_000_69464CD235B9A04DACEAA1DB7151ACAB13A9DA38EXCHNG14physics_-- From SRS0=RgBJ=2X=m4x.org=yoann.le-montagner@bounces.m4x.org Fri Aug 5 10:15:33 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3475F7500FD for ; Fri, 5 Aug 2011 10:15:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.748 X-Spam-Level: X-Spam-Status: No, score=-1.748 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wzqy5mLXmoU9 for ; Fri, 5 Aug 2011 10:15:28 +0000 (UTC) X-Greylist: delayed 462 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 05 Aug 2011 10:15:28 UTC Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by menubar.gnome.org (Postfix) with ESMTP id BBB037500B4 for ; Fri, 5 Aug 2011 10:15:20 +0000 (UTC) Received: from [192.168.1.71] (156.11.103.84.rev.sfr.net [84.103.11.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 0F228140000B5 for ; Fri, 5 Aug 2011 12:07:36 +0200 (CEST) Message-ID: <4E3BC0E7.6090404@m4x.org> Date: Fri, 05 Aug 2011 12:07:35 +0200 From: Yoann Le Montagner User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Exception handling and Windows References: <4E3A6B72.4070105@melix.net> <1312456659.10736.72.camel@ekplx66.physik.uni-karlsruhe.de> <4E3A9297.6060504@melix.net> In-Reply-To: <4E3A9297.6060504@melix.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Fri Aug 5 12:07:36 2011 +0200 (CEST)) X-Org-Mail: yoann.le-montagner.2005@polytechnique.org X-Mailman-Approved-At: Wed, 10 Aug 2011 16:25:33 +0000 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 10:15:33 -0000 Hi, I've managed to get around my problem by building the gtkmm libraries by myself, with the latest version of the MinGW compiler. Yoann Le 04/08/2011 14:37, Yoann Le Montagner a écrit : > Hi, > > Thanks for your help. I was using MinGW, version 4.5.2 (the one > provided on http://www.mingw.org/ ). I changed for the version you > suggested > (http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/sezero_20101003/), > which labeled 4.4.5. With this version of the compiler, the behavior > of the testcase program is different, but is still wrong ! When > clicking on the button, I get : > > - with mingw 4.5.2: > >terminate called after throwing an instance of 'std::exception' > > what(): std::exception > and then the program terminates > > - with mingw 4.4.5: > >Call to my_exception_handler > >terminate called without an active exception > and then the program terminates > > The latest case behave as if the exception were first caught before > calling to 'my_exception_handler': if I comment the try-catch block in > this function, I get : > >Call to my_exception_handler > and then the program continues. > > Any idea? > > Yoann > > > Le 04/08/2011 13:17, Armin Burgmeier a écrit : >> Hi Yoann, >> >> are you using MinGW or MSVC? If the former, then you should make sure to >> use the same compiler as the one the official binaries were built with, >> see http://live.gnome.org/action/info/gtkmm/MSWindows/ >> >> Cheers, >> Armin >> >> On Thu, 2011-08-04 at 11:50 +0200, Yoann Le Montagner wrote: >>> Hi, >>> >>> I have a problem with exception handling on Windows. In my application, >>> I set up a global exception handler with the function >>> Glib::add_exception_handler, so that this handler is supposed to be >>> called when an exception is thrown during the execution of the main >>> loop. It works fine when the program is built under Linux, but the >>> exception handler set up by Glib::add_exception_handler is never called >>> when the program is built under Windows. >>> >>> I enclose a simple testcase. When clicking on the button: >>> - under Linux, the exception is normally catched in >>> my_exception_handler, >>> - under Windows, the program terminates. >>> >>> What's wrong? Thanks for your help. >>> >>> Yoann >>> >>> _______________________________________________ >>> gtkmm-list mailing list >>> gtkmm-list@gnome.org >>> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From giuspen@gmail.com Tue Aug 9 12:23:24 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30DDC750082 for ; Tue, 9 Aug 2011 12:23:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.458 X-Spam-Level: X-Spam-Status: No, score=-2.458 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_YG=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P-OPEfNCb60e for ; Tue, 9 Aug 2011 12:23:22 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id E364D750070 for ; Tue, 9 Aug 2011 12:23:13 +0000 (UTC) Received: by gxk28 with SMTP id 28so1761466gxk.27 for ; Tue, 09 Aug 2011 05:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=cS3ZpA66Y9lQKBuEdl6to8SFTyKYJ00OUihNQRGeIoo=; b=gIxzspDbyfRUpcAOhCLoCaOBlc+Fa+N+KDxhy+wD3R5qqYIZMDkq2Abm6rhOynjbZh ERgeBTnDyTDuH8D6acUjXlbEytNWOd32kPCz1mmYwU3lxHmlBLkRkqGnFQ8Rr/ivOtTo jc5WDSNx3TbRF2exuEDEOQZNUg2M1qpMjZbYg= MIME-Version: 1.0 Received: by 10.101.42.12 with SMTP id u12mr5604723anj.156.1312892592255; Tue, 09 Aug 2011 05:23:12 -0700 (PDT) Received: by 10.100.131.3 with HTTP; Tue, 9 Aug 2011 05:23:12 -0700 (PDT) Date: Tue, 9 Aug 2011 14:23:12 +0200 Message-ID: Subject: libgtkmmsourceview-3.0 From: Giuseppe Penone To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=001636eee4e696f44d04aa11a0a7 X-Mailman-Approved-At: Wed, 10 Aug 2011 16:25:33 +0000 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2011 12:23:24 -0000 --001636eee4e696f44d04aa11a0a7 Content-Type: text/plain; charset=ISO-8859-1 Hi, I would like to port an app from pygtk2 to gtkmm3 but it seems to me that gtksourceview (that I need) is not supported in the bindings to gtk3, am I wrong? Thanks and best regards, Giuseppe. --001636eee4e696f44d04aa11a0a7 Content-Type: text/html; charset=ISO-8859-1 Hi,
I would like to port an app from pygtk2 to gtkmm3 but it seems to me that gtksourceview (that I need) is not supported in the bindings to gtk3, am I wrong?
Thanks and best regards,
Giuseppe.
--001636eee4e696f44d04aa11a0a7-- From qdlacz@gmail.com Thu Aug 11 15:15:49 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BF45F7501EF for ; Thu, 11 Aug 2011 15:15:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, TW_YG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tMZ9qrxO0-Rf for ; Thu, 11 Aug 2011 15:15:48 +0000 (UTC) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by menubar.gnome.org (Postfix) with ESMTP id E3451750115 for ; Thu, 11 Aug 2011 15:15:39 +0000 (UTC) Received: by iye7 with SMTP id 7so1070480iye.3 for ; Thu, 11 Aug 2011 08:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4O/WhUx1L4dz4mr77OWkvCkgXgpcDSSc8vn151Jbjh0=; b=RvesXgRddV/ZyYCie6elooUucDcH34b1CCmsQVamXmTq3Ht4JT/OW/54RtaPL3Y2bd TCwGWY9gdOLcqt0FwvGsOdbnRZiFn8dqizXZYX0RH8cXEP0pq7qDjjuPuwrikOBhFYXt MNY4Olh+/YhinQbKSLl7Qn9vB72vDnTfwdZN8= MIME-Version: 1.0 Received: by 10.43.50.7 with SMTP id vc7mr99609icb.526.1313075738074; Thu, 11 Aug 2011 08:15:38 -0700 (PDT) Received: by 10.42.144.131 with HTTP; Thu, 11 Aug 2011 08:15:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Aug 2011 17:15:38 +0200 Message-ID: Subject: Re: libgtkmmsourceview-3.0 From: Krzesimir Nowak To: Giuseppe Penone Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2011 15:15:50 -0000 2011/8/9 Giuseppe Penone : > Hi, > I would like to port an app from pygtk2 to gtkmm3 but it seems to me that > gtksourceview (that I need) is not supported in the bindings to gtk3, am I > wrong? > Thanks and best regards, > Giuseppe. Hi, Yes, you are - there are C++ bindings of gtksourceview-3.0. Here are some maybe useful details: http://mail.gnome.org/archives/gnome-announce-list/2011-April/msg00035.html > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > From ed.rippy@mindspring.com Fri Aug 12 01:11:05 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 981C475002F for ; Fri, 12 Aug 2011 01:11:05 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.769 X-Spam-Level: X-Spam-Status: No, score=-1.769 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, TW_BG=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uz+Qc-IqCGZr for ; Fri, 12 Aug 2011 01:11:04 +0000 (UTC) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by menubar.gnome.org (Postfix) with ESMTP id 55286750024 for ; Fri, 12 Aug 2011 01:10:55 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=FptzQvsn4n9peWarK0puiZoAL3Y95oUz0WKyVXIOBalu+8nL/moARE8fzMm8P0E1; h=Received:Subject:From:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [66.245.23.51] (helo=[192.168.2.2]) by elasmtp-spurfowl.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1QrgH0-0003yO-Eu for gtkmm-list@gnome.org; Thu, 11 Aug 2011 21:10:54 -0400 Subject: How to install binaries on Ubuntu Lucid? From: "Edward B. Rippy" To: gtkmm-list@gnome.org Content-Type: text/plain; charset="UTF-8" Date: Thu, 11 Aug 2011 18:10:54 -0700 Message-ID: <1313111454.2000.32.camel@Fanga2> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-ELNK-Trace: 7deeca656ac23b059c7f779228e2f6aeda0071232e20db4d700f1c0dc1adb90ea9128d642fc93afe350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.245.23.51 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 01:11:05 -0000 Well, the "Downloading" page says: >We will update this page soon as binary packages for gtkmm 3 become > available. Instructions for Debian say: 'apt-get install libgtkmm-2.4-dev' -- I tried that & my system sez: 'libgtkmm-2.4-dev is already the newest version.' Did the update get overlooked? Are the binaries not out yet? I looked in Synaptic & Ubuntu software Center, but couldn't find anything new. Anyway apologies for my ignorance, but would love to install latest (stable) gtkmm, preferably binary. Will install from source if nec. Help? Thanks, Ed Rippy From qdlacz@gmail.com Fri Aug 12 12:02:37 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EE6197501A4 for ; Fri, 12 Aug 2011 12:02:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.392 X-Spam-Level: X-Spam-Status: No, score=-2.392 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077, TW_TK=0.077, TW_YG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UxIIZWVv4T8f for ; Fri, 12 Aug 2011 12:02:34 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 94F86750101 for ; Fri, 12 Aug 2011 12:02:26 +0000 (UTC) Received: by gwb15 with SMTP id 15so1024422gwb.27 for ; Fri, 12 Aug 2011 05:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nHQ9zqBLi76dyFMx94vYij/Kvhm+pYLdtZCyMwVv4qw=; b=bHoFtN+J/vr0UYyM+r/nv3WxaoWOEJ9h/9gWB1nqWACgNzGMIes+ls6713a9TeiH+H 9KbBjSORJQt9yNbLHrVFxYT5KBM8nsVnvBOtNQWHQx6hsd2y4t0zh/a1F7KHDQxKxjF5 +EaasaCis7tZ3x4onKZ9Gf2Dmhl4MxUz7jEIk= MIME-Version: 1.0 Received: by 10.42.153.137 with SMTP id m9mr833578icw.191.1313150544442; Fri, 12 Aug 2011 05:02:24 -0700 (PDT) Received: by 10.42.8.20 with HTTP; Fri, 12 Aug 2011 05:02:24 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Aug 2011 14:02:24 +0200 Message-ID: Subject: Re: libgtkmmsourceview-3.0 From: Krzesimir Nowak To: Giuseppe Penone Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 12:02:37 -0000 2011/8/11 Giuseppe Penone : > Hi, > I didn't find libgtksourceviewmm-3.0 on ubuntu oneiric (alpha 3) repos, > while libgtkmm-3.0 exists > (as well as libgtksourceview-3.0), so I was misleaded. > I understand that the reason is that the package is still unstable, so > I'll have to compile and install the unstable version from the tarball. > > Thanks and best regards, > Giuseppe. > Hi, You haven't found gtksourceviewmm-3 on Ubuntu, because it is simply not yet packaged, not because it is unstable (which it is not). Seems that nothing so far depends on it yet. But I think that it will be packaged at some point (namely when new stable version of Nemiver depending on gtksourceviewmm-3 is going to be packaged.) > > On Thu, Aug 11, 2011 at 17:15, Krzesimir Nowak wrote: >> >> 2011/8/9 Giuseppe Penone : >> > Hi, >> > I would like to port an app from pygtk2 to gtkmm3 but it seems to me >> > that >> > gtksourceview (that I need) is not supported in the bindings to gtk3, am >> > I >> > wrong? >> > Thanks and best regards, >> > Giuseppe. >> >> Hi, >> >> Yes, you are - there are C++ bindings of gtksourceview-3.0. >> >> Here are some maybe useful details: >> >> http://mail.gnome.org/archives/gnome-announce-list/2011-April/msg00035.html >> >> > >> > _______________________________________________ >> > gtkmm-list mailing list >> > gtkmm-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > >> > > > From giuspen@gmail.com Thu Aug 11 15:24:59 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2957F7501CF for ; Thu, 11 Aug 2011 15:24:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.391 X-Spam-Level: X-Spam-Status: No, score=-2.391 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077, TW_TK=0.077, TW_YG=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ZSJy0GbievX for ; Thu, 11 Aug 2011 15:24:55 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id A087A750115 for ; Thu, 11 Aug 2011 15:24:47 +0000 (UTC) Received: by gyd10 with SMTP id 10so2065853gyd.27 for ; Thu, 11 Aug 2011 08:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MU39egMhEeTzMDdb9qWuuQD+2AiBhcu4gt2YP0IZorw=; b=Hqkq0QL6KwnRH6ORXLVLLLmUfrbSQxWFidtBOOu4AUdLZEEDDtUTEe6UhpnccYxyfH /0pen/aeVr6Mi1QsKyVv5t+eSzHrNkgyLA6Zy8sCN308+VBozooWfV1d/YHeo4VyzrV0 DkJYAS3FIeTiOET2mDprWFq2m/QOMJFP3Jw14= MIME-Version: 1.0 Received: by 10.101.133.22 with SMTP id k22mr1152423ann.90.1313076285678; Thu, 11 Aug 2011 08:24:45 -0700 (PDT) Received: by 10.100.168.9 with HTTP; Thu, 11 Aug 2011 08:24:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Aug 2011 17:24:45 +0200 Message-ID: Subject: Re: libgtkmmsourceview-3.0 From: Giuseppe Penone To: Krzesimir Nowak Content-Type: multipart/alternative; boundary=0016e68d378692263c04aa3c6539 X-Mailman-Approved-At: Fri, 12 Aug 2011 13:58:36 +0000 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2011 15:24:59 -0000 --0016e68d378692263c04aa3c6539 Content-Type: text/plain; charset=ISO-8859-1 Hi, I didn't find libgtksourceviewmm-3.0 on ubuntu oneiric (alpha 3) repos, while libgtkmm-3.0 exists (as well as libgtksourceview-3.0), so I was misleaded. I understand that the reason is that the package is still unstable, so I'll have to compile and install the unstable version from the tarball. Thanks and best regards, Giuseppe. On Thu, Aug 11, 2011 at 17:15, Krzesimir Nowak wrote: > 2011/8/9 Giuseppe Penone : > > Hi, > > I would like to port an app from pygtk2 to gtkmm3 but it seems to me that > > gtksourceview (that I need) is not supported in the bindings to gtk3, am > I > > wrong? > > Thanks and best regards, > > Giuseppe. > > Hi, > > Yes, you are - there are C++ bindings of gtksourceview-3.0. > > Here are some maybe useful details: > http://mail.gnome.org/archives/gnome-announce-list/2011-April/msg00035.html > > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > > --0016e68d378692263c04aa3c6539 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
I didn't find libgtksourceviewmm-3.0 on ubuntu oneiric (alpha 3)= repos, while libgtkmm-3.0 exists
(as well as libgtksourceview-3.0), so = I was misleaded.
I understand that the reason is that the package is sti= ll unstable, so
I'll have to compile and install the unstable version from the tarball.=

Thanks and best regards,
Giuseppe.



On Thu, Aug 11, 2011 at 17:15, Krzesimir Nowak <qdlacz@gmail.com> = wrote:
2011/8/9 Giuseppe Penone <giuspen@gmail.com>:
> Hi,
> I would like to port an app from pygtk2 to gtkmm3 but it seems to me t= hat
> gtksourceview (that I need) is not supported in the bindings to gtk3, = am I
> wrong?
> Thanks and best regards,
> Giuseppe.

Hi,

Yes, you are - there are C++ bindings of gtksourceview-3.0.

Here are some maybe useful details:
http://mail.gnome.org/archives/gnome-announc= e-list/2011-April/msg00035.html

>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>

--0016e68d378692263c04aa3c6539-- From merttugcu@hotmail.com Sat Aug 13 15:43:45 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A2290750214 for ; Sat, 13 Aug 2011 15:43:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -102.634 X-Spam-Level: X-Spam-Status: No, score=-102.634 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.812, SPF_PASS=-0.001, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IpKBZqqPXYZw for ; Sat, 13 Aug 2011 15:43:43 +0000 (UTC) X-Greylist: delayed 327 seconds by postgrey-1.32 at menubar.gnome.org; Sat, 13 Aug 2011 15:43:42 UTC Received: from col0-omc3-s13.col0.hotmail.com (col0-omc3-s13.col0.hotmail.com [65.55.34.151]) by menubar.gnome.org (Postfix) with ESMTP id D9D6075019F for ; Sat, 13 Aug 2011 15:43:34 +0000 (UTC) Received: from COL122-W42 ([65.55.34.135]) by col0-omc3-s13.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 13 Aug 2011 08:38:05 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_e6337a56-f622-42f8-b019-182b5903de74_" X-Originating-IP: [212.175.117.197] From: MERT TUGCU To: Subject: Building a Gtkmm apllication with Visual Studio 2010 Express Date: Sat, 13 Aug 2011 10:38:05 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 13 Aug 2011 15:38:05.0314 (UTC) FILETIME=[FE661620:01CC59CE] X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 15:43:45 -0000 --_e6337a56-f622-42f8-b019-182b5903de74_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=2C I would like to build the simple "Hello World" application with Visual Stud= io 2010 Express. I followed the instructions at http://live.gnome.org/gtkmm= /MSWindows/UsingMSVC=20 I also added the MSVC file to the property page of the project. However=2C = I haven't installed Platform SDK for Windows 7 yet. For the moment it is hu= ge to download. Is it necessary to download and install it? Here are the errors after I complied the project: 1>------ Build started: Project: CountPeople=2C Configuration: Debug Win32 = ------ 1> CountPeople.cpp 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: virt= ual __thiscall Gtk::Main::~Main(void)" (??1Main@Gtk@@UAE@XZ) referenced in = function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: stat= ic void __cdecl Gtk::Main::run(class Gtk::Window &)" (?run@Main@Gtk@@SAXAAV= Window@2@@Z) referenced in function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: __th= iscall Gtk::Window::Window(enum Gtk::WindowType)" (??0Window@Gtk@@QAE@W4Win= dowType@1@@Z) referenced in function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: __th= iscall Gtk::Main::Main(int &=2Cchar * * &=2Cbool)" (??0Main@Gtk@@QAE@AAHAAP= APAD_N@Z) referenced in function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "__declspec(d= llimport) public: __thiscall sigc::trackable::~trackable(void)" (__imp_??1t= rackable@sigc@@QAE@XZ) referenced in function "public: void __thiscall Gtk:= :Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ) 1>CountPeople.obj : error LNK2019: unresolved external symbol "__declspec(d= llimport) protected: virtual __thiscall Glib::ObjectBase::~ObjectBase(void)= " (__imp_??1ObjectBase@Glib@@MAE@XZ) referenced in function "public: void _= _thiscall Gtk::Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ) 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: virt= ual __thiscall Gtk::Window::~Window(void)" (??1Window@Gtk@@UAE@XZ) referenc= ed in function "public: void __thiscall Gtk::Window::`vbase destructor'(voi= d)" (??_DWindow@Gtk@@QAEXXZ) 1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscal= l Glib::ustring::ustring(char const *)" (??0ustring@Glib@@QAE@PBD@Z) refere= nced in function "void __cdecl Gtk::`dynamic initializer for 'PAPER_NAME_A3= ''(void)" (??__EPAPER_NAME_A3@Gtk@@YAXXZ) 1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscal= l Glib::ustring::~ustring(void)" (??1ustring@Glib@@QAE@XZ) referenced in fu= nction "void __cdecl Gtk::`dynamic atexit destructor for 'PAPER_NAME_A3''(v= oid)" (??__FPAPER_NAME_A3@Gtk@@YAXXZ) 1>C:\Projects\CountPeople\Debug\CountPeople.exe : fatal error LNK1120: 9 un= resolved externals =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 succeeded=2C 1 failed=2C 0 up-to-da= te=2C 0 skipped =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Am I getting this linking errors because of not installing Platform SDK or = of something else? Thanks in advance! = --_e6337a56-f622-42f8-b019-182b5903de74_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello=2C

I would like to build the simple "Hello World" application = with Visual Studio 2010 Express. I followed the instructions at http://live= .gnome.org/gtkmm/MSWindows/UsingMSVC
I also added the MSVC file to the = property page of the project. However=2C I haven't installed Platform SDK f= or Windows 7 yet. For the moment it is huge to download. Is it necessary to= download and install it?
Here are the errors after I complied the proje= ct:

1>=3B------ Build started: Project: CountPeople=2C Configurati= on: Debug Win32 ------
1>=3B =3B CountPeople.cpp
1>=3BCountPe= ople.obj : error LNK2019: unresolved external symbol "public: virtual __thi= scall Gtk::Main::~Main(void)" (??1Main@Gtk@@UAE@XZ) referenced in function = _main
1>=3BCountPeople.obj : error LNK2019: unresolved external symbol= "public: static void __cdecl Gtk::Main::run(class Gtk::Window &=3B)" (?= run@Main@Gtk@@SAXAAVWindow@2@@Z) referenced in function _main
1>=3BCou= ntPeople.obj : error LNK2019: unresolved external symbol "public: __thiscal= l Gtk::Window::Window(enum Gtk::WindowType)" (??0Window@Gtk@@QAE@W4WindowTy= pe@1@@Z) referenced in function _main
1>=3BCountPeople.obj : error LNK= 2019: unresolved external symbol "public: __thiscall Gtk::Main::Main(int &a= mp=3B=2Cchar * * &=3B=2Cbool)" (??0Main@Gtk@@QAE@AAHAAPAPAD_N@Z) referen= ced in function _main
1>=3BCountPeople.obj : error LNK2019: unresolved= external symbol "__declspec(dllimport) public: __thiscall sigc::trackable:= :~trackable(void)" (__imp_??1trackable@sigc@@QAE@XZ) referenced in function= "public: void __thiscall Gtk::Window::`vbase destructor'(void)" (??_DWindo= w@Gtk@@QAEXXZ)
1>=3BCountPeople.obj : error LNK2019: unresolved extern= al symbol "__declspec(dllimport) protected: virtual __thiscall Glib::Object= Base::~ObjectBase(void)" (__imp_??1ObjectBase@Glib@@MAE@XZ) referenced in f= unction "public: void __thiscall Gtk::Window::`vbase destructor'(void)" (??= _DWindow@Gtk@@QAEXXZ)
1>=3BCountPeople.obj : error LNK2019: unresolved= external symbol "public: virtual __thiscall Gtk::Window::~Window(void)" (?= ?1Window@Gtk@@UAE@XZ) referenced in function "public: void __thiscall Gtk::= Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ)
1>=3Bstdafx= .obj : error LNK2019: unresolved external symbol "public: __thiscall Glib::= ustring::ustring(char const *)" (??0ustring@Glib@@QAE@PBD@Z) referenced in = function "void __cdecl Gtk::`dynamic initializer for 'PAPER_NAME_A3''(void)= " (??__EPAPER_NAME_A3@Gtk@@YAXXZ)
1>=3Bstdafx.obj : error LNK2019: unr= esolved external symbol "public: __thiscall Glib::ustring::~ustring(void)" = (??1ustring@Glib@@QAE@XZ) referenced in function "void __cdecl Gtk::`dynami= c atexit destructor for 'PAPER_NAME_A3''(void)" (??__FPAPER_NAME_A3@Gtk@@YA= XXZ)
1>=3BC:\Projects\CountPeople\Debug\CountPeople.exe : fatal error = LNK1120: 9 unresolved externals
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 = succeeded=2C 1 failed=2C 0 up-to-date=2C 0 skipped =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D


Am I getting this linking errors because of not installin= g Platform SDK or of something else?
Thanks in advance!
<= /div> = --_e6337a56-f622-42f8-b019-182b5903de74_-- From jamf.gm@gmail.com Sat Aug 13 18:26:48 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B9699750184 for ; Sat, 13 Aug 2011 18:26:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.689 X-Spam-Level: X-Spam-Status: No, score=-2.689 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x27aM+BUJKXU for ; Sat, 13 Aug 2011 18:26:46 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id 6A5D775012B for ; Sat, 13 Aug 2011 18:26:37 +0000 (UTC) Received: by vxh11 with SMTP id 11so5840556vxh.27 for ; Sat, 13 Aug 2011 11:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=EbFCzr6hKTZkTTCpkjLxLgkifyJ5VdvXGEGJj/NOzZw=; b=IOxkRKsy2nCNQQceUASS4+/DD0kPwzyUe1Mxn1sOybbXhtHABSVny+RwLFyK5G9tI4 4d86X7orgP+2KyrHVYq9zEB9Kf57elB74s1v/okPTsj3hHXizcBP9J0tzJbgBhc6vUo3 kb3LYfb3ry1EJbxeKtaURr5Dpn1W39XQsd0NA= MIME-Version: 1.0 Received: by 10.52.172.178 with SMTP id bd18mr2267665vdc.61.1313259994415; Sat, 13 Aug 2011 11:26:34 -0700 (PDT) Received: by 10.220.71.10 with HTTP; Sat, 13 Aug 2011 11:26:34 -0700 (PDT) Date: Sat, 13 Aug 2011 20:26:34 +0200 Message-ID: Subject: Posible bug on action block_activate?? From: Juan Angel Moreno To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=bcaec51b9ac977017004aa672b56 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 18:26:49 -0000 --bcaec51b9ac977017004aa672b56 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi. I'm trying to block the activate signal from a Gtk::ToggleAction and afther some test, I come to this conclusion: This code seem that doesn't work, the action is not blocked Glib::RefPtr m_action; .... m_action =3D Gtk::ToggleAction::create("Enable", _("Enabled")); m_action_group->add(m_action, sigc::mem_fun(*this, &MyClass::onActionEnabled)); ... m_action->block_activate(); m_action->set_active(some_value); m_action->unblock_activate(); This code does the job: Glib::RefPtr m_action; sigc::connection m_conn_enabled; .... m_action =3D Gtk::ToggleAction::create("Enable", _("Enabled")); m_conn_enabled =3D m_action->signal_activate().connect(sigc::mem_fun(*this, &CMyClass::onActionEnabled) ); m_action_group->add(m_action); ... m_conn_enabled.block(); m_action->set_active(some_value); m_conn_enabled.unblock(); So, probably there is a bug on block_activate( ) / unblock_activate(). Greetings jamf --=20 Atentamente: Juan =C1ngel Moreno Fern=E1ndez ------------------------------ Gelide Frontend http://gelide.sf.net ------------------------------ --bcaec51b9ac977017004aa672b56 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi.

I'm trying to block the activate signal from a G= tk::ToggleAction and afther some test, I come to this conclusion:

This code seem that doesn't work, the action is not blo= cked
Glib::RefPtr<Gtk::ToggleAction> m_= action;
....
m_action =3D Gtk::ToggleAction::creat= e("Enable", _("Enabled"));
m_action_group->add(m_action,=A0sigc::mem_fun(*this, &am= p;MyClass::onActionEnabled));
...
m_action->bl= ock_activate();
m_action->set_active(some_value);
m_action->unblock_activate();

This code does the job:
Glib::RefPtr<Gtk::ToggleAction> m_action;
sigc::connec= tion m_conn_enabled;
....
m_action =3D Gtk::Toggle= Action::create("Enable", _("Enabled"));
m_conn_enabled =3D m_action->signal_activate().connect(sigc::m= em_fun(*this, &CMyClass::onActionEnabled)=A0);
m_action= _group->add(m_action);
...
m_conn_enabled.bloc= k();
m_action->set_active(some_value);
m_conn_= enabled.unblock();

So, pr= obably there is a bug on block_activate( ) / unblock_activate().

Greetings
jamf

--
Ate= ntamente:
Juan =C1ngel Moreno Fern=E1ndez
---------------------------= ---
=A0 Gelide Frontend
=A0 http://g= elide.sf.net
------------------------------
--bcaec51b9ac977017004aa672b56-- From merttugcu@hotmail.com Sat Aug 13 19:49:27 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1ECA7750195 for ; Sat, 13 Aug 2011 19:49:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -102.634 X-Spam-Level: X-Spam-Status: No, score=-102.634 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.812, SPF_PASS=-0.001, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riiswFmViV-b for ; Sat, 13 Aug 2011 19:49:25 +0000 (UTC) Received: from col0-omc3-s6.col0.hotmail.com (col0-omc3-s6.col0.hotmail.com [65.55.34.144]) by menubar.gnome.org (Postfix) with ESMTP id 9C94575012B for ; Sat, 13 Aug 2011 19:49:17 +0000 (UTC) Received: from COL122-W20 ([65.55.34.137]) by col0-omc3-s6.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 13 Aug 2011 12:49:15 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_b5b331a6-519d-4664-ad3d-9baa97ec6a51_" X-Originating-IP: [78.162.151.136] From: MERT TUGCU To: Subject: Building a Gtkmm apllication with Visual Studio 2010 Express Date: Sat, 13 Aug 2011 14:49:15 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 13 Aug 2011 19:49:15.0716 (UTC) FILETIME=[150EF040:01CC59F2] X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 19:49:27 -0000 --_b5b331a6-519d-4664-ad3d-9baa97ec6a51_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ok I installed the Windows 7 SDK=2C however I am getting this error now: 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microso= ft.Cpp.Win32.Targets(268=2C5): error : Required file "" is missing. Any ideas how to solve this build error? = --_b5b331a6-519d-4664-ad3d-9baa97ec6a51_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Ok I installed the Windows 7 SDK=2C however I am getting this error now:
1>=3BC:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win= 32\Microsoft.Cpp.Win32.Targets(268=2C5): error : Required file "" is missin= g.

Any ideas how to solve this build error?
= --_b5b331a6-519d-4664-ad3d-9baa97ec6a51_-- From merttugcu@hotmail.com Sat Aug 13 21:24:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB8E8750239 for ; Sat, 13 Aug 2011 21:24:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -102.634 X-Spam-Level: X-Spam-Status: No, score=-102.634 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.812, SPF_PASS=-0.001, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cNiF8WKCpqpZ for ; Sat, 13 Aug 2011 21:24:53 +0000 (UTC) Received: from col0-omc3-s16.col0.hotmail.com (col0-omc3-s16.col0.hotmail.com [65.55.34.154]) by menubar.gnome.org (Postfix) with ESMTP id B6F277501E0 for ; Sat, 13 Aug 2011 21:24:45 +0000 (UTC) Received: from COL122-W64 ([65.55.34.135]) by col0-omc3-s16.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 13 Aug 2011 14:24:44 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_26dfa40d-133a-4e0e-8ff0-43c640fc376f_" X-Originating-IP: [78.162.151.136] From: MERT TUGCU To: Subject: Building a Gtkmm apllication with Visual Studio 2010 Express Date: Sat, 13 Aug 2011 16:24:43 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 13 Aug 2011 21:24:44.0522 (UTC) FILETIME=[6BB15CA0:01CC59FF] X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 21:24:57 -0000 --_26dfa40d-133a-4e0e-8ff0-43c640fc376f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All day long (about 10 hours!) I have been trying to build "Hello World" bu= t no success. Now I installed Windows SDK 7.1 Added the property pages as i= nstructed! Now I am getting again linker errors: 1>------ Build started: Project: CountPeople=2C Configuration: Debug Win32 = ------ 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: virt= ual __thiscall Gtk::Main::~Main(void)" (??1Main@Gtk@@UAE@XZ) referenced in = function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: stat= ic void __cdecl Gtk::Main::run(class Gtk::Window &)" (?run@Main@Gtk@@SAXAAV= Window@2@@Z) referenced in function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: __th= iscall Gtk::Window::Window(enum Gtk::WindowType)" (??0Window@Gtk@@QAE@W4Win= dowType@1@@Z) referenced in function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: __th= iscall Gtk::Main::Main(int &=2Cchar * * &=2Cbool)" (??0Main@Gtk@@QAE@AAHAAP= APAD_N@Z) referenced in function _main 1>CountPeople.obj : error LNK2019: unresolved external symbol "__declspec(d= llimport) public: __thiscall sigc::trackable::~trackable(void)" (__imp_??1t= rackable@sigc@@QAE@XZ) referenced in function "public: void __thiscall Gtk:= :Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ) 1>CountPeople.obj : error LNK2019: unresolved external symbol "__declspec(d= llimport) protected: virtual __thiscall Glib::ObjectBase::~ObjectBase(void)= " (__imp_??1ObjectBase@Glib@@MAE@XZ) referenced in function "public: void _= _thiscall Gtk::Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ) 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: virt= ual __thiscall Gtk::Window::~Window(void)" (??1Window@Gtk@@UAE@XZ) referenc= ed in function "public: void __thiscall Gtk::Window::`vbase destructor'(voi= d)" (??_DWindow@Gtk@@QAEXXZ) 1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscal= l Glib::ustring::ustring(char const *)" (??0ustring@Glib@@QAE@PBD@Z) refere= nced in function "void __cdecl Gtk::`dynamic initializer for 'PAPER_NAME_A3= ''(void)" (??__EPAPER_NAME_A3@Gtk@@YAXXZ) 1>stdafx.obj : error LNK2019: unresolved external symbol "public: __thiscal= l Glib::ustring::~ustring(void)" (??1ustring@Glib@@QAE@XZ) referenced in fu= nction "void __cdecl Gtk::`dynamic atexit destructor for 'PAPER_NAME_A3''(v= oid)" (??__FPAPER_NAME_A3@Gtk@@YAXXZ) 1>C:\Projects\CountPeople\Debug\CountPeople.exe : fatal error LNK1120: 9 un= resolved externals =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 succeeded=2C 1 failed=2C 0 up-to-da= te=2C 0 skipped =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D What am I doing wrong here? Can someone please guide me? = --_26dfa40d-133a-4e0e-8ff0-43c640fc376f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
All day long (about 10 hours!) I have been trying to build "Hello World" bu= t no success. Now I installed Windows SDK 7.1 Added the property pages as i= nstructed! Now I am getting again linker errors:

1>=3B------ Build= started: Project: CountPeople=2C Configuration: Debug Win32 ------
1>= =3BCountPeople.obj : error LNK2019: unresolved external symbol "public: vir= tual __thiscall Gtk::Main::~Main(void)" (??1Main@Gtk@@UAE@XZ) referenced in= function _main
1>=3BCountPeople.obj : error LNK2019: unresolved exter= nal symbol "public: static void __cdecl Gtk::Main::run(class Gtk::Window &a= mp=3B)" (?run@Main@Gtk@@SAXAAVWindow@2@@Z) referenced in function _main
= 1>=3BCountPeople.obj : error LNK2019: unresolved external symbol "public:= __thiscall Gtk::Window::Window(enum Gtk::WindowType)" (??0Window@Gtk@@QAE@= W4WindowType@1@@Z) referenced in function _main
1>=3BCountPeople.obj := error LNK2019: unresolved external symbol "public: __thiscall Gtk::Main::M= ain(int &=3B=2Cchar * * &=3B=2Cbool)" (??0Main@Gtk@@QAE@AAHAAPAPAD_N@= Z) referenced in function _main
1>=3BCountPeople.obj : error LNK2019: = unresolved external symbol "__declspec(dllimport) public: __thiscall sigc::= trackable::~trackable(void)" (__imp_??1trackable@sigc@@QAE@XZ) referenced i= n function "public: void __thiscall Gtk::Window::`vbase destructor'(void)" = (??_DWindow@Gtk@@QAEXXZ)
1>=3BCountPeople.obj : error LNK2019: unresol= ved external symbol "__declspec(dllimport) protected: virtual __thiscall Gl= ib::ObjectBase::~ObjectBase(void)" (__imp_??1ObjectBase@Glib@@MAE@XZ) refer= enced in function "public: void __thiscall Gtk::Window::`vbase destructor'(= void)" (??_DWindow@Gtk@@QAEXXZ)
1>=3BCountPeople.obj : error LNK2019: = unresolved external symbol "public: virtual __thiscall Gtk::Window::~Window= (void)" (??1Window@Gtk@@UAE@XZ) referenced in function "public: void __this= call Gtk::Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ)
1&g= t=3Bstdafx.obj : error LNK2019: unresolved external symbol "public: __thisc= all Glib::ustring::ustring(char const *)" (??0ustring@Glib@@QAE@PBD@Z) refe= renced in function "void __cdecl Gtk::`dynamic initializer for 'PAPER_NAME_= A3''(void)" (??__EPAPER_NAME_A3@Gtk@@YAXXZ)
1>=3Bstdafx.obj : error LN= K2019: unresolved external symbol "public: __thiscall Glib::ustring::~ustri= ng(void)" (??1ustring@Glib@@QAE@XZ) referenced in function "void __cdecl Gt= k::`dynamic atexit destructor for 'PAPER_NAME_A3''(void)" (??__FPAPER_NAME_= A3@Gtk@@YAXXZ)
1>=3BC:\Projects\CountPeople\Debug\CountPeople.exe : fa= tal error LNK1120: 9 unresolved externals
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Build: 0 succeeded=2C 1 failed=2C 0 up-to-date=2C 0 skipped =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

What am I doing wrong here? Can someone please gu= ide me?
= --_26dfa40d-133a-4e0e-8ff0-43c640fc376f_-- From mlt@gmx.us Sun Aug 14 06:10:07 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8B5EB7500D2 for ; Sun, 14 Aug 2011 06:10:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.736 X-Spam-Level: X-Spam-Status: No, score=-1.736 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aPBQP2-H9Ogd for ; Sun, 14 Aug 2011 06:10:04 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 367A67500AE for ; Sun, 14 Aug 2011 06:09:55 +0000 (UTC) Received: (qmail invoked by alias); 14 Aug 2011 06:09:53 -0000 Received: from c-76-17-238-114.hsd1.mn.comcast.net (EHLO [192.168.0.100]) [76.17.238.114] by mail.gmx.com (mp-us006) with SMTP; 14 Aug 2011 02:09:53 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX19Wt2M5BL9WEzmqPGCBtXZQzbXdmj8c6MiNOczv4/ 18nzTFALLmiJcC Message-ID: <4E4766AE.9040408@gmx.us> Date: Sun, 14 Aug 2011 01:09:50 -0500 From: Mikhail Titov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Building a Gtkmm apllication with Visual Studio 2010 Express References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 06:10:07 -0000 All looks like you don't link against necessary libraries. What I would do is to try to grep dot lib files for these (like Main@Gtk@@UAE@XZ) names. I don't know what version of GTKMM you are trying to use but for instance I have this symbol in gtkmm-3.0-vc90-d.lib . Yours may be named differently. Make sure that you link against such library. Pay attention to build type i.e. debug (-d) or release (no extra suffix). I'm not on win32 at the moment but here is what I have for gtkmm 3. mlt@nb:~$ grep -rsli 'main@gtk@@uae@xz' /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/CMakeFiles/gtkmm-3.0.dir/main.cc.obj /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/gtkmm-3.0-vc90-d.dll /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/gtkmm-3.0-vc90-d.exp /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/gtkmm-3.0-vc90-d.ilk /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/gtkmm-3.0-vc90-d.lib /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/gtkmm-3.0-vc90-d.pdb /media/SAMSUNG/obs/build/gtkmm/gtk/gtkmm/gtkmm.def Mikhail On 08/13/2011 04:24 PM, MERT TUGCU wrote: > All day long (about 10 hours!) I have been trying to build "Hello > World" but no success. Now I installed Windows SDK 7.1 Added the > property pages as instructed! Now I am getting again linker errors: > > 1>------ Build started: Project: CountPeople, Configuration: Debug > Win32 ------ > 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: > virtual __thiscall Gtk::Main::~Main(void)" (??1Main@Gtk@@UAE@XZ) > referenced in function _main > 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: > static void __cdecl Gtk::Main::run(class Gtk::Window &)" > (?run@Main@Gtk@@SAXAAVWindow@2@@Z) referenced in function _main > 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: > __thiscall Gtk::Window::Window(enum Gtk::WindowType)" > (??0Window@Gtk@@QAE@W4WindowType@1@@Z) referenced in function _main > 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: > __thiscall Gtk::Main::Main(int &,char * * &,bool)" > (??0Main@Gtk@@QAE@AAHAAPAPAD_N@Z) referenced in function _main > 1>CountPeople.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: __thiscall > sigc::trackable::~trackable(void)" (__imp_??1trackable@sigc@@QAE@XZ) > referenced in function "public: void __thiscall Gtk::Window::`vbase > destructor'(void)" (??_DWindow@Gtk@@QAEXXZ) > 1>CountPeople.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) protected: virtual __thiscall > Glib::ObjectBase::~ObjectBase(void)" > (__imp_??1ObjectBase@Glib@@MAE@XZ) referenced in function "public: > void __thiscall Gtk::Window::`vbase destructor'(void)" > (??_DWindow@Gtk@@QAEXXZ) > 1>CountPeople.obj : error LNK2019: unresolved external symbol "public: > virtual __thiscall Gtk::Window::~Window(void)" (??1Window@Gtk@@UAE@XZ) > referenced in function "public: void __thiscall Gtk::Window::`vbase > destructor'(void)" (??_DWindow@Gtk@@QAEXXZ) > 1>stdafx.obj : error LNK2019: unresolved external symbol "public: > __thiscall Glib::ustring::ustring(char const *)" > (??0ustring@Glib@@QAE@PBD@Z) referenced in function "void __cdecl > Gtk::`dynamic initializer for 'PAPER_NAME_A3''(void)" > (??__EPAPER_NAME_A3@Gtk@@YAXXZ) > 1>stdafx.obj : error LNK2019: unresolved external symbol "public: > __thiscall Glib::ustring::~ustring(void)" (??1ustring@Glib@@QAE@XZ) > referenced in function "void __cdecl Gtk::`dynamic atexit destructor > for 'PAPER_NAME_A3''(void)" (??__FPAPER_NAME_A3@Gtk@@YAXXZ) > 1>C:\Projects\CountPeople\Debug\CountPeople.exe : fatal error LNK1120: > 9 unresolved externals > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > What am I doing wrong here? Can someone please guide me? > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From merttugcu@hotmail.com Sun Aug 14 09:01:24 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0C5C77500D4 for ; Sun, 14 Aug 2011 09:01:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -100.994 X-Spam-Level: X-Spam-Status: No, score=-100.994 tagged_above=-999 required=2 tests=[BAYES_20=-0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.071, SPF_PASS=-0.001, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gzHDIJwAXzCD for ; Sun, 14 Aug 2011 09:01:22 +0000 (UTC) Received: from col0-omc3-s15.col0.hotmail.com (col0-omc3-s15.col0.hotmail.com [65.55.34.153]) by menubar.gnome.org (Postfix) with ESMTP id 1567A750092 for ; Sun, 14 Aug 2011 09:01:13 +0000 (UTC) Received: from COL122-W10 ([65.55.34.136]) by col0-omc3-s15.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 14 Aug 2011 02:01:12 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_488d042b-8244-456e-8c52-f0264ee422e7_" X-Originating-IP: [88.232.106.217] From: MERT TUGCU To: Subject: Re: Building a Gtkmm apllication with Visual Studio 2010 Express Date: Sun, 14 Aug 2011 04:01:11 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 14 Aug 2011 09:01:12.0596 (UTC) FILETIME=[B7536D40:01CC5A60] X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 09:01:24 -0000 --_488d042b-8244-456e-8c52-f0264ee422e7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I think all the necessary lib files are listed in the property sheet provid= ed with the installation package. I double checked and lib files are listed= at the "Additional Dependencies" section of the IDE as below: $(GTKMM64_BASEPATH)\lib\gtkmm-vc100-d-2_4.lib $(GTKMM64_BASEPATH)\lib\gdkmm-vc100-d-2_4.lib $(GTKMM64_BASEPATH)\lib\atkmm-vc100-d-1_6.lib $(GTKMM64_BASEPATH)\lib\pangomm-vc100-d-1_4.lib $(GTKMM64_BASEPATH)\lib\cairomm-vc100-d-1_0.lib $(GTKMM64_BASEPATH)\lib\giomm-vc100-d-2_4.lib $(GTKMM64_BASEPATH)\lib\glibmm-vc100-d-2_4.lib $(GTKMM64_BASEPATH)\lib\sigc-vc100-d-2_0.lib $(GTKMM64_BASEPATH)\lib\glade-2.0.lib $(GTKMM64_BASEPATH)\lib\libxml2.lib $(GTKMM64_BASEPATH)\lib\gtk-win32-2.0.lib $(GTKMM64_BASEPATH)\lib\gdk-win32-2.0.lib $(GTKMM64_BASEPATH)\lib\gdk_pixbuf-2.0.lib $(GTKMM64_BASEPATH)\lib\atk-1.0.lib $(GTKMM64_BASEPATH)\lib\pangowin32-1.0.lib $(GTKMM64_BASEPATH)\lib\pangocairo-1.0.lib $(GTKMM64_BASEPATH)\lib\pango-1.0.lib $(GTKMM64_BASEPATH)\lib\cairo.lib $(GTKMM64_BASEPATH)\lib\gio-2.0.lib $(GTKMM64_BASEPATH)\lib\gobject-2.0.lib $(GTKMM64_BASEPATH)\lib\gmodule-2.0.lib $(GTKMM64_BASEPATH)\lib\glib-2.0.lib $(GTKMM64_BASEPATH)\lib\intl.lib Also $(GTKMM64_BASEPATH) is defined as c:\gtkmm64 at the "Macros" section. = The libraries should be linked properly. There has to be something missing = at the configuration of the project. I am still getting the same linker err= ors.=20 = --_488d042b-8244-456e-8c52-f0264ee422e7_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I think all the necessary lib files are listed in the property sheet provid= ed with the installation package. I double checked and lib files are listed= at the "Additional Dependencies" section of the IDE as below:
$(GTKMM64= _BASEPATH)\lib\gtkmm-vc100-d-2_4.lib
$(GTKMM64_BASEPATH)\lib\gdkmm-vc100= -d-2_4.lib
$(GTKMM64_BASEPATH)\lib\atkmm-vc100-d-1_6.lib
$(GTKMM64_BA= SEPATH)\lib\pangomm-vc100-d-1_4.lib
$(GTKMM64_BASEPATH)\lib\cairomm-vc10= 0-d-1_0.lib
$(GTKMM64_BASEPATH)\lib\giomm-vc100-d-2_4.lib
$(GTKMM64_B= ASEPATH)\lib\glibmm-vc100-d-2_4.lib
$(GTKMM64_BASEPATH)\lib\sigc-vc100-d= -2_0.lib
$(GTKMM64_BASEPATH)\lib\glade-2.0.lib
$(GTKMM64_BASEPATH)\li= b\libxml2.lib
$(GTKMM64_BASEPATH)\lib\gtk-win32-2.0.lib
$(GTKMM64_BAS= EPATH)\lib\gdk-win32-2.0.lib
$(GTKMM64_BASEPATH)\lib\gdk_pixbuf-2.0.lib<= br>$(GTKMM64_BASEPATH)\lib\atk-1.0.lib
$(GTKMM64_BASEPATH)\lib\pangowin3= 2-1.0.lib
$(GTKMM64_BASEPATH)\lib\pangocairo-1.0.lib
$(GTKMM64_BASEPA= TH)\lib\pango-1.0.lib
$(GTKMM64_BASEPATH)\lib\cairo.lib
$(GTKMM64_BAS= EPATH)\lib\gio-2.0.lib
$(GTKMM64_BASEPATH)\lib\gobject-2.0.lib
$(GTKM= M64_BASEPATH)\lib\gmodule-2.0.lib
$(GTKMM64_BASEPATH)\lib\glib-2.0.lib$(GTKMM64_BASEPATH)\lib\intl.lib

Also $(GTKMM64_BASEPATH) is defin= ed as c:\gtkmm64 at the "Macros" section. The libraries should be linked pr= operly. There has to be something missing at the configuration of the proje= ct. I am still getting the same linker errors.
= --_488d042b-8244-456e-8c52-f0264ee422e7_-- From merttugcu@hotmail.com Sun Aug 14 10:14:38 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D0A1575027F for ; Sun, 14 Aug 2011 10:14:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -102.893 X-Spam-Level: X-Spam-Status: No, score=-102.893 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.071, SPF_PASS=-0.001, TW_TK=0.077, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oZvmSMtC44ZL for ; Sun, 14 Aug 2011 10:14:35 +0000 (UTC) Received: from col0-omc3-s5.col0.hotmail.com (col0-omc3-s5.col0.hotmail.com [65.55.34.143]) by menubar.gnome.org (Postfix) with ESMTP id 88A8E7500D4 for ; Sun, 14 Aug 2011 10:14:27 +0000 (UTC) Received: from COL122-W18 ([65.55.34.137]) by col0-omc3-s5.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 14 Aug 2011 03:14:25 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_96dfddf1-e38e-4c95-a9d5-bcec026193b2_" X-Originating-IP: [88.232.106.217] From: MERT TUGCU To: Subject: Re: Building a Gtkmm apllication with Visual Studio 2010 Express Date: Sun, 14 Aug 2011 05:14:25 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 14 Aug 2011 10:14:25.0952 (UTC) FILETIME=[F1F85A00:01CC5A6A] X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 10:14:39 -0000 --_96dfddf1-e38e-4c95-a9d5-bcec026193b2_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I uninstalled the 64bit version and installed 32bit version of gtkmm. It wo= rked! I am sure in Visual Studio 2010 Express=2C you need to configure addi= tional steps for 64 bit version.=20 For instance=2C I saw kernel32.lib in the dependencies. I am sure it is for= 32bit.=20 = --_96dfddf1-e38e-4c95-a9d5-bcec026193b2_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I uninstalled the 64bit version and installed 32bit version of gtkmm. It wo= rked! I am sure in Visual Studio 2010 Express=2C you need to configure addi= tional steps for 64 bit version.
For instance=2C I saw kernel32.lib in = the dependencies. I am sure it is for 32bit.
= --_96dfddf1-e38e-4c95-a9d5-bcec026193b2_-- From darkiiiiii@gmail.com Sat Aug 13 00:04:36 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A570F75000B for ; Sat, 13 Aug 2011 00:04:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.688 X-Spam-Level: X-Spam-Status: No, score=-2.688 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AFv9alumCi4d for ; Sat, 13 Aug 2011 00:04:34 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 8BD9175000A for ; Sat, 13 Aug 2011 00:04:26 +0000 (UTC) Received: by ywo32 with SMTP id 32so1966182ywo.27 for ; Fri, 12 Aug 2011 17:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=EXht1NVJaSQLrinCH1R5K3rsuV0XyzN0Ovu86e8haoc=; b=H/EK+SNCxy0GUR5SeGyV/mDgUqQMPogU2XBaeL/UVyy9W8jzglRqK2uWxDJoIasqU7 IFfQZPEQdRqjeDCvSqUhIwMwQ8dJ5QhZcXCbzR1ZekA/PK2Cyp428GeG2wM2cnLyncS8 l1FHUJ5+SJBdlCADVHNPLEZlVgHeJXA1j+9Bk= MIME-Version: 1.0 Received: by 10.101.186.16 with SMTP id n16mr1505931anp.141.1313193864686; Fri, 12 Aug 2011 17:04:24 -0700 (PDT) Received: by 10.101.90.20 with HTTP; Fri, 12 Aug 2011 17:04:24 -0700 (PDT) Date: Sat, 13 Aug 2011 01:04:24 +0100 Message-ID: Subject: gstreamermm on windows From: lecas malecas To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=0016368e23aad36d6504aa57c5e5 X-Mailman-Approved-At: Mon, 15 Aug 2011 01:29:15 +0000 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 00:04:36 -0000 --0016368e23aad36d6504aa57c5e5 Content-Type: text/plain; charset=ISO-8859-1 Hey, I've searched a bit but didn't find anything. Is there a place where you could get gstreamermm on windows? (or that just isn't possible?) --0016368e23aad36d6504aa57c5e5 Content-Type: text/html; charset=ISO-8859-1 Hey, I've searched a bit but didn't find anything. Is there a place where you could get gstreamermm on windows? (or that just isn't possible?) --0016368e23aad36d6504aa57c5e5-- From bounces@nabble.com Sat Aug 13 07:05:31 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 42F627500CB for ; Sat, 13 Aug 2011 07:05:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.625 X-Spam-Level: X-Spam-Status: No, score=-2.625 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RP_MATCHES_RCVD=-0.812, SPF_PASS=-0.001, TW_TK=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n3uuAROZ7wzG for ; Sat, 13 Aug 2011 07:05:29 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by menubar.gnome.org (Postfix) with ESMTP id 2B5097500C2 for ; Sat, 13 Aug 2011 07:05:20 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qs8HX-0006m2-14 for gtkmm-list@gnome.org; Sat, 13 Aug 2011 00:05:19 -0700 Message-ID: <32254894.post@talk.nabble.com> Date: Sat, 13 Aug 2011 00:05:19 -0700 (PDT) From: MatrixXXX To: gtkmm-list@gnome.org Subject: Selection color in TreeView MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: xxx@koszmail.pl X-Mailman-Approved-At: Mon, 15 Aug 2011 01:29:15 +0000 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 07:05:31 -0000 Hi, How Can I change selection color in TreeView? http://img155.imageshack.us/img155/8104/22291831.png I want to do it in C++ code, not in file where style is saved. -- View this message in context: http://old.nabble.com/Selection-color-in-TreeView-tp32254894p32254894.html Sent from the Gtkmm mailing list archive at Nabble.com. From jaalburquerque@gmail.com Mon Aug 15 15:57:09 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F3F147501EB for ; Mon, 15 Aug 2011 15:57:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4RDEpDKoVeai for ; Mon, 15 Aug 2011 15:57:06 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 4D2AB7502C6 for ; Mon, 15 Aug 2011 15:56:58 +0000 (UTC) Received: by gxk28 with SMTP id 28so4681560gxk.27 for ; Mon, 15 Aug 2011 08:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=4tzO1yyGNQGf9JiTud9+YRXA43lY1tfsbmAupD1qyZY=; b=fkU0i+7bbRJOluQwRbH3eHu+EATTel9I8ehyv/jrEOaOjKIRfyEewMuuhSHaI98Xbh coV8AbzbLhYonhQoi0NPO9bOkBlTDCN7NjR5lPhRsmB4AXnu/5eiaScZyaKxuIdQZq9A AYLlZG6/Wsx2Jim1JADrdmYJ1QSONfBAONfTM= Received: by 10.236.177.65 with SMTP id c41mr12777492yhm.127.1313423816550; Mon, 15 Aug 2011 08:56:56 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id f4sm4989148yhn.83.2011.08.15.08.56.54 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 08:56:55 -0700 (PDT) Subject: Re: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: lecas malecas Date: Mon, 15 Aug 2011 11:56:53 -0400 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.4- Content-Transfer-Encoding: 8bit Message-ID: <1313423815.8214.1.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 15:57:09 -0000 On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > Hey, I've searched a bit but didn't find anything. Is there a place > where you could get gstreamermm on windows? (or that just isn't > possible?) It's not that it's not possible, it's just that it hasn't been done. This is something that has been planned for a while; I just haven't had much time to work on it. -- José From jaalburquerque@gmail.com Mon Aug 15 17:38:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9BA6675016A for ; Mon, 15 Aug 2011 17:38:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lDKAHIyY2dzh for ; Mon, 15 Aug 2011 17:38:54 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id D7DDC7501AA for ; Mon, 15 Aug 2011 17:38:45 +0000 (UTC) Received: by ywo32 with SMTP id 32so3271732ywo.27 for ; Mon, 15 Aug 2011 10:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=FYDwWybCqLpIJ6xFt/Zpaoa7pqC1Z8XYNulfTumN+zQ=; b=wI5CO+Z0v5t8co0pwXHXQNVAa9K/syglpOEtMGE5yGz64Dp3SF3xvt8Hom/XJYiR/k +vtSB+63RTQzLihsM6a0CFJB92nweQCaEGzxozTJ0lgYR3xTCw1QwD8Mqv6lg203ZG9s kt+WtSrbh+1XNxBFniqydSdnWn7NsNfZbpKwg= Received: by 10.236.77.66 with SMTP id c42mr13063531yhe.90.1313429924228; Mon, 15 Aug 2011 10:38:44 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id b24sm262647yhm.25.2011.08.15.10.38.42 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 10:38:43 -0700 (PDT) Subject: Re: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: lecas malecas Date: Mon, 15 Aug 2011 13:38:42 -0400 In-Reply-To: References: <1313423815.8214.1.camel@jose-desktop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.4- Content-Transfer-Encoding: 8bit Message-ID: <1313429923.8214.8.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 17:38:56 -0000 On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > Ok, thanks, I'll take a look at the c version then. It wont be long until a version will be available for windows. I suggest you look for upcoming releases that report that. Sorry for not being able to be more specific. > > > gtkmm3 isn't available as well, for the same reason I guess? gtkmm3 should be available some time in the future also. > > 2011/8/15 José Alburquerque > > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > Hey, I've searched a bit but didn't find anything. Is there > a place > > where you could get gstreamermm on windows? (or that just > isn't > > possible?) > > > It's not that it's not possible, it's just that it hasn't been > done. > This is something that has been planned for a while; I just > haven't had > much time to work on it. > > -- > José > > > -- José From mlt@gmx.us Mon Aug 15 18:20:22 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D77175016A for ; Mon, 15 Aug 2011 18:20:22 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZGRXf0edHidO for ; Mon, 15 Aug 2011 18:20:20 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id CC2C0750117 for ; Mon, 15 Aug 2011 18:20:11 +0000 (UTC) Received: (qmail invoked by alias); 15 Aug 2011 18:20:09 -0000 Received: from bbe200951282.cfans.umn.edu (EHLO BBE200951282) [134.84.209.6] by mail.gmx.com (mp-us001) with SMTP; 15 Aug 2011 14:20:09 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX19RLKgVzMFR6NX8N+SS7u1hoKJQGHLiTUjv3+Lob4 YbYAbapXmK1Ygu From: "Mikhail Titov" To: =?UTF-8?Q?'Jos=C3=A9_Alburquerque'?= , "'lecas malecas'" References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> In-Reply-To: <1313429923.8214.8.camel@jose-desktop> Subject: RE: gstreamermm on windows Date: Mon, 15 Aug 2011 13:20:08 -0500 Message-ID: <001201cc5b77$f73f2c10$e5bd8430$@us> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxbcjdaUS8TQqV1T+WEDWDxULyvqgAApqtA Content-Language: en-us X-Y-GMX-Trusted: 0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 18:20:22 -0000 Since you brought up this topic, I'm sloooowly working on CMake build of = gtkmm 3 on Win32 platform (only) using MSVC++ Express = https://github.com/mlt/gtkmm. I'm asking not to fork yet as I'm in the process of adding CMake stuff = to pull corresponding source archives from web and I may force pushes = into repo at this stage. Non-committed CMake script later creates hard = links (NTFS is a must, won't work on FAT32) within unpacked source = archives and uses CMakeLists.txt files from repo to build all the stuff. = Right now corresponding sources should be manually unpacked into folders = in repo. It uses underlying binaries from OBS that should reside in = C:\obs\ . I added some wiki notes a while ago about the whole approach. I was able to successfully build GTKMM 3 from source distribution with = gtk+ from git somewhat by hand with CMake. Now I'd like to make it more = flexible. However you can give it a try now if you want to start writing = a code with MS VC++ that uses gtkmm 3 on win32 before official release. = Note that if you are using gcc, you can get gtkmm 3 binaries for win32 = from openSUSE Build System any time. I'm also interested in MM part for xml2 & gstreamer! Unfortunately I = know nothing about gstreamer yet only that it somehow bridges with = DirectShow that I heavily use to capture stuff. Mikhail > -----Original Message----- > From: gtkmm-list-bounces@gnome.org = [mailto:gtkmm-list-bounces@gnome.org] On > Behalf Of Jose Alburquerque > Sent: Monday, August 15, 2011 12:39 PM > To: lecas malecas > Cc: gtkmm-list@gnome.org > Subject: Re: gstreamermm on windows >=20 > On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > > Ok, thanks, I'll take a look at the c version then. >=20 > It wont be long until a version will be available for windows. I > suggest you look for upcoming releases that report that. Sorry for = not > being able to be more specific. >=20 > > > > > > gtkmm3 isn't available as well, for the same reason I guess? >=20 > gtkmm3 should be available some time in the future also. >=20 > > > > 2011/8/15 Jos=C3=A9 Alburquerque > > > > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > > Hey, I've searched a bit but didn't find anything. Is = there > > a place > > > where you could get gstreamermm on windows? (or that just > > isn't > > > possible?) > > > > > > It's not that it's not possible, it's just that it hasn't = been > > done. > > This is something that has been planned for a while; I just > > haven't had > > much time to work on it. > > > > -- > > Jos=C3=A9 > > > > > > >=20 > -- > Jos=C3=A9 >=20 > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From jaalburquerque@gmail.com Mon Aug 15 19:57:46 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2D02D7500F9 for ; Mon, 15 Aug 2011 19:57:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lMD6MR73DYiT for ; Mon, 15 Aug 2011 19:57:43 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id AD27575004D for ; Mon, 15 Aug 2011 19:57:35 +0000 (UTC) Received: by gwb15 with SMTP id 15so3104558gwb.27 for ; Mon, 15 Aug 2011 12:57:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=99zaQVHWn1jtKs1XFdtp2L30wZ6jcIabxvcuwDiuM8I=; b=mRJNgsqxA8HaN0FshCw4+TT6LUokJjt3n9COzYIdEcAOXqnhM4ImGs8Hsv/dEHP0tm A8W1NO4RR/0YWQuAvsgX/xNNKq37ub3sQZd8nVAbH1z1SDqcZLXVHfQ9ZtS6VAzAYCdQ LLyfdU0JZy9BrnKniAloxNJLVThGFNSDSGyLo= Received: by 10.150.60.11 with SMTP id i11mr5161564yba.339.1313438253876; Mon, 15 Aug 2011 12:57:33 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id c63sm4444776yhe.60.2011.08.15.12.57.32 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 12:57:33 -0700 (PDT) Subject: RE: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Mikhail Titov Date: Mon, 15 Aug 2011 15:57:31 -0400 In-Reply-To: <001201cc5b77$f73f2c10$e5bd8430$@us> References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.4- Content-Transfer-Encoding: 8bit Message-ID: <1313438253.21770.4.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 19:57:46 -0000 On Mon, 2011-08-15 at 13:20 -0500, Mikhail Titov wrote: > I'm also interested in MM part for xml2 & gstreamer! Unfortunately I know nothing about gstreamer yet only that it somehow bridges with DirectShow that I heavily use to capture stuff. The following wiki describes how to build gstreamer with MinGW if that helps any: http://gstreamer.freedesktop.org/wiki/BuildGStreamerWithMinGWAndMsys > > Mikhail > > > > -----Original Message----- > > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] On > > Behalf Of Jose Alburquerque > > Sent: Monday, August 15, 2011 12:39 PM > > To: lecas malecas > > Cc: gtkmm-list@gnome.org > > Subject: Re: gstreamermm on windows > > > > On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > > > Ok, thanks, I'll take a look at the c version then. > > > > It wont be long until a version will be available for windows. I > > suggest you look for upcoming releases that report that. Sorry for not > > being able to be more specific. > > > > > > > > > > > gtkmm3 isn't available as well, for the same reason I guess? > > > > gtkmm3 should be available some time in the future also. > > > > > > > > 2011/8/15 José Alburquerque > > > > > > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > > > Hey, I've searched a bit but didn't find anything. Is there > > > a place > > > > where you could get gstreamermm on windows? (or that just > > > isn't > > > > possible?) > > > > > > > > > It's not that it's not possible, it's just that it hasn't been > > > done. > > > This is something that has been planned for a while; I just > > > haven't had > > > much time to work on it. > > > > > > -- > > > José > > > > > > > > > > > > > -- > > José > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > -- José From mlt@gmx.us Mon Aug 15 20:07:23 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA0047500F9 for ; Mon, 15 Aug 2011 20:07:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.39 X-Spam-Level: X-Spam-Status: No, score=0.39 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FAKE_HELO_MAIL_COM_DOM=2.136, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yrh+KMLLDoiT for ; Mon, 15 Aug 2011 20:07:20 +0000 (UTC) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 7AC4B75004D for ; Mon, 15 Aug 2011 20:07:11 +0000 (UTC) Received: (qmail invoked by alias); 15 Aug 2011 20:07:09 -0000 Received: from bbe200951282.cfans.umn.edu (EHLO BBE200951282) [134.84.209.6] by mail.gmx.com (mp-us007) with SMTP; 15 Aug 2011 16:07:09 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX1+STR8o8CySOR48HTLhLaK+OJgpx1fMUEFrpfL536 BfDZF0EwD3e+H4 From: "Mikhail Titov" To: =?UTF-8?Q?'Jos=C3=A9_Alburquerque'?= References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438253.21770.4.camel@jose-desktop> In-Reply-To: <1313438253.21770.4.camel@jose-desktop> Subject: RE: gstreamermm on windows Date: Mon, 15 Aug 2011 15:07:09 -0500 Message-ID: <001e01cc5b86$ea24fe60$be6efb20$@us> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxbhZQTbQSKkZLBS8WiZSZjc50rYgAALvFw Content-Language: en-us X-Y-GMX-Trusted: 0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 20:07:24 -0000 I can reuse binary from = http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_= 11.4/noarch/ , however I can't build gstreamermm with mingw as I intent = to use it with MS VC++. But anyway it is not an urgent thing for me. = Perhaps later if I have some time I'll take a look into MM part. Mikhail > -----Original Message----- > From: Jos=C3=A9 Alburquerque [mailto:jaalburquerque@gmail.com] > Sent: Monday, August 15, 2011 2:58 PM > To: Mikhail Titov > Cc: 'lecas malecas'; gtkmm-list@gnome.org > Subject: RE: gstreamermm on windows >=20 > On Mon, 2011-08-15 at 13:20 -0500, Mikhail Titov wrote: > > I'm also interested in MM part for xml2 & gstreamer! Unfortunately I = know > nothing about gstreamer yet only that it somehow bridges with = DirectShow > that I heavily use to capture stuff. >=20 > The following wiki describes how to build gstreamer with MinGW if that > helps any: >=20 > http://gstreamer.freedesktop.org/wiki/BuildGStreamerWithMinGWAndMsys >=20 > > > > Mikhail > > > > > > > -----Original Message----- > > > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list- > bounces@gnome.org] On > > > Behalf Of Jose Alburquerque > > > Sent: Monday, August 15, 2011 12:39 PM > > > To: lecas malecas > > > Cc: gtkmm-list@gnome.org > > > Subject: Re: gstreamermm on windows > > > > > > On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > > > > Ok, thanks, I'll take a look at the c version then. > > > > > > It wont be long until a version will be available for windows. I > > > suggest you look for upcoming releases that report that. Sorry = for not > > > being able to be more specific. > > > > > > > > > > > > > > > gtkmm3 isn't available as well, for the same reason I guess? > > > > > > gtkmm3 should be available some time in the future also. > > > > > > > > > > > 2011/8/15 Jos=C3=A9 Alburquerque > > > > > > > > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > > > > Hey, I've searched a bit but didn't find anything. Is = there > > > > a place > > > > > where you could get gstreamermm on windows? (or that = just > > > > isn't > > > > > possible?) > > > > > > > > > > > > It's not that it's not possible, it's just that it = hasn't > been > > > > done. > > > > This is something that has been planned for a while; I = just > > > > haven't had > > > > much time to work on it. > > > > > > > > -- > > > > Jos=C3=A9 > > > > > > > > > > > > > > > > > > -- > > > Jos=C3=A9 > > > > > > _______________________________________________ > > > gtkmm-list mailing list > > > gtkmm-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > >=20 > -- > Jos=C3=A9 From jaalburquerque@gmail.com Mon Aug 15 20:38:53 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 237CE75004D for ; Mon, 15 Aug 2011 20:38:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jfZzYlbR7vHa for ; Mon, 15 Aug 2011 20:38:48 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id C503575008E for ; Mon, 15 Aug 2011 20:38:40 +0000 (UTC) Received: by gwb15 with SMTP id 15so3134269gwb.27 for ; Mon, 15 Aug 2011 13:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=FmwE6tKb9r3HFEMDFT03gZvR6EhEWqXepcdS9FoKw0Y=; b=mXrOr9eR1A+xA6Jgaaga7qpLyz9sKPnW4DC2dcouSUrNAUQ4veTxcNNiFygYcWWhEA K3dpyk1KEQXAIeRDTV2q2siiSRvAaFp+Y8dK22i+WH9gEdeCTspPC+CqE83Y7hS0WOof HKsSWu8P1FA07ZStVovRwrojaizUTpIGTkOxs= Received: by 10.91.176.20 with SMTP id d20mr1204878agp.27.1313440717189; Mon, 15 Aug 2011 13:38:37 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id j45sm4403288yhe.64.2011.08.15.13.38.36 (version=SSLv3 cipher=OTHER); Mon, 15 Aug 2011 13:38:36 -0700 (PDT) Subject: RE: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Mikhail Titov Date: Mon, 15 Aug 2011 16:38:35 -0400 In-Reply-To: <1313438528.21770.5.camel@jose-desktop> References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.4- Content-Transfer-Encoding: 8bit Message-ID: <1313440716.21770.17.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 20:38:53 -0000 On Mon, 2011-08-15 at 15:57 -0400, José Alburquerque wrote: > On Mon, 2011-08-15 at 13:20 -0500, Mikhail Titov wrote: > > I'm also interested in MM part for xml2 & gstreamer! Unfortunately I know nothing about gstreamer yet only that it somehow bridges with DirectShow that I heavily use to capture stuff. Sorry, I sort of read your e-mail quickly and thought you wanted to know about building gstreamer. What I should have said is that if you're interested in gstreamer, their docs page has lots of information: http://gstreamer.freedesktop.org/documentation/ On our part, I'm pretty sure that at some point windows binaries will be provided in a similar fashion as how they are provided for glibmm/gtkmm. > > The following wiki describes how to build gstreamer with MinGW if that > helps any: > > http://gstreamer.freedesktop.org/wiki/BuildGStreamerWithMinGWAndMsys > > > > > Mikhail > > > > > > > -----Original Message----- > > > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] On > > > Behalf Of Jose Alburquerque > > > Sent: Monday, August 15, 2011 12:39 PM > > > To: lecas malecas > > > Cc: gtkmm-list@gnome.org > > > Subject: Re: gstreamermm on windows > > > > > > On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > > > > Ok, thanks, I'll take a look at the c version then. > > > > > > It wont be long until a version will be available for windows. I > > > suggest you look for upcoming releases that report that. Sorry for not > > > being able to be more specific. > > > > > > > > > > > > > > > gtkmm3 isn't available as well, for the same reason I guess? > > > > > > gtkmm3 should be available some time in the future also. > > > > > > > > > > > 2011/8/15 José Alburquerque > > > > > > > > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > > > > Hey, I've searched a bit but didn't find anything. Is there > > > > a place > > > > > where you could get gstreamermm on windows? (or that just > > > > isn't > > > > > possible?) > > > > > > > > > > > > It's not that it's not possible, it's just that it hasn't been > > > > done. > > > > This is something that has been planned for a while; I just > > > > haven't had > > > > much time to work on it. > > > > > > > > -- > > > > José > > > > > > > > > > > > > > > > > > -- > > > José > > > > > > _______________________________________________ > > > gtkmm-list mailing list > > > gtkmm-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > -- José From arbolone@gmail.com Tue Aug 16 00:07:21 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E679C7501D3 for ; Tue, 16 Aug 2011 00:07:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.155 X-Spam-Level: X-Spam-Status: No, score=0.155 tagged_above=-999 required=2 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E2jtmbaPew1k for ; Tue, 16 Aug 2011 00:07:18 +0000 (UTC) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by menubar.gnome.org (Postfix) with ESMTP id 5E5CA7500F9 for ; Tue, 16 Aug 2011 00:07:09 +0000 (UTC) Received: by qyk4 with SMTP id 4so1353143qyk.6 for ; Mon, 15 Aug 2011 17:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:content-language; bh=kLTzUVgdD1CcH8Y6X/l/5UcA1wvblcRcZXqNYb3XQgc=; b=LaSk79ZRMIkOgDwyVn7HD6xuhlsmnA7czbV0HfbgAl30v3MQg1eW0SBhHaxZvr93zL OIfugkFueEM3DE7Cesc4gdVHfusROXl00QsIvuInMDojnlVFLdhLFYWJwBsv0U2LU8M/ EVyfEYpxzzUwTUkziC1j2hv0SdU6xZiVkMDSs= Received: by 10.224.182.209 with SMTP id cd17mr2511419qab.326.1313453228378; Mon, 15 Aug 2011 17:07:08 -0700 (PDT) Received: from ArbolOnePC (CPE001d6ab5cfb0-CM001cea873cae.cpe.net.cable.rogers.com [99.231.186.224]) by mx.google.com with ESMTPS id dv6sm2091899qab.9.2011.08.15.17.07.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 17:07:07 -0700 (PDT) From: Arbol One To: Subject: play a sound file Date: Mon, 15 Aug 2011 20:07:00 -0400 Message-ID: <000601cc5ba8$6cbd4b40$4637e1c0$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01CC5B86.E5ABAB40" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxbqGuq1ERyYBBrRR24C462OIl/wg== Content-Language: en-us X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 00:07:21 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01CC5B86.E5ABAB40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using MinGW-64 and gtkmm-win64-devel-2.22.0-2.exe. I would like to know if there is a method in Gtkmm that would play a sound file. Anybody? ------=_NextPart_000_0007_01CC5B86.E5ABAB40 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using = MinGW-64 and gtkmm-win64-devel-2.22.0-2.exe. I would like to know if = there is a method in Gtkmm that would play a sound = file.

Anybody? =

------=_NextPart_000_0007_01CC5B86.E5ABAB40-- From harryhaaren@gmail.com Tue Aug 16 11:28:38 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9D1C7500F0 for ; Tue, 16 Aug 2011 11:28:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mh7Xvf2eexSe for ; Tue, 16 Aug 2011 11:28:37 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id E569E7500C7 for ; Tue, 16 Aug 2011 11:28:28 +0000 (UTC) Received: by gwb15 with SMTP id 15so3581410gwb.27 for ; Tue, 16 Aug 2011 04:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p4qQ9/qVK3j1H7cEHtWN2ZQNFAvbjVkCE2dDTYr0wk4=; b=YCIq8xZ6jjqBerQeuePTivj/YwT4ly7I6gtrvIF80mFJKrog5w8w0EB1UsSVhUPRqo YAg+g/ojncu1/JUqBEK4fWHJHGEwM0Z/7dfDQ94SJX50fT+n9iBYehL8f5vMYHp/dRbd 2um3toenRaAbfjb36o0prfjp/KSoNYAYsizy8= MIME-Version: 1.0 Received: by 10.43.132.1 with SMTP id hs1mr4781087icc.215.1313494106883; Tue, 16 Aug 2011 04:28:26 -0700 (PDT) Received: by 10.42.77.7 with HTTP; Tue, 16 Aug 2011 04:28:26 -0700 (PDT) In-Reply-To: <000601cc5ba8$6cbd4b40$4637e1c0$@com> References: <000601cc5ba8$6cbd4b40$4637e1c0$@com> Date: Tue, 16 Aug 2011 12:28:26 +0100 Message-ID: Subject: Re: play a sound file From: Harry van Haaren To: Arbol One Content-Type: multipart/alternative; boundary=20cf307f30cea7c4dc04aa9dad4a Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 11:28:39 -0000 --20cf307f30cea7c4dc04aa9dad4a Content-Type: text/plain; charset=ISO-8859-1 On , Arbol One wrote: > I am using MinGW-64 and gtkmm-win64-devel-2.22.0-2.exe. I would like to know if there is a method in Gtkmm that would play a sound file.Anybody? Hi! Keep in mind that Gtk is a GUI library, and that it does just that. On the other hand, "Gstreamermm" is a library created purely to play media. If your used to Gtkmm, the GStreamermm API will become familiar very quickly, they're both based on the GObject system. Good luck! -Harry --20cf307f30cea7c4dc04aa9dad4a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On , Arbol One <arbolone@gmail.com= > wrote:
> I am using MinGW-64 and gtkmm-win64-devel-2.22.0-2.= exe. I would like to know if there is a method in Gtkmm that would play a s= ound file.Anybody?

Hi!

Keep in mind that Gtk is a GUI library, and that it does jus= t that. On the other hand, "Gstreamermm" is a library created pur= ely to play media. If your used to Gtkmm, the GStreamermm API will become f= amiliar very quickly, they're both based on the GObject system.

Good luck! -Harry --20cf307f30cea7c4dc04aa9dad4a-- From gtglus@gmail.com Tue Aug 16 14:03:57 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F1F6275013A for ; Tue, 16 Aug 2011 14:03:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.536 X-Spam-Level: X-Spam-Status: No, score=-2.536 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_JH=0.077, TW_TK=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UnRrkvMrhQqI for ; Tue, 16 Aug 2011 14:03:54 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id C73587500C2 for ; Tue, 16 Aug 2011 14:03:45 +0000 (UTC) Received: by gwb15 with SMTP id 15so3717197gwb.27 for ; Tue, 16 Aug 2011 07:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=203FnUFPKTPNc4nonP897MadPoyOoXeIkz621YEJz+0=; b=PW2PsdAFkzLLWvsMlujSmBRfApZDCw9YPijxGW49Jh2mpMTVmCpT3iEm2OTD/Me5gq TRgNV8Lp40/CptY2WqX4OVdz8VD0SBF84TzRmpJyaVRwS3Eq4dFRoKL/BWBPpuHnpaG+ HboGH+9+AXC4WM53Ou/bAzX5WraLlXJy8Pmi0= MIME-Version: 1.0 Received: by 10.42.132.72 with SMTP id c8mr5375936ict.505.1313503423996; Tue, 16 Aug 2011 07:03:43 -0700 (PDT) Received: by 10.43.53.68 with HTTP; Tue, 16 Aug 2011 07:03:43 -0700 (PDT) Date: Tue, 16 Aug 2011 16:03:43 +0200 Message-ID: Subject: Gtkmm installation From: Glus Xof To: gtkmm-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 14:03:57 -0000 Hi guys, After the Mr Cumming's response in Buzilla, yesterday, I'm analysing my Gtkmm installation... While I'm working in a Debian GNU/Linux system, the shared libraries are already installed by package manager... On the other hand & for getting the last version, I build Gtkmm (in my /home folder) using jhbuild & git. My hypothese is that my app, according to the newest jhbuild & git version (and after setting the PKG_CONFIG_PATH envent var) compiles well, but breaks because it runs according to the content of the older deb package version. If so (if I well realized the problem), how can I solve and finish the installation ? (Must copy -or delete- something to /usr/lib.. ?, must set an extra var ?, ...) Glus From darkiiiiii@gmail.com Mon Aug 15 17:12:45 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30D987501D9 for ; Mon, 15 Aug 2011 17:12:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.698 X-Spam-Level: X-Spam-Status: No, score=-2.698 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ljZGtmZWZuE8 for ; Mon, 15 Aug 2011 17:12:43 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 9914C7501D3 for ; Mon, 15 Aug 2011 17:12:35 +0000 (UTC) Received: by gyd10 with SMTP id 10so4744412gyd.27 for ; Mon, 15 Aug 2011 10:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1eOoFMH3IzG07dIxIMdtCG+qbqcJVhaXaKORr7OCoNw=; b=Su4J0nL5T8PhcvIIqJLUimvVWwrdn4IDjdbu8cN40NF7Scn462A0dVy46gFX0KQShk NEmn45qZkfSIBvE5dAEmuBUXb7243gjwK8NbpDxX8Bb7tZGq2uWoT43I9HayMU240B+/ p/Wot+nTnE0soccpuM8c76b/3FFrl5fWT7N9w= MIME-Version: 1.0 Received: by 10.101.180.22 with SMTP id h22mr4036825anp.149.1313428353666; Mon, 15 Aug 2011 10:12:33 -0700 (PDT) Received: by 10.100.232.13 with HTTP; Mon, 15 Aug 2011 10:12:33 -0700 (PDT) In-Reply-To: <1313423815.8214.1.camel@jose-desktop> References: <1313423815.8214.1.camel@jose-desktop> Date: Mon, 15 Aug 2011 18:12:33 +0100 Message-ID: Subject: Re: gstreamermm on windows From: lecas malecas To: =?ISO-8859-1?Q?Jos=E9_Alburquerque?= Content-Type: multipart/alternative; boundary=001636c9258575502b04aa8e5e1b X-Mailman-Approved-At: Tue, 16 Aug 2011 14:42:59 +0000 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 17:12:45 -0000 --001636c9258575502b04aa8e5e1b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok, thanks, I'll take a look at the c version then. gtkmm3 isn't available as well, for the same reason I guess? 2011/8/15 Jos=E9 Alburquerque > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > Hey, I've searched a bit but didn't find anything. Is there a place > > where you could get gstreamermm on windows? (or that just isn't > > possible?) > > It's not that it's not possible, it's just that it hasn't been done. > This is something that has been planned for a while; I just haven't had > much time to work on it. > > -- > Jos=E9 > > --001636c9258575502b04aa8e5e1b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok, thanks, I'll take a look at the c version then.

--001636c9258575502b04aa8e5e1b-- From darkiiiiii@gmail.com Mon Aug 15 18:48:08 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3C3FA75013F for ; Mon, 15 Aug 2011 18:48:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.544 X-Spam-Level: X-Spam-Status: No, score=-2.544 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p2MXZmoeZpIP for ; Mon, 15 Aug 2011 18:48:03 +0000 (UTC) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by menubar.gnome.org (Postfix) with ESMTP id 8ED727500F9 for ; Mon, 15 Aug 2011 18:47:55 +0000 (UTC) Received: by yxl31 with SMTP id 31so4748612yxl.27 for ; Mon, 15 Aug 2011 11:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7dSIihfcFHP6xnhQ3SGf1i9GRE8pe1dKTZ3NEeBBSq4=; b=opvYBTtbFTby2Y6sl1KcGepaFCL10WlXqGBZzEOhsk0ByaFtN0kQduWNICPXwvgh6u hEdRD9GNy7Avy7z72eRIsLpTpw7qA2do0xx7nv4IH1uTxjZEjG+wFD0g0Rf09ZCxsHcB B/Yxc5LkB6hNoeMObgwd2F080XqUaFyDVdgsM= MIME-Version: 1.0 Received: by 10.101.131.4 with SMTP id i4mr4130948ann.61.1313434073751; Mon, 15 Aug 2011 11:47:53 -0700 (PDT) Received: by 10.100.232.13 with HTTP; Mon, 15 Aug 2011 11:47:53 -0700 (PDT) In-Reply-To: <001201cc5b77$f73f2c10$e5bd8430$@us> References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> Date: Mon, 15 Aug 2011 19:47:53 +0100 Message-ID: Subject: Re: gstreamermm on windows From: lecas malecas To: Mikhail Titov Content-Type: multipart/alternative; boundary=001636c92a3f66e2d304aa8fb30a X-Mailman-Approved-At: Tue, 16 Aug 2011 14:42:59 +0000 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 18:48:08 -0000 --001636c92a3f66e2d304aa8fb30a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok, I'll pay attention to the mailing list to see when its released. Well, for me doesn't make much difference if I use gcc or vc++, so I'll try what you suggested when I have the chance. thanks! 2011/8/15 Mikhail Titov > Since you brought up this topic, I'm sloooowly working on CMake build of > gtkmm 3 on Win32 platform (only) using MSVC++ Express > https://github.com/mlt/gtkmm. > > I'm asking not to fork yet as I'm in the process of adding CMake stuff to > pull corresponding source archives from web and I may force pushes into r= epo > at this stage. Non-committed CMake script later creates hard links (NTFS = is > a must, won't work on FAT32) within unpacked source archives and uses > CMakeLists.txt files from repo to build all the stuff. Right now > corresponding sources should be manually unpacked into folders in repo. I= t > uses underlying binaries from OBS that should reside in C:\obs\ . I added > some wiki notes a while ago about the whole approach. > > I was able to successfully build GTKMM 3 from source distribution with gt= k+ > from git somewhat by hand with CMake. Now I'd like to make it more flexib= le. > However you can give it a try now if you want to start writing a code wit= h > MS VC++ that uses gtkmm 3 on win32 before official release. Note that if = you > are using gcc, you can get gtkmm 3 binaries for win32 from openSUSE Build > System any time. > > I'm also interested in MM part for xml2 & gstreamer! Unfortunately I know > nothing about gstreamer yet only that it somehow bridges with DirectShow > that I heavily use to capture stuff. > > Mikhail > > > > -----Original Message----- > > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org= ] > On > > Behalf Of Jose Alburquerque > > Sent: Monday, August 15, 2011 12:39 PM > > To: lecas malecas > > Cc: gtkmm-list@gnome.org > > Subject: Re: gstreamermm on windows > > > > On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > > > Ok, thanks, I'll take a look at the c version then. > > > > It wont be long until a version will be available for windows. I > > suggest you look for upcoming releases that report that. Sorry for not > > being able to be more specific. > > > > > > > > > > > gtkmm3 isn't available as well, for the same reason I guess? > > > > gtkmm3 should be available some time in the future also. > > > > > > > > 2011/8/15 Jos=E9 Alburquerque > > > > > > On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > > > > Hey, I've searched a bit but didn't find anything. Is there > > > a place > > > > where you could get gstreamermm on windows? (or that just > > > isn't > > > > possible?) > > > > > > > > > It's not that it's not possible, it's just that it hasn't bee= n > > > done. > > > This is something that has been planned for a while; I just > > > haven't had > > > much time to work on it. > > > > > > -- > > > Jos=E9 > > > > > > > > > > > > > -- > > Jos=E9 > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > --001636c92a3f66e2d304aa8fb30a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Ok, I'll pay attention to the mailing list to see when its release= d.

Well, for me doesn't make much difference i= f I use gcc or vc++, so I'll try what you=A0suggested=A0when I have the= chance. thanks!

2011/8/15 Mikhail Titov &l= t;mlt@gmx.us>
Since you brought up this topic, I'm sloooowly working on CMake build o= f gtkmm 3 on Win32 platform (only) using MSVC++ Express https://github.com/mlt/gtkmm.
I'm asking not to fork yet as I'm in the process of adding CMake st= uff to pull corresponding source archives from web and I may force pushes i= nto repo at this stage. Non-committed CMake script later creates hard links= (NTFS is a must, won't work on FAT32) within unpacked source archives = and uses CMakeLists.txt files from repo to build all the stuff. Right now c= orresponding sources should be manually unpacked into folders in repo. It u= ses underlying binaries from OBS that should reside in C:\obs\ . I added so= me wiki notes a while ago about the whole approach.

I was able to successfully build GTKMM 3 from source distribution with gtk+= from git somewhat by hand with CMake. Now I'd like to make it more fle= xible. However you can give it a try now if you want to start writing a cod= e with MS VC++ that uses gtkmm 3 on win32 before official release. Note tha= t if you are using gcc, you can get gtkmm 3 binaries for win32 from openSUS= E Build System any time.

I'm also interested in MM part for xml2 & gstreamer! Unfortunately = I know nothing about gstreamer yet only that it somehow bridges with Direct= Show that I heavily use to capture stuff.

Mikhail


> -----Original Message-----
> From: gtkmm-list-bounc= es@gnome.org [mailto:gt= kmm-list-bounces@gnome.org] On
> Behalf Of Jose Alburquerque
> Sent: Monday, August 15, 2011 12:39 PM
> To: lecas malecas
> Cc: gtkmm-list@gnome.org > Subject: Re: gstreamermm on windows
>
> On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote:
> > Ok, thanks, I'll take a look at the c version then.
>
> It wont be long until a version will be available for windows. =A0I > suggest you look for upcoming releases that report that. =A0Sorry for = not
> being able to be more specific.
>
> >
> >
> > gtkmm3 isn't available as well, for the same reason I guess?<= br> >
> gtkmm3 should be available some time in the future also.
>
> >
> > 2011/8/15 Jos=E9 Alburquerque <jaalburquerque@gmail.com>
> >
> > =A0 =A0 =A0 =A0 On Sat, 2011-08-13 at 01:04 +0100, lecas malecas = wrote:
> > =A0 =A0 =A0 =A0 > Hey, I've searched a bit but didn't = find anything. Is there
> > =A0 =A0 =A0 =A0 a place
> > =A0 =A0 =A0 =A0 > where you could get gstreamermm on windows? = (or that just
> > =A0 =A0 =A0 =A0 isn't
> > =A0 =A0 =A0 =A0 > possible?)
> >
> >
> > =A0 =A0 =A0 =A0 It's not that it's not possible, it's= just that it hasn't been
> > =A0 =A0 =A0 =A0 done.
> > =A0 =A0 =A0 =A0 This is something that has been planned for a whi= le; I just
> > =A0 =A0 =A0 =A0 haven't had
> > =A0 =A0 =A0 =A0 much time to work on it.
> >
> > =A0 =A0 =A0 =A0 --
> > =A0 =A0 =A0 =A0 Jos=E9
> >
> >
> >
>
> --
> Jos=E9
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list


--001636c92a3f66e2d304aa8fb30a-- From harryhaaren@gmail.com Wed Aug 17 11:03:41 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EFC0D75008E for ; Wed, 17 Aug 2011 11:03:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q5qJoJEidiIE for ; Wed, 17 Aug 2011 11:03:39 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id ED04775002C for ; Wed, 17 Aug 2011 11:03:30 +0000 (UTC) Received: by gyd10 with SMTP id 10so903125gyd.27 for ; Wed, 17 Aug 2011 04:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1OTjaC52WhZuTpW6FdsfInS9xnzkJB993HHAw7nTxHA=; b=r3Om+hbhsuevfatPT4uI/U5EIXQVGtbrG6ydnEyYHKFCWgQG7OCHdlbTj+s1PvNlhF F6MvtrYJN4BNhXWym2XEROIpCl+twpAutD7Cjp9h0X0j3fvAMScx+Z+R3epBYkAb9vKe oQBSGIN8u86utYja5/p0TDTyyLXD5W8hirMT0= MIME-Version: 1.0 Received: by 10.43.132.1 with SMTP id hs1mr658860icc.215.1313579009115; Wed, 17 Aug 2011 04:03:29 -0700 (PDT) Received: by 10.42.77.7 with HTTP; Wed, 17 Aug 2011 04:03:29 -0700 (PDT) In-Reply-To: <002001cc5cac$c34e9860$49ebc920$@com> References: <000601cc5ba8$6cbd4b40$4637e1c0$@com> <002001cc5cac$c34e9860$49ebc920$@com> Date: Wed, 17 Aug 2011 12:03:29 +0100 Message-ID: Subject: Re: play a sound file From: Harry van Haaren To: Arbol One Content-Type: multipart/alternative; boundary=20cf307f30ce39049e04aab1729c Cc: GTKMM-List X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 11:03:41 -0000 --20cf307f30ce39049e04aab1729c Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 17, 2011 at 8:10 AM, Arbol One wrote: > Yes, that is good, but in the Windows world this fantastic library does not > exist L > I think it is possible to use it actually: http://gstreamer.freedesktop.org/download/ has a section on windows, and more so: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-integration-win32.html Also please reply to list as well as the author of the mail, that way list knows you've responded on the topic :) Good luck! -Harry PS: If your writing "pro-audio" apps, concider using JACK or RtAudio. --20cf307f30ce39049e04aab1729c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Aug 17, 2011 at 8:10 AM, Arbol One <arbolone@gmail.com> wrote:

Yes, that is = good, but in the Windows world this fantastic library does not exist L


I think it is possible to use it actually= :
http://gstreamer.f= reedesktop.org/download/ has a section on windows, and more so: http://gstreamer.freedesktop.org/data/doc/gst= reamer/head/manual/html/section-integration-win32.html

Also please reply to list as well as the author of the mail, that way l= ist knows you've responded on the topic :)

Good luck! -Harry
=
PS: If your writing "pro-audio" apps, concider using JACK or = RtAudio.
--20cf307f30ce39049e04aab1729c-- From jaalburquerque@gmail.com Wed Aug 17 12:02:25 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 26BBD7501EE for ; Wed, 17 Aug 2011 12:02:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TflCNx3upGsW for ; Wed, 17 Aug 2011 12:02:19 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id B7265750120 for ; Wed, 17 Aug 2011 12:02:11 +0000 (UTC) Received: by gxk28 with SMTP id 28so952593gxk.27 for ; Wed, 17 Aug 2011 05:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=CK/sL+zwJ+Irip5B+sI+ByGsAhPSBN/ys2gjWu7BVy0=; b=KC+RwWkYowN1Ub7Gw7SNsT9lZc0MCD8zP+krR94Wkt4ui67jtaRwVj2/Fajj//E+cc XTM1lnEppvvLqTPGiBo/pgL8TwyXTbcQ5pkQSs1lCd2BKDMMHk9EDawKCXLdSfYbXzPm J69V45MrNLsd9Al+ZkD5GfShqCEcfwoheKJpE= Received: by 10.90.179.9 with SMTP id b9mr939693agf.131.1313582529673; Wed, 17 Aug 2011 05:02:09 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id p34sm875706ann.17.2011.08.17.05.02.08 (version=SSLv3 cipher=OTHER); Wed, 17 Aug 2011 05:02:08 -0700 (PDT) Subject: Re: play a sound file From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Harry van Haaren Date: Wed, 17 Aug 2011 08:02:07 -0400 In-Reply-To: References: <000601cc5ba8$6cbd4b40$4637e1c0$@com> <002001cc5cac$c34e9860$49ebc920$@com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.4- Content-Transfer-Encoding: 8bit Message-ID: <1313582528.8110.9.camel@jose-desktop> Mime-Version: 1.0 Cc: GTKMM-List X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 12:02:25 -0000 On Wed, 2011-08-17 at 12:03 +0100, Harry van Haaren wrote: > On Wed, Aug 17, 2011 at 8:10 AM, Arbol One wrote: > Yes, that is good, but in the Windows world this fantastic > library does not exist L It wont be long before gstreamermm is available for Windows since I've decided to focus on this more than before. > > > > I think it is possible to use it actually: > http://gstreamer.freedesktop.org/download/ has a section on windows, > and more so: > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-integration-win32.html > > Also please reply to list as well as the author of the mail, that way > list knows you've responded on the topic :) > > Good luck! -Harry > > PS: If your writing "pro-audio" apps, concider using JACK or RtAudio. > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list -- José From guruprasad.bt@gmail.com Fri Aug 19 10:19:34 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C5DE87500DD for ; Fri, 19 Aug 2011 10:19:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.612 X-Spam-Level: X-Spam-Status: No, score=-2.612 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9zCVtDG6y1X9 for ; Fri, 19 Aug 2011 10:19:32 +0000 (UTC) Received: from mail-pz0-f41.google.com (mail-pz0-f41.google.com [209.85.210.41]) by menubar.gnome.org (Postfix) with ESMTP id 67EAF750092 for ; Fri, 19 Aug 2011 10:19:24 +0000 (UTC) Received: by pzk4 with SMTP id 4so5146978pzk.0 for ; Fri, 19 Aug 2011 03:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=J1ovcHyfrt/AnP3vheLOxU+ArC5AsfL+1F4Bkqb/eec=; b=oMNddETllXjfmxguviprjpU4jnpKmTJ40vcP5cbMQjesW6o63LfQYpIVGvcwEW2UVI NGeoEodGGSqk33ouRtK4xaox/Mz5oliWF4TMqmYXzD3GRZUvUHEgd3fGSkiLGppMZwir OVfROjEgSvbgfx8HUIsj6kd+KlmWPNll7iUVU= MIME-Version: 1.0 Received: by 10.142.177.8 with SMTP id z8mr383607wfe.207.1313749162880; Fri, 19 Aug 2011 03:19:22 -0700 (PDT) Received: by 10.68.52.131 with HTTP; Fri, 19 Aug 2011 03:19:22 -0700 (PDT) Date: Fri, 19 Aug 2011 15:49:22 +0530 Message-ID: Subject: problem with tooltips From: Guruprasad Bhat To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=000e0cd23cfc2d6f6304aad9101f X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 10:19:35 -0000 --000e0cd23cfc2d6f6304aad9101f Content-Type: text/plain; charset=ISO-8859-1 Hi, I am facing some problem with tooltips. I designed the GUI like this, GTK window GTH fixed GTK image on entire fixed *area* & some gtk buttons (buttons are exactly above the image). I have set tooltip text for all that buttons. When I compile & run program tool tip text s not coming when i do mouse Hover over that buttons, If I remove the GTK image that time tool tips are coming. What might the problem here. why tool tips are not coming when i put image widget. Is image widget blocks some thing Regards, --000e0cd23cfc2d6f6304aad9101f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am facing some problem with tooltips. I designed the GUI like = this,

GTK window
GTH fixed
GTK image on entire fixed=A0 are= a
& some gtk buttons (buttons are exactly above the image). I ha= ve set tooltip text for all that buttons.

When I compile & run program=A0 tool tip text s not coming when i d= o mouse Hover over that buttons, If I remove the GTK image that time tool t= ips are coming.

What might the problem here. why tool tips are not = coming when i put image widget. Is image widget blocks some thing

Regards,
--000e0cd23cfc2d6f6304aad9101f-- From darkiiiiii@gmail.com Fri Aug 19 20:52:08 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3857D75012C for ; Fri, 19 Aug 2011 20:52:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.689 X-Spam-Level: X-Spam-Status: No, score=-2.689 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SOVGnbhfBqC7 for ; Fri, 19 Aug 2011 20:52:06 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 5B5B57500B9 for ; Fri, 19 Aug 2011 20:51:57 +0000 (UTC) Received: by gwb15 with SMTP id 15so2912169gwb.27 for ; Fri, 19 Aug 2011 13:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=nHdg+Mva3r5PWl+9YhtNhKFsicZbEzwboghGCDMLNZM=; b=UnH3nZbU5VKTHpXLGoJ+vqs6+B+mm1sD50vvwgnTFF4QxEaP4JRKqPMqZnrE0fb7tf /mDMsdP5/ysCjPnQY6OgNZRM2vBn0hnyL+qe0B5mHvDO/kBJLiZlkKldxYMEZ8/9vmLS t2Uf7MyA035JO4iW3z4MXc8lZuPeBD7TAvtTA= MIME-Version: 1.0 Received: by 10.101.159.12 with SMTP id l12mr231748ano.40.1313787116383; Fri, 19 Aug 2011 13:51:56 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Fri, 19 Aug 2011 13:51:56 -0700 (PDT) Date: Fri, 19 Aug 2011 21:51:56 +0100 Message-ID: Subject: Broken link in documentation From: lecas malecas To: gtkmm-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 20:52:08 -0000 Hello, it seems the link to the Gtk::Label class leads nowhere. doc: http://developer.gnome.org/gtkmm/unstable/group__Widgets.html (search for Gtk::Label) or: http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Label.html From mlt@gmx.us Sat Aug 20 23:06:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ABBA2750069 for ; Sat, 20 Aug 2011 23:06:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tLxhk8dEBXTq for ; Sat, 20 Aug 2011 23:06:54 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 24A7D750006 for ; Sat, 20 Aug 2011 23:06:45 +0000 (UTC) Received: (qmail invoked by alias); 20 Aug 2011 22:49:56 -0000 Received: from c-76-17-238-114.hsd1.mn.comcast.net (EHLO [192.168.0.100]) [76.17.238.114] by mail.gmx.com (mp-us005) with SMTP; 20 Aug 2011 18:49:56 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX18nbDkVA+gnTA3wPY93aHPZ0yKZc8HFWu+CtKqbg0 hIOxJ5WuiSmVN1 Message-ID: <4E503A12.80104@gmx.us> Date: Sat, 20 Aug 2011 17:49:54 -0500 From: Mikhail Titov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: =?UTF-8?B?Sm9zw6kgQWxidXJxdWVycXVl?= Subject: Re: gstreamermm on windows References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> <1313440716.21770.17.camel@jose-desktop> In-Reply-To: <1313440716.21770.17.camel@jose-desktop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2011 23:06:56 -0000 I gave a try to build gstreamermm using MS VC++ 2008 Express after I've built GTKMM 3.1.8 and XML++ 2.34.1 libraries (https://github.com/mlt/gtkmm in case someone feels like forking). I was getting errors like the following: C:\workspace\gtkmm\gstreamermm-0.10.10\gstreamer\gstreamermm/clock.h(55) : error C2201: 'CLOCK_TIME_NONE' : must have external linkage in order to be exported/imported Line 55 of clock.h looks like static GLIBMM_API const ClockTime CLOCK_TIME_NONE = GST_CLOCK_TIME_NONE; Isn't it a generally bad idea to have variables in header file even declared as static? And what was the purpose of GLIBMM_API anyway? It compiled fine after I removed GLIBMM_API from those lines. Now I'm having issue with caps.cc . It uses GstCapsIntersectMode but I don't see this definition anywhere. Is gstreamer-0.10 from openSUSE Build Service broken? How gstreamermm is compiled there then? Surpsisingly enough gst.h doesn't contain anything with 'mode' in it. Manual says it has been added in 0.10.33 whereas OBS has 0.10.32 however gstreamermm is labeled 0.10.10 . Why is there such inconsistency with version numbers? Okay, I've rolled back to gstreamermm-0.10.9 and compiled everything fine. At the very end I realized that ogg example uses ALSA as a sink. Of course I don't have ALSA on win32. What should I use as a sink when using mingw cross-compiled binaries of gstreamer from openSUSE build service? Most conversations I found with google contain either broken links or badly old :-( P.S. Is there any other source of cross-compiled win32 binaries like those provided by openSUSE Build Service? In particular glib is outdated in there and I don't feel like rebuilding entire stack for recent GTKMM :( Also I'm hesitating on using OSSBuild for gstreamer. Mikhail On 08/15/2011 03:38 PM, José Alburquerque wrote: > On Mon, 2011-08-15 at 15:57 -0400, José Alburquerque wrote: >> On Mon, 2011-08-15 at 13:20 -0500, Mikhail Titov wrote: >>> I'm also interested in MM part for xml2 & gstreamer! Unfortunately I know nothing about gstreamer yet only that it somehow bridges with DirectShow that I heavily use to capture stuff. > Sorry, I sort of read your e-mail quickly and thought you wanted to know > about building gstreamer. What I should have said is that if you're > interested in gstreamer, their docs page has lots of information: > > http://gstreamer.freedesktop.org/documentation/ > > On our part, I'm pretty sure that at some point windows binaries will be > provided in a similar fashion as how they are provided for glibmm/gtkmm. > >> The following wiki describes how to build gstreamer with MinGW if that >> helps any: >> >> http://gstreamer.freedesktop.org/wiki/BuildGStreamerWithMinGWAndMsys >> >>> Mikhail >>> >>> >>>> -----Original Message----- >>>> From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] On >>>> Behalf Of Jose Alburquerque >>>> Sent: Monday, August 15, 2011 12:39 PM >>>> To: lecas malecas >>>> Cc: gtkmm-list@gnome.org >>>> Subject: Re: gstreamermm on windows >>>> >>>> On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: >>>>> Ok, thanks, I'll take a look at the c version then. >>>> It wont be long until a version will be available for windows. I >>>> suggest you look for upcoming releases that report that. Sorry for not >>>> being able to be more specific. >>>> >>>>> gtkmm3 isn't available as well, for the same reason I guess? >>>> gtkmm3 should be available some time in the future also. >>>> >>>>> 2011/8/15 José Alburquerque >>>>> >>>>> On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: >>>>> > Hey, I've searched a bit but didn't find anything. Is there >>>>> a place >>>>> > where you could get gstreamermm on windows? (or that just >>>>> isn't >>>>> > possible?) >>>>> >>>>> >>>>> It's not that it's not possible, it's just that it hasn't been >>>>> done. >>>>> This is something that has been planned for a while; I just >>>>> haven't had >>>>> much time to work on it. >>>>> >>>>> -- >>>>> José >>>>> >>>>> >>>>> >>>> -- >>>> José >>>> >>>> _______________________________________________ >>>> gtkmm-list mailing list >>>> gtkmm-list@gnome.org >>>> http://mail.gnome.org/mailman/listinfo/gtkmm-list From jaalburquerque@gmail.com Sun Aug 21 04:38:44 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4331D750091 for ; Sun, 21 Aug 2011 04:38:44 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z8hja475tEpo for ; Sun, 21 Aug 2011 04:38:40 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 2E73E750009 for ; Sun, 21 Aug 2011 04:38:31 +0000 (UTC) Received: by ywo32 with SMTP id 32so4708789ywo.27 for ; Sat, 20 Aug 2011 21:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=VCgaLQPMDxlxYUJtdaqKqZ2QQQ0q+zRoVaJVZISINcc=; b=LpvfY890wPuW+PiEXCpWtG45ry1bRTwagoyVNuljsuDfJRVvPEiyq8KqnCyUorIU4r VyePDIRa0TzxKFNgiYKd9Z3L1foDLHstJTMJ/8Qz66F3oL6O3z23h+Z43Q6MUBeC3us6 ys+T+9Jq6Iu9kdUsbjduULPFG9HWwk0VW09fs= Received: by 10.236.139.138 with SMTP id c10mr5843299yhj.62.1313901510282; Sat, 20 Aug 2011 21:38:30 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id f4sm1761258yhn.27.2011.08.20.21.38.28 (version=SSLv3 cipher=OTHER); Sat, 20 Aug 2011 21:38:29 -0700 (PDT) Subject: Re: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Mikhail Titov Date: Sun, 21 Aug 2011 00:38:28 -0400 In-Reply-To: <4E503A12.80104@gmx.us> References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> <1313440716.21770.17.camel@jose-desktop> <4E503A12.80104@gmx.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.5- Content-Transfer-Encoding: 8bit Message-ID: <1313901509.9913.44.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 04:38:44 -0000 Hi Mikhail, thanks for trying: On Sat, 2011-08-20 at 17:49 -0500, Mikhail Titov wrote: > I gave a try to build gstreamermm using MS VC++ 2008 Express after I've > built GTKMM 3.1.8 and XML++ 2.34.1 libraries > (https://github.com/mlt/gtkmm in case someone feels like forking). > I was getting errors like the following: > > C:\workspace\gtkmm\gstreamermm-0.10.10\gstreamer\gstreamermm/clock.h(55) > : error C2201: 'CLOCK_TIME_NONE' : must have external linkage in order > to be exported/imported > > Line 55 of clock.h looks like > > static GLIBMM_API const ClockTime CLOCK_TIME_NONE = GST_CLOCK_TIME_NONE; > > Isn't it a generally bad idea to have variables in header file even > declared as static? And what was the purpose of GLIBMM_API anyway? It > compiled fine after I removed GLIBMM_API from those lines. These declarations occurred early on when I began developing. I must have overlooked this part of the code which might be better written. As far as the GLIBMM_API, that's a macro that comes from glibmm's glibmmconfig.h file. I can't remember why I put it there to begin with, but I think I was considering a possible future build on Windows. Normally, gstreamermm is built using autotools and I think it ensures that that file is included properly. Since you're not using autotools to build, that's probably why there would be a problem. > > Now I'm having issue with caps.cc . It uses GstCapsIntersectMode but I > don't see this definition anywhere. Is gstreamer-0.10 from openSUSE > Build Service broken? How gstreamermm is compiled there then? > Surpsisingly enough gst.h doesn't contain anything with 'mode' in it. > Manual says it has been added in 0.10.33 whereas OBS has 0.10.32 > however gstreamermm is labeled 0.10.10 . Why is there such inconsistency > with version numbers? Sorry for the inconsistency in the version numbers. gstreamermm has its own version numbers separate from the GStreamer version numbers. The latest gstreamermm (0.10.10) requires GStreamer 0.10.35. Autotools would stop the build and report version requirements if they are not met, but once more, autotools would not be used in this situation. > Okay, I've rolled back to gstreamermm-0.10.9 and > compiled everything fine. I would suggest you use 0.10.9.1 instead. It has a few bug fixes necessary to ensure functionality of the examples and the library in general. > > At the very end I realized that ogg example uses ALSA as a sink. Of > course I don't have ALSA on win32. What should I use as a sink when > using mingw cross-compiled binaries of gstreamer from openSUSE build > service? Most conversations I found with google contain either broken > links or badly old :-( There are the directdrawsink (in gst-plugins-bad) and the directsoundsink (in gst-plugins-good) plugins for rendering video and audio in Windows. I'm not sure that there are others. > > P.S. Is there any other source of cross-compiled win32 binaries like > those provided by openSUSE Build Service? In particular glib is outdated > in there and I don't feel like rebuilding entire stack for recent GTKMM > :( Also I'm hesitating on using OSSBuild for gstreamer. I think Fedora has some also: https://fedoraproject.org/wiki/MinGW Keep in mind that I'll be trying to make an installer much like gtkmm's Windows installer and using the version of the libraries that that installer provides so that the Windows version of gstreamermm is compatible with the existing version of gtkmm available for Windows. > > Mikhail > > On 08/15/2011 03:38 PM, José Alburquerque wrote: > > On Mon, 2011-08-15 at 15:57 -0400, José Alburquerque wrote: > >> On Mon, 2011-08-15 at 13:20 -0500, Mikhail Titov wrote: > >>> I'm also interested in MM part for xml2 & gstreamer! Unfortunately I know nothing about gstreamer yet only that it somehow bridges with DirectShow that I heavily use to capture stuff. > > Sorry, I sort of read your e-mail quickly and thought you wanted to know > > about building gstreamer. What I should have said is that if you're > > interested in gstreamer, their docs page has lots of information: > > > > http://gstreamer.freedesktop.org/documentation/ > > > > On our part, I'm pretty sure that at some point windows binaries will be > > provided in a similar fashion as how they are provided for glibmm/gtkmm. > > > >> The following wiki describes how to build gstreamer with MinGW if that > >> helps any: > >> > >> http://gstreamer.freedesktop.org/wiki/BuildGStreamerWithMinGWAndMsys > >> > >>> Mikhail > >>> > >>> > >>>> -----Original Message----- > >>>> From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] On > >>>> Behalf Of Jose Alburquerque > >>>> Sent: Monday, August 15, 2011 12:39 PM > >>>> To: lecas malecas > >>>> Cc: gtkmm-list@gnome.org > >>>> Subject: Re: gstreamermm on windows > >>>> > >>>> On Mon, 2011-08-15 at 18:12 +0100, lecas malecas wrote: > >>>>> Ok, thanks, I'll take a look at the c version then. > >>>> It wont be long until a version will be available for windows. I > >>>> suggest you look for upcoming releases that report that. Sorry for not > >>>> being able to be more specific. > >>>> > >>>>> gtkmm3 isn't available as well, for the same reason I guess? > >>>> gtkmm3 should be available some time in the future also. > >>>> > >>>>> 2011/8/15 José Alburquerque > >>>>> > >>>>> On Sat, 2011-08-13 at 01:04 +0100, lecas malecas wrote: > >>>>> > Hey, I've searched a bit but didn't find anything. Is there > >>>>> a place > >>>>> > where you could get gstreamermm on windows? (or that just > >>>>> isn't > >>>>> > possible?) > >>>>> > >>>>> > >>>>> It's not that it's not possible, it's just that it hasn't been > >>>>> done. > >>>>> This is something that has been planned for a while; I just > >>>>> haven't had > >>>>> much time to work on it. > >>>>> > >>>>> -- > >>>>> José > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> José > >>>> > >>>> _______________________________________________ > >>>> gtkmm-list mailing list > >>>> gtkmm-list@gnome.org > >>>> http://mail.gnome.org/mailman/listinfo/gtkmm-list -- José From mlt@gmx.us Sun Aug 21 06:30:42 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6FDF9750009 for ; Sun, 21 Aug 2011 06:30:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.669 X-Spam-Level: X-Spam-Status: No, score=-1.669 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_BM=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TUcbkCy7ncnd for ; Sun, 21 Aug 2011 06:30:39 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 28786750006 for ; Sun, 21 Aug 2011 06:30:30 +0000 (UTC) Received: (qmail invoked by alias); 21 Aug 2011 06:30:28 -0000 Received: from c-76-17-238-114.hsd1.mn.comcast.net (EHLO [192.168.0.100]) [76.17.238.114] by mail.gmx.com (mp-us006) with SMTP; 21 Aug 2011 02:30:28 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX1/oW0Vgs3joT0j0iGm8dFGYLFEWx2iMA+9HwxuXLu rYbM/D2o9eaapg Message-ID: <4E50A601.30507@gmx.us> Date: Sun, 21 Aug 2011 01:30:25 -0500 From: Mikhail Titov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: =?UTF-8?B?Sm9zw6kgQWxidXJxdWVycXVl?= Subject: Re: gstreamermm on windows References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> <1313440716.21770.17.camel@jose-desktop> <4E503A12.80104@gmx.us> <1313901509.9913.44.camel@jose-desktop> In-Reply-To: <1313901509.9913.44.camel@jose-desktop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 06:30:42 -0000 On 08/20/2011 11:38 PM, José Alburquerque wrote: > Hi Mikhail, thanks for trying: > > On Sat, 2011-08-20 at 17:49 -0500, Mikhail Titov wrote: >> static GLIBMM_API const ClockTime CLOCK_TIME_NONE = GST_CLOCK_TIME_NONE; >> >> Isn't it a generally bad idea to have variables in header file even >> declared as static? And what was the purpose of GLIBMM_API anyway? It >> compiled fine after I removed GLIBMM_API from those lines. > These declarations occurred early on when I began developing. I must > have overlooked this part of the code which might be better written. > > As far as the GLIBMM_API, that's a macro that comes from glibmm's > glibmmconfig.h file. I can't remember why I put it there to begin with, > but I think I was considering a possible future build on Windows. I've built glibmm just fine, and I had something defined under this macro. It was possible to compile either by removing this or by undeffing and defining empty GLIBMM_API . I just can't imagine what could be there from VC++ point of view. If it is declared as static it resides in compiled unit and is of single copy when linked. AFAIK another alternative is to declare it extern and then export symbol from shared library. > I would suggest you use 0.10.9.1 instead. It has a few bug fixes > necessary to ensure functionality of the examples and the library in > general. I think I used second to the latest. > There are the directdrawsink (in gst-plugins-bad) and the > directsoundsink (in gst-plugins-good) plugins for rendering video and > audio in Windows. I'm not sure that there are others. Ah! I didn't even look into 'bad' plugins :-) > I think Fedora has some also: > https://fedoraproject.org/wiki/MinGW Thanks! Kalev Lember helped me on IRC to get started with Fedora repo. > Keep in mind that I'll be trying to make an installer much like gtkmm's > Windows installer and using the version of the libraries that that > installer provides so that the Windows version of gstreamermm is > compatible with the existing version of gtkmm available for Windows. Do you plan to make installer for MS VC++ as well? or mingw only? Mikhail From jaalburquerque@gmail.com Sun Aug 21 15:49:22 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6B4B675008C for ; Sun, 21 Aug 2011 15:49:22 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BM=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z3HtkdTNtNev for ; Sun, 21 Aug 2011 15:49:19 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id B638075004D for ; Sun, 21 Aug 2011 15:49:11 +0000 (UTC) Received: by ywo32 with SMTP id 32so4909685ywo.27 for ; Sun, 21 Aug 2011 08:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=Iie2qaJ6lwNl+MU28ma/E8HkB1AnBGFde21Sh2D6U9Y=; b=uLUlDXDGQBWgZt4lpIWqQq7cYjIkiaiBBwKMwJ31SUf0pUBdJxZhnWYszJMagLp6ZV MCnxB4NXW7bCM7lzE27vwBnZQAPh1WImAQZegRwZQQSiwEdAeC/1gFMrsCx5IxWyLWBC mDhpRDd51AKrMvAny2GXu2YEgVkATiIHfm+Go= Received: by 10.150.48.17 with SMTP id v17mr1342624ybv.206.1313941749832; Sun, 21 Aug 2011 08:49:09 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id p20sm3275982ybf.12.2011.08.21.08.49.08 (version=SSLv3 cipher=OTHER); Sun, 21 Aug 2011 08:49:09 -0700 (PDT) Subject: Re: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Mikhail Titov Date: Sun, 21 Aug 2011 11:49:07 -0400 In-Reply-To: <4E50A601.30507@gmx.us> References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> <1313440716.21770.17.camel@jose-desktop> <4E503A12.80104@gmx.us> <1313901509.9913.44.camel@jose-desktop> <4E50A601.30507@gmx.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.5- Content-Transfer-Encoding: 8bit Message-ID: <1313941749.8264.14.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 15:49:22 -0000 On Sun, 2011-08-21 at 01:30 -0500, Mikhail Titov wrote: > On 08/20/2011 11:38 PM, José Alburquerque wrote: > > Hi Mikhail, thanks for trying: > > > > On Sat, 2011-08-20 at 17:49 -0500, Mikhail Titov wrote: > >> static GLIBMM_API const ClockTime CLOCK_TIME_NONE = GST_CLOCK_TIME_NONE; > >> > >> Isn't it a generally bad idea to have variables in header file even > >> declared as static? And what was the purpose of GLIBMM_API anyway? It > >> compiled fine after I removed GLIBMM_API from those lines. > > These declarations occurred early on when I began developing. I must > > have overlooked this part of the code which might be better written. > > > > As far as the GLIBMM_API, that's a macro that comes from glibmm's > > glibmmconfig.h file. I can't remember why I put it there to begin with, > > but I think I was considering a possible future build on Windows. > I've built glibmm just fine, and I had something defined under this > macro. It was possible to compile either by removing this or by > undeffing and defining empty GLIBMM_API . I just can't imagine what > could be there from VC++ point of view. If it is declared as static it > resides in compiled unit and is of single copy when linked. AFAIK > another alternative is to declare it extern and then export symbol from > shared library. Actually, these variables are designed to be constants that can be used like their equivalent GStreamer constants. I did something similar to what is done in glibmm's ustring.h with the npos constant. I'm thinking that these should stay the way they are. In general, I think we prefer to use variables instead of '#defines' for better type checking. I could be wrong. I'll look into this a little more later though. > > I would suggest you use 0.10.9.1 instead. It has a few bug fixes > > necessary to ensure functionality of the examples and the library in > > general. > I think I used second to the latest. If it's the release right before the latest one then, yes that should be 0.10.9.1. > > There are the directdrawsink (in gst-plugins-bad) and the > > directsoundsink (in gst-plugins-good) plugins for rendering video and > > audio in Windows. I'm not sure that there are others. > Ah! I didn't even look into 'bad' plugins :-) > > I think Fedora has some also: > > https://fedoraproject.org/wiki/MinGW > Thanks! Kalev Lember helped me on IRC to get started with Fedora repo. > > Keep in mind that I'll be trying to make an installer much like gtkmm's > > Windows installer and using the version of the libraries that that > > installer provides so that the Windows version of gstreamermm is > > compatible with the existing version of gtkmm available for Windows. > Do you plan to make installer for MS VC++ as well? or mingw only? Both, hopefully. > > Mikhail -- José From aurisc4@gmail.com Sun Aug 21 19:52:10 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EEF5B750085 for ; Sun, 21 Aug 2011 19:52:09 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yDcXv8Amaonm for ; Sun, 21 Aug 2011 19:52:07 +0000 (UTC) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id 525FB75004D for ; Sun, 21 Aug 2011 19:51:58 +0000 (UTC) Received: by bkat8 with SMTP id t8so6222504bka.27 for ; Sun, 21 Aug 2011 12:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:date:content-type:x-mailer:message-id:mime-version; bh=ANn+TqC3qoPyiy/uA3/Xt48pVCDmarSMKRzaJvVc2Do=; b=sUN3hL15qKx5xLt64h5m0fa7lrsT1sv716q5eYg8NOndrJKmVGY60v43sc9azGc8DW crp2PiyqTabQ2eGw/uuJHg0QEbIoAo0C+bwYEvqjDUUSXSi3UANPr1pA2c/+iDQkqa7w XRo3OJOLyD8a3Obb3mLWt87mcBmF8mXMxQMvM= Received: by 10.204.135.143 with SMTP id n15mr619881bkt.177.1313956316715; Sun, 21 Aug 2011 12:51:56 -0700 (PDT) Received: from [84.32.192.50] ([84.32.192.50]) by mx.google.com with ESMTPS id a22sm1686735bke.20.2011.08.21.12.51.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Aug 2011 12:51:55 -0700 (PDT) Subject: Gio::DBus::Connection::emit_signal issue From: Aurimas =?UTF-8?Q?=C4=8Cernius?= To: "gtkmm-list@gnome.org" Date: Sun, 21 Aug 2011 22:46:57 +0300 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-8tNw48NKFp3vxcYHTCFw" X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15) Message-ID: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> Mime-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 19:52:10 -0000 --=-8tNw48NKFp3vxcYHTCFw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I have issues with Gio::DBus::Connection::emit_signal. When I call it this way: connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click"); It doesn't do anything, except priting to conlose (server:23353): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: assertion `destination_bus_name =3D=3D NULL || g_dbus_is_name (destination_bus_name)' failed If I replace the line with g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH, INTERFACE_NAME, "Click", NULL, NULL); everything work fine. Am I misunderstanding something, or is it a bug? --=20 Aurimas --=-8tNw48NKFp3vxcYHTCFw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAABAgAGBQJOUWCxAAoJECtTeRAzEaLPqCIIAJ+QggNWog8JpewDioDXIT1O HVQGbCMdsY6ld5CmvxAnoxxsJpPXVBvhrFk2B7ZoD0vhhvQnBjDLDiAkYoDc5rvf 1NOz7rm20WcidNJl+Z3qB5MZ2iqvxhPdBFZu7gbXurc38PLAe1kDrc38vOuedW+A qtgntkRbEJPCY6gCBygjp4nK0kTDRMRZM8iRExqfqjlNP9T5vrct0RzEt/GWYz7I KLzCX4hBy74vVZxV0tmu/ZPCCV9eyPfaImLTvHYuCysnLwwlGC26aqdozqk1Hkbe HqYe5ujTdU9utEHPiQIlcT72cQkmUeXpLlFmeb08fcQIOiJNYgSchkbcXWMyJAM= =BxJn -----END PGP SIGNATURE----- --=-8tNw48NKFp3vxcYHTCFw-- From harryhaaren@gmail.com Sun Aug 21 21:36:43 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 525BE750072 for ; Sun, 21 Aug 2011 21:36:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o27Mj4H-55OT for ; Sun, 21 Aug 2011 21:36:41 +0000 (UTC) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by menubar.gnome.org (Postfix) with ESMTP id 3A7D5750065 for ; Sun, 21 Aug 2011 21:36:33 +0000 (UTC) Received: by iye7 with SMTP id 7so10383498iye.3 for ; Sun, 21 Aug 2011 14:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0awfzBXKHwFOYj18Gx7qzpCVw6uzU6MuzfGUn4g2J1M=; b=QXcD9bJ0Kp9RwAwEgQadS4MgreyUUuteIEbHA7c62qiy56pIZYqlGR5XRK3DIM+sP2 pEHQqkPRYPnUlKBbYlpbj25M8xVv4XlvNVkQI1+dBGL+ipPf3K84C5sZl/9zrTyC2Dgp W+FwdvlVpFzulTKfILxEp7Cxj8I3Oihf9FkJk= MIME-Version: 1.0 Received: by 10.42.163.73 with SMTP id b9mr1900485icy.349.1313962591805; Sun, 21 Aug 2011 14:36:31 -0700 (PDT) Received: by 10.42.77.7 with HTTP; Sun, 21 Aug 2011 14:36:31 -0700 (PDT) In-Reply-To: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> References: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> Date: Sun, 21 Aug 2011 22:36:31 +0100 Message-ID: Subject: Re: Gio::DBus::Connection::emit_signal issue From: Harry van Haaren To: =?UTF-8?Q?Aurimas_=C4=8Cernius?= Content-Type: multipart/alternative; boundary=90e6ba21240588627504ab0ac1a1 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 21:36:43 -0000 --90e6ba21240588627504ab0ac1a1 Content-Type: text/plain; charset=ISO-8859-1 Hi! connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click"); > This is the more "C" style way of connecting GObject signals... If I replace the line with > g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH, > INTERFACE_NAME, "Click", NULL, NULL); > Here your're using the "C" way of connecting GObject signals but doing it right (the right "C" way that is) the C++ way of doing it is like so: objectName.signal_clicked.connect( sigc::mem_fun( instanceToConnectTo, &InstanceClassName::functionName ) ); See http://developer.gnome.org/gtkmm-tutorial/3.0/chapter-custom-signals.html.enfor a good explanation & example code. Good luck! -Harry --90e6ba21240588627504ab0ac1a1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi!

connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click");=
This is the more "C" style way of connectin= g GObject signals...

If I replace the line with
g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH,
INTERFACE_NAME, "Click", NULL, NULL);
Here your&#= 39;re using the "C" way of connecting GObject signals but doing i= t right (the right "C" way that is)

the C++ way of doing i= t is like so:
objectName.signal_clicked.connect( sigc::mem_fun( instanceToConnectTo, &= ;InstanceClassName::functionName ) );

See http://devel= oper.gnome.org/gtkmm-tutorial/3.0/chapter-custom-signals.html.en for a = good explanation & example code.

Good luck! -Harry
--90e6ba21240588627504ab0ac1a1-- From chris@cvine.freeserve.co.uk Sun Aug 21 22:25:54 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75C31750009 for ; Sun, 21 Aug 2011 22:25:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FJxtavolbt7H for ; Sun, 21 Aug 2011 22:25:51 +0000 (UTC) X-Greylist: delayed 764 seconds by postgrey-1.32 at menubar.gnome.org; Sun, 21 Aug 2011 22:25:51 UTC Received: from relay.ptn-ipout02.plus.net (relay.ptn-ipout02.plus.net [212.159.7.36]) by menubar.gnome.org (Postfix) with ESMTP id 5001775004D for ; Sun, 21 Aug 2011 22:25:42 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EALGBUU7Unw4R/2dsb2JhbABAhEujSHeBQAEBBSMEUhALGAICJgICITYGE4dzpEeQKIEshAyBEASTFIUMgzCBOocB Received: from outmx02.plus.net ([212.159.14.17]) by relay.ptn-ipout02.plus.net with ESMTP; 21 Aug 2011 23:12:56 +0100 Received: from [87.114.97.99] (helo=laptop.homenet) by outmx02.plus.net with esmtp (Exim) id 1QvGGG-0003Vv-2l; Sun, 21 Aug 2011 23:12:56 +0100 Received: from laptop.homenet (IDENT:1000@localhost [127.0.0.1]) by laptop.homenet (8.14.4/8.14.4) with ESMTP id p7LMESug005058; Sun, 21 Aug 2011 23:14:29 +0100 Date: Sun, 21 Aug 2011 23:14:28 +0100 From: Chris Vine To: Aurimas =?UTF-8?B?xIxlcm5pdXM=?= Subject: Re: Gio::DBus::Connection::emit_signal issue Message-ID: <20110821231428.2735f2d4@laptop.homenet> In-Reply-To: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> References: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.5; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 22:25:54 -0000 On Sun, 21 Aug 2011 22:46:57 +0300 Aurimas =C4=8Cernius wrote: > I have issues with Gio::DBus::Connection::emit_signal. > When I call it this way: > connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click"); >=20 > It doesn't do anything, except priting to conlose > (server:23353): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: > assertion `destination_bus_name =3D=3D NULL || g_dbus_is_name > (destination_bus_name)' failed >=20 >=20 > If I replace the line with > g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH, > INTERFACE_NAME, "Click", NULL, NULL); >=20 > everything work fine. >=20 > Am I misunderstanding something, or is it a bug? My guess is that you have found a bug in the wrapper, possibly arising from the way the wrapper deals with a null ("all stations") destination argument. At a guess, maybe it is passing the C function a string of no size rather than a NULL pointer in this case. I am not sure there are sufficient users to give the wrappers a decent testing, and this is a particularly obscure part of the GDBus API. If you can, look at the wrapper code for this function and see if that is indeed the problem, and in either event file a bug. Chris From jaalburquerque@gmail.com Sun Aug 21 23:42:44 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1EF99750072 for ; Sun, 21 Aug 2011 23:42:44 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HbJv3YINLOOC for ; Sun, 21 Aug 2011 23:42:40 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 04A3875004D for ; Sun, 21 Aug 2011 23:42:31 +0000 (UTC) Received: by ywo32 with SMTP id 32so5049555ywo.27 for ; Sun, 21 Aug 2011 16:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=o+nwE17M64prVK7Qlh8q3fKrzMBtvrVV/BUqxcNAJQ4=; b=BR/d/xH4Jfd/911uOZo60lBB7EIfN3rIOs/7h6LiDHYZwPRIwVY2d5wZifhI4NC8V1 lQQdTdY00An0eYfZGqT4JmuaPrTmdvdPbnIzeGN0HcQmoafKkkuLfrMcpPrFuxjtpB9T gAeYllOZnjrRN5i6vmedHnO2fpU0dWk8Tyxu8= Received: by 10.236.9.36 with SMTP id 24mr10313675yhs.17.1313970148464; Sun, 21 Aug 2011 16:42:28 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id e21sm2806925yhn.77.2011.08.21.16.42.27 (version=SSLv3 cipher=OTHER); Sun, 21 Aug 2011 16:42:28 -0700 (PDT) Subject: Re: Gio::DBus::Connection::emit_signal issue From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Aurimas =?UTF-8?Q?=C4=8Cernius?= Date: Sun, 21 Aug 2011 19:42:26 -0400 In-Reply-To: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> References: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.5- Content-Transfer-Encoding: 8bit Message-ID: <1313970147.9675.15.camel@jose-desktop> Mime-Version: 1.0 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 23:42:44 -0000 On Sun, 2011-08-21 at 22:46 +0300, Aurimas Černius wrote: > Hi, > > I have issues with Gio::DBus::Connection::emit_signal. > When I call it this way: > connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click"); > > It doesn't do anything, except priting to conlose > (server:23353): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: > assertion `destination_bus_name == NULL || g_dbus_is_name > (destination_bus_name)' failed > > > If I replace the line with > g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH, > INTERFACE_NAME, "Click", NULL, NULL); > > everything work fine. > > Am I misunderstanding something, or is it a bug? I'm pretty sure that the following commit addressed this possible bug: http://git.gnome.org/browse/glibmm/commit/?id=383d92d5647457593114cb1028cc7e8663ed5c71 glibmm-2.28.2 includes this change so, hopefully, this should not happen in any versions including that one or later. But there might still be a bug and if that's the case, as already said, it would help to have a bug filed. -- José From mlt@gmx.us Mon Aug 22 03:41:49 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5157C75005D for ; Mon, 22 Aug 2011 03:41:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.313 X-Spam-Level: X-Spam-Status: No, score=0.313 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FAKE_HELO_MAIL_COM_DOM=2.136, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_BM=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CwdeFFM4Hk3a for ; Mon, 22 Aug 2011 03:41:46 +0000 (UTC) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 759F175004D for ; Mon, 22 Aug 2011 03:41:37 +0000 (UTC) Received: (qmail invoked by alias); 22 Aug 2011 03:41:35 -0000 Received: from c-76-17-238-114.hsd1.mn.comcast.net (EHLO [192.168.0.100]) [76.17.238.114] by mail.gmx.com (mp-us007) with SMTP; 21 Aug 2011 23:41:35 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX19C+6YA2q9CI8/o3FSh10IlwW/Ly6VeuGHlEAyIaI ez5vzCNm/+4MgH Message-ID: <4E51CFED.9080009@gmx.us> Date: Sun, 21 Aug 2011 22:41:33 -0500 From: Mikhail Titov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: =?UTF-8?B?Sm9zw6kgQWxidXJxdWVycXVl?= Subject: Re: gstreamermm on windows References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> <1313440716.21770.17.camel@jose-desktop> <4E503A12.80104@gmx.us> <1313901509.9913.44.camel@jose-desktop> <4E50A601.30507@gmx.us> <1313941749.8264.14.camel@jose-desktop> In-Reply-To: <1313941749.8264.14.camel@jose-desktop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 03:41:49 -0000 On 08/21/2011 10:49 AM, José Alburquerque wrote: > On Sun, 2011-08-21 at 01:30 -0500, Mikhail Titov wrote: >> On 08/20/2011 11:38 PM, José Alburquerque wrote: >>> Hi Mikhail, thanks for trying: >>> >>> On Sat, 2011-08-20 at 17:49 -0500, Mikhail Titov wrote: >>>> static GLIBMM_API const ClockTime CLOCK_TIME_NONE = GST_CLOCK_TIME_NONE; >> I've built glibmm just fine, and I had something defined under this >> macro. It was possible to compile either by removing this or by >> undeffing and defining empty GLIBMM_API . I just can't imagine what >> could be there from VC++ point of view. If it is declared as static it >> resides in compiled unit and is of single copy when linked. AFAIK >> another alternative is to declare it extern and then export symbol from >> shared library. > Actually, these variables are designed to be constants that can be used > like their equivalent GStreamer constants. I did something similar to > what is done in glibmm's ustring.h with the npos constant. I'm thinking > that these should stay the way they are. In general, I think we prefer > to use variables instead of '#defines' for better type checking. I > could be wrong. I'll look into this a little more later though. I realized that I didn't have GLIBMM_HAVE_ALLOWS_STATIC_INLINE_POS defined while compiling. However I get problems when I enable it. Also there was an issue about it before http://mail.gnome.org/archives/gtkmm-list/2005-November/msg00149.html In my understanding if not declare just as static in header file, those constants should be declared in some cc file whereas in header file it should be made extern without static during gstreamermm building and __declspec(dllimport) for applications that use it. I'm not sure why gendef tool is preferred in all MM projects instead of __declspec(dllexport) as a result of macro expansion. As I mentioned before I can't think of anything in place of GLIBMM_API other than emptiness that would make it compile with MS VC++. >>> I would suggest you use 0.10.9.1 instead. It has a few bug fixes >>> necessary to ensure functionality of the examples and the library in >>> general. >> I think I used second to the latest. > If it's the release right before the latest one then, yes that should be > 0.10.9.1. I was wrong as I used plain 0.10.9 . I upgraded to 0.10.9.1 before I switch to Fedora instead of OBS. >>> There are the directdrawsink (in gst-plugins-bad) and the >>> directsoundsink (in gst-plugins-good) plugins for rendering video and >>> audio in Windows. I'm not sure that there are others. I see mingw32-gst-plugins-good package but I don't see devel one. Is it just something wrong with OBS? And does it mean that there is no MM counterpart as of now for directsound sink? I'm a bit confused as DirectShow is mentioned on gstreamer home page however directsound and directdraw are parts of DirectX. I remember absence of DirectShow support was the reason I'm using MSVC++ instead of gcc (tons of proprietary extensions used in SDK headers for DirectShow). Mikhail From murrayc@murrayc.com Mon Aug 22 09:57:19 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B7BCE7500BD for ; Mon, 22 Aug 2011 09:57:19 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yRn3Ps8SNI1U for ; Mon, 22 Aug 2011 09:57:17 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id 2127B75007E for ; Mon, 22 Aug 2011 09:57:08 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id E1C05206E8; Mon, 22 Aug 2011 05:57:06 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 22 Aug 2011 05:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version :content-transfer-encoding; s=smtpout; bh=4f4zjTnqWyCdUr8VZRIZNJ Hb790=; b=W+9p9TcW8E8dISOjThTCJn3JDkEcYLUEz99IIwZPU2rl4tO6obQfqp kRE05P1LUMDWJOaXBuYM5nAPfxyezbC2FzgdX+07wgzjOroZ0vk1OF6bPY2gT5VA snJXGKBEnwQGcCLW7PYyl4XduoLRWRo6IXODITxEOdI7uRp19SVpg= X-Sasl-enc: LnilvA8Ib7Uvzu5L26LQT00ykqjSHkfq4F2OEtsj3lDu 1314007026 Received: from [192.168.178.24] (ppp-93-104-180-244.dynamic.mnet-online.de [93.104.180.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 3FEC99E043B; Mon, 22 Aug 2011 05:57:06 -0400 (EDT) Subject: Re: Broken link in documentation From: Murray Cumming To: lecas malecas In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 22 Aug 2011 11:57:04 +0200 Message-ID: <1314007024.2291.12.camel@murrayc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 09:57:19 -0000 On Fri, 2011-08-19 at 21:51 +0100, lecas malecas wrote: > Hello, it seems the link to the Gtk::Label class leads nowhere. > > doc: http://developer.gnome.org/gtkmm/unstable/group__Widgets.html > > (search for Gtk::Label) > > or: http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Label.html Yes, it's a problem on developer.gnome.org: https://bugzilla.gnome.org/show_bug.cgi?id=650544 -- murrayc@murrayc.com www.murrayc.com www.openismus.com From zekedragon@gmail.com Mon Aug 22 11:20:37 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F0FF7500CD for ; Mon, 22 Aug 2011 11:20:37 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.381 X-Spam-Level: X-Spam-Status: No, score=-2.381 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GM=0.077, TW_GT=0.077, TW_TK=0.077, TW_VG=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z-AzIrRqDFva for ; Mon, 22 Aug 2011 11:20:34 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id C0EB37500C3 for ; Mon, 22 Aug 2011 11:20:25 +0000 (UTC) Received: by vws18 with SMTP id 18so7040022vws.27 for ; Mon, 22 Aug 2011 04:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=lPna41KVh8OU3GjqQqUDijfiTfDFpzgFIdPV4LUzt9U=; b=FeLYvoLlVamPWBGfsRA8H2Mj19bFw8jUSiiprzuwIrunUct7pHPvgezH9xeT6ozLJd DT1xYdC6wc4fRC9LEkHHMC7Joqkp3xe5Q+98s5FRoyynOJ8nvz3EG1EANHyq3aVDri03 1IfWN++GvxPFUOl5Oi+XxICjAVtHgrbh4ArGQ= MIME-Version: 1.0 Received: by 10.220.198.141 with SMTP id eo13mr621000vcb.75.1314012023647; Mon, 22 Aug 2011 04:20:23 -0700 (PDT) Received: by 10.220.181.73 with HTTP; Mon, 22 Aug 2011 04:20:23 -0700 (PDT) Date: Mon, 22 Aug 2011 04:20:23 -0700 Message-ID: Subject: Problem Drawing SVG File to Cluttermm Stage From: Ezekiel Oruven To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=90e6ba4fc1b4e66f0404ab1643e3 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 11:20:37 -0000 --90e6ba4fc1b4e66f0404ab1643e3 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I'm evaluating the use of Cluttermm or Cairomm for the development of an aesthetically pleasing budgeting program, and while it wasn't too difficult for me to get Cairomm up an running, as well as drawing SVG images to gtkmm widgets, I have not been so fortunate with Cluttermm. I am developing this for GTK2, so gtkmm 2.4, Cluttermm 1.1.3, and clutter-gtkmm 0.10. The problem is when I was trying to get SVG into Cluttermm. There was a project called Dax, which could be used to import SVG files, but it did not have a stable release available. However, there was the option in Cluttermm to produce a Clutter::Cairo::Texture, which is a special type of Clutter::Texture that one can create a Cairo::Context to perform Cairo drawing operations on. From here, I figured I could just use the same librsvgmm that I had used to get SVG files drawn in Cairomm. Here's the code: Glib::RefPtr get_svg_from_file(char const *filename, guint width, guint height) { std::string str(filename); Glib::RefPtr ret_actor; try { Glib::RefPtr handle =3D Rsvg::Handle::create_from_file(st= r); Glib::RefPtr cairo_texture =3D Clutter::Cairo::Texture::create(width, height); Glib::RefPtr draw_context =3D cairo_texture->create_context(); handle->render(draw_context); ret_actor =3D cairo_texture; } catch (Rsvg::Error e) { // Return the failure actor. Glib::ustring error_str("Bad Filename!"); ret_actor =3D Clutter::Text::create(ERROR_FONT, error_str, ERROR_COLOR)= ; } return ret_actor; } The problem here is that Rsvg::Handle::render() doesn't take a Glib::RefPtr, instead it takes a Cairo::RefPtr! This seems like a trivial issue, as it would be sensible for Cluttermm to return a Cairo::RefPtr instead of a Glib::RefPtr in this particular instance, but it does not. Either this was intentional, for reasons I cannot fathom, or it's an oversight, which I suppose makes sense considering the disparate libraries I'm connecting. To make my point more pronounced, it's clear this causes an error, as it's my first build problem: zeke@GoddamnPC:~/Projects/C/abe/abe/clutter_drawing$ g++ TryDrawSVG.cpp -o try `pkg-config --libs --cflags cluttermm-1.0 gtkmm-2.4 clutter-gtkmm-1.0 librsvgmm-2.0` TryDrawSVG.cpp: In function =91Glib::RefPtr get_svg_from_file(const char*, guint, guint)=92: TryDrawSVG.cpp:61: error: no matching function for call to =91Rsvg::Handle::render(Glib::RefPtr&)=92 /usr/local/include/librsvgmm-2.0/librsvgmm/rsvg.h:328: note: candidates are= : bool Rsvg::Handle::render(const Cairo::RefPtr&) const I was hoping someone on this mailing list has encountered these kinds of issues before, namely the interchanging of different libraries RefPtrs and how to go about changing it from a Glib::RefPtr to a Cairo::RefPtr. If this isn't an option, could someone give me another choice or method to import SVG files for drawing onto a Clutter::Stage? Thank you for any assistance. --90e6ba4fc1b4e66f0404ab1643e3 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I'm evaluating the use of Cluttermm or Cairomm for the development of a= n aesthetically pleasing budgeting program, and while it wasn't too dif= ficult for me to get Cairomm up an running, as well as drawing SVG images t= o gtkmm widgets, I have not been so fortunate with Cluttermm. I am developi= ng this for GTK2, so gtkmm 2.4, Cluttermm 1.1.3, and clutter-gtkmm 0.10.
The problem is when I was trying to get SVG into Cluttermm. = There was a project called Dax, which could be used to import SVG files, bu= t it did not have a stable release available. However, there was the option= in Cluttermm to produce a Clutter::Cairo::Texture, which is a special type= of Clutter::Texture that one can create a Cairo::Context to perform Cairo = drawing operations on. From here, I figured I could just use the same librs= vgmm that I had used to get SVG files drawn in Cairomm. Here's the code= :

Glib::RefPtr<Clutter::Actor> get_svg_from_fi= le(char const *filename, guint width, guint height)
{
= =A0 std::string str(filename);
=A0 Glib::RefPtr<Clutter::Actor= > ret_actor;
=A0 try
=A0 {
=A0 =A0 Glib::RefPtr<Rsvg::Handle= > handle =3D Rsvg::Handle::create_from_file(str);
=A0 =A0 Glib= ::RefPtr<Clutter::Cairo::Texture> cairo_texture =3D=A0
=A0 = =A0 =A0 Clutter::Cairo::Texture::create(width, height);
=A0 =A0 Glib::RefPtr<Cairo::Context> draw_context =3D cairo_text= ure->create_context();
=A0 =A0 handle->render(draw_context)= ;
=A0 =A0 ret_actor =3D cairo_texture;
=A0 }
= =A0 catch (Rsvg::Error e)
=A0 {
=A0 =A0 // Return the failure actor.
=A0 =A0= Glib::ustring error_str("Bad Filename!");
=A0 =A0 ret_= actor =3D Clutter::Text::create(ERROR_FONT, error_str, ERROR_COLOR);
<= div>=A0 }
=A0 return ret_actor;
}

The p= roblem here is that Rsvg::Handle::render() doesn't take a Glib::RefPtr&= lt;Cairo::Context>, instead it takes a Cairo::RefPtr<Cairo::Context&g= t;! This seems like a trivial issue, as it would be sensible for Cluttermm = to return a Cairo::RefPtr instead of a Glib::RefPtr in this particular inst= ance, but it does not. Either this was intentional, for reasons I cannot fa= thom, or it's an oversight, which I suppose makes sense considering the= disparate libraries I'm connecting. To make my point more pronounced, = it's clear this causes an error, as it's my first build problem:

zeke@GoddamnPC:~/Projects/C/abe/abe/clutter_drawin= g$ g++ TryDrawSVG.cpp -o try `pkg-config --libs --cflags cluttermm-1.0 gtkm= m-2.4 clutter-gtkmm-1.0 librsvgmm-2.0`
TryDrawSVG.cpp: In functio= n =91Glib::RefPtr<Clutter::Actor> get_svg_from_file(const char*, guin= t, guint)=92:
TryDrawSVG.cpp:61: error: no matching function for call to =91Rsvg::Ha= ndle::render(Glib::RefPtr<Cairo::Context>&)=92
/usr/loc= al/include/librsvgmm-2.0/librsvgmm/rsvg.h:328: note: candidates are: bool R= svg::Handle::render(const Cairo::RefPtr<Cairo::Context>&) const

I was hoping someone on this mailing list has enc= ountered these kinds of issues before, namely the interchanging of differen= t libraries RefPtrs and how to go about changing it from a Glib::RefPtr to = a Cairo::RefPtr. If this isn't an option, could someone give me another= choice or method to import SVG files for drawing onto a Clutter::Stage?

Thank you for any assistance.
--90e6ba4fc1b4e66f0404ab1643e3-- From murrayc@murrayc.com Mon Aug 22 13:57:30 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE2D0750114 for ; Mon, 22 Aug 2011 13:57:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ut0eMYCn1YQm for ; Mon, 22 Aug 2011 13:57:28 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by menubar.gnome.org (Postfix) with ESMTP id ADCE87500C3 for ; Mon, 22 Aug 2011 13:57:20 +0000 (UTC) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 0F79D209DD; Mon, 22 Aug 2011 09:57:18 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 22 Aug 2011 09:57:18 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version :content-transfer-encoding; s=smtpout; bh=ZDLMCiBbuJROEoqdo1VurM 3zdRw=; b=IUVHciOEYEjGCkuzO/+Y4SB9ZznXgVDIIu76Qf9+Rq4zGoG7IeaKLQ Y4mpC92WsCHOIYbY3DDrCAAEp1M9moIIckOS0wlTyZnJwdMWRgiz8klzhmaFwWsN j52eYCB6vEaXSZMehla4XLoKHwNjPSyCWK/71M5MUP+KhOIybq36c= X-Sasl-enc: UaYg4cFgv5EKNxW+Cvqk4iqKNkMHfkwtyigAmp5NlBl1 1314021437 Received: from [192.168.178.24] (ppp-93-104-180-244.dynamic.mnet-online.de [93.104.180.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 6AD3E860C70; Mon, 22 Aug 2011 09:57:17 -0400 (EDT) Subject: Re: Problem Drawing SVG File to Cluttermm Stage From: Murray Cumming To: Ezekiel Oruven In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 22 Aug 2011 15:57:16 +0200 Message-ID: <1314021436.2291.51.camel@murrayc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 13:57:31 -0000 On Mon, 2011-08-22 at 04:20 -0700, Ezekiel Oruven wrote: > The problem here is that Rsvg::Handle::render() doesn't take a > Glib::RefPtr, instead it takes a > Cairo::RefPtr! This seems like a trivial issue, as it > would be sensible for Cluttermm to return a Cairo::RefPtr instead of a > Glib::RefPtr Yes, Cairo::Context should always be used bia Cairo::RefPtr. Just file a bug against any library that does otherwise. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From aurisc4@gmail.com Mon Aug 22 17:32:21 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 64D147501A4 for ; Mon, 22 Aug 2011 17:32:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BM=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xGGQFUQdXl5f for ; Mon, 22 Aug 2011 17:32:19 +0000 (UTC) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id 2CC497500CE for ; Mon, 22 Aug 2011 17:32:10 +0000 (UTC) Received: by bkat8 with SMTP id t8so7375692bka.27 for ; Mon, 22 Aug 2011 10:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:message-id:mime-version; bh=Ns1JyAYwKo033FAz+htIxo2L+C3u7fTp/QVM+uDYvsg=; b=ZLnxaUnVp+wNZUeu6nsoQrGWBtb4xKaEgGOS8YSsaq6Pht9bP7xXMueq4MHU64gSQm 1iweIK8sRkNTzWh6j8MedDUFFb8WgijSam3zmB9IChmLRiPJaEZXfDPBcQE+Xya3VTsJ TU2t+z5bUO0KNOJwC9wg8T/vZz1kLVtRon91A= Received: by 10.204.136.136 with SMTP id r8mr1032250bkt.298.1314034328991; Mon, 22 Aug 2011 10:32:08 -0700 (PDT) Received: from [84.32.192.50] ([84.32.192.50]) by mx.google.com with ESMTPS id z7sm1617387bkj.38.2011.08.22.10.32.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Aug 2011 10:32:07 -0700 (PDT) Subject: Re: Gio::DBus::Connection::emit_signal issue From: Aurimas =?UTF-8?Q?=C4=8Cernius?= To: =?ISO-8859-1?Q?Jos=E9?= Alburquerque Date: Mon, 22 Aug 2011 20:26:57 +0300 In-Reply-To: <1313970147.9675.15.camel@jose-desktop> References: <1313956025.1534.6.camel@cerniu-namai.vdnet.lt> <1313970147.9675.15.camel@jose-desktop> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-hUxpMzt/khz62EHAe5Cf" X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15) Message-ID: <1314034024.1471.2.camel@cerniu-namai.vdnet.lt> Mime-Version: 1.0 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2011 17:32:21 -0000 --=-hUxpMzt/khz62EHAe5Cf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, > > Hi, > >=20 > > I have issues with Gio::DBus::Connection::emit_signal. > > When I call it this way: > > connection->emit_signal(OBJECT_PATH, INTERFACE_NAME, "Click"); > >=20 > > It doesn't do anything, except priting to conlose > > (server:23353): GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: > > assertion `destination_bus_name =3D=3D NULL || g_dbus_is_name > > (destination_bus_name)' failed > >=20 > >=20 > > If I replace the line with > > g_dbus_connection_emit_signal(connection->gobj(), NULL, OBJECT_PATH, > > INTERFACE_NAME, "Click", NULL, NULL); > >=20 > > everything work fine. > >=20 > > Am I misunderstanding something, or is it a bug? >=20 > I'm pretty sure that the following commit addressed this possible bug: >=20 > http://git.gnome.org/browse/glibmm/commit/?id=3D383d92d5647457593114cb102= 8cc7e8663ed5c71 >=20 > glibmm-2.28.2 includes this change so, hopefully, this should not happen > in any versions including that one or later. But there might still be a > bug and if that's the case, as already said, it would help to have a bug > filed. I'm using Fedora 15 and it has 2.28.1 and commit does explain it. Thanks. --=20 Aurimas --=-hUxpMzt/khz62EHAe5Cf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAABAgAGBQJOUpFhAAoJECtTeRAzEaLPhYQH/2HGXbIG0+g5r21bNMlkwkDx 6dN4NKnoW6ePW99YWuW3xAXFqy/GG0SSO1oR0tIDszMsCiiUQ+AU+D/fR9LnkebF 4cTX/qxsc/4uBjd4vhJrLpOdYDKMJrJ5VP2yHVofsZGVnD6xBJRtASTGECT1gkmS lvbH3b0u0vQ0/ZSNGYmdpUrPo2xLZyPs2tKydcOeNpw4CX8Ls70kZset33Xjk9Ib J8Vg2Whp1xklKUHO63PgqZfUEMNvqUPxozgNGn+vQhkJ7iaSmTsO5DBmaSmD8D03 79+poTE1tWSQjPY6OtNRLHe9lg3IbKcAsAecHkF/xsELtDCtNHlEmtgTCWfIRUY= =1ZPp -----END PGP SIGNATURE----- --=-hUxpMzt/khz62EHAe5Cf-- From jaalburquerque@gmail.com Tue Aug 23 03:29:45 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CA60750101 for ; Tue, 23 Aug 2011 03:29:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BM=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LHIX+P-GBCV6 for ; Tue, 23 Aug 2011 03:29:42 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 1ACD4750077 for ; Tue, 23 Aug 2011 03:29:33 +0000 (UTC) Received: by gyd10 with SMTP id 10so6308449gyd.27 for ; Mon, 22 Aug 2011 20:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=9xUOBhePJiZFYKjsOxNZUBWMMokBisoqIpQcuSzKSTo=; b=qLuYDCPojXMq98VxR3sBevksyjtso0Cn6DN5sK1f0roNxw8pEvvyAP4EtobnqAZ469 eum65pgMINp3wf8H7mS7//E6HK5vbcwFYBLSOKMgh/awTch42N1zIHf0xXoldE7dUeDv RmAzIMedwIFqsqjq2y+QrqlglexR6A7Fj+iiQ= Received: by 10.101.24.4 with SMTP id b4mr1508146anj.73.1314070171671; Mon, 22 Aug 2011 20:29:31 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-226-91.ga.at.cox.net [24.250.226.91]) by mx.google.com with ESMTPS id n14sm5821417ani.38.2011.08.22.20.29.29 (version=SSLv3 cipher=OTHER); Mon, 22 Aug 2011 20:29:30 -0700 (PDT) Subject: Re: gstreamermm on windows From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Mikhail Titov Date: Mon, 22 Aug 2011 23:29:28 -0400 In-Reply-To: <4E51CFED.9080009@gmx.us> References: <1313423815.8214.1.camel@jose-desktop> <1313429923.8214.8.camel@jose-desktop> <001201cc5b77$f73f2c10$e5bd8430$@us> <1313438528.21770.5.camel@jose-desktop> <1313440716.21770.17.camel@jose-desktop> <4E503A12.80104@gmx.us> <1313901509.9913.44.camel@jose-desktop> <4E50A601.30507@gmx.us> <1313941749.8264.14.camel@jose-desktop> <4E51CFED.9080009@gmx.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.5- Content-Transfer-Encoding: 8bit Message-ID: <1314070169.11467.26.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 03:29:45 -0000 On Sun, 2011-08-21 at 22:41 -0500, Mikhail Titov wrote: > > On 08/21/2011 10:49 AM, José Alburquerque wrote: > > On Sun, 2011-08-21 at 01:30 -0500, Mikhail Titov wrote: > >> On 08/20/2011 11:38 PM, José Alburquerque wrote: > >>> Hi Mikhail, thanks for trying: > >>> > >>> On Sat, 2011-08-20 at 17:49 -0500, Mikhail Titov wrote: > >>>> static GLIBMM_API const ClockTime CLOCK_TIME_NONE = GST_CLOCK_TIME_NONE; > >> I've built glibmm just fine, and I had something defined under this > >> macro. It was possible to compile either by removing this or by > >> undeffing and defining empty GLIBMM_API . I just can't imagine what > >> could be there from VC++ point of view. If it is declared as static it > >> resides in compiled unit and is of single copy when linked. AFAIK > >> another alternative is to declare it extern and then export symbol from > >> shared library. > > Actually, these variables are designed to be constants that can be used > > like their equivalent GStreamer constants. I did something similar to > > what is done in glibmm's ustring.h with the npos constant. I'm thinking > > that these should stay the way they are. In general, I think we prefer > > to use variables instead of '#defines' for better type checking. I > > could be wrong. I'll look into this a little more later though. > I realized that I didn't have GLIBMM_HAVE_ALLOWS_STATIC_INLINE_POS > defined while compiling. However I get problems when I enable it. Also > there was an issue about it before > http://mail.gnome.org/archives/gtkmm-list/2005-November/msg00149.html > > In my understanding if not declare just as static in header file, those > constants should be declared in some cc file whereas in header file it > should be made extern without static during gstreamermm building and > __declspec(dllimport) for applications that use it. I'm not sure why > gendef tool is preferred in all MM projects instead of > __declspec(dllexport) as a result of macro expansion. As I mentioned > before I can't think of anything in place of GLIBMM_API other than > emptiness that would make it compile with MS VC++. I'll take this into account now that gstreamermm should build on Windows. Thanks. > >>> I would suggest you use 0.10.9.1 instead. It has a few bug fixes > >>> necessary to ensure functionality of the examples and the library in > >>> general. > >> I think I used second to the latest. > > If it's the release right before the latest one then, yes that should be > > 0.10.9.1. > I was wrong as I used plain 0.10.9 . I upgraded to 0.10.9.1 before I > switch to Fedora instead of OBS. > >>> There are the directdrawsink (in gst-plugins-bad) and the > >>> directsoundsink (in gst-plugins-good) plugins for rendering video and > >>> audio in Windows. I'm not sure that there are others. > I see mingw32-gst-plugins-good package but I don't see devel one. Is it > just something wrong with OBS? I don't think there would be a devel package because the plugins in the packages providing them are meant to be used generically by creating them via a GstElementFactory. On this system (ubuntu) there are no -devel packages for the gst-plugins-{good,ugly} either. > And does it mean that there is no MM > counterpart as of now for directsound sink? Right now there's no specific class wrapping these plugins but they can be used generically. The ogg_player example shows how that could be done. > > I'm a bit confused as DirectShow is mentioned on gstreamer home page > however directsound and directdraw are parts of DirectX. I remember > absence of DirectShow support was the reason I'm using MSVC++ instead of > gcc (tons of proprietary extensions used in SDK headers for DirectShow). I don't know enough about these technologies to give you any exact answer, but I think that what GStreamer does is write plugins to use the underlying technology not actually implement the technology. As far as building, I think using MinGW first is better because the GStreamer build system is designed to use autotools by default and MinGW allows using the same system. During the configuration process (using autotools), the various GStreamer packages detect which plugins are available for building. Once things are built there, then things can be configured for MSVC++. That's what I think presently. I've already begun, but you should continue your attempt. Hopefully you might be able to provide something useful for others also. > > Mikhail -- José From kjell.ahlstedt@bredband.net Tue Aug 23 13:26:54 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54427502BC for ; Tue, 23 Aug 2011 13:26:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.67 X-Spam-Level: X-Spam-Status: No, score=-1.67 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_JH=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P8bIz3Aop1Yr for ; Tue, 23 Aug 2011 13:26:51 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by menubar.gnome.org (Postfix) with ESMTP id 772E6750077 for ; Tue, 23 Aug 2011 13:26:43 +0000 (UTC) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 33CF1C9AB for ; Tue, 23 Aug 2011 15:26:41 +0200 (CEST) X-SENDER-IP: [85.227.232.137] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoWAN6pU05V4+iJPGdsb2JhbAAMNYRLo1sBAQEBN4FyAQEBAQMBAQEgSwsQCw4MAiYCAiccFAYTh3WoQ5F+gSyEDIEQBKQV X-IronPort-AV: E=Sophos;i="4.68,269,1312149600"; d="scan'208";a="36033914" Received: from c-89e8e355.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.227.232.137]) by ipb3.telenor.se with ESMTP; 23 Aug 2011 15:26:40 +0200 Subject: Re: Gtkmm installation From: Kjell Ahlstedt To: Glus Xof In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 23 Aug 2011 15:26:40 +0200 Message-ID: <1314106000.2787.9.camel@kjell-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 13:26:54 -0000 I assume that you refer to the Bugzilla comment https://bugzilla.gnome.org/show_bug.cgi?id=653579#c5 To use the version of gtkmm that you have built and installed with 'jhbuild build', you can start a new shell with 'jhbuild shell'. See http://developer.gnome.org/jhbuild/unstable/command-reference.html#command-reference-shell It adds and modifies a lot of environment variables. I'm not sure which ones are really important. Anyway, if you compile, link, and run your application in a shell that 'jhbuild shell' has created, you will use the version of gtkmm that jhbuild has built. tis 2011-08-16 klockan 16:03 +0200 skrev Glus Xof: > Hi guys, > > After the Mr Cumming's response in Buzilla, yesterday, I'm analysing > my Gtkmm installation... > > While I'm working in a Debian GNU/Linux system, the shared libraries > are already installed by package manager... > > On the other hand & for getting the last version, I build Gtkmm (in my > /home folder) using jhbuild & git. > > My hypothese is that my app, according to the newest jhbuild & git > version (and after setting the PKG_CONFIG_PATH envent var) compiles > well, but breaks because it runs according to the content of the older > deb package version. > > If so (if I well realized the problem), how can I solve and finish the > installation ? > (Must copy -or delete- something to /usr/lib.. ?, must set an extra var ?, ...) > > Glus > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From kjell.ahlstedt@bredband.net Tue Aug 23 14:39:29 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 04C96750279 for ; Tue, 23 Aug 2011 14:39:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.901 X-Spam-Level: X-Spam-Status: No, score=-1.901 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BygoqSdjysTA for ; Tue, 23 Aug 2011 14:39:26 +0000 (UTC) X-Greylist: delayed 1963 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 23 Aug 2011 14:39:26 UTC Received: from smtprelay-b12.telenor.se (smtprelay-b12.telenor.se [62.127.194.21]) by menubar.gnome.org (Postfix) with ESMTP id 1ED29750070 for ; Tue, 23 Aug 2011 14:39:17 +0000 (UTC) Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 7DAB2C0F2 for ; Tue, 23 Aug 2011 16:06:32 +0200 (CEST) X-SENDER-IP: [85.227.232.137] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AggvAJWyU05V4+iJPGdsb2JhbAAMNYRLoXuBYAEBAQE3gXIBAQUjDwFGEAsaAiYCAkMUBogIqGSRfoEshAyBEASOaAmVJA X-IronPort-AV: E=Sophos;i="4.68,269,1312149600"; d="scan'208";a="214671158" Received: from c-89e8e355.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.227.232.137]) by ipb1.telenor.se with ESMTP; 23 Aug 2011 16:06:32 +0200 Subject: Re: Selection color in TreeView From: Kjell Ahlstedt To: MatrixXXX In-Reply-To: <32254894.post@talk.nabble.com> References: <32254894.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 23 Aug 2011 16:06:31 +0200 Message-ID: <1314108391.2787.16.camel@kjell-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 8bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 14:39:29 -0000 C++ methods for changing color: gtkmm2: Gtk::Widget::modify_fg(), modify_text(), modify_bg(), modify_base(). gtkmm3: Gtk::Widget::override_color(), override_background_color(). See also bug 551912 (https://bugzilla.gnome.org/show_bug.cgi?id=551912). It's more complicated than you would think to find the correct way to change the color of a widget. I'm not sure exactly how to change color in a TreeView. Perhaps it's not possible to change it just by calling e.g. Gtk::TreeView::override_color(). I guess that each cell contains its own widget, whose color must be changed. lör 2011-08-13 klockan 00:05 -0700 skrev MatrixXXX: > Hi, > How Can I change selection color in TreeView? > > http://img155.imageshack.us/img155/8104/22291831.png > > I want to do it in C++ code, not in file where style is saved. > > From darkiiiiii@gmail.com Tue Aug 23 17:32:21 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32AEF750077 for ; Tue, 23 Aug 2011 17:32:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.342 X-Spam-Level: X-Spam-Status: No, score=-1.342 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IvE5K-ShxIgN for ; Tue, 23 Aug 2011 17:32:19 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 2CB67750068 for ; Tue, 23 Aug 2011 17:32:10 +0000 (UTC) Received: by gyd10 with SMTP id 10so400301gyd.27 for ; Tue, 23 Aug 2011 10:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=6B6YK/rmdEGgseauYqMd2tsvU0/6CJBdqOjPr4XZVB4=; b=lEbBa2nw7HaIcC1iiJwKisAWgZ8ocxNdnuBuzc53POsD4/aCfDZ9FRmAn5Fa4ZE6hX 31sDEiI7Rh+4jrMoPhk9ozCh5W+9++oEXvtZqseDa1fjnMbdVTn6cekACThfvgKZxIDd UX1MhtH7i4NYaEEzovmA2EVbMRNI27q7xwEIw= MIME-Version: 1.0 Received: by 10.101.9.4 with SMTP id m4mr3986814ani.150.1314120729241; Tue, 23 Aug 2011 10:32:09 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Tue, 23 Aug 2011 10:32:09 -0700 (PDT) Date: Tue, 23 Aug 2011 18:32:09 +0100 Message-ID: Subject: Changing background-color of elements From: lecas malecas To: gtkmm-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 17:32:21 -0000 Hi, I'm trying to change the background color of certain elements, but I can't find any documentation or example showing how that is done. I've found the Gdk::Color and the Gdk::RGBA, but I don't know how to apply this to the elements. From mlt@gmx.us Tue Aug 23 18:34:08 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 694707500C1 for ; Tue, 23 Aug 2011 18:34:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UZqNydC1lQcK for ; Tue, 23 Aug 2011 18:34:05 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id B7E3A750077 for ; Tue, 23 Aug 2011 18:33:57 +0000 (UTC) Received: (qmail invoked by alias); 23 Aug 2011 18:19:23 -0000 Received: from bbe200951282.cfans.umn.edu (EHLO BBE200951282) [134.84.209.6] by mail.gmx.com (mp-us001) with SMTP; 23 Aug 2011 14:19:23 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX1/+f+UtRtX+86lgdom+8jkIXT8Tiou5b5WRtAjFvo vRX+SOS7wU3bvL From: "Mikhail Titov" To: "'lecas malecas'" , References: In-Reply-To: Subject: RE: Changing background-color of elements Date: Tue, 23 Aug 2011 13:19:22 -0500 Message-ID: <000c01cc61c1$2f6878e0$8e396aa0$@us> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acxhup6g0oXp3vsHSHamXl+HHJmHXgABjNuQ Content-Language: en-us X-Y-GMX-Trusted: 0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 18:34:08 -0000 Gtk::Widget::override_color ? I'd appreciate if someone can share an example how to use CSS on win32 for gtkmm3. Mikhail > -----Original Message----- > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] > On Behalf Of lecas malecas > Sent: Tuesday, August 23, 2011 12:32 PM > To: gtkmm-list@gnome.org > Subject: Changing background-color of elements > > Hi, I'm trying to change the background color of certain elements, but > I can't find any documentation or example showing how that is done. > > I've found the Gdk::Color and the Gdk::RGBA, but I don't know how to > apply this to the elements. > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From darkiiiiii@gmail.com Tue Aug 23 22:17:06 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 10BD27500B0 for ; Tue, 23 Aug 2011 22:17:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zkTmFXvo99gf for ; Tue, 23 Aug 2011 22:17:02 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 6A49E75000A for ; Tue, 23 Aug 2011 22:16:53 +0000 (UTC) Received: by gwb15 with SMTP id 15so678373gwb.27 for ; Tue, 23 Aug 2011 15:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oIk9lTryWq8Mic3xqPp9FNHyUz95qcaj26xGHUt3MYo=; b=GRPbE1yrt/JjVRdaQThtwtEOOvBndP7EFWGccI9agXXpmzoq5ttGu1guuY0YbkVp21 S3DgGh1acboj6uVXdPUCulshx55640BYztAfLoSMXZRqcq+jgM8/WeQ/oKQhetPCSVCq jA68XEsb3C1hVMrYchU77rWnL7PY37Merg5gg= MIME-Version: 1.0 Received: by 10.101.9.4 with SMTP id m4mr4249792ani.150.1314137810198; Tue, 23 Aug 2011 15:16:50 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Tue, 23 Aug 2011 15:16:50 -0700 (PDT) In-Reply-To: <000c01cc61c1$2f6878e0$8e396aa0$@us> References: <000c01cc61c1$2f6878e0$8e396aa0$@us> Date: Tue, 23 Aug 2011 23:16:50 +0100 Message-ID: Subject: Re: Changing background-color of elements From: lecas malecas To: Mikhail Titov , gtkmm-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 22:17:06 -0000 Ok, I tried override_color and it works, but override_background_color seems to only work on some elements. Of the ones I have in my program, only had any effect on a Gtk::Entry, the rest it compiled, but didn't change the background. Which are the valid elements? (I tried looking in the documentation but saw no reference to this) On Tue, Aug 23, 2011 at 7:19 PM, Mikhail Titov wrote: > Gtk::Widget::override_color ? > > I'd appreciate if someone can share an example how to use CSS on win32 for > gtkmm3. > > Mikhail > >> -----Original Message----- >> From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] >> On Behalf Of lecas malecas >> Sent: Tuesday, August 23, 2011 12:32 PM >> To: gtkmm-list@gnome.org >> Subject: Changing background-color of elements >> >> Hi, I'm trying to change the background color of certain elements, but >> I can't find any documentation or example showing how that is done. >> >> I've found the Gdk::Color and the Gdk::RGBA, but I don't know how to >> apply this to the elements. >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > From AParr@federalapd.com Wed Aug 24 22:18:43 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 74DF27501E5 for ; Wed, 24 Aug 2011 22:18:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.034 X-Spam-Level: X-Spam-Status: No, score=-0.034 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, KHOP_DYNAMIC=0.729, RDNS_DYNAMIC=0.982, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6FTP6QptBnJ2 for ; Wed, 24 Aug 2011 22:18:41 +0000 (UTC) X-Greylist: delayed 347 seconds by postgrey-1.32 at menubar.gnome.org; Wed, 24 Aug 2011 22:18:41 UTC Received: from outboundmail2.federalsignal.com (208.176.42.144.ptr.us.xo.net [208.176.42.144]) by menubar.gnome.org (Postfix) with ESMTP id 7A1877501BF for ; Wed, 24 Aug 2011 22:18:33 +0000 (UTC) Received: from 15-MAIL-002.fsgn.net ([::1]) by OB-Web-004.fsgn.net ([::1]) with mapi id 14.01.0270.001; Wed, 24 Aug 2011 17:12:44 -0500 From: "Parr, Aaron" To: "gtkmm-list@gnome.org" Subject: gtkmm deps graph link not working Thread-Topic: gtkmm deps graph link not working Thread-Index: Acxiqub5GS22lW6ZSl+xc3jHx1bL4Q== Date: Wed, 24 Aug 2011 22:12:42 +0000 Message-ID: <2CABB6C012986A41B3487BFBC766C75E027BF8@15-mail-002.fsgn.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {88C12F83-973B-4350-A941-0CC9DA163C21} x-cr-hashedpuzzle: uy0= ACJM AR0J Bawa BgWM DYQx EWwx EkYy Eo82 E+ag G8dJ HMOT I+Zf Jo02 J0Fr K3AB; 1; ZwB0AGsAbQBtAC0AbABpAHMAdABAAGcAbgBvAG0AZQAuAG8AcgBnAA==; Sosha1_v1; 7; {88C12F83-973B-4350-A941-0CC9DA163C21}; YQBwAGEAcgByAEAAZgBlAGQAZQByAGEAbABhAHAAZAAuAGMAbwBtAA==; Wed, 24 Aug 2011 22:12:24 GMT; ZwB0AGsAbQBtACAAZABlAHAAcwAgAGcAcgBhAHAAaAAgAGwAaQBuAGsAIABuAG8AdAAgAHcAbwByAGsAaQBuAGcA x-originating-ip: [10.31.101.119] Content-Type: multipart/alternative; boundary="_000_2CABB6C012986A41B3487BFBC766C75E027BF815mail002fsgnnet_" MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 25 Aug 2011 15:17:43 +0000 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2011 22:18:43 -0000 --_000_2CABB6C012986A41B3487BFBC766C75E027BF815mail002fsgnnet_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Near the bottom of http://www.gtkmm.org/en/download.html, the link to depen= dency graphs for gtkmm (pointing to http://www.gtkmm.org/en/jhbuild_dot_gtk= mm.png) seems to be broken (404-ing). Thanks and have a nice day, -Aaron --_000_2CABB6C012986A41B3487BFBC766C75E027BF815mail002fsgnnet_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

Near the bottom of http://www.gtkmm.org/en/download.html, the link to dependency graphs fo= r gtkmm (pointing to http://www.gtkmm.= org/en/jhbuild_dot_gtkmm.png) seems to be broken (404-ing).<= /p>

 

Thanks and have a nice day,

-Aaron

--_000_2CABB6C012986A41B3487BFBC766C75E027BF815mail002fsgnnet_-- From darkiiiiii@gmail.com Thu Aug 25 19:00:41 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A2F3750286 for ; Thu, 25 Aug 2011 19:00:41 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.689 X-Spam-Level: X-Spam-Status: No, score=-2.689 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mPZTaD2uKRZM for ; Thu, 25 Aug 2011 19:00:39 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 7FBDD7501C6 for ; Thu, 25 Aug 2011 19:00:31 +0000 (UTC) Received: by gxk28 with SMTP id 28so3001697gxk.27 for ; Thu, 25 Aug 2011 12:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=MGNtF7doktc2mBTqlJotuQDxc3govXjchrgfQ8KA+nE=; b=nJWmp+x/a7ggW5+PdwxEdPYbaIaKEKm/zXHnfqmK+Pk7EnCmSZZjf+Jnfl+aMlES6p FePEF6SqmrN5PJBnVhS6ilb66sRfhBO8HyEfGYbqrcHpScbdBV6T0WdJMPyw09p8UjBC LyN5fVfvaetg72v5hyo0aaSs1xGeBqkPEey9Q= MIME-Version: 1.0 Received: by 10.101.95.3 with SMTP id x3mr129750anl.58.1314298829606; Thu, 25 Aug 2011 12:00:29 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Thu, 25 Aug 2011 12:00:29 -0700 (PDT) Date: Thu, 25 Aug 2011 20:00:29 +0100 Message-ID: Subject: keyboard events From: lecas malecas To: gtkmm-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 19:00:41 -0000 Hey, I have a window which I want to close when the esc key is pressed, I've tried overriding the "virtual bool on_key_release_event (GdkEventKey* event); " but I get some weird errors (also can't find the documentation about GdkEventKey, to identify the keys). I tried adding a function to the "signal_key_release_event()" but also get some errors :) Can anyone tell me how to call a function when the esc key is pressed (on a Gtk::Window derived class)? From yann@leydier.info Thu Aug 25 19:17:16 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B2F517502DB for ; Thu, 25 Aug 2011 19:17:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x+iVOPwZn4iK for ; Thu, 25 Aug 2011 19:17:15 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by menubar.gnome.org (Postfix) with ESMTP id BCAAA750286 for ; Thu, 25 Aug 2011 19:17:06 +0000 (UTC) Received: from [192.168.0.21] (sal69-3-78-192-148-193.fbxo.proxad.net [78.192.148.193]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MgI6w-1QZ41m0jqA-00NGbw; Thu, 25 Aug 2011 21:17:04 +0200 Message-ID: <4E569FB0.5000205@leydier.info> Date: Thu, 25 Aug 2011 21:17:04 +0200 From: Yann LEYDIER User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110805 Icedove/5.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: keyboard events References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:AI5VnDChMx3TqPPE1fTQD4EL60IDzZ4tKjN1wKzpDBz cevD3+aiAmF3fG8v7BCgUXOko9m09UjJMuTA8y1qMPeknNaDen u6pLQl8eyDS5XHRllzVPTdnqRc5dlnkDjY4wrW4hKmZ4gDo3vt FnILWK7vyzCweK7Bi5692Fozy/MLH5ndn40BZ4vIGxRI0N7Wl4 y11Y1Yck2PEgqvBKcUBvCnJwkrvY1w3KwqHKQCl4fQ= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 19:17:16 -0000 Hi, signal_key_release_event() seems the right way to do it. For the list of key values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventKey You could also derivate your class from Gtk::Dialog, which recieves a response when ESC is pressed. yann On 25/08/11 21:00, lecas malecas wrote: > Hey, I have a window which I want to close when the esc key is > pressed, I've tried overriding the "virtual bool on_key_release_event > (GdkEventKey* event); " but I get some weird errors (also can't find > the documentation about GdkEventKey, to identify the keys). I tried > adding a function to the "signal_key_release_event()" but also get > some errors :) > > Can anyone tell me how to call a function when the esc key is pressed > (on a Gtk::Window derived class)? > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From mlt@gmx.us Thu Aug 25 19:49:34 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 934D87503F7 for ; Thu, 25 Aug 2011 19:49:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01lhvNWTaqgg for ; Thu, 25 Aug 2011 19:49:32 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 94B227503D2 for ; Thu, 25 Aug 2011 19:49:24 +0000 (UTC) Received: (qmail invoked by alias); 25 Aug 2011 19:49:21 -0000 Received: from bbe200951282.cfans.umn.edu (EHLO BBE200951282) [134.84.209.6] by mail.gmx.com (mp-us004) with SMTP; 25 Aug 2011 15:49:21 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX1/Zlxxy1CTZ14sMea6MZLb2wCkEz5c8vpufkzttpv RC/KEDbbiNQEvB From: "Mikhail Titov" To: "'Yann LEYDIER'" , References: <4E569FB0.5000205@leydier.info> In-Reply-To: <4E569FB0.5000205@leydier.info> Subject: RE: keyboard events Date: Thu, 25 Aug 2011 14:49:20 -0500 Message-ID: <003501cc6360$159ad2a0$40d077e0$@us> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxjW5wo0GYct9o6R++hAw3cq0U6+AABCipw Content-Language: en-us X-Y-GMX-Trusted: 0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 19:49:34 -0000 IIRC if you derive your class from Dialog instead of Window, it will do it by default. Mikhail > -----Original Message----- > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] > On Behalf Of Yann LEYDIER > Sent: Thursday, August 25, 2011 2:17 PM > To: gtkmm-list@gnome.org > Subject: Re: keyboard events > > Hi, > > signal_key_release_event() seems the right way to do it. For the list of > key values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : > http://developer.gnome.org/gdk/stable/gdk-Event- > Structures.html#GdkEventKey > > You could also derivate your class from Gtk::Dialog, which recieves a > response when ESC is pressed. > > yann > > On 25/08/11 21:00, lecas malecas wrote: > > Hey, I have a window which I want to close when the esc key is > > pressed, I've tried overriding the "virtual bool on_key_release_event > > (GdkEventKey* event); " but I get some weird errors (also can't find > > the documentation about GdkEventKey, to identify the keys). I tried > > adding a function to the "signal_key_release_event()" but also get > > some errors :) > > > > Can anyone tell me how to call a function when the esc key is pressed > > (on a Gtk::Window derived class)? > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From darkiiiiii@gmail.com Thu Aug 25 19:52:26 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E85687503D2 for ; Thu, 25 Aug 2011 19:52:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Sgyr+jEYms2 for ; Thu, 25 Aug 2011 19:52:24 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 28142750374 for ; Thu, 25 Aug 2011 19:52:15 +0000 (UTC) Received: by gyd10 with SMTP id 10so3062040gyd.27 for ; Thu, 25 Aug 2011 12:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LcmTolVnJ88qpQdj6bnLUhKV8TevQcK/DyHJ1ZAmnUA=; b=SxP0sK8mrIX+QxhIsqoko+mPWeF4MmVVoZzgpKAdD8kiYMPvnccFIGLUBhoBN79xEc R1oI2kkbkBgYZiJ7fGxA1KrEeLp86tfmeyvJHQGKydl9TSJlfAheaYK8TTTbLG50CzBw YoWsMhdDtLE9DlFDBByQR/OKTd6chxgU1MKEk= MIME-Version: 1.0 Received: by 10.101.105.10 with SMTP id h10mr168125anm.106.1314301934078; Thu, 25 Aug 2011 12:52:14 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Thu, 25 Aug 2011 12:52:13 -0700 (PDT) In-Reply-To: <4E569FB0.5000205@leydier.info> References: <4E569FB0.5000205@leydier.info> Date: Thu, 25 Aug 2011 20:52:13 +0100 Message-ID: Subject: Re: keyboard events From: lecas malecas To: Yann LEYDIER Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 19:52:26 -0000 Ok, I'm trying with the signal, but I get a lot of errors. where's what I'm doing: my class inherits from Gtk::Window. then on the constructor I have, this->signal_key_release_event().connect ( sigc::mem_fun(*this, &AnimeWindow::onKeyRelease) ); (here, I don't know if I have to send an argument?..) and then my function: void AnimeWindow::onKeyRelease(GdkEventButton *event) { cout << "key" << endl; } On Thu, Aug 25, 2011 at 8:17 PM, Yann LEYDIER wrote: > Hi, > > signal_key_release_event() seems the right way to do it. For the list of key > values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : > http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventKey > > You could also derivate your class from Gtk::Dialog, which recieves a > response when ESC is pressed. > > yann > > On 25/08/11 21:00, lecas malecas wrote: >> >> Hey, I have a window which I want to close when the esc key is >> pressed, I've tried overriding the "virtual bool on_key_release_event >> (GdkEventKey* event); " but I get some weird errors (also can't find >> the documentation about GdkEventKey, to identify the keys). I tried >> adding a function to the "signal_key_release_event()" but also get >> some errors :) >> >> Can anyone tell me how to call a function when the esc key is pressed >> (on a Gtk::Window derived class)? >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > From mlt@gmx.us Thu Aug 25 19:54:18 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A83C75040A for ; Thu, 25 Aug 2011 19:54:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OIj2Bvs+G4tU for ; Thu, 25 Aug 2011 19:54:16 +0000 (UTC) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by menubar.gnome.org (Postfix) with SMTP id 0414A7503D2 for ; Thu, 25 Aug 2011 19:54:07 +0000 (UTC) Received: (qmail invoked by alias); 25 Aug 2011 19:54:05 -0000 Received: from bbe200951282.cfans.umn.edu (EHLO BBE200951282) [134.84.209.6] by mail.gmx.com (mp-us003) with SMTP; 25 Aug 2011 15:54:05 -0400 X-Authenticated: #63792746 X-Provags-ID: V01U2FsdGVkX19WJw5yoH1WYztbFchN2Zu7IFnaHqDxUkPOmQ4bZu OO++DkN37Bvm19 From: "Mikhail Titov" To: References: <4E569FB0.5000205@leydier.info> <003501cc6360$159ad2a0$40d077e0$@us> In-Reply-To: <003501cc6360$159ad2a0$40d077e0$@us> Subject: RE: keyboard events Date: Thu, 25 Aug 2011 14:54:05 -0500 Message-ID: <003801cc6360$beff14a0$3cfd3de0$@us> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcxjW5wo0GYct9o6R++hAw3cq0U6+AABCipwAAAoLiA= Content-Language: en-us X-Y-GMX-Trusted: 0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 19:54:19 -0000 I didn't notice Q about a function. You can define override a function void YourDialog::on_response(int id) {} And check id like if (Gtk::RESPONSE_OK == id) { blah And don't forget to hide it with hide() or don't call it if you are not happy with validation. Mikhail > -----Original Message----- > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] > On Behalf Of Mikhail Titov > Sent: Thursday, August 25, 2011 2:49 PM > To: 'Yann LEYDIER'; gtkmm-list@gnome.org > Subject: RE: keyboard events > > IIRC if you derive your class from Dialog instead of Window, it will do it > by default. > > Mikhail > > > > -----Original Message----- > > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] > > On Behalf Of Yann LEYDIER > > Sent: Thursday, August 25, 2011 2:17 PM > > To: gtkmm-list@gnome.org > > Subject: Re: keyboard events > > > > Hi, > > > > signal_key_release_event() seems the right way to do it. For the list of > > key values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : > > http://developer.gnome.org/gdk/stable/gdk-Event- > > Structures.html#GdkEventKey > > > > You could also derivate your class from Gtk::Dialog, which recieves a > > response when ESC is pressed. > > > > yann > > > > On 25/08/11 21:00, lecas malecas wrote: > > > Hey, I have a window which I want to close when the esc key is > > > pressed, I've tried overriding the "virtual bool on_key_release_event > > > (GdkEventKey* event); " but I get some weird errors (also can't find > > > the documentation about GdkEventKey, to identify the keys). I tried > > > adding a function to the "signal_key_release_event()" but also get > > > some errors :) > > > > > > Can anyone tell me how to call a function when the esc key is pressed > > > (on a Gtk::Window derived class)? > > > _______________________________________________ > > > gtkmm-list mailing list > > > gtkmm-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From darkiiiiii@gmail.com Thu Aug 25 20:11:14 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E17687503C9 for ; Thu, 25 Aug 2011 20:11:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hrRixWBqc36w for ; Thu, 25 Aug 2011 20:11:10 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 3C798750391 for ; Thu, 25 Aug 2011 20:11:01 +0000 (UTC) Received: by gwb15 with SMTP id 15so3085661gwb.27 for ; Thu, 25 Aug 2011 13:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=I5XxjM38lwzHgPHSh/+q7vJwpt9jQS/gchccHBSUlEY=; b=X2NJgjQbRUc8ACQaP+LM0Klk3Hw9ozARhRXin0cabRkbDM5aarbyV+PVhrcrKykdZu 2aiaARaL6/54EPXZp2hv8uaXdpS0C6/mvI9GJDQ0ELIdn8pAcAaiTNiuXwPak0QF5VQJ /f9qfFiOYaxsW9XvcPDq+fsQ9TjNzEgK7iuww= MIME-Version: 1.0 Received: by 10.101.217.12 with SMTP id u12mr207634anq.62.1314303059084; Thu, 25 Aug 2011 13:10:59 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Thu, 25 Aug 2011 13:10:59 -0700 (PDT) In-Reply-To: <003801cc6360$beff14a0$3cfd3de0$@us> References: <4E569FB0.5000205@leydier.info> <003501cc6360$159ad2a0$40d077e0$@us> <003801cc6360$beff14a0$3cfd3de0$@us> Date: Thu, 25 Aug 2011 21:10:59 +0100 Message-ID: Subject: Re: keyboard events From: lecas malecas To: Mikhail Titov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 20:11:14 -0000 I've tried the Gtk::Dialog and, although it does closes when pressing the esc key, it doesn't suit very well with what I'm trying to do. I would prefer to use the signals, any ideas? On Thu, Aug 25, 2011 at 8:54 PM, Mikhail Titov wrote: > I didn't notice Q about a function. > You can define override a function > > void YourDialog::on_response(int id) {} > > And check id like =A0 =A0 =A0 if (Gtk::RESPONSE_OK =3D=3D id) { blah > > And don't forget to hide it with hide() or don't call it if you are not > happy with validation. > > Mikhail > > >> -----Original Message----- >> From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.org] >> On Behalf Of Mikhail Titov >> Sent: Thursday, August 25, 2011 2:49 PM >> To: 'Yann LEYDIER'; gtkmm-list@gnome.org >> Subject: RE: keyboard events >> >> IIRC if you derive your class from Dialog instead of Window, it will do = it >> by default. >> >> Mikhail >> >> >> > -----Original Message----- >> > From: gtkmm-list-bounces@gnome.org [mailto:gtkmm-list-bounces@gnome.or= g] >> > On Behalf Of Yann LEYDIER >> > Sent: Thursday, August 25, 2011 2:17 PM >> > To: gtkmm-list@gnome.org >> > Subject: Re: keyboard events >> > >> > Hi, >> > >> > signal_key_release_event() seems the right way to do it. For the list = of >> > key values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : >> > http://developer.gnome.org/gdk/stable/gdk-Event- >> > Structures.html#GdkEventKey >> > >> > You could also derivate your class from Gtk::Dialog, which recieves a >> > response when ESC is pressed. >> > >> > yann >> > >> > On 25/08/11 21:00, lecas malecas wrote: >> > > Hey, I have a window which I want to close when the esc key is >> > > pressed, I've tried overriding the "virtual bool on_key_release_even= t >> > > (GdkEventKey* event); " but I get some weird errors (also can't find >> > > the documentation about GdkEventKey, to identify the keys). I tried >> > > adding a function to the "signal_key_release_event()" but also get >> > > some errors :) >> > > >> > > Can anyone tell me how to call a function when the esc key is presse= d >> > > (on a Gtk::Window derived class)? >> > > _______________________________________________ >> > > gtkmm-list mailing list >> > > gtkmm-list@gnome.org >> > > http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > >> > _______________________________________________ >> > gtkmm-list mailing list >> > gtkmm-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/gtkmm-list >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > From harryhaaren@gmail.com Thu Aug 25 23:38:27 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C3217500F7 for ; Thu, 25 Aug 2011 23:38:27 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.698 X-Spam-Level: X-Spam-Status: No, score=-1.698 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QK-2UN2b8hKW for ; Thu, 25 Aug 2011 23:38:25 +0000 (UTC) Received: from mail-ww0-f72.google.com (mail-ww0-f72.google.com [74.125.82.72]) by menubar.gnome.org (Postfix) with ESMTP id 7C8EB750096 for ; Thu, 25 Aug 2011 23:38:16 +0000 (UTC) Received: by wwe3 with SMTP id 3so1465062wwe.3 for ; Thu, 25 Aug 2011 16:38:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.140.141 with SMTP id i13mr66811bku.6.1314315494142; Thu, 25 Aug 2011 16:38:14 -0700 (PDT) In-Reply-To: Message-ID: <00151747934226b4bb04ab5cec72@google.com> Date: Thu, 25 Aug 2011 23:38:14 +0000 Subject: Re: Re: keyboard events From: harryhaaren@gmail.com To: lecas malecas Content-Type: multipart/alternative; boundary=00151747934226b49d04ab5cec6f Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2011 23:38:27 -0000 --00151747934226b49d04ab5cec6f Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Hey, I'm finding it hard to understand exactly what you're asking, do you get compile time errors? Or is it not working despite that it compiles? Are you doing a "add_events( Gdk::KEY_PRESS_MASK); " in your constructor? Cheers, -Harry Side note: You're doing this->signal().connect , "this" is implied if you just do signal().connect Reason: signal is in local scope, so you don't have to qualify it with "this" like you would in Python or so --00151747934226b49d04ab5cec6f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey,

I'm finding it hard to understand exactly what you'= re asking, do you get compile time errors? Or is it not working despite tha= t it compiles? Are you doing a "add_events( Gdk::KEY_PRESS_MASK); &quo= t; in your constructor?

Cheers, -Harry

Side note:
You're doing this->signal().connect , "this" is impli= ed if you just do signal().connect Reason: signal is in local scope, so= you don't have to qualify it with "this" like you would in P= ython or so --00151747934226b49d04ab5cec6f-- From mrcashe@gmail.com Fri Aug 26 01:17:42 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CCCCA7502BF for ; Fri, 26 Aug 2011 01:17:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.525 X-Spam-Level: X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077, T_HK_NAME_FM_MR_MRS=0.01, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TqNHKN5ST-gk for ; Fri, 26 Aug 2011 01:17:36 +0000 (UTC) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id C0F557503F5 for ; Fri, 26 Aug 2011 01:17:27 +0000 (UTC) Received: by bkat8 with SMTP id t8so4101254bka.27 for ; Thu, 25 Aug 2011 18:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=SfOtTxpW15NbSnXfW3JS7v7sQEP1D5XEIt0UMPTU7ZQ=; b=Ra2CQI+l/mwwAgkFvlhcm5EhhT+KUXTauCxd4M5vxCMkl+1+C8kvDXw9N0cDe+pVcb 4xRI1ZpztJ8ljcCL8AZFsrGAd8n/59jlkDAZ5IWl//JVoIceDzlG1fqOyTOILvFMUtcS Eb779xKTWHvbNC4XNgRYvvsYRagUB127SiN5Q= Received: by 10.204.152.139 with SMTP id g11mr236924bkw.3.1314321445495; Thu, 25 Aug 2011 18:17:25 -0700 (PDT) Received: from [192.168.4.128] ([77.35.251.116]) by mx.google.com with ESMTPS id o20sm315394bku.43.2011.08.25.18.17.23 (version=SSLv3 cipher=OTHER); Thu, 25 Aug 2011 18:17:24 -0700 (PDT) Message-ID: <4E56F3F1.9060307@gmail.com> Date: Fri, 26 Aug 2011 12:16:33 +1100 From: "Mr.Cashe" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: keyboard events References: <4E569FB0.5000205@leydier.info> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020406070804080809030402" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 01:17:43 -0000 This is a multi-part message in MIME format. --------------020406070804080809030402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 26.08.2011 06:52, lecas malecas ?????: > Ok, I'm trying with the signal, but I get a lot of errors. > > where's what I'm doing: > > my class inherits from Gtk::Window. > > then on the constructor I have, > this->signal_key_release_event().connect ( sigc::mem_fun(*this, > &AnimeWindow::onKeyRelease) ); > > (here, I don't know if I have to send an argument?..) > > and then my function: > > void AnimeWindow::onKeyRelease(GdkEventButton *event) > { > cout<< "key"<< endl; > } > > On Thu, Aug 25, 2011 at 8:17 PM, Yann LEYDIER wrote: >> Hi, >> >> signal_key_release_event() seems the right way to do it. For the list of key >> values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : >> http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventKey >> >> You could also derivate your class from Gtk::Dialog, which recieves a >> response when ESC is pressed. >> >> yann >> >> On 25/08/11 21:00, lecas malecas wrote: >>> Hey, I have a window which I want to close when the esc key is >>> pressed, I've tried overriding the "virtual bool on_key_release_event >>> (GdkEventKey* event); " but I get some weird errors (also can't find >>> the documentation about GdkEventKey, to identify the keys). I tried >>> adding a function to the "signal_key_release_event()" but also get >>> some errors :) >>> >>> Can anyone tell me how to call a function when the esc key is pressed >>> (on a Gtk::Window derived class)? >>> _______________________________________________ >>> gtkmm-list mailing list >>> gtkmm-list@gnome.org >>> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > on_key_rlease_event() must return bool instead of void: bool AnimeWindow::onKeyRelease(GdkEventButton *event) { cout<< "key"<< endl; return true; } --------------020406070804080809030402 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 26.08.2011 06:52, lecas malecas пишет:
Ok, I'm trying with the signal, but I get a lot of errors.

where's what I'm doing:

my class inherits from Gtk::Window.

then on the constructor I have,
this->signal_key_release_event().connect ( sigc::mem_fun(*this,
&AnimeWindow::onKeyRelease) );

(here, I don't know if I have to send an argument?..)

and then my function:

void AnimeWindow::onKeyRelease(GdkEventButton *event)
{
cout << "key" << endl;
}

On Thu, Aug 25, 2011 at 8:17 PM, Yann LEYDIER <yann@leydier.info> wrote:
Hi,

signal_key_release_event() seems the right way to do it. For the list of key
values, see gdk/gdkkeysyms.h as stated in Gtk's documentation :
http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventKey

You could also derivate your class from Gtk::Dialog, which recieves a
response when ESC is pressed.

yann

On 25/08/11 21:00, lecas malecas wrote:
Hey, I have a window which I want to close when the esc key is
pressed, I've tried overriding the "virtual bool on_key_release_event
(GdkEventKey* event); " but I get some weird errors (also can't find
the documentation about GdkEventKey, to identify the keys). I tried
adding a function to the "signal_key_release_event()" but also get
some errors :)

Can anyone tell me how to call a function when the esc key is pressed
(on a Gtk::Window derived class)?
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

on_key_rlease_event() must return bool instead of void:

bool AnimeWindow::onKeyRelease(GdkEventButton *event)
{
cout << "key" << endl;
return true;
}

--------------020406070804080809030402-- From yann@leydier.info Fri Aug 26 08:00:09 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F1F52750403 for ; Fri, 26 Aug 2011 08:00:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.901 X-Spam-Level: X-Spam-Status: No, score=-1.901 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6htfqAZnq16c for ; Fri, 26 Aug 2011 08:00:07 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by menubar.gnome.org (Postfix) with ESMTP id 71EFA750405 for ; Fri, 26 Aug 2011 07:59:58 +0000 (UTC) Received: from [134.214.76.181] (rfv12.insa-lyon.fr [134.214.76.181]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MWPgw-1QlGRl3eWo-00XC7Y; Fri, 26 Aug 2011 09:59:55 +0200 Message-ID: <4E57526F.80604@leydier.info> Date: Fri, 26 Aug 2011 09:59:43 +0200 From: Yann Leydier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: intercepting key release in an entry Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:IFBmHipPl64FtdxhcsqoC+b7H5iXDNrBf2XlcQ2LtfF YjxDuqFfU3OAeg0EH3HwbrcjlQ8X9eF3AHkm9Sua5YZM4IG/TU 4cxUFIxjoWhmafIxw5jjPzWu9Zm1zANRskXKLpOTCwt6XGrJPj 8defBw8YguOlX/TtV8GMnB91YLBNpAcxx0aU+LL+Y5l8Fj46oh RCpcnA5Kry82J+TZpmNL7CQjm/3Ud16nOV0AXXwv5o= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 08:00:09 -0000 Hi, I have a set of entries and I want the following behaviour: when the user types , the focus passes to the next entry, when the user types a regular space is inserted in the entry. As the insert_text event does not allow to check key modifiers, I tried to connect to the key_release_event (I added it to the event mask) with after=false and returning true when is pressed to prevent the signal from being dispatched any further, but the space is still inserted in the entry. Is there any way to do this? Thanks, yann From qdlacz@gmail.com Fri Aug 26 08:12:04 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 92C59750403 for ; Fri, 26 Aug 2011 08:12:04 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SiFFQakqfsHY for ; Fri, 26 Aug 2011 08:12:03 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 23C637502D2 for ; Fri, 26 Aug 2011 08:11:54 +0000 (UTC) Received: by gyd10 with SMTP id 10so3852030gyd.27 for ; Fri, 26 Aug 2011 01:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RLEFN1/K0sETFR7/CFxgoB4xyUB4uvO38SvYxbFDsg8=; b=Q6bM2h4Ip2yhvmS0K7rqoQofNc0FlWXyTq818DXxSoqQ4MwiweC2mtsn2tlNN5JxQP HcvXJ3jR78sFrjG+Ke1uAXeT7IeUP44A46LyRiE77lENB7LfIrQHarAjI72uXFScN0Dq AwvqV2QoOv5kCs/N+dMqzahBV191YvuCtnBng= MIME-Version: 1.0 Received: by 10.42.168.3 with SMTP id u3mr541471icy.213.1314346313079; Fri, 26 Aug 2011 01:11:53 -0700 (PDT) Received: by 10.42.142.4 with HTTP; Fri, 26 Aug 2011 01:11:53 -0700 (PDT) In-Reply-To: <4E57526F.80604@leydier.info> References: <4E57526F.80604@leydier.info> Date: Fri, 26 Aug 2011 10:11:53 +0200 Message-ID: Subject: Re: intercepting key release in an entry From: Krzesimir Nowak To: Yann Leydier Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 08:12:04 -0000 2011/8/26 Yann Leydier : > Hi, > > I have a set of entries and I want the following behaviour: when the user > types , the focus passes to the next entry, when the user types > a regular space is inserted in the entry. > > As the insert_text event does not allow to check key modifiers, I tried to > connect to the key_release_event (I added it to the event mask) with > after=false and returning true when is pressed to prevent the signal > from being dispatched any further, but the space is still inserted in the > entry. > > Is there any way to do this? Maybe handling key release event is just too late - try handling key press event. > Thanks, > yann > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > From yann@leydier.info Fri Aug 26 08:18:37 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C8E475048B for ; Fri, 26 Aug 2011 08:18:37 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rsD+GsRCAho5 for ; Fri, 26 Aug 2011 08:18:36 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by menubar.gnome.org (Postfix) with ESMTP id BE8EF75043D for ; Fri, 26 Aug 2011 08:18:27 +0000 (UTC) Received: from [134.214.76.181] (rfv12.insa-lyon.fr [134.214.76.181]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MHvgn-1Qxh6L0ecv-003Zll; Fri, 26 Aug 2011 10:18:25 +0200 Message-ID: <4E5756C4.70208@leydier.info> Date: Fri, 26 Aug 2011 10:18:12 +0200 From: Yann Leydier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: intercepting key release in an entry References: <4E57526F.80604@leydier.info> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:CXOUS7aCB31aRewmxhiSMqRVU4opAo5Hc+SkhIxiuC7 deQtP75k/4XJzo2B2En4kJi68PHDcFkCZw5tUY+ebKPB0CnSgE JY3qsifeB5uHwaNhYu2AACKCsA4hfjOVKuK2k9R6C9SiK44dfH r3OEFKFtlgbbfVzkK7VBBXNK2jEd7E0TSB0QtDhD/zNoWk6LE/ 2B3tuGZ86BP1HVzVSCiaUA2+TVummhQcebL3PJEwTw= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 08:18:37 -0000 Yep thanks ! That did it ! :) And also, one might not want to use the GDK_KP_Space macro: it does not contain the value for the space character! On 26/08/11 10:11, Krzesimir Nowak wrote: > 2011/8/26 Yann Leydier: >> Hi, >> >> I have a set of entries and I want the following behaviour: when the user >> types, the focus passes to the next entry, when the user types >> a regular space is inserted in the entry. >> >> As the insert_text event does not allow to check key modifiers, I tried to >> connect to the key_release_event (I added it to the event mask) with >> after=false and returning true when is pressed to prevent the signal >> from being dispatched any further, but the space is still inserted in the >> entry. >> >> Is there any way to do this? > > Maybe handling key release event is just too late - try handling key > press event. > >> Thanks, >> yann >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list >> From mjmendoza@konsolscript.org Fri Aug 26 14:35:18 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 732D275002B for ; Fri, 26 Aug 2011 14:35:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.878 X-Spam-Level: X-Spam-Status: No, score=0.878 tagged_above=-999 required=2 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n1uGJwgueuj0 for ; Fri, 26 Aug 2011 14:35:15 +0000 (UTC) Received: from nm3-vm1.bullet.mail.sg1.yahoo.com (nm3-vm1.bullet.mail.sg1.yahoo.com [115.178.12.243]) by menubar.gnome.org (Postfix) with SMTP id 571817501BC for ; Fri, 26 Aug 2011 14:35:05 +0000 (UTC) Received: from [115.178.12.221] by nm3.bullet.mail.sg1.yahoo.com with NNFMP; 26 Aug 2011 14:35:03 -0000 Received: from [115.178.12.216] by tm2.bullet.mail.sg1.yahoo.com with NNFMP; 26 Aug 2011 14:35:03 -0000 Received: from [127.0.0.1] by omp1001.mail.sg1.yahoo.com with NNFMP; 26 Aug 2011 14:35:03 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 702280.31960.bm@omp1001.mail.sg1.yahoo.com Received: (qmail 70527 invoked by uid 60001); 26 Aug 2011 14:35:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1314369303; bh=8gWEAfFl1fdOalVt5A/R/ODji+PLjZOrAlz8uoddtZU=; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=ZZ6TxeLQcOxXEFZaIAz2/7iyPS7mEWoI9pQdWivSjuVQrxrhtjI3tlet+ONAaBGvQd0zDYhIWlz2F4XsmVxWCZExw2ebLLNkZs4J/vg/3n4ADP6YesS3IIgXiwwmdjXHAUsLWguy3PQj6PgqfKFMnB+X3L1xlQz2KrTXWw6ev+c= X-YMail-OSG: pYXQ2hcVM1mfznaTUTdap_AehUg1ne0e5st21adl7uZf.k4 vryvvg9T.HJkLnAyTSaZdvbURqVajZrrIfRtN180qURFsHhNT_J861nx7uUI rs0UwfUHDFihKCEqqwz3HQWMfae23rXDb1HB6x4OGOIpWWjEow14MYVMlrrI 2vJfKIw7kyqg1vNlZlSJay8oYhhWe6h2yG9bNHdHPKga2MkcEY5Qq23Yj0hk JLlfHfDIVpmJgtmfTsv_mTQ.L2nsHtjkos.oheZAey.RPHRq1FiiujzyZl9x YIUJPzJYhdNLwgiC9pSZFQ7NxapnnZROsV6B31ExGVcxX0L_YzMWwp7TyBWj zq1IkPsZohBYBwbXgTLqkWyugES3jd9hmI2BCV2g7F39Ouexa_Jy.ECtO1Z7 GdjxMorxG.b66nSE7NoxH4qQuSNnJCYZDVkoaGEUuneBMN73dXnAGqRhKIxe mmwrEKFqbc2.bRa5zdit_dLOKwv4hTp3CbnBAkIL5wrgpTM5Unr1Rydz3T2s gbW0r04.k7uZr8b1T1EzgoIYCP56qswkzoMcT7q0uhbkNqbPj0CReGZD3tbU a Received: from [120.28.57.182] by web77701.mail.sg1.yahoo.com via HTTP; Fri, 26 Aug 2011 22:35:03 SGT X-RocketYMMF: mjmendoza@ymail.com X-Mailer: YahooMailWebService/0.8.113.315625 Message-ID: <1314369303.66414.YahooMailNeo@web77701.mail.sg1.yahoo.com> Date: Fri, 26 Aug 2011 22:35:03 +0800 (SGT) From: Mj Mendoza IV Subject: Does Glib::usleep work on GUI (Gtkmm) app? To: Gtkmm GNOME MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="734958990-431051420-1314369303=:66414" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mj Mendoza IV List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 14:35:18 -0000 --734958990-431051420-1314369303=:66414 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all,=0A=0AI have a Gtkmm app that requires SLEEP command to display a se= quence of images (Cairo Context).=0A=0AI called Glib::usleep(1000) and expe= cted a one-second delay but nothing. Tried higher number (3000, 5000), stil= l nothing.=0A=0ABtw, I'm currently working on Windows.=0A=0ARegards.=0A=0A= =0A=0AMj Mendoza IV,=0ADeveloper, KonsolScript=0Ahttp://www.konsolscript.or= g=0A=0ADeveloper, Clash=0Ahttp://geesas.sourceforge.net/clash --734958990-431051420-1314369303=:66414 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I ha= ve a Gtkmm app that requires= SLEEP command to display a sequence of images (Cairo Context).

I called Glib::usleep(1000) and expected a one-= second delay but nothing. Tried higher number (3000, 5000), still nothing.<= /div>

<= div style=3D"font-family: arial, helvetica, sans-serif; ">Btw, I'm cu= rrently working on Windows.

Regards.


Mj Mendoza IV,
Developer, KonsolScript
http:= //www.konsolscript.org

Developer, Clash
http://geesas= .sourceforge.net/clash
--734958990-431051420-1314369303=:66414-- From darkiiiiii@gmail.com Fri Aug 26 14:46:46 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A41677501D4 for ; Fri, 26 Aug 2011 14:46:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0AqoymN5lriF for ; Fri, 26 Aug 2011 14:46:43 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 25FAF750096 for ; Fri, 26 Aug 2011 14:46:34 +0000 (UTC) Received: by ywo32 with SMTP id 32so4310975ywo.27 for ; Fri, 26 Aug 2011 07:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Kx59hKB2tcCo5BOAxrMJ59OuFUxk7Uf4NePVIszFMnY=; b=TnF1PT+wGj31416kRUCjeiziP/82RKFgKZJz5EnYZQ68MzGgFp31kYAImTKlgApBs6 mhoh9F90wSDOrxJa0HcPkW/dMDSmkjH+RMrcJsUirn5jtQXy1HgT0k/mELNiFgq2JGOw 9C9D0yTlt6dkW6vG+jefvE6mOl35NKsoyQnbI= MIME-Version: 1.0 Received: by 10.101.9.4 with SMTP id m4mr1158416ani.150.1314369993423; Fri, 26 Aug 2011 07:46:33 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Fri, 26 Aug 2011 07:46:33 -0700 (PDT) In-Reply-To: <4E56F3F1.9060307@gmail.com> References: <4E569FB0.5000205@leydier.info> <4E56F3F1.9060307@gmail.com> Date: Fri, 26 Aug 2011 15:46:33 +0100 Message-ID: Subject: Re: keyboard events From: lecas malecas To: "Mr.Cashe" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 14:46:46 -0000 I've changed the function to bool and added the "add_events( Gdk::KEY_PRESS_MASK );" before setting the event. I'm getting these compile errors: (File | Line | Message) /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h||In member function =E2=80=98typename sigc::adaptor_functor::deduce_result_type::type sigc::adaptor_functor::operator()(T_arg1) const [with T_arg1 =3D _GdkEventKey* const&, T_functor =3D sigc::bound_mem_functor1, typename sigc::adaptor_functor::deduce_result_type::type =3D bool]=E2=80=99:| /usr/include/sigc++-2.0/sigc++/functors/slot.h:137|20|instantiated from =E2=80=98static T_return sigc::internal::slot_call1::call_it(sigc::internal::slot_rep*, typename sigc::type_trait::take) [with T_functor =3D sigc::bound_mem_functor1, T_return =3D bool, T_arg1 =3D _GdkEventKey*, typename sigc::type_trait::take =3D _GdkEventKey* const&]=E2=80=99| /usr/include/sigc++-2.0/sigc++/functors/slot.h:144|45|instantiated from =E2=80=98static void* (* sigc::internal::slot_call1::address())(void*) [with T_functor =3D sigc::bound_mem_functor1, T_return =3D bool, T_arg1 =3D _GdkEventKey*, sigc::internal::hook =3D void* (*)(void*)]=E2=80=99| /usr/include/sigc++-2.0/sigc++/functors/slot.h:529|7|instantiated from =E2=80=98sigc::slot1::slot1(const T_functor&) [with T_functor =3D sigc::bound_mem_functor1, T_return =3D bool, T_arg1 =3D _GdkEventKey*]=E2=80=99| /usr/include/sigc++-2.0/sigc++/functors/slot.h:1157|26|instantiated from =E2=80=98sigc::slot::slot(const T_functor&) [with T_functor =3D sigc::bound_mem_functor1, T_return =3D bool, T_arg1 =3D _GdkEventKey*]=E2=80=99| /home/noobiept/Dropbox/programming/gtkmm/gtkmm_test/animeWindow.cpp:68|93|i= nstantiated from here| /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h|84|error: no match for call to =E2=80=98(sigc::bound_mem_functor1) (_GdkEventKey* const&)=E2=80=99| /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h|1821|note: candidate is:| /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h|1850|note: T_return sigc::bound_mem_functor1::operator()(typename sigc::type_trait::take) const [with T_return =3D bool, T_obj =3D AnimeWindow, T_arg1 =3D _GdkEventButton*, typename sigc::type_trait::take =3D _GdkEventButton* const&]| /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h|1850|note: no known conversion for argument 1 from =E2=80=98_GdkEventKey* const=E2=80=99 = to =E2=80=98_GdkEventButton* const&=E2=80=99| /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h|84|warning: control reaches end of non-void function [-Wreturn-type]| ||=3D=3D=3D Build finished: 4 errors, 1 warnings =3D=3D=3D| If I comment the line where I set up the event, it compiles without errors. (Yea, I know that you can omit the 'this' part, but I sometimes still write it, I think it makes more sense) On Fri, Aug 26, 2011 at 2:16 AM, Mr.Cashe wrote: > 26.08.2011 06:52, lecas malecas =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Ok, I'm trying with the signal, but I get a lot of errors. > > where's what I'm doing: > > my class inherits from Gtk::Window. > > then on the constructor I have, > this->signal_key_release_event().connect ( sigc::mem_fun(*this, > &AnimeWindow::onKeyRelease) ); > > (here, I don't know if I have to send an argument?..) > > and then my function: > > void AnimeWindow::onKeyRelease(GdkEventButton *event) > { > cout << "key" << endl; > } > > On Thu, Aug 25, 2011 at 8:17 PM, Yann LEYDIER wrote: > > Hi, > > signal_key_release_event() seems the right way to do it. For the list of = key > values, see gdk/gdkkeysyms.h as stated in Gtk's documentation : > http://developer.gnome.org/gdk/stable/gdk-Event-Structures.html#GdkEventK= ey > > You could also derivate your class from Gtk::Dialog, which recieves a > response when ESC is pressed. > > yann > > On 25/08/11 21:00, lecas malecas wrote: > > Hey, I have a window which I want to close when the esc key is > pressed, I've tried overriding the "virtual bool on_key_release_event > (GdkEventKey* event); " but I get some weird errors (also can't find > the documentation about GdkEventKey, to identify the keys). I tried > adding a function to the "signal_key_release_event()" but also get > some errors :) > > Can anyone tell me how to call a function when the esc key is pressed > (on a Gtk::Window derived class)? > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > on_key_rlease_event() must return bool instead of void: > > bool AnimeWindow::onKeyRelease(GdkEventButton *event) > { > cout << "key" << endl; > return true; > } > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > From jonathon@quotidian.org Fri Aug 26 16:14:36 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D73517501BC for ; Fri, 26 Aug 2011 16:14:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.446 X-Spam-Level: X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w0Q8fweHwKlU for ; Fri, 26 Aug 2011 16:14:35 +0000 (UTC) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by menubar.gnome.org (Postfix) with ESMTP id EF19075002B for ; Fri, 26 Aug 2011 16:14:24 +0000 (UTC) Received: by qyk4 with SMTP id 4so576359qyk.6 for ; Fri, 26 Aug 2011 09:14:23 -0700 (PDT) Received: by 10.229.61.66 with SMTP id s2mr1761972qch.55.1314375263386; Fri, 26 Aug 2011 09:14:23 -0700 (PDT) Received: from [192.168.1.121] (63-228-41-209.mpls.qwest.net [63.228.41.209]) by mx.google.com with ESMTPS id r3sm1640123qct.27.2011.08.26.09.14.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Aug 2011 09:14:21 -0700 (PDT) Subject: Re: keyboard events From: Jonathon Jongsma To: gtkmm-list@gnome.org Date: Fri, 26 Aug 2011 11:14:18 -0500 In-Reply-To: References: <4E569FB0.5000205@leydier.info> <4E56F3F1.9060307@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.0- Content-Transfer-Encoding: 8bit Message-ID: <1314375261.20779.64.camel@dunnart.localdomain> Mime-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 16:14:37 -0000 On Fri, 2011-08-26 at 15:46 +0100, lecas malecas wrote: > /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h|1850|note: no > known conversion for argument 1 from ‘_GdkEventKey* const’ to > ‘_GdkEventButton* const&’| This seems to tell you exactly what is wrong ^^^ You apparently need a GdkEventKey* argument, not a GdkEventbutton*. > > > > on_key_rlease_event() must return bool instead of void: > > > > bool AnimeWindow::onKeyRelease(GdkEventButton *event) > > { > > cout << "key" << endl; > > return true; > > } > > > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From jonathon@quotidian.org Fri Aug 26 16:25:49 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D91E7501BC for ; Fri, 26 Aug 2011 16:25:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.446 X-Spam-Level: X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ts8DF7uohJev for ; Fri, 26 Aug 2011 16:25:48 +0000 (UTC) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by menubar.gnome.org (Postfix) with ESMTP id 017AF75002B for ; Fri, 26 Aug 2011 16:25:39 +0000 (UTC) Received: by qyk4 with SMTP id 4so589210qyk.6 for ; Fri, 26 Aug 2011 09:25:38 -0700 (PDT) Received: by 10.229.67.220 with SMTP id s28mr1710199qci.270.1314375938247; Fri, 26 Aug 2011 09:25:38 -0700 (PDT) Received: from [192.168.1.121] (63-228-41-209.mpls.qwest.net [63.228.41.209]) by mx.google.com with ESMTPS id s9sm1648405qcx.26.2011.08.26.09.25.36 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Aug 2011 09:25:36 -0700 (PDT) Subject: Re: Does Glib::usleep work on GUI (Gtkmm) app? From: Jonathon Jongsma To: gtkmm-list@gnome.org Date: Fri, 26 Aug 2011 11:25:34 -0500 In-Reply-To: <1314369303.66414.YahooMailNeo@web77701.mail.sg1.yahoo.com> References: <1314369303.66414.YahooMailNeo@web77701.mail.sg1.yahoo.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.0- Content-Transfer-Encoding: 7bit Message-ID: <1314375936.20779.70.camel@dunnart.localdomain> Mime-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 16:25:49 -0000 On Fri, 2011-08-26 at 22:35 +0800, Mj Mendoza IV wrote: > Hi all, > > > I have a Gtkmm app that requires SLEEP command to display a sequence > of images (Cairo Context). how does a sleep command display a sequence of images? this is very confusing. > I called Glib::usleep(1000) and expected a one-second delay but > nothing. Tried higher number (3000, 5000), still nothing. usleep() takes a value in microseconds. So 1000 is equal to 1ms, not 1s. But regardless, it's rarely appropriate to use Glib::usleep(). Sleeping in a gtkmm app will make your UI completely unresponsive until the sleep is finished (e.g. unable to close the app, unable to click any menus, etc). If you can explain what you're trying to achieve, we might be able to suggest a better approach. jonner From darkiiiiii@gmail.com Fri Aug 26 16:50:21 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A7A475008C for ; Fri, 26 Aug 2011 16:50:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aEyef9w7bx9I for ; Fri, 26 Aug 2011 16:50:17 +0000 (UTC) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by menubar.gnome.org (Postfix) with ESMTP id CE6C675002B for ; Fri, 26 Aug 2011 16:50:08 +0000 (UTC) Received: by yib19 with SMTP id 19so2562113yib.27 for ; Fri, 26 Aug 2011 09:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=kiH0KLjntmSg+fosZBOZn9p8Zts00MjMQikcbARZ7a4=; b=bPzBF4Leuo254DGskxvibAY8sGbY2IhpDJx9sKb0KKeV3pZHcjlF15g01j2Vst89zH sJK4UKkBsDi+zIFOIxkvLd1JGeI3pjdIFyd2Oyu3wph1Ni73fzHtNHmqJs9eVy/LWBAS DnFeL5iTQhCexDKT2W0xFMLpc35wQE8jkGr5g= MIME-Version: 1.0 Received: by 10.101.217.12 with SMTP id u12mr1320131anq.62.1314377405422; Fri, 26 Aug 2011 09:50:05 -0700 (PDT) Received: by 10.100.164.19 with HTTP; Fri, 26 Aug 2011 09:50:05 -0700 (PDT) In-Reply-To: <1314375261.20779.64.camel@dunnart.localdomain> References: <4E569FB0.5000205@leydier.info> <4E56F3F1.9060307@gmail.com> <1314375261.20779.64.camel@dunnart.localdomain> Date: Fri, 26 Aug 2011 17:50:05 +0100 Message-ID: Subject: Re: keyboard events From: lecas malecas To: Jonathon Jongsma Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 16:50:21 -0000 ahhh you're so right... I didn't even bother to read that properly :( (and now I feel bad about it aha) its working now, thanks! On Fri, Aug 26, 2011 at 5:14 PM, Jonathon Jongsma wrote: > On Fri, 2011-08-26 at 15:46 +0100, lecas malecas wrote: > >> /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h|1850|note: =A0 no >> known conversion for argument 1 from =91_GdkEventKey* const=92 to >> =91_GdkEventButton* const&=92| > > This seems to tell you exactly what is wrong ^^^ > You apparently need a GdkEventKey* argument, not a GdkEventbutton*. > >> > >> > on_key_rlease_event() must return bool instead of void: >> > >> > bool AnimeWindow::onKeyRelease(GdkEventButton *event) >> > { >> > cout << "key" << endl; >> > return true; >> > } >> > >> > >> > _______________________________________________ >> > gtkmm-list mailing list >> > gtkmm-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/gtkmm-list >> > >> > >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > From sylvain.mouquet@gmail.com Sat Aug 27 01:03:32 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50FF975009E for ; Sat, 27 Aug 2011 01:03:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.458 X-Spam-Level: X-Spam-Status: No, score=-2.458 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077, TW_TK=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cMxb-usYrIdK for ; Sat, 27 Aug 2011 01:03:28 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id 935BE7500D1 for ; Sat, 27 Aug 2011 01:03:20 +0000 (UTC) Received: by wwg7 with SMTP id 7so2685448wwg.27 for ; Fri, 26 Aug 2011 18:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=3lbGGr2IpXXpJ1C8smNrzI4Ffsfa1EQwPIXYBcNjemc=; b=Pj1ic/qN37caSrOITu1EX8OtKdazJSWObvkqjAe1RLWxMegNb0tVBk10RPfsOPkopq UYAIsUyWoWzrXGMs7SZYg7RD6oxzHGe6AFrOyRTa1IyDu03xJ7hDxAssaBAEFznXPRtB gM5vsftOAXhRtu3jDW8csrkw0NpZnk4FMsa7E= MIME-Version: 1.0 Received: by 10.227.147.130 with SMTP id l2mr1480460wbv.60.1314406997662; Fri, 26 Aug 2011 18:03:17 -0700 (PDT) Received: by 10.227.134.12 with HTTP; Fri, 26 Aug 2011 18:03:17 -0700 (PDT) Date: Sat, 27 Aug 2011 03:03:17 +0200 Message-ID: Subject: Compiling libgda-4.1.10 with msys From: sylvain mouquet To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=001636499cff2f9b7204ab723ae7 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 01:03:32 -0000 --001636499cff2f9b7204ab723ae7 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have developing a gtkmm application in linux environment and now i wish to try it under windows. The application use libgdamm-4.0 dependency. This library depends on libgda-4.0 I have tried to compile libgda-4.1.10 but i get this error : Creating library file: .libs/libgda-4.0.dll.a Cannot export gda_transaction_status_dump: symbol not defined collect2: ld returned 1 exit status make[2]: *** [libgda-4.0.la] Error 1 make[2]: Leaving directory `/c/gtk/libgda-4.1.10/libgda-4.1.10/libgda' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/gtk/libgda-4.1.10/libgda-4.1.10/libgda' make: *** [all-recursive] Error 1 Anyone can help me ? -- Cordialement, Sylvain --001636499cff2f9b7204ab723ae7 Content-Type: text/html; charset=ISO-8859-1
Hi,

I have developing a gtkmm application in linux environment and now i wish to try it under windows.
The application use libgdamm-4.0 dependency. This library depends on libgda-4.0
I have tried to compile libgda-4.1.10 but i get this error :

Creating library file: .libs/libgda-4.0.dll.a
Cannot export gda_transaction_status_dump: symbol not defined
collect2: ld returned 1 exit status
make[2]: *** [libgda-4.0.la] Error 1
make[2]: Leaving directory `/c/gtk/libgda-4.1.10/libgda-4.1.10/libgda'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/gtk/libgda-4.1.10/libgda-4.1.10/libgda'
make: *** [all-recursive] Error 1

Anyone can help me ?

--
Cordialement,
Sylvain
--001636499cff2f9b7204ab723ae7-- From t.harty1@physics.ox.ac.uk Sat Aug 27 11:28:24 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 931A47500BF for ; Sat, 27 Aug 2011 11:28:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.703 X-Spam-Level: X-Spam-Status: No, score=-4.703 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.504] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SNz4nVNbNJcc for ; Sat, 27 Aug 2011 11:28:21 +0000 (UTC) Received: from relay9.mail.ox.ac.uk (relay9.mail.ox.ac.uk [163.1.2.169]) by menubar.gnome.org (Postfix) with ESMTP id DDB2975001A for ; Sat, 27 Aug 2011 11:28:12 +0000 (UTC) Received: from exchange-cas1.physics.ox.ac.uk ([163.1.74.82]) by relay9.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QxH3a-0004py-TI for gtkmm-list@gnome.org; Sat, 27 Aug 2011 12:28:10 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS1.physics.ox.ac.uk ([fe80::c42f:17a5:9fa5:3b33%10]) with mapi id 14.01.0323.000; Sat, 27 Aug 2011 12:28:09 +0100 From: Thomas Harty To: "gtkmm-list@gnome.org" Subject: Progress bar colours Thread-Topic: Progress bar colours Thread-Index: Acxkqvx+L0zRDIfWTEOLUatOTIwX1g== Date: Sat, 27 Aug 2011 11:28:08 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.24.247.11] Content-Type: multipart/alternative; boundary="_000_69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0EXCHNG14physics_" MIME-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 11:28:25 -0000 --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0EXCHNG14physics_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I want to use a progress bar to display temperatures and it'd be very usefu= l to be able to make bar change colour to indicate any problems. I've done = some reading and the best references (e.g. http://www.mail-archive.com/gtk-= list@gnome.org/msg13767.html and http://markmail.org/message/zirxleljlithti= el) I could find suggest that it should be possible to change the colour of= the bar using override_background_color with the state flag PRELIGHT and t= o change the color of the trough using override_background_color with the s= tate flag NORMAL. However, when I do this, I find that the override_backgro= und_color with prelight does nothing and with the normal flag, it changes t= he colour of both the slider and the trough. Some of the comments I've seen make it seem as thought this should be done = using style files, but I couldn't find anything explaining how. Any light that anyone could throw on this would be appreciated. Tom --_000_69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0EXCHNG14physics_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,

I want to use a progress bar to display temperatures and it'd be very usefu= l to be able to make bar change colour to indicate any problems. I've done = some reading and the best references (e.g. http://www.mail-archive.com/gtk-list@gnome.org/msg13767.html and http:/= /markmail.org/message/zirxleljlithtiel) I could find suggest that it should= be possible to change the colour of the bar using override_background_colo= r with the state flag PRELIGHT and to change the color of the trough using override_background_color with the= state flag NORMAL. However, when I do this, I find that the override_backg= round_color with prelight does nothing and with the normal flag, it changes= the colour of both the slider and the trough.

Some of the comments I've seen make it seem as thought this should be done = using style files, but I couldn't find anything explaining how.

Any light that anyone could throw on this would be appreciated.

Tom
--_000_69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0EXCHNG14physics_-- From yann@leydier.info Sat Aug 27 11:33:53 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC81775005D for ; Sat, 27 Aug 2011 11:33:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jC9nO2lXNxCY for ; Sat, 27 Aug 2011 11:33:52 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by menubar.gnome.org (Postfix) with ESMTP id 0034475004D for ; Sat, 27 Aug 2011 11:33:43 +0000 (UTC) Received: from [192.168.0.21] (sal69-3-78-192-148-193.fbxo.proxad.net [78.192.148.193]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0Lzq1j-1RJuT82Bv9-014L2P; Sat, 27 Aug 2011 13:33:41 +0200 Message-ID: <4E58D616.3060208@leydier.info> Date: Sat, 27 Aug 2011 13:33:42 +0200 From: Yann LEYDIER User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110805 Icedove/5.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: Progress bar colours References: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk> In-Reply-To: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:VmBpO6AVL8CTMq5aOJDvwk2vI6o77zn0kwruEnujicK P9GcypP5gfV8tZW2X0F4OlszGQ2BIM+nq6wAAV+0mOXbluRfwv IVuUdC2HIUFY5U1TjKtmyZqknVlJaNF68W0uCKhXxT5QlTxRtI CUw+Iem9jo2XvS6EoBJ98tyPtMO459xmu8+fLotDBrD46DOq3j wlIOjqa7paQXQ1lltz0UpRAjts8+9KDEUGGvmZ+DcM= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 11:33:54 -0000 Hi ! Depending on your Gtk theme, progress bars can be animated pixbufs, so I doubt you can change the color programmatically. If I had to do this, I would create a custom widget containing a drawing area… yann On 27/08/11 13:28, Thomas Harty wrote: > Hi, > > I want to use a progress bar to display temperatures and it'd be very > useful to be able to make bar change colour to indicate any problems. > I've done some reading and the best references (e.g. > http://www.mail-archive.com/gtk-list@gnome.org/msg13767.html and > http://markmail.org/message/zirxleljlithtiel) I could find suggest that > it should be possible to change the colour of the bar using > override_background_color with the state flag PRELIGHT and to change the > color of the trough using override_background_color with the state flag > NORMAL. However, when I do this, I find that the > override_background_color with prelight does nothing and with the normal > flag, it changes the colour of both the slider and the trough. > > Some of the comments I've seen make it seem as thought this should be > done using style files, but I couldn't find anything explaining how. > > Any light that anyone could throw on this would be appreciated. > > Tom > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From t.harty1@physics.ox.ac.uk Sat Aug 27 11:55:57 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4206675004D for ; Sat, 27 Aug 2011 11:55:57 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.55 X-Spam-Level: X-Spam-Status: No, score=-4.55 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.504, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U4AKba6jSrTJ for ; Sat, 27 Aug 2011 11:55:54 +0000 (UTC) Received: from relay9.mail.ox.ac.uk (relay9.mail.ox.ac.uk [163.1.2.169]) by menubar.gnome.org (Postfix) with ESMTP id C8DC575001A for ; Sat, 27 Aug 2011 11:55:45 +0000 (UTC) Received: from exchange-cas1.physics.ox.ac.uk ([163.1.74.82]) by relay9.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QxHUF-0005mQ-UG; Sat, 27 Aug 2011 12:55:43 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS1.physics.ox.ac.uk ([fe80::c42f:17a5:9fa5:3b33%10]) with mapi id 14.01.0323.000; Sat, 27 Aug 2011 12:55:43 +0100 From: Thomas Harty To: Yann LEYDIER , "gtkmm-list@gnome.org" Subject: RE: Progress bar colours Thread-Topic: Progress bar colours Thread-Index: Acxkqvx+L0zRDIfWTEOLUatOTIwX1v//85sAgAAWnU0= Date: Sat, 27 Aug 2011 11:55:42 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2E3@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk>, <4E58D616.3060208@leydier.info> In-Reply-To: <4E58D616.3060208@leydier.info> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.24.247.11] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 11:55:57 -0000 Thank you for your reply. Can't the programme just change the relevant aspe= cts of the theme, to change the way the progress bar is drawn under certain= circumstances?=0A= =0A= Tom=0A= ________________________________________=0A= From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf= of Yann LEYDIER [yann@leydier.info]=0A= Sent: 27 August 2011 12:33=0A= To: gtkmm-list@gnome.org=0A= Subject: Re: Progress bar colours=0A= =0A= Hi !=0A= =0A= Depending on your Gtk theme, progress bars can be animated pixbufs, so I=0A= doubt you can change the color programmatically.=0A= =0A= If I had to do this, I would create a custom widget containing a drawing=0A= area=85=0A= =0A= yann=0A= =0A= On 27/08/11 13:28, Thomas Harty wrote:=0A= > Hi,=0A= >=0A= > I want to use a progress bar to display temperatures and it'd be very=0A= > useful to be able to make bar change colour to indicate any problems.=0A= > I've done some reading and the best references (e.g.=0A= > http://www.mail-archive.com/gtk-list@gnome.org/msg13767.html and=0A= > http://markmail.org/message/zirxleljlithtiel) I could find suggest that= =0A= > it should be possible to change the colour of the bar using=0A= > override_background_color with the state flag PRELIGHT and to change the= =0A= > color of the trough using override_background_color with the state flag= =0A= > NORMAL. However, when I do this, I find that the=0A= > override_background_color with prelight does nothing and with the normal= =0A= > flag, it changes the colour of both the slider and the trough.=0A= >=0A= > Some of the comments I've seen make it seem as thought this should be=0A= > done using style files, but I couldn't find anything explaining how.=0A= >=0A= > Any light that anyone could throw on this would be appreciated.=0A= >=0A= > Tom=0A= >=0A= >=0A= > _______________________________________________=0A= > gtkmm-list mailing list=0A= > gtkmm-list@gnome.org=0A= > http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= =0A= _______________________________________________=0A= gtkmm-list mailing list=0A= gtkmm-list@gnome.org=0A= http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= From yann@leydier.info Sat Aug 27 12:00:24 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3C7AC750206 for ; Sat, 27 Aug 2011 12:00:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zzZWCHXvBwtG for ; Sat, 27 Aug 2011 12:00:21 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by menubar.gnome.org (Postfix) with ESMTP id 339D67500C2 for ; Sat, 27 Aug 2011 12:00:12 +0000 (UTC) Received: from [192.168.0.21] (sal69-3-78-192-148-193.fbxo.proxad.net [78.192.148.193]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0M5V4W-1R83973yCO-00xcsQ; Sat, 27 Aug 2011 14:00:10 +0200 Message-ID: <4E58DC4A.1050401@leydier.info> Date: Sat, 27 Aug 2011 14:00:10 +0200 From: Yann LEYDIER User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110805 Icedove/5.0 MIME-Version: 1.0 To: Thomas Harty Subject: Re: Progress bar colours References: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk>, <4E58D616.3060208@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9E2E3@EXCHNG14.physics.ox.ac.uk> In-Reply-To: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2E3@EXCHNG14.physics.ox.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:3jxvMSGDyx80Gr8wPm+g3bzAcMZEIxk4Q9iOAgcdSJy drB73JVpEEj0I8aXRfbtaljERXNpSyx13oZd0LUk75hMx2a1zj fbciezJETV2TgD0bFWpghYAyfpTBLTEu/bTaMp09AW1lTiK4Df jw0O/zokGnvvRQOeG9gBRth//7jbsrZp+IatLWKnm0ffKVeif3 CSEvvQEkWwhH4XXfMcbRJT7QMJMSEgxDodm93ueQl8= Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 12:00:24 -0000 As far as I know this is the work of the engine and I know no way to access its routines… However, if you are familiar with the internal principles of Gtk, you might be able to derivate the ProgressBar class and overload the method that redraws the widget, but this is beyond my knowledge. yann On 27/08/11 13:55, Thomas Harty wrote: > Thank you for your reply. Can't the programme just change the relevant aspects of the theme, to change the way the progress bar is drawn under certain circumstances? > > Tom > ________________________________________ > From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on behalf of Yann LEYDIER [yann@leydier.info] > Sent: 27 August 2011 12:33 > To: gtkmm-list@gnome.org > Subject: Re: Progress bar colours > > Hi ! > > Depending on your Gtk theme, progress bars can be animated pixbufs, so I > doubt you can change the color programmatically. > > If I had to do this, I would create a custom widget containing a drawing > area… > > yann > > On 27/08/11 13:28, Thomas Harty wrote: >> Hi, >> >> I want to use a progress bar to display temperatures and it'd be very >> useful to be able to make bar change colour to indicate any problems. >> I've done some reading and the best references (e.g. >> http://www.mail-archive.com/gtk-list@gnome.org/msg13767.html and >> http://markmail.org/message/zirxleljlithtiel) I could find suggest that >> it should be possible to change the colour of the bar using >> override_background_color with the state flag PRELIGHT and to change the >> color of the trough using override_background_color with the state flag >> NORMAL. However, when I do this, I find that the >> override_background_color with prelight does nothing and with the normal >> flag, it changes the colour of both the slider and the trough. >> >> Some of the comments I've seen make it seem as thought this should be >> done using style files, but I couldn't find anything explaining how. >> >> Any light that anyone could throw on this would be appreciated. >> >> Tom >> >> >> _______________________________________________ >> gtkmm-list mailing list >> gtkmm-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtkmm-list > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From t.harty1@physics.ox.ac.uk Sat Aug 27 12:13:36 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9FD0575004D for ; Sat, 27 Aug 2011 12:13:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.55 X-Spam-Level: X-Spam-Status: No, score=-4.55 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.504, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t-QKSJzEeWh3 for ; Sat, 27 Aug 2011 12:13:33 +0000 (UTC) Received: from relay1.mail.ox.ac.uk (relay1.mail.ox.ac.uk [129.67.1.165]) by menubar.gnome.org (Postfix) with ESMTP id C30C075001A for ; Sat, 27 Aug 2011 12:13:24 +0000 (UTC) Received: from exchange-cas1.physics.ox.ac.uk ([163.1.74.82]) by relay1.mail.ox.ac.uk with esmtp (Exim 4.75) (envelope-from ) id 1QxHlK-00065N-4s; Sat, 27 Aug 2011 13:13:22 +0100 Received: from EXCHNG14.physics.ox.ac.uk ([fe80::90e1:4071:f5a2:f46d]) by EXCHANGE-CAS1.physics.ox.ac.uk ([fe80::c42f:17a5:9fa5:3b33%10]) with mapi id 14.01.0323.000; Sat, 27 Aug 2011 13:13:22 +0100 From: Thomas Harty To: Yann LEYDIER Subject: RE: Progress bar colours Thread-Topic: Progress bar colours Thread-Index: Acxkqvx+L0zRDIfWTEOLUatOTIwX1v//85sAgAAWnU3///DIAIAAETO+ Date: Sat, 27 Aug 2011 12:13:21 +0000 Message-ID: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2F7@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk>, <4E58D616.3060208@leydier.info> <69464CD235B9A04DACEAA1DB7151ACAB13A9E2E3@EXCHNG14.physics.ox.ac.uk>, <4E58DC4A.1050401@leydier.info> In-Reply-To: <4E58DC4A.1050401@leydier.info> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.24.247.11] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "gtkmm-list@gnome.org" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 12:13:36 -0000 Can't one change the way the engine renders these things using css files (t= his seems to be what http://markmail.org/message/zirxleljlithtiel is sugges= ting)? =0A= =0A= Otherwise, the gtk C code draws the progress bar using code like:=0A= =0A= gtk_style_context_save (context);=0A= gtk_style_context_add_class (context, GTK_STYLE_CLASS_TROUGH);=0A= =0A= gtk_render_background (context, cr, 0, 0, width, height);=0A= gtk_render_frame (context, cr, 0, 0, width, height);=0A= =0A= gtk_style_context_get_padding (context, state, &padding);=0A= =0A= gtk_style_context_restore (context);=0A= =0A= so to change the way it's drawn (without changing the way the engine interp= rets gtk_render_background calls) would mean a pretty major re-write; in wh= ich case I think just just creating a new progress bar widget using a drawi= ng_area and Cairomm drawing calls is probably the best bet.=0A= =0A= Tom=0A= =0A= =0A= ________________________________________=0A= From: Yann LEYDIER [yann@leydier.info]=0A= Sent: 27 August 2011 13:00=0A= To: Thomas Harty=0A= Cc: gtkmm-list@gnome.org=0A= Subject: Re: Progress bar colours=0A= =0A= As far as I know this is the work of the engine and I know no way to=0A= access its routines=85=0A= =0A= However, if you are familiar with the internal principles of Gtk, you=0A= might be able to derivate the ProgressBar class and overload the method=0A= that redraws the widget, but this is beyond my knowledge.=0A= =0A= yann=0A= =0A= On 27/08/11 13:55, Thomas Harty wrote:=0A= > Thank you for your reply. Can't the programme just change the relevant as= pects of the theme, to change the way the progress bar is drawn under certa= in circumstances?=0A= >=0A= > Tom=0A= > ________________________________________=0A= > From: gtkmm-list-bounces@gnome.org [gtkmm-list-bounces@gnome.org] on beha= lf of Yann LEYDIER [yann@leydier.info]=0A= > Sent: 27 August 2011 12:33=0A= > To: gtkmm-list@gnome.org=0A= > Subject: Re: Progress bar colours=0A= >=0A= > Hi !=0A= >=0A= > Depending on your Gtk theme, progress bars can be animated pixbufs, so I= =0A= > doubt you can change the color programmatically.=0A= >=0A= > If I had to do this, I would create a custom widget containing a drawing= =0A= > area=85=0A= >=0A= > yann=0A= >=0A= > On 27/08/11 13:28, Thomas Harty wrote:=0A= >> Hi,=0A= >>=0A= >> I want to use a progress bar to display temperatures and it'd be very=0A= >> useful to be able to make bar change colour to indicate any problems.=0A= >> I've done some reading and the best references (e.g.=0A= >> http://www.mail-archive.com/gtk-list@gnome.org/msg13767.html and=0A= >> http://markmail.org/message/zirxleljlithtiel) I could find suggest that= =0A= >> it should be possible to change the colour of the bar using=0A= >> override_background_color with the state flag PRELIGHT and to change the= =0A= >> color of the trough using override_background_color with the state flag= =0A= >> NORMAL. However, when I do this, I find that the=0A= >> override_background_color with prelight does nothing and with the normal= =0A= >> flag, it changes the colour of both the slider and the trough.=0A= >>=0A= >> Some of the comments I've seen make it seem as thought this should be=0A= >> done using style files, but I couldn't find anything explaining how.=0A= >>=0A= >> Any light that anyone could throw on this would be appreciated.=0A= >>=0A= >> Tom=0A= >>=0A= >>=0A= >> _______________________________________________=0A= >> gtkmm-list mailing list=0A= >> gtkmm-list@gnome.org=0A= >> http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= >=0A= > _______________________________________________=0A= > gtkmm-list mailing list=0A= > gtkmm-list@gnome.org=0A= > http://mail.gnome.org/mailman/listinfo/gtkmm-list=0A= =0A= From rob@bdt-home.demon.co.uk Sat Aug 27 14:36:40 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E175075002F for ; Sat, 27 Aug 2011 14:36:39 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J6tAFTv4nRyh for ; Sat, 27 Aug 2011 14:36:37 +0000 (UTC) Received: from lon1-post-2.mail.demon.net (lon1-post-2.mail.demon.net [195.173.77.149]) by menubar.gnome.org (Postfix) with ESMTP id E6F6375001A for ; Sat, 27 Aug 2011 14:36:28 +0000 (UTC) Received: from bdt-home.demon.co.uk ([80.177.170.243]) by lon1-post-2.mail.demon.net with esmtp (Exim 4.69) id 1QxJzm-00046V-bH for gtkmm-list@gnome.org; Sat, 27 Aug 2011 14:36:26 +0000 Received: from zechariah.huneausware.local (zechariah.huneausware.local [192.168.0.10]) by bdt-home.demon.co.uk (Postfix) with SMTP id A60F147BF19 for ; Sat, 27 Aug 2011 15:36:25 +0100 (BST) Date: Sat, 27 Aug 2011 15:35:21 +0100 From: Robert Pearce To: gtkmm-list@gnome.org Subject: Re: Progress bar colours Message-Id: <20110827153521.72f19b40.rob@bdt-home.demon.co.uk> In-Reply-To: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk> References: <69464CD235B9A04DACEAA1DB7151ACAB13A9E2C0@EXCHNG14.physics.ox.ac.uk> Organization: Very little X-Mailer: Sylpheed 3.0.3 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 14:36:40 -0000 Hi Thomas, On Sat, 27 Aug 2011 11:28:08 +0000 you wrote: > I want to use a progress bar to display temperatures and it'd be very > useful to be able to make bar change colour to indicate any problems. As has already been suggested, a custom widget may be a better bet. I've done something similar among my "Gtk Widgets for Instrument Display" at http://www.bdt-home.demon.co.uk/computer/gtk - perhaps that might be helpful. It's a bit old-school, though - uses some deprecated functions. Cheers, Rob From mjmendoza@konsolscript.org Sun Aug 28 14:05:18 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C02847500FF for ; Sun, 28 Aug 2011 14:05:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.899 X-Spam-Level: X-Spam-Status: No, score=-1.899 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bClYz7xeXjc1 for ; Sun, 28 Aug 2011 14:05:16 +0000 (UTC) Received: from nm5.bullet.mail.sg1.yahoo.com (nm5.bullet.mail.sg1.yahoo.com [115.178.12.249]) by menubar.gnome.org (Postfix) with SMTP id 5193C75007D for ; Sun, 28 Aug 2011 14:05:07 +0000 (UTC) Received: from [115.178.12.220] by nm5.bullet.mail.sg1.yahoo.com with NNFMP; 28 Aug 2011 14:05:05 -0000 Received: from [115.178.12.250] by tm1.bullet.mail.sg1.yahoo.com with NNFMP; 28 Aug 2011 14:05:05 -0000 Received: from [127.0.0.1] by omp1007.mail.sg1.yahoo.com with NNFMP; 28 Aug 2011 14:05:05 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 670328.73519.bm@omp1007.mail.sg1.yahoo.com Received: (qmail 63268 invoked by uid 60001); 28 Aug 2011 14:05:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1314540305; bh=aAfaupoMR5Cnoel3FymL7L3uFEscVWerF6yF4ZXshrE=; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=PPJwnWX7KeOu05gIUatmx03/eGoSyZPzEgOhCXf/n6IrxntZGl7CmzjE7fClqhEqnU1rWNidyxRZ8B5tuRcDgfOoVO7PyLaQy8rlkzHq5ZmQZjJEwuAjnW4QeJKld65cyCaVgC8aGtMHe/bdxFK0x+pEx+A2zpEQFLyWge1WGpI= X-YMail-OSG: 1mG1u10VM1mJYIeLwdTlWZtqNPSBl7zNgN_3ySH5Q8syr.8 J3QCT0Jg7ygiSkZLlmGUxXdlGtZcFjmmz1nxVCgv72hLH.3HGQlrPTMuZzI8 .G9QKF5bmGKCL0VZIkIrhQ9hvZRUs_5xjEZetiKQdyfqk8S8tDbHpx6d3J6C 1zSTMSYjRFXN_zMtI5Vchrwr.N7_aYVQ6l_QWwe4oHP6WvVp4LomSJbTlK47 rmf4zxLlrax7PXPPp15MnURqGXf4dzmck6WosrFrUdXVT5KUrvO1DkRD0ZfQ BeX.Fgj1y1cG09u46D26vk0avpzpolPQfqEB.j_mmyIWeNt0H3LbN6vdGMLQ Ti0CwktXPDQJ94sa5DWKPoR2kia7UCzXlozi0duUq7vkPipZMHZJLnZLJTR. ZnROpzMTxFS37ysdluZlg_15I_Z_y1PY_ZIHhbgus5EfSY8oQaEW4seOLzTl UGROU7eTXySmQj9bpHTJW8C7ArURY1Ef1bS1ScRit6.cHhgSX1bQUbnb.Vkz WF7nAg2vQzoWzhMHRvjfWFXo_mSu3e1o_gIEp4p8b7Fcb86JdsIGN8Z9ry17 ykg-- Received: from [180.194.244.47] by web77715.mail.sg1.yahoo.com via HTTP; Sun, 28 Aug 2011 22:05:05 SGT X-RocketYMMF: mjmendoza@ymail.com X-Mailer: YahooMailWebService/0.8.113.315625 References: <1314369303.66414.YahooMailNeo@web77701.mail.sg1.yahoo.com> <1314375936.20779.70.camel@dunnart.localdomain> Message-ID: <1314540305.57178.YahooMailNeo@web77715.mail.sg1.yahoo.com> Date: Sun, 28 Aug 2011 22:05:05 +0800 (SGT) From: Mj Mendoza IV Subject: Re: Does Glib::usleep work on GUI (Gtkmm) app? To: Gtkmm GNOME In-Reply-To: <1314375936.20779.70.camel@dunnart.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="455718267-742580995-1314540305=:57178" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mj Mendoza IV List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 14:05:19 -0000 --455718267-742580995-1314540305=:57178 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Jonner,=0A=0ASo, microseconds.=A0I've always thought its _milli_seconds.= =0A=0A> If you can explain what you're trying to achieve, we might be=0A>= =A0able to suggest a better approach.=0A=0A=0AHere's what I'm currently doi= ng:=0Ahttp://konsolscript.org/web/2011/08/23/first-look-at-kage-studio/=0A= =0A=0AStill working on tweening.=0A=0ARegards.=0A=0AMj Mendoza IV,=0ADevelo= per, KonsolScript=0Ahttp://www.konsolscript.org=0A=0ADeveloper, Clash=0Ahtt= p://geesas.sourceforge.net/clash --455718267-742580995-1314540305=:57178 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Jonner,

So, microseconds. I've= always thought its _milli_seconds.

> If you can explain what you're trying to achieve, we might beable to suggest a better approach.

Here's what I'm currently doing:

Stil= l working on tweening.

Regards.

Mj Mendoza = IV,
Developer, KonsolScript
http://www.konsolscript.org

De= veloper, Clash
http://geesas.sourceforge.net/clash
--455718267-742580995-1314540305=:57178-- From gtglus@gmail.com Sun Aug 28 16:14:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6F06775007D for ; Sun, 28 Aug 2011 16:14:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_JH=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11XNE+xlmAAT for ; Sun, 28 Aug 2011 16:14:54 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 2F7F2750070 for ; Sun, 28 Aug 2011 16:14:45 +0000 (UTC) Received: by gxk28 with SMTP id 28so6144996gxk.27 for ; Sun, 28 Aug 2011 09:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ByTpAO3+KFf4X3U2VXTJ2nTauaJ2aE/HPxDOog6zImg=; b=n0/oaxgD5nv1/inEo5MG20dt5eoT9Viy0f2B9UI1H6y4mWtrkXvbeG+FyQaO4sdHHb 3K1nYPwBswp5H/dS++Eovq+ruvKRZIZmSDlaM9Uump1EdWuv5ZEXaWIY3IrQOZxFslML K8mov6Wo0NgQMQArPPPSVb6K5iRqQylJgQqnQ= MIME-Version: 1.0 Received: by 10.42.159.69 with SMTP id k5mr3920854icx.389.1314548083431; Sun, 28 Aug 2011 09:14:43 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Sun, 28 Aug 2011 09:14:43 -0700 (PDT) In-Reply-To: <1314106000.2787.9.camel@kjell-desktop> References: <1314106000.2787.9.camel@kjell-desktop> Date: Sun, 28 Aug 2011 18:14:43 +0200 Message-ID: Subject: Re: Gtkmm installation From: Glus Xof To: Kjell Ahlstedt Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 16:14:56 -0000 2011/8/23 Kjell Ahlstedt : > I assume that you refer to the Bugzilla comment > https://bugzilla.gnome.org/show_bug.cgi?id=653579#c5 > > To use the version of gtkmm that you have built and installed with > 'jhbuild build', you can start a new shell with 'jhbuild shell'. See > http://developer.gnome.org/jhbuild/unstable/command-reference.html#command-reference-shell > It adds and modifies a lot of environment variables. I'm not sure which > ones are really important. Anyway, if you compile, link, and run your > application in a shell that 'jhbuild shell' has created, you will use > the version of gtkmm that jhbuild has built. When run application, it breaks Gtk-Message: Failed to load module "canberra-gtk-module" terminate called after throwing an instance of 'Gdk::PixbufError' Avorted 1) Some other package/module should be added in ~/.jhbuildrc in order to make "canberra-gtk-module" present ? 2) How could I see if cairo supports SVG file images ? Glus From gtglus@gmail.com Sun Aug 28 18:15:47 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44B0E7500F1 for ; Sun, 28 Aug 2011 18:15:47 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_JH=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q-+u6OGTuuao for ; Sun, 28 Aug 2011 18:15:44 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 4CE08750068 for ; Sun, 28 Aug 2011 18:15:36 +0000 (UTC) Received: by gwb15 with SMTP id 15so6216371gwb.27 for ; Sun, 28 Aug 2011 11:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=viKjLeoUEXQE6zfBlUjeXLh/SMmJ8fjPlnuD/wW5A2I=; b=bBy3h6Lo2pO9phgwBA3LxHzXRjSAJz8FWA0wuDOvl0P55g+fMEj70plw/iTMTsJ5Po l8H9Tm8tcrX8kE86sctqXNa5DLX6PyEHuBUzjzMKoBvvoNOPnjRjKVmMsy66gTXsLY61 hFzI7nA/ECRoU8peJowZCy6+pCTt6p4HQzv2I= MIME-Version: 1.0 Received: by 10.42.139.6 with SMTP id e6mr3739142icu.188.1314555334305; Sun, 28 Aug 2011 11:15:34 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Sun, 28 Aug 2011 11:15:34 -0700 (PDT) In-Reply-To: References: <1314106000.2787.9.camel@kjell-desktop> Date: Sun, 28 Aug 2011 20:15:34 +0200 Message-ID: Subject: Re: Gtkmm installation From: Glus Xof To: Kjell Ahlstedt Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 18:15:47 -0000 2011/8/28 Glus Xof : > 2011/8/23 Kjell Ahlstedt : >> I assume that you refer to the Bugzilla comment >> https://bugzilla.gnome.org/show_bug.cgi?id=653579#c5 >> >> To use the version of gtkmm that you have built and installed with >> 'jhbuild build', you can start a new shell with 'jhbuild shell'. See >> http://developer.gnome.org/jhbuild/unstable/command-reference.html#command-reference-shell >> It adds and modifies a lot of environment variables. I'm not sure which >> ones are really important. Anyway, if you compile, link, and run your >> application in a shell that 'jhbuild shell' has created, you will use >> the version of gtkmm that jhbuild has built. > > When run application, it breaks > > Gtk-Message: Failed to load module "canberra-gtk-module" > terminate called after throwing an instance of 'Gdk::PixbufError' > Avorted > > 1) Some other package/module should be added in ~/.jhbuildrc in order > to make "canberra-gtk-module" present ? Done... I must just add 'libcanberra' to modules var settings... But, the Gdk::PixbufError remains... it breaks in a line that says: Gtk::Window::set_icon_from_file (Glib::build_filename (DATADIR, "image.svg")); Glus From harryhaaren@gmail.com Sun Aug 28 18:30:54 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 758B0750101 for ; Sun, 28 Aug 2011 18:30:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.621 X-Spam-Level: X-Spam-Status: No, score=-1.621 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O2FgORr2t2we for ; Sun, 28 Aug 2011 18:30:52 +0000 (UTC) Received: from mail-wy0-f200.google.com (mail-wy0-f200.google.com [74.125.82.200]) by menubar.gnome.org (Postfix) with ESMTP id 50F7075007F for ; Sun, 28 Aug 2011 18:30:43 +0000 (UTC) Received: by wyh13 with SMTP id 13so2121614wyh.3 for ; Sun, 28 Aug 2011 11:30:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.17.71 with SMTP id r7mr818180eba.7.1314556242075; Sun, 28 Aug 2011 11:30:42 -0700 (PDT) In-Reply-To: Message-ID: <0015174c0dbed8a69c04ab94f997@google.com> Date: Sun, 28 Aug 2011 18:30:42 +0000 Subject: Re: Re: Gtkmm installation From: harryhaaren@gmail.com To: Glus Xof Content-Type: multipart/alternative; boundary=0015174c0dbed8a65504ab94f994 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 18:30:54 -0000 --0015174c0dbed8a65504ab94f994 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes > Gtk::Window::set_icon_from_file (Glib::build_filename > (DATADIR, "image.svg")); OT: Is SVG a valid filetype for an icon? IIRC pixmap types like png / jpg were supported.. that would give you a runtime problem though, not a compile time. In answer to the problem Check your gtkmm/window.h header and see what functions are available to you..? -Harry --0015174c0dbed8a65504ab94f994 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > Gtk::Window::set_icon_from_file (Glib::build_filename (DATADIR, "= image.svg"));
OT:
Is SVG a valid filetype for an icon? IIRC = pixmap types like png / jpg were supported..
that would give you a run= time problem though, not a compile time.

In answer to the probl= em
Check your gtkmm/window.h header and see what functions are availab= le to you..?

-Harry --0015174c0dbed8a65504ab94f994-- From gtglus@gmail.com Sun Aug 28 21:35:30 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F220B75009F for ; Sun, 28 Aug 2011 21:35:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LXKs+2fkjWX8 for ; Sun, 28 Aug 2011 21:35:28 +0000 (UTC) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by menubar.gnome.org (Postfix) with ESMTP id 43AFE75000B for ; Sun, 28 Aug 2011 21:35:19 +0000 (UTC) Received: by yib19 with SMTP id 19so4402685yib.27 for ; Sun, 28 Aug 2011 14:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ssUeRWQkFmYcEMaP8cBe39hADjtuodWARR4ysY3Lq50=; b=hapuXe44wutVFKC/X68J/SAmMHtdRbtGdcmipPIQGmxDz2y9qWHmdA1qXgFSIUuqkf svw+sW60pW50s2n+4E1xVvWeUdZyxje77OzhwUxhiZWzoj0d+1bv9NpSrbxSD9kqktqm kRlhrMgQBN1iH8gcQV4P4rvVXVyR4YTzlXGUU= MIME-Version: 1.0 Received: by 10.42.159.69 with SMTP id k5mr4221816icx.389.1314567318208; Sun, 28 Aug 2011 14:35:18 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Sun, 28 Aug 2011 14:35:18 -0700 (PDT) In-Reply-To: <0015174c0dbed8a69c04ab94f997@google.com> References: <0015174c0dbed8a69c04ab94f997@google.com> Date: Sun, 28 Aug 2011 23:35:18 +0200 Message-ID: Subject: Re: Re: Gtkmm installation From: Glus Xof To: harryhaaren@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 21:35:30 -0000 2011/8/28 : >> Gtk::Window::set_icon_from_file (Glib::build_filename (DATADIR, >> "image.svg")); > In answer to the problem > Check your gtkmm/window.h header and see what functions are available to > you..? Gtk::Window::set_icon_from_file (...) seems available... Extracted from gtkmm/window.h: /** Sets the icon for the window. * * This function is equivalent to calling set_icon() * with a pixbuf created by loading the image from @a filename. * @param filename Location of icon file. * @return true if setting the icon succeeded. */ bool set_icon_from_file(const std::string& filename); Glus From murrayc@murrayc.com Mon Aug 29 07:18:34 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EF0477500E0 for ; Mon, 29 Aug 2011 07:18:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.446 X-Spam-Level: X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CSqIfLy88Te8 for ; Mon, 29 Aug 2011 07:18:31 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by menubar.gnome.org (Postfix) with ESMTP id C154E7500CF for ; Mon, 29 Aug 2011 07:18:23 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.messagingengine.com (Postfix) with ESMTP id 6416720B7D; Mon, 29 Aug 2011 03:18:22 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 29 Aug 2011 03:18:22 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version :content-transfer-encoding; s=smtpout; bh=e/XESDxt9yNAINbPUdtr5j ZFxJQ=; b=pra0fML8Ug6bQV4/Ag2cRPb/cLu9CIVU0pTjL7x5hdTu3wht+gkWRN LjMttrOKkBXa/AUjy9Yv1Un4JMJ/dhOXoLVf4sA/XO0n2SsLtJTWkC5GfaT4OLFm RZDSqzXwtpNPKA8amzJJnIjSvCl+Zt3cX3ezEymDKODTcQ2G96VC0= X-Sasl-enc: dXnAScF8MLrYvZoJ/WJWA4bxq26kxbj93lLBfFwB/k+V 1314602301 Received: from [192.168.178.24] (ppp-93-104-175-171.dynamic.mnet-online.de [93.104.175.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 6676EA2036B; Mon, 29 Aug 2011 03:18:21 -0400 (EDT) Subject: Re: Gtkmm installation From: Murray Cumming To: Glus Xof In-Reply-To: References: <1314106000.2787.9.camel@kjell-desktop> Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Aug 2011 09:18:20 +0200 Message-ID: <1314602300.2369.4.camel@murrayc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 07:18:34 -0000 On Sun, 2011-08-28 at 18:14 +0200, Glus Xof wrote: > Gtk-Message: Failed to load module "canberra-gtk-module" > terminate called after throwing an instance of 'Gdk::PixbufError' > Avorted So catch the exception and see what the error message is. -- murrayc@murrayc.com www.murrayc.com www.openismus.com From gtglus@gmail.com Mon Aug 29 08:28:17 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D7E87500E0 for ; Mon, 29 Aug 2011 08:28:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EwNGkjUZIMuf for ; Mon, 29 Aug 2011 08:28:15 +0000 (UTC) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by menubar.gnome.org (Postfix) with ESMTP id 8DEC17500CF for ; Mon, 29 Aug 2011 08:28:07 +0000 (UTC) Received: by yib19 with SMTP id 19so4788970yib.27 for ; Mon, 29 Aug 2011 01:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Dc4KkdHhN1T1eV8Kpd5n17RQclFX7npPWbLfYjAhFEE=; b=s66oVpV6cq/SzaeGlHvXr0cxYf7OGloJeBuQnymE+tt9EcnDMA1lasclPWh/LXyiF2 P1y3zAlXL/SVeAZ13DH6hNPqmpd/0QNnfjtRGeJ1P9sxXKCG1S3QZ+UlA/dmJofY+fbV o3lJ2U70x1uldG4+r1X8F7UeBw6NLe/lP54jg= MIME-Version: 1.0 Received: by 10.42.159.69 with SMTP id k5mr4773240icx.389.1314606485787; Mon, 29 Aug 2011 01:28:05 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Mon, 29 Aug 2011 01:28:05 -0700 (PDT) In-Reply-To: <1314602300.2369.4.camel@murrayc-desktop> References: <1314106000.2787.9.camel@kjell-desktop> <1314602300.2369.4.camel@murrayc-desktop> Date: Mon, 29 Aug 2011 10:28:05 +0200 Message-ID: Subject: Re: Gtkmm installation From: Glus Xof To: Murray Cumming Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 08:28:17 -0000 2011/8/29 Murray Cumming : > On Sun, 2011-08-28 at 18:14 +0200, Glus Xof wrote: >> Gtk-Message: Failed to load module "canberra-gtk-module" >> terminate called after throwing an instance of 'Gdk::PixbufError' >> Avorted > > So catch the exception and see what the error message is. Error message: Couldn't recognize the image file format for file ... Glus From qdlacz@gmail.com Mon Aug 29 08:52:07 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7731750144 for ; Mon, 29 Aug 2011 08:52:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.392 X-Spam-Level: X-Spam-Status: No, score=-2.392 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077, TW_JH=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uykU87-XL61I for ; Mon, 29 Aug 2011 08:52:05 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id BB94E7500E0 for ; Mon, 29 Aug 2011 08:51:57 +0000 (UTC) Received: by ywo32 with SMTP id 32so6614921ywo.27 for ; Mon, 29 Aug 2011 01:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yDzck3bohepWBTmKrJKfw1LUnRuTw+715DYVxj/AjCs=; b=norSqYgq/+WYvC9GG/hlr8eEBFN8lj5sIXVLHg++d6ql/iFP0wusDQ749DbDzsy8/g 5rSfNHEVU7k3iq1m74iUQTexTLUSE0Tlmyp7gilyNFSsgZAoqr6ncD5FBr3tNXQyL2VB ka09n4oodcSnlBOZW5IgywAA1WQpPul5ALWIk= MIME-Version: 1.0 Received: by 10.42.168.129 with SMTP id w1mr4200973icy.146.1314607915863; Mon, 29 Aug 2011 01:51:55 -0700 (PDT) Received: by 10.42.142.4 with HTTP; Mon, 29 Aug 2011 01:51:55 -0700 (PDT) In-Reply-To: References: <1314106000.2787.9.camel@kjell-desktop> <1314602300.2369.4.camel@murrayc-desktop> Date: Mon, 29 Aug 2011 10:51:55 +0200 Message-ID: Subject: Re: Gtkmm installation From: Krzesimir Nowak To: Glus Xof Content-Type: text/plain; charset=ISO-8859-1 Cc: Murray Cumming , gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 08:52:08 -0000 2011/8/29 Glus Xof : > 2011/8/29 Murray Cumming : >> On Sun, 2011-08-28 at 18:14 +0200, Glus Xof wrote: >>> Gtk-Message: Failed to load module "canberra-gtk-module" >>> terminate called after throwing an instance of 'Gdk::PixbufError' >>> Avorted >> >> So catch the exception and see what the error message is. > > Error message: > Couldn't recognize the image file format for file ... > You probably should jhbuild librsvg - it has its own plugin for handling svg in gdk-pixbuf. > Glus > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > From gtglus@gmail.com Mon Aug 29 09:32:30 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 46948750156 for ; Mon, 29 Aug 2011 09:32:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077, TW_JH=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CSk0IP7mcbLI for ; Mon, 29 Aug 2011 09:32:28 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 9BEBF7500E0 for ; Mon, 29 Aug 2011 09:32:20 +0000 (UTC) Received: by gwb15 with SMTP id 15so6749917gwb.27 for ; Mon, 29 Aug 2011 02:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+ZuI0rHVpLDAOxp1GKceq2zIwHudzt+BH2ZRNf1+9dU=; b=QYZmqFrVLdhJye5R7qtVxWzzNn8VMm3eeamQ7snIeKc2Un4JWLeIABTyZ5m2l0d/N2 /zuwDf3IXOCEFoWsOXmuQsvgMiOTQbGXUmRQbCDUm9pQgVQyTZkOBhT1CIh0iR3MGoWt l9/1+KsuU+kXhusuXqPStRFGTsAdqXEHzJv6Q= MIME-Version: 1.0 Received: by 10.42.139.6 with SMTP id e6mr4471185icu.188.1314610338817; Mon, 29 Aug 2011 02:32:18 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Mon, 29 Aug 2011 02:32:18 -0700 (PDT) In-Reply-To: References: <1314106000.2787.9.camel@kjell-desktop> <1314602300.2369.4.camel@murrayc-desktop> Date: Mon, 29 Aug 2011 11:32:18 +0200 Message-ID: Subject: Re: Gtkmm installation From: Glus Xof To: Krzesimir Nowak Content-Type: text/plain; charset=ISO-8859-1 Cc: Murray Cumming , gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 09:32:30 -0000 > You probably should jhbuild librsvg - it has its own plugin for > handling svg in gdk-pixbuf. The installation of librsvg via jhbuild is now in progress... I'll tell you... but, (maybe they are not a Gtkmm specific questions...sorry) how could I do to exec apps without calling "jhbuild shell" before... (some data in Makefiles, maybe, etc...) ? Glus From gtglus@gmail.com Mon Aug 29 10:47:21 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32E397500E0 for ; Mon, 29 Aug 2011 10:47:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.392 X-Spam-Level: X-Spam-Status: No, score=-2.392 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077, TW_JH=0.077, TW_LX=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S2Vzhh5m7Oec for ; Mon, 29 Aug 2011 10:47:19 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id 2BD147500CF for ; Mon, 29 Aug 2011 10:47:10 +0000 (UTC) Received: by gxk28 with SMTP id 28so6796010gxk.27 for ; Mon, 29 Aug 2011 03:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4YkafEVfjhad4TGNrA0YtYbuAwZlr49BDhOR13cn598=; b=UqGNS+X7l/P7Bb7VDrezactejqgcDg4M9aWf9XdDc7gHVuS2uHPa2FPr49YsvtY2cT tgJav+19hHF3qeWx6IC17oKs5d5tZ2oT8z0kh02cwn55kg4d3Ezs4AeV9rlpO3oyQej0 xgVOwLh/3LjhTDujgg7F3UWXdG8Wy/oQx+5RM= MIME-Version: 1.0 Received: by 10.42.155.1 with SMTP id s1mr4522542icw.121.1314614828267; Mon, 29 Aug 2011 03:47:08 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Mon, 29 Aug 2011 03:47:08 -0700 (PDT) In-Reply-To: References: <1314106000.2787.9.camel@kjell-desktop> <1314602300.2369.4.camel@murrayc-desktop> Date: Mon, 29 Aug 2011 12:47:08 +0200 Message-ID: Subject: Re: Gtkmm installation From: Glus Xof To: Krzesimir Nowak Content-Type: text/plain; charset=ISO-8859-1 Cc: Murray Cumming , gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 10:47:21 -0000 2011/8/29 Glus Xof : >> You probably should jhbuild librsvg - it has its own plugin for >> handling svg in gdk-pixbuf. > > The installation of librsvg via jhbuild is now in progress... I'll tell you... Thanks... librsvg works fine and solved the problem. > but, (maybe they are not a Gtkmm specific questions...sorry) > how could I do to exec apps without calling "jhbuild shell" before... > (some data in Makefiles, maybe, etc...) ? I think that in my situation an static compiling rather a dinamic would be enough... (if could be done...) The extract of my Makefile.am (at the sources directory) is, ----- AM_CXXFLAGS = -DDATADIR=\"$(appdatadir)\" -DPROGRAMNAME_LOCALEDIR=\"{PROGRAMNAME_LOCALEDIR}\" INCLUDES = $(gtkmm_CFLAGS) -DLOCALEDIR=\""$(datadir)/locale"\" LDADD = $(gtkmm_LIBS) -lxklavier -lssl -lcrypto ----- Which changes should I do on it ? Glus From gtglus@gmail.com Mon Aug 29 13:32:36 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E30C1750156 for ; Mon, 29 Aug 2011 13:32:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.392 X-Spam-Level: X-Spam-Status: No, score=-2.392 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077, TW_JH=0.077, TW_LX=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m9bSVpNdYOPm for ; Mon, 29 Aug 2011 13:32:33 +0000 (UTC) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by menubar.gnome.org (Postfix) with ESMTP id A05677500CF for ; Mon, 29 Aug 2011 13:32:25 +0000 (UTC) Received: by gxk28 with SMTP id 28so6964991gxk.27 for ; Mon, 29 Aug 2011 06:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dxrmT09Y8cEMxww2GraRQK2TBg6ya79019T05d1wn90=; b=k0ZHArMpPWtSDIGJYuHignCJuJNv6+mVaXd0gLO1NxGmSeSDWT9wFHmL1CmmHSIjOy g5qFnQcHuMKK4xcp9aCHzYw24+cv8zxsvNRpnpMN6xTb5v0GrZYADD2WmMagOkvFSFO+ AvE+fU6w9xgg4PGt72gsdEgzxo+JG4wxRG8CQ= MIME-Version: 1.0 Received: by 10.42.161.73 with SMTP id s9mr4891787icx.523.1314624743498; Mon, 29 Aug 2011 06:32:23 -0700 (PDT) Received: by 10.42.162.4 with HTTP; Mon, 29 Aug 2011 06:32:23 -0700 (PDT) In-Reply-To: References: <1314106000.2787.9.camel@kjell-desktop> <1314602300.2369.4.camel@murrayc-desktop> Date: Mon, 29 Aug 2011 15:32:23 +0200 Message-ID: Subject: Re: Gtkmm installation From: Glus Xof To: Krzesimir Nowak Content-Type: text/plain; charset=ISO-8859-1 Cc: Murray Cumming , gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 13:32:36 -0000 2011/8/29 Glus Xof : > 2011/8/29 Glus Xof : >>> You probably should jhbuild librsvg - it has its own plugin for >>> handling svg in gdk-pixbuf. >> >> The installation of librsvg via jhbuild is now in progress... I'll tell you... > > Thanks... librsvg works fine and solved the problem. > >> but, (maybe they are not a Gtkmm specific questions...sorry) >> how could I do to exec apps without calling "jhbuild shell" before... >> (some data in Makefiles, maybe, etc...) ? > > I think that in my situation an static compiling rather a dinamic > would be enough... (if could be done...) > > The extract of my Makefile.am (at the sources directory) is, > > ----- > AM_CXXFLAGS = -DDATADIR=\"$(appdatadir)\" > -DPROGRAMNAME_LOCALEDIR=\"{PROGRAMNAME_LOCALEDIR}\" > > INCLUDES = $(gtkmm_CFLAGS) -DLOCALEDIR=\""$(datadir)/locale"\" > LDADD = $(gtkmm_LIBS) -lxklavier -lssl -lcrypto > ----- > > Which changes should I do on it ? Before all... is it possible to compile my app statically ?? Could be really done ?? (seems no static libraries present...) Do you need anymore data ? The idea here is to find a way to avoid "jhbuild shell" every time before running my app... Glus From jonathon@quotidian.org Mon Aug 29 15:19:32 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0F31E750111 for ; Mon, 29 Aug 2011 15:19:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B-nhAbbZo-D8 for ; Mon, 29 Aug 2011 15:19:30 +0000 (UTC) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by menubar.gnome.org (Postfix) with ESMTP id A1A7A7500D3 for ; Mon, 29 Aug 2011 15:19:21 +0000 (UTC) Received: by ewy1 with SMTP id 1so5241277ewy.27 for ; Mon, 29 Aug 2011 08:19:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.29.73 with SMTP id p9mr301630ebc.85.1314631158870; Mon, 29 Aug 2011 08:19:18 -0700 (PDT) Received: by 10.213.108.143 with HTTP; Mon, 29 Aug 2011 08:19:18 -0700 (PDT) In-Reply-To: <1314540305.57178.YahooMailNeo@web77715.mail.sg1.yahoo.com> References: <1314369303.66414.YahooMailNeo@web77701.mail.sg1.yahoo.com> <1314375936.20779.70.camel@dunnart.localdomain> <1314540305.57178.YahooMailNeo@web77715.mail.sg1.yahoo.com> Date: Mon, 29 Aug 2011 10:19:18 -0500 Message-ID: Subject: Re: Does Glib::usleep work on GUI (Gtkmm) app? From: Jonathon Jongsma To: Mj Mendoza IV Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Gtkmm GNOME X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 15:19:32 -0000 On Sun, Aug 28, 2011 at 9:05 AM, Mj Mendoza IV wrote: > Hi Jonner, > So, microseconds.=A0I've always thought its _milli_seconds. >> If you can explain what you're trying to achieve, we might be >>=A0able to suggest a better approach. > > Here's what I'm currently doing: > http://konsolscript.org/web/2011/08/23/first-look-at-kage-studio/ well, that blog post doesn't really say much about what the application is supposed to be doing or why you are trying to sleep. But most likely you should simply be setting a timeout so that your callback function gets called every X seconds (see example here: http://developer.gnome.org/glibmm/unstable/classGlib_1_1SignalTimeout.html#= a75b555ed13d91e6903e927f9e0d7afd2 ) --=20 jonner From mjmendoza@konsolscript.org Tue Aug 30 04:10:28 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79B02750092 for ; Tue, 30 Aug 2011 04:10:28 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.077 X-Spam-Level: X-Spam-Status: No, score=0.077 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V35DYYYsJOVx for ; Tue, 30 Aug 2011 04:10:26 +0000 (UTC) Received: from nm2-vm1.bullet.mail.sg1.yahoo.com (nm2-vm1.bullet.mail.sg1.yahoo.com [115.178.12.241]) by menubar.gnome.org (Postfix) with SMTP id B1CBF750088 for ; Tue, 30 Aug 2011 04:10:16 +0000 (UTC) Received: from [115.178.12.220] by nm2.bullet.mail.sg1.yahoo.com with NNFMP; 30 Aug 2011 04:10:14 -0000 Received: from [115.178.12.231] by tm1.bullet.mail.sg1.yahoo.com with NNFMP; 30 Aug 2011 04:10:14 -0000 Received: from [127.0.0.1] by omp1005.mail.sg1.yahoo.com with NNFMP; 30 Aug 2011 04:10:14 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 751816.17081.bm@omp1005.mail.sg1.yahoo.com Received: (qmail 28604 invoked by uid 60001); 30 Aug 2011 04:10:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1314677414; bh=8lgA+LPGpehA/fAVPCRTFn5EnG9I5ccH1SIRrjK34bs=; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=x75xYc/MPgqsrrTsn95c9a60pn/lsGSEPgeklCVyZ9jO9nXnwBdCCFe+vvhPjiBviqIpWipc2Vzp08K/y/rag9DX7bXj+QMJ6CjjW6GWE8D6ZqfDNL2Cjgr+GOpkcwaTQ2LkJ51maDbuomLg+3/bdsOtQsry19ZHxW8sGryUROU= X-YMail-OSG: rBeQoiMVM1m9Tytdi8QOsBNipEdOQdMaJb9VRDSrHntFLz9 jAaMIlwM50Yr986UtO09_dcdq_7z2FX0KtLF1EOphmraU4pw_F7TgPmb8d8r 0ivbs.b9zB9JC8AA2NQwbQSr0pQPEZkQ1M7S9qWICyMw8Zn3HfW5Px16zUY_ KLlQBONra6J4BXv96czHAOD1CTu8_Uv_7K.BoQ_OFA37cL5R7hgAyB5XX2sb SAMIKHWDS3d595sxcaY3YgNjCV25Er.yXvfbEUNxxatQcTRn16gB7P7zR1RF L5mNixz48RDC4TLPQXJEsuX8WjphqmtFuC2trA6QiWUbpJcDjNa1dydKh.sY zYTZUu6wiCXQ3tRsvDwCkcwWgahZdy8gJYgf7Bk9x5.8wwErUq6d6XYO56cG FgrFtMl5lbu616ezLqytvh_Tv2cyMq8hRj1bHWC1L_Ip0.jz9R.zwAkJGFvH aGBoZl1EZx.EQWmFqucQ8SC6juujhGtXJjCThONfpvy_lo7.BibqTjCdq7IZ Gk8BUYZS.hYYZtitTDT4AQ357x0qOE6ILCMiiIQoF_R61XfBxZDwXeofjm_3 RNFk- Received: from [180.194.239.165] by web77714.mail.sg1.yahoo.com via HTTP; Tue, 30 Aug 2011 12:10:14 SGT X-RocketYMMF: mjmendoza@ymail.com X-Mailer: YahooMailWebService/0.8.113.315625 References: Message-ID: <1314677414.28068.YahooMailNeo@web77714.mail.sg1.yahoo.com> Date: Tue, 30 Aug 2011 12:10:14 +0800 (SGT) From: Mj Mendoza IV Subject: How to open a browser from Gtkmm app? To: Gtkmm GNOME MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-533372099-1770714980-1314677414=:28068" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mj Mendoza IV List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 04:10:28 -0000 ---533372099-1770714980-1314677414=:28068 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all,=0A=0AIs there a Gtkmm-way to launch a browser? Like if I have a "He= lp->Visit Website" menu, how do I open the user's default browser to browse= a site?=0A=0AI tried looking at Inkscape's implementation, they were using= Python script instead. Although I can use their script, I was wondering if= there's a proper Gtkmm-specific way of doing it.=0A=0A=0ARegards.=0A=0AMj = Mendoza IV,=0ADeveloper, KonsolScript=0Ahttp://www.konsolscript.org=0A=0ADe= veloper, Clash=0Ahttp://geesas.sourceforge.net/clash ---533372099-1770714980-1314677414=:28068 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all,

Is there a Gtkmm-way to launch a browser? Like if I have a "H= elp->Visit Website" menu, how do I open the user's default browser to br= owse a site?
I tried lookin= g at Inkscape's implementation, they were using Python script instead. Alth= ough I can use their script, I was wondering if there's a proper Gtkmm-spec= ific way of doing it.


Regards.

Mj Mendoza IV,
Developer, KonsolScript
http://www.kons= olscript.org

Developer, Clash
http://geesas.sourceforge.net/clash
<= /div>
---533372099-1770714980-1314677414=:28068-- From yann@leydier.info Tue Aug 30 14:35:13 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 06F9875023C for ; Tue, 30 Aug 2011 14:35:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.747 X-Spam-Level: X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tm1TOP0D-K4M for ; Tue, 30 Aug 2011 14:35:11 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by menubar.gnome.org (Postfix) with ESMTP id 9C5AC75021F for ; Tue, 30 Aug 2011 14:35:02 +0000 (UTC) Received: from [134.214.76.181] (rfv12.insa-lyon.fr [134.214.76.181]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Me7T8-1QZa5V406A-00PPGD; Tue, 30 Aug 2011 16:35:00 +0200 Message-ID: <4E5CF512.6080908@leydier.info> Date: Tue, 30 Aug 2011 16:34:58 +0200 From: Yann Leydier User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Re: How to open a browser from Gtkmm app? References: <1314677414.28068.YahooMailNeo@web77714.mail.sg1.yahoo.com> In-Reply-To: <1314677414.28068.YahooMailNeo@web77714.mail.sg1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:c7ztt2OMathSQMJPH58Gk/XWYXo97O5ahpoaZsTyGHn MN4dpYrSNgH7QnTzjlOk32DN5bZ5GJXxDeV+bLICuJYbfg8frx u3RBTjQ4hD4seEYZkT0a1OPgoyL01wztr1JI5VWdFbhpPMOzra 00wZ/FnHQEaS1F+qtCt67tIAfdAQ9ZBb6rd5QGFVX9CNJ8Pf2C XjqwObDt61cr8HfkWmHNDYD2t95F8hRxdiHa6kD7iuGmo6Eqlt BYiiGO3+Oe7knVw2xKtcrxW7ZZP0J+at1WwIjKI0ZpIlPygYeT Sg6ClBGT0h2KLTE8vEUvqX1jIHzPwsfBWLVE29bvew0nWPlByJ 9EoPW4jffo1duefQLbDY= X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 14:35:13 -0000 (Oops, I originally replied only to the sender.) ------- Hi, there is no Gtkmm binding, so one must use the Gtk+ function: GError *error = NULL; gtk_show_uri(gdk_screen_get_default(), some_uri, gtk_get_current_event_time(), &error); if (error) { // display error->message } I also found that the Windows build does not support the file:// scheme. yann On 30/08/11 06:10, Mj Mendoza IV wrote: > Hi all, > > Is there a Gtkmm-way to launch a browser? Like if I have a "Help->Visit > Website" menu, how do I open the user's default browser to browse a site? > > I tried looking at Inkscape's implementation, they were using Python > script instead. Although I can use their script, I was wondering if > there's a proper Gtkmm-specific way of doing it. > > > Regards. > > Mj Mendoza IV, > Developer, KonsolScript > http://www.konsolscript.org > > Developer, Clash > http://geesas.sourceforge.net/clash > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list From a.zgorzalek@gmail.com Tue Aug 30 15:28:10 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C72797503C1 for ; Tue, 30 Aug 2011 15:28:10 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.689 X-Spam-Level: X-Spam-Status: No, score=-2.689 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lAeOFx77P7ig for ; Tue, 30 Aug 2011 15:28:07 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id 66F4D750235 for ; Tue, 30 Aug 2011 15:27:58 +0000 (UTC) Received: by wwg7 with SMTP id 7so4630041wwg.27 for ; Tue, 30 Aug 2011 08:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=3Kix08BrDeLbHgQg76gvW4MCqxE+tn7kwGEkIB6aaQ8=; b=YFUBHJ+J/RcPypeapvlvF1D5ExNTKt2zO1Cz/ZOHieh7FkjQo+1c+qgIOOI6OAtGFW 6A/8Opzxo6nP5fm3CEsZRZEUhtA+Ro1U4+TPObWWDwlPnQZp+80CUrel80PEIffPEjNg C6jpmXb4oKvtdtWNLJwEADYyoDVy5T3mMCE+E= MIME-Version: 1.0 Received: by 10.227.162.201 with SMTP id w9mr4969707wbx.28.1314718077139; Tue, 30 Aug 2011 08:27:57 -0700 (PDT) Received: by 10.227.137.83 with HTTP; Tue, 30 Aug 2011 08:27:56 -0700 (PDT) Date: Tue, 30 Aug 2011 17:27:56 +0200 Message-ID: Subject: Making custom class objects viewable via TreeView From: Adrian Zgorzalek To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=20cf3002570cf7b97e04abbaa793 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 15:28:11 -0000 --20cf3002570cf7b97e04abbaa793 Content-Type: text/plain; charset=UTF-8 Hello, I got a bunch of questions connected with TreeView, making data viewable via TreeView and some design issues. Firstly, I'll state a problem. I would like to have a collection of Foo objects. They have their methods, store some data. I want the collection to supply me, besides collection interface, some methods to call on stored data. I also want to expose objects stored in the collection to user, allow they to modify them, add, delete and reorder. Obvious idea is to use TreeView, but I met some serious problems. First, how to make Foo objects viewable? Deriving from Gtk::TreeModelColumnRecord leads me to nowhere, since then I have no access to data stored inside Foo, Gtk::TreeModelColumn seems to be just a meta-data for a model to create View and Store. More clearly, I want to e.g. have object representing triple on plain (int, int, int), and got some methods like symmetry along a given line etc. Implemeting it inside TreeModelColumnRecord is impossible - no access to stored data. Making a class Foo that got 3 private ints leads me to no idea how to make this object viewable through view. Ideally, I look for something like as follows: I have a Store that has Foo objects. Then to a View I add columns like (x), (y), (z), corresponding to example above, and specify accessors methods inside Foo object, so that View can correctly save and show data to/from a Foo. One more problem connected with deriving from Gtk::TreeModelColumnRecord is that in my opinion it brakes OOP rule: its not Foo business to take care of being viewable, it exposes methods to modify itself and get stored data, but how it is done is just a matter of somebody writing class responsible for showing data to a user. Also storing everything in one place: data and display issues, is making code messy. I suppose that deriving my collection from ListStore or TreeStore will solve a problem of adding some methods to call on stored data. So far, after investigating materials I've found and after some talks on IRC channel the only idea I have is to keep data in two places and try to sync them, but it seems to be a pain in the neck, it also makes my memory usage twice as more... so its not a solution at all. I would appreciate any help with this problem, I am not looking for easy solutions, rather elegant. If elegant solution does not exist, then please point me the least awful way to do what I want. Looking forward to hearing from you, Regards, Adrian --20cf3002570cf7b97e04abbaa793 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,

I got a bunch of questions connected with TreeView, making da= ta viewable
via TreeView and some design issues.

Firstly, I'l= l state a problem. I would like to have a collection of Foo objects.
They have their methods, store some data. I want the collection to supplyme, besides collection interface, some methods to call on stored data.I also want to expose objects stored in the collection to user, allow they=
to modify them, add, delete and reorder.

Obvious idea is to use Tree= View, but I met some serious problems.

First, how to make Foo object= s viewable? Deriving from Gtk::TreeModelColumnRecord
leads me to nowhere= , since then I have no access to data stored inside Foo,
Gtk::TreeModelColumn<T> seems to be just a meta-data for a model to c= reate View and
Store. More clearly, I want to e.g. have object represent= ing triple on plain (int, int, int),
and got some methods like symmetry = along a given line etc. Implemeting it inside
TreeModelColumnRecord is impossible - no access to stored data. Making a cl= ass Foo
that got 3 private ints leads me to no idea how to make this obj= ect viewable through
view.

Ideally, I look for something like as = follows:
I have a Store that has Foo objects. Then to a View I add columns like (x),= (y), (z),
corresponding to example above, and specify accessors methods= inside Foo object, so that
View can correctly save and show data to/fro= m a Foo.

One more problem connected with deriving from Gtk::TreeModelColumnRecor= d is that in my
opinion it brakes OOP rule: its not Foo business to take= care of being viewable,
it exposes methods to modify itself and get sto= red data, but how it is done is just a matter of somebody
writing class responsible for showing data to a user. Also storing everythi= ng in one place:
data and display issues, is making code messy.

I= suppose that deriving my collection from ListStore or TreeStore will solve= a problem
of adding some methods to call on stored data.

So far, after investi= gating materials I've found and after some talks on IRC channel
the = only idea I have is to keep data in two places and try to sync them, but it= seems
to be a pain in the neck, it also makes my memory usage twice as more... so= its not
a solution at all.

I would appreciate any help with this= problem, I am not looking for easy solutions,
rather elegant.
If ele= gant solution does not exist, then please point me the least awful way
to do what I want.

Looking forward to hearing from you,

Regar= ds,
Adrian

--20cf3002570cf7b97e04abbaa793-- From smso@graduate.hku.hk Tue Aug 30 17:00:56 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A9B0C7502CF for ; Tue, 30 Aug 2011 17:00:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.328 X-Spam-Level: X-Spam-Status: No, score=-0.328 tagged_above=-999 required=2 tests=[BAYES_50=0.8, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.504, SPF_PASS=-0.001, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kfCepAwIYpEj for ; Tue, 30 Aug 2011 17:00:52 +0000 (UTC) Received: from mail5.hku.hk (mail5.hku.hk [147.8.2.125]) by menubar.gnome.org (Postfix) with ESMTP id C43C8750293 for ; Tue, 30 Aug 2011 17:00:43 +0000 (UTC) Received: from localhost (webmail02.hku.hk [147.8.2.176]) by mail5.hku.hk (8.13.8/8.13.8) with ESMTP id p7UH0Y0n003520; Wed, 31 Aug 2011 01:00:34 +0800 Received: from n219077117233.netvigator.com (n219077117233.netvigator.com [219.77.117.233]) by imp3.webmail.hku.hk (IMP) with HTTP for ; Wed, 31 Aug 2011 01:00:34 +0800 Message-ID: <1314723634.4e5d173280d72@imp3.webmail.hku.hk> Date: Wed, 31 Aug 2011 01:00:34 +0800 From: smso@graduate.hku.hk To: mjmendoza@konsolscript.org Subject: Re: How to open a browser from Gtkmm app? MIME-Version: 1.0 Content-Type: text/plain; charset=BIG5 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 219.77.117.233 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (mail5.hku.hk [147.8.2.125]); Wed, 31 Aug 2011 01:00:35 +0800 (HKT) X-MailScanner-Information: Services provided by HKU Computer Centre X-MailScanner-ID: p7UH0Y0n003520 X-MailScanner: 0 X-MailScanner-From: smso@graduate.hku.hk Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 17:00:56 -0000 You may use one of the c++ binding for dbus: http://www.freedesktop.org/wiki/Software/DBusBindings Best regards smso From darkiiiiii@gmail.com Wed Aug 31 15:41:50 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01BEC7500F9 for ; Wed, 31 Aug 2011 15:41:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IXXTLF4EVKKO for ; Wed, 31 Aug 2011 15:41:47 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id DA5F9750021 for ; Wed, 31 Aug 2011 15:41:38 +0000 (UTC) Received: by gwb15 with SMTP id 15so249350gwb.27 for ; Wed, 31 Aug 2011 08:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rEjnQrsInpodkFBJmeT6PhrJTOkiuRjCcjgpVSDTdu4=; b=gBCjJ6/rBUxtpBCVkX7IJy1dxTUVjNpbeHkQS1vviETP6OhIt3bJwW/eJWYFH88I/2 quxmfKydAzQkapX0h30jjXj2Y8S4xTSxytLXH7+uxHJF8AhLtzYNxgINWBJDfXRCWphr mRrM6PtMI0VcisgbVawgRU//NjhZX8ufdGwF4= MIME-Version: 1.0 Received: by 10.101.131.5 with SMTP id i5mr461112ann.21.1314805297135; Wed, 31 Aug 2011 08:41:37 -0700 (PDT) Received: by 10.100.151.8 with HTTP; Wed, 31 Aug 2011 08:41:37 -0700 (PDT) In-Reply-To: References: Date: Wed, 31 Aug 2011 16:41:37 +0100 Message-ID: Subject: Re: Making custom class objects viewable via TreeView From: lecas malecas To: Adrian Zgorzalek Content-Type: text/plain; charset=ISO-8859-1 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 15:41:50 -0000 I'm not sure if I understand what you're saying, but have you considered using custom signals? You could emit a signal in the Foo class which would send the data you want (but there could be a better way). On Tue, Aug 30, 2011 at 4:27 PM, Adrian Zgorzalek wrote: > Hello, > > I got a bunch of questions connected with TreeView, making data viewable > via TreeView and some design issues. > > Firstly, I'll state a problem. I would like to have a collection of Foo > objects. > They have their methods, store some data. I want the collection to supply > me, besides collection interface, some methods to call on stored data. > I also want to expose objects stored in the collection to user, allow they > to modify them, add, delete and reorder. > > Obvious idea is to use TreeView, but I met some serious problems. > > First, how to make Foo objects viewable? Deriving from > Gtk::TreeModelColumnRecord > leads me to nowhere, since then I have no access to data stored inside Foo, > Gtk::TreeModelColumn seems to be just a meta-data for a model to create > View and > Store. More clearly, I want to e.g. have object representing triple on plain > (int, int, int), > and got some methods like symmetry along a given line etc. Implemeting it > inside > TreeModelColumnRecord is impossible - no access to stored data. Making a > class Foo > that got 3 private ints leads me to no idea how to make this object viewable > through > view. > > Ideally, I look for something like as follows: > I have a Store that has Foo objects. Then to a View I add columns like (x), > (y), (z), > corresponding to example above, and specify accessors methods inside Foo > object, so that > View can correctly save and show data to/from a Foo. > > One more problem connected with deriving from Gtk::TreeModelColumnRecord is > that in my > opinion it brakes OOP rule: its not Foo business to take care of being > viewable, > it exposes methods to modify itself and get stored data, but how it is done > is just a matter of somebody > writing class responsible for showing data to a user. Also storing > everything in one place: > data and display issues, is making code messy. > > I suppose that deriving my collection from ListStore or TreeStore will solve > a problem > of adding some methods to call on stored data. > > So far, after investigating materials I've found and after some talks on IRC > channel > the only idea I have is to keep data in two places and try to sync them, but > it seems > to be a pain in the neck, it also makes my memory usage twice as more... so > its not > a solution at all. > > I would appreciate any help with this problem, I am not looking for easy > solutions, > rather elegant. > If elegant solution does not exist, then please point me the least awful way > to do what I want. > > Looking forward to hearing from you, > > Regards, > Adrian > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > From a.zgorzalek@gmail.com Wed Aug 31 15:49:45 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76E28750117 for ; Wed, 31 Aug 2011 15:49:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQdlmzc8430t for ; Wed, 31 Aug 2011 15:49:42 +0000 (UTC) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by menubar.gnome.org (Postfix) with ESMTP id 47681750021 for ; Wed, 31 Aug 2011 15:49:42 +0000 (UTC) Received: by yib19 with SMTP id 19so960303yib.27 for ; Wed, 31 Aug 2011 08:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IOkiGHPtAhstTAogMp230V3iC7dvXEald20SdWPfurU=; b=m+lT4Td3aRm7htFtReKDTaOaTjm8+M4tZUdDPP2VeGWk1r0qigadQ+0MkIl/CPE14I 9WUMAmRP58+lYfCA4ESci5F6QRl5WZrKhTzVQAMx3K+v29Q7y2dOgnaTXsGl6TGRM03k MWCYoOi/L2lytPscrefdowuz8ERMWwHTTp+iM= MIME-Version: 1.0 Received: by 10.42.154.3 with SMTP id o3mr468046icw.221.1314805779535; Wed, 31 Aug 2011 08:49:39 -0700 (PDT) Received: by 10.42.229.201 with HTTP; Wed, 31 Aug 2011 08:49:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 31 Aug 2011 17:49:39 +0200 Message-ID: Subject: Re: Making custom class objects viewable via TreeView From: Adrian Zgorzalek To: lecas malecas , gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=90e6ba6e83f070169604abcf1357 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 15:49:45 -0000 --90e6ba6e83f070169604abcf1357 Content-Type: text/plain; charset=UTF-8 But what have custom signals to do with making an object viewable via TreeView? I have to specify TreeModelColumnRecord, should I put there a column which stores Foo? Then how to make certain fields visible in a View? How those signals can help with exposing data? 2011/8/31 lecas malecas > I'm not sure if I understand what you're saying, but have you > considered using custom signals? > You could emit a signal in the Foo class which would send the data you > want (but there could be a better way). > > On Tue, Aug 30, 2011 at 4:27 PM, Adrian Zgorzalek > wrote: > > Hello, > > > > I got a bunch of questions connected with TreeView, making data viewable > > via TreeView and some design issues. > > > > Firstly, I'll state a problem. I would like to have a collection of Foo > > objects. > > They have their methods, store some data. I want the collection to supply > > me, besides collection interface, some methods to call on stored data. > > I also want to expose objects stored in the collection to user, allow > they > > to modify them, add, delete and reorder. > > > > Obvious idea is to use TreeView, but I met some serious problems. > > > > First, how to make Foo objects viewable? Deriving from > > Gtk::TreeModelColumnRecord > > leads me to nowhere, since then I have no access to data stored inside > Foo, > > Gtk::TreeModelColumn seems to be just a meta-data for a model to > create > > View and > > Store. More clearly, I want to e.g. have object representing triple on > plain > > (int, int, int), > > and got some methods like symmetry along a given line etc. Implemeting it > > inside > > TreeModelColumnRecord is impossible - no access to stored data. Making a > > class Foo > > that got 3 private ints leads me to no idea how to make this object > viewable > > through > > view. > > > > Ideally, I look for something like as follows: > > I have a Store that has Foo objects. Then to a View I add columns like > (x), > > (y), (z), > > corresponding to example above, and specify accessors methods inside Foo > > object, so that > > View can correctly save and show data to/from a Foo. > > > > One more problem connected with deriving from Gtk::TreeModelColumnRecord > is > > that in my > > opinion it brakes OOP rule: its not Foo business to take care of being > > viewable, > > it exposes methods to modify itself and get stored data, but how it is > done > > is just a matter of somebody > > writing class responsible for showing data to a user. Also storing > > everything in one place: > > data and display issues, is making code messy. > > > > I suppose that deriving my collection from ListStore or TreeStore will > solve > > a problem > > of adding some methods to call on stored data. > > > > So far, after investigating materials I've found and after some talks on > IRC > > channel > > the only idea I have is to keep data in two places and try to sync them, > but > > it seems > > to be a pain in the neck, it also makes my memory usage twice as more... > so > > its not > > a solution at all. > > > > I would appreciate any help with this problem, I am not looking for easy > > solutions, > > rather elegant. > > If elegant solution does not exist, then please point me the least awful > way > > to do what I want. > > > > Looking forward to hearing from you, > > > > Regards, > > Adrian > > > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > > --90e6ba6e83f070169604abcf1357 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
But what have custom signals to do with making an object viewable via = TreeView?
I have to specify TreeModelColumnRecord, should I p= ut there a column which stores Foo?
Then how to make certain fiel= ds visible in a View? How those signals can help with exposing data?

2011/8/31 lecas malecas &l= t;darkiiiiii@gmail.com>
I'm not sure if I understand what you're saying, but have you
considered using custom signals?
You could emit a signal in the Foo class which would send the data you
want (but there could be a better way).

On Tue, Aug 30, 2011 at 4:27 PM, Adrian Zgorzalek <a.zgorzalek@gmail.com> wrote:
> Hello,
>
> I got a bunch of questions connected with TreeView, making data viewab= le
> via TreeView and some design issues.
>
> Firstly, I'll state a problem. I would like to have a collection o= f Foo
> objects.
> They have their methods, store some data. I want the collection to sup= ply
> me, besides collection interface, some methods to call on stored data.=
> I also want to expose objects stored in the collection to user, allow = they
> to modify them, add, delete and reorder.
>
> Obvious idea is to use TreeView, but I met some serious problems.
>
> First, how to make Foo objects viewable? Deriving from
> Gtk::TreeModelColumnRecord
> leads me to nowhere, since then I have no access to data stored inside= Foo,
> Gtk::TreeModelColumn<T> seems to be just a meta-data for a model= to create
> View and
> Store. More clearly, I want to e.g. have object representing triple on= plain
> (int, int, int),
> and got some methods like symmetry along a given line etc. Implemeting= it
> inside
> TreeModelColumnRecord is impossible - no access to stored data. Making= a
> class Foo
> that got 3 private ints leads me to no idea how to make this object vi= ewable
> through
> view.
>
> Ideally, I look for something like as follows:
> I have a Store that has Foo objects. Then to a View I add columns like= (x),
> (y), (z),
> corresponding to example above, and specify accessors methods inside F= oo
> object, so that
> View can correctly save and show data to/from a Foo.
>
> One more problem connected with deriving from Gtk::TreeModelColumnReco= rd is
> that in my
> opinion it brakes OOP rule: its not Foo business to take care of being=
> viewable,
> it exposes methods to modify itself and get stored data, but how it is= done
> is just a matter of somebody
> writing class responsible for showing data to a user. Also storing
> everything in one place:
> data and display issues, is making code messy.
>
> I suppose that deriving my collection from ListStore or TreeStore will= solve
> a problem
> of adding some methods to call on stored data.
>
> So far, after investigating materials I've found and after some ta= lks on IRC
> channel
> the only idea I have is to keep data in two places and try to sync the= m, but
> it seems
> to be a pain in the neck, it also makes my memory usage twice as more.= .. so
> its not
> a solution at all.
>
> I would appreciate any help with this problem, I am not looking for ea= sy
> solutions,
> rather elegant.
> If elegant solution does not exist, then please point me the least awf= ul way
> to do what I want.
>
> Looking forward to hearing from you,
>
> Regards,
> Adrian
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>

--90e6ba6e83f070169604abcf1357-- From jaalburquerque@gmail.com Wed Aug 31 17:13:49 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 08AAD750191 for ; Wed, 31 Aug 2011 17:13:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W3umQncRb95k for ; Wed, 31 Aug 2011 17:13:44 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 789B2750006 for ; Wed, 31 Aug 2011 17:13:36 +0000 (UTC) Received: by ywo32 with SMTP id 32so1056931ywo.27 for ; Wed, 31 Aug 2011 10:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=kUzfk7tNORgrcs1pSYrU2hyB1EX0EtVnJ02DGiL5I54=; b=h597uqCwhe9coiuT+hMNwF0bgUk0kRk6FFNKtYfonRrjs4EZgNsAJ+vCNb3s/0XnPP dN4JHCO4JXY2OUxwEV39D1FIdNhUMeO5aNoqBR4fRXvgRvHPyF3JQ3A6krLmBlMJCdv5 Mnv1wOIKP5cOeX3q/gEFaCHNPcxh9JP5jLiZY= Received: by 10.150.237.9 with SMTP id k9mr518330ybh.164.1314810814649; Wed, 31 Aug 2011 10:13:34 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-205-235.ga.at.cox.net [24.250.205.235]) by mx.google.com with ESMTPS id x5sm212647ybn.13.2011.08.31.10.13.32 (version=SSLv3 cipher=OTHER); Wed, 31 Aug 2011 10:13:33 -0700 (PDT) Subject: Re: Making custom class objects viewable via TreeView From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: Adrian Zgorzalek Date: Wed, 31 Aug 2011 13:13:23 -0400 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.5- Content-Transfer-Encoding: 8bit Message-ID: <1314810812.8446.18.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 17:13:49 -0000 On Wed, 2011-08-31 at 17:49 +0200, Adrian Zgorzalek wrote: > But what have custom signals to do with making an object viewable via > TreeView? > > I have to specify TreeModelColumnRecord, should I put there a column > which stores Foo? > Then how to make certain fields visible in a View? You can create your own Gtk::TreeViewColumn for the object which would be appended to the TreeView, add a Gtk::CellRendererText to the column and set the renderer on the column for the object using Gtk::TreeViewColumn::set_renderer(). Also set a custom rendering callback on the column for the object using Gtk::TreeViewColumn::set_cell_data_func(). The slot can set the Gtk::CellRendererText::property_text() property so that the appropriate text is displayed. Hope that helps. > How those signals can help with exposing data? > > 2011/8/31 lecas malecas > I'm not sure if I understand what you're saying, but have you > considered using custom signals? > You could emit a signal in the Foo class which would send the > data you > want (but there could be a better way). > > On Tue, Aug 30, 2011 at 4:27 PM, Adrian Zgorzalek > wrote: > > Hello, > > > > I got a bunch of questions connected with TreeView, making > data viewable > > via TreeView and some design issues. > > > > Firstly, I'll state a problem. I would like to have a > collection of Foo > > objects. > > They have their methods, store some data. I want the > collection to supply > > me, besides collection interface, some methods to call on > stored data. > > I also want to expose objects stored in the collection to > user, allow they > > to modify them, add, delete and reorder. > > > > Obvious idea is to use TreeView, but I met some serious > problems. > > > > First, how to make Foo objects viewable? Deriving from > > Gtk::TreeModelColumnRecord > > leads me to nowhere, since then I have no access to data > stored inside Foo, > > Gtk::TreeModelColumn seems to be just a meta-data for a > model to create > > View and > > Store. More clearly, I want to e.g. have object representing > triple on plain > > (int, int, int), > > and got some methods like symmetry along a given line etc. > Implemeting it > > inside > > TreeModelColumnRecord is impossible - no access to stored > data. Making a > > class Foo > > that got 3 private ints leads me to no idea how to make this > object viewable > > through > > view. > > > > Ideally, I look for something like as follows: > > I have a Store that has Foo objects. Then to a View I add > columns like (x), > > (y), (z), > > corresponding to example above, and specify accessors > methods inside Foo > > object, so that > > View can correctly save and show data to/from a Foo. > > > > One more problem connected with deriving from > Gtk::TreeModelColumnRecord is > > that in my > > opinion it brakes OOP rule: its not Foo business to take > care of being > > viewable, > > it exposes methods to modify itself and get stored data, but > how it is done > > is just a matter of somebody > > writing class responsible for showing data to a user. Also > storing > > everything in one place: > > data and display issues, is making code messy. > > > > I suppose that deriving my collection from ListStore or > TreeStore will solve > > a problem > > of adding some methods to call on stored data. > > > > So far, after investigating materials I've found and after > some talks on IRC > > channel > > the only idea I have is to keep data in two places and try > to sync them, but > > it seems > > to be a pain in the neck, it also makes my memory usage > twice as more... so > > its not > > a solution at all. > > > > I would appreciate any help with this problem, I am not > looking for easy > > solutions, > > rather elegant. > > If elegant solution does not exist, then please point me the > least awful way > > to do what I want. > > > > Looking forward to hearing from you, > > > > Regards, > > Adrian > > > > > > > _______________________________________________ > > gtkmm-list mailing list > > gtkmm-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtkmm-list > > > > > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list -- José From jaalburquerque@gmail.com Wed Aug 31 17:14:49 2011 Return-Path: X-Original-To: gtkmm-list@gnome.org Delivered-To: gtkmm-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C73E7502A1 for ; Wed, 31 Aug 2011 17:14:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.469 X-Spam-Level: X-Spam-Status: No, score=-2.469 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id duET5UncCzAG for ; Wed, 31 Aug 2011 17:14:26 +0000 (UTC) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 190E0750140 for ; Wed, 31 Aug 2011 17:13:57 +0000 (UTC) Received: by gwb15 with SMTP id 15so365669gwb.27 for ; Wed, 31 Aug 2011 10:13:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=y2ghyHZaW5sZQo4ooTn0qydM/+oTLdRM7rx/k/92oWY=; b=JCY4DcggAU0i53AmVzws1x7BxaQiy4Gn4ZOI32KxyNMTbC8nPSMYPV4kdpn+PRpFMB JgMcck7Z0KU4o3fYLTpawY4jO9oPiB7osWeQTi7kn+o2+6HNNbqUGKWqAqoiQ4+QkFvW Yz3Axd8ZFS8FYiewgzp6RfzcfTGGCM+iwbns8= Received: by 10.236.152.100 with SMTP id c64mr3453112yhk.124.1314810836333; Wed, 31 Aug 2011 10:13:56 -0700 (PDT) Received: from [192.168.1.100] (ip24-250-205-235.ga.at.cox.net [24.250.205.235]) by mx.google.com with ESMTPS id x42sm1316776yhm.79.2011.08.31.10.13.55 (version=SSLv3 cipher=OTHER); Wed, 31 Aug 2011 10:13:55 -0700 (PDT) Subject: Re: Compiling libgda-4.1.10 with msys From: =?ISO-8859-1?Q?Jos=E9?= Alburquerque To: sylvain mouquet Date: Wed, 31 Aug 2011 13:13:54 -0400 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.1.5- Content-Transfer-Encoding: 8bit Message-ID: <1314810835.8446.19.camel@jose-desktop> Mime-Version: 1.0 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2011 17:14:49 -0000 On Sat, 2011-08-27 at 03:03 +0200, sylvain mouquet wrote: > Hi, > > > I have developing a gtkmm application in linux environment and now i > wish to try it under windows. > The application use libgdamm-4.0 dependency. This library depends on > libgda-4.0 > I have tried to compile libgda-4.1.10 but i get this error : Windows binaries for libgda are already available: http://ftp.acc.umu.se/pub/GNOME/binaries/win32/libgda/ > > > Creating library file: .libs/libgda-4.0.dll.a > Cannot export gda_transaction_status_dump: symbol not defined > collect2: ld returned 1 exit status > make[2]: *** [libgda-4.0.la] Error 1 > make[2]: Leaving directory `/c/gtk/libgda-4.1.10/libgda-4.1.10/libgda' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/c/gtk/libgda-4.1.10/libgda-4.1.10/libgda' > make: *** [all-recursive] Error 1 > > > Anyone can help me ? > > > -- > Cordialement, > Sylvain > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list -- José