From kjell.ahlstedt@bredband.net Wed Nov 5 08:11:59 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 8BC8B76990 for ; Wed, 5 Nov 2014 08:11:59 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id axaDLPWXCYWl for ; Wed, 5 Nov 2014 08:11:57 +0000 (UTC) Received: from smtprelay-b22.telenor.se (smtprelay-b22.telenor.se [195.54.99.213]) by restaurant.gnome.org (Postfix) with ESMTP id 207937684D for ; Wed, 5 Nov 2014 08:11:46 +0000 (UTC) Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 6D3AF15E2C for ; Wed, 5 Nov 2014 09:11:24 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsBACXbWVRV5ZwjPGdsb2JhbAANToNizy0PiHkBAQEBAQEFAQEBATiENIEIHwEdFhgDAgECATEnCAEBiEIIsUeWGgwcBJEthDUFky6DRKFnawGCSgEBAQ X-IPAS-Result: ArsBACXbWVRV5ZwjPGdsb2JhbAANToNizy0PiHkBAQEBAQEFAQEBATiENIEIHwEdFhgDAgECATEnCAEBiEIIsUeWGgwcBJEthDUFky6DRKFnawGCSgEBAQ X-IronPort-AV: E=Sophos;i="5.07,318,1413237600"; d="scan'208,217";a="677198550" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb4.telenor.se with ESMTP; 05 Nov 2014 09:11:24 +0100 Message-ID: <5459DBAB.6060208@bredband.net> Date: Wed, 05 Nov 2014 09:11:23 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Request for comments on new glibmm classes Content-Type: multipart/alternative; boundary="------------000400040205070905050806" X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2014 08:11:59 -0000 This is a multi-part message in MIME format. --------------000400040205070905050806 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Two glibmm bugs contain suggestions for new classes in glibmm. I would appreciate comments on the attached patches before they are pushed to the git repository. https://bugzilla.gnome.org/show_bug.cgi?id=738663 contains class Glib::Binding, wrapping glib class GBinding. https://bugzilla.gnome.org/show_bug.cgi?id=739206 contains class Gio::Resource, wrapping glib class GResource. --------------000400040205070905050806 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit Two glibmm bugs contain suggestions for new classes in glibmm. I would appreciate comments on the attached patches before they are pushed to the git repository.

https://bugzilla.gnome.org/show_bug.cgi?id=738663 contains class Glib::Binding, wrapping glib class GBinding.
https://bugzilla.gnome.org/show_bug.cgi?id=739206 contains class Gio::Resource, wrapping glib class GResource.

--------------000400040205070905050806-- From jonatan.palsson@pelagicore.com Thu Nov 6 08:36:13 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 6974076A61 for ; Thu, 6 Nov 2014 08:36:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pKwYB67k8eGb for ; Thu, 6 Nov 2014 08:36:11 +0000 (UTC) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by restaurant.gnome.org (Postfix) with ESMTP id 7CE90769CB for ; Thu, 6 Nov 2014 08:36:00 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id y10so600260wgg.2 for ; Thu, 06 Nov 2014 00:35:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=vUpumzk3vxKDCSkURqSu+pHPVOnTTYrCNYUJtWWCiJs=; b=VxMD8sYCYfvLeE1TUOKvoeJr95CG/TXbW+Q+hEnmu9MX6NhN6aIzpzAlR8ssIiD2rJ bF83KdZsdYHcsApipuimNEqeDXRpbSiXNtfCds+L6TRyvntmnQHMk1MipVbm3YgToq3T D6gzWBrrVPCPLbMa/BuO1LMlthZK2r8mfUaiAqZ+oR/wEh0/Rs6gMET2meEYAhEGPLlq 4zAidB1sYqnTeKe/XxaLplF1qXZ0E5b0QD/tS5qZ3ocDBbX/UarlQik6Pe0mgbjg6Uc/ zuN/lcDjIDuH0orbnPk1w7m56BAFKRUUhEBMIF4lVCw5+ZBahJ1O/MVkluMTvcZVXRBp xnpA== X-Gm-Message-State: ALoCoQlQQb0ZKxDu3ifekFqAKi1Y4O3Qups5qIYzfKiTjjvcG+l28QMoPVSl9dsbUN7w3OYzgOUP MIME-Version: 1.0 X-Received: by 10.194.186.207 with SMTP id fm15mr3413821wjc.1.1415262958700; Thu, 06 Nov 2014 00:35:58 -0800 (PST) Received: by 10.180.221.234 with HTTP; Thu, 6 Nov 2014 00:35:58 -0800 (PST) Date: Thu, 6 Nov 2014 09:35:58 +0100 Message-ID: Subject: gdbus-codegen --generate-c-code equivalent for glibmm? From: =?UTF-8?Q?Jonatan_P=C3=A5lsson?= To: gtkmm-list@gnome.org Content-Type: multipart/alternative; boundary=047d7beb9102ebb78b05072c9507 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2014 08:36:13 -0000 --047d7beb9102ebb78b05072c9507 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi list, I'd like to generate D-Bus proxies and stubs for use with glibmm. gdbus-codegen seems to do most of what I want, but it generates C code, and not C++. Is there any similar way to generate glibmm D-bus proxies and stubs? If not, what is the general workflow when creating new D-Bus services based on glibmm, and what is the workflow for interfacing with D-Bus services? Thanks, --=20 Jonatan P=C3=A5lsson --047d7beb9102ebb78b05072c9507 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi list,

I'd like to generate D-Bus= proxies and stubs for use with glibmm. gdbus-codegen seems to do most of w= hat I want, but it generates C code, and not C++. Is there any similar way = to generate glibmm D-bus proxies and stubs?

If not= , what is the general workflow when creating new D-Bus services based on gl= ibmm, and what is the workflow for interfacing with D-Bus services?

Thanks,

--
Jonatan P=C3=A5lsson
--047d7beb9102ebb78b05072c9507-- From fr33domlover@riseup.net Tue Nov 11 17:40:11 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 75C20769CD for ; Tue, 11 Nov 2014 17:40:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.939 X-Spam-Level: X-Spam-Status: No, score=-1.939 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MISSING_MID=0.497, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.535, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id smEO2fNKwOO8 for ; Tue, 11 Nov 2014 17:40:10 +0000 (UTC) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by restaurant.gnome.org (Postfix) with ESMTP id A19B2769CB for ; Tue, 11 Nov 2014 17:40:00 +0000 (UTC) Received: from plantcutter.riseup.net (plantcutter-pn.riseup.net [10.0.1.121]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id C094B40B83 for ; Tue, 11 Nov 2014 17:39:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: fr33domlover) with ESMTPSA id 2DF22227DF Date: Tue, 11 Nov 2014 19:39:49 +0200 From: fr33domlover To: gtkmm-list@gnome.org Subject: make distcheck Organization: Earth MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/ek_1+mRtgK/Dqy5_i2j_gQr"; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.98.4 at mx1 X-Virus-Status: Clean Message-Id: <20141111174011.75C20769CD@restaurant.gnome.org> X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 17:40:11 -0000 --Sig_/ek_1+mRtgK/Dqy5_i2j_gQr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, I've been working on a C++ project and recently I started adding doxygen support based on mm-common. It's a bit different so I didn't just paste the code as-is: - It uses only POSIX features (e.g. no GNU make functions like patsubst and= no wildcards) so it doesn't need the -Wno-portability flag (I use the 'find' instead, some Automake features and a bit of trivial targets copied from generated Makefile)=20 - It builds 2 separate sets of docs (1 for API, 1 is full code reference for hackers) - Installation uses regular rules and not a Perl script - although I haven't yet implemented using tag files so maybe those will require Perl (I don't know yet why Perl is needed there, haven't checked) Today I finished writing the first version of this setup and it failed at `= make distcheck` because the HTML files are in MAINTAINERCLEANFILES and not DISTCLEANFILES. That makes sense - delete the docs only on `make maintainer-clean`. But how to make `make distcheck` not complain due = to these files not deleted on `make distclean`? I read about how to do it, but I didn't see that mm-common does anything li= ke that. So I had an idea - maybe glibmm, gtkmm, etc. simply don't pass `make distcheck`. I decided to check. I failed to build them, and I couldn't find info about it, so I decided to = ask here - how do these modules pass `make distcheck`? It expects disted files = to be distributed at distclean time, but it doesn't happen. What I did was to install mm-common from git, and then try building glibmm = and gtkmm. They gave errors about ENABLE_DOCUMENTATION not defined with a AM_CONDITIONAL. Was there another step, e.g. manually copying mm-common fil= es into glibmm tree, which I missed? Thanks in advance! fr33domlover PGP key ID: 63E5E57D --Sig_/ek_1+mRtgK/Dqy5_i2j_gQr Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJUYknlAAoJEFJSxchj5eV9O/oP/36Zc9kYrgsEdL5w/aIrzPQH erhFsdlvs61ZCIggjVHJ4rHnIC5IHb5qSDxVkBRn7NmJI0zyLemSiok5Rcxg+ll3 Z+cbgl4+bChiteQhWLk4LZEHYYqPUqSnxiN4Gb742BugpNRPPbJnktBV62xUOAyN qcOzD2vePgwB0T4gWQKolJYIMuDzHGsjHQDN2XhSmwiHuOA87gGEp2E17hOS7/kF pgQCagWFJYOSPwe80L8+vgNEYqbw4pVlI3/0fCnwRk7gxOWfONcqyvVOVFlBiM4a dGUmDQjJYLQE2c8+9rn248qU725D2jZlh0rerxWIXdeMHsU2NVnhHadxkckzI87+ 4wDJi7O1J7aph4Yc6NtsfZiT4P2xRH5aGCuQVSfyD6wRYMkEBp1M7rx7lPWGsUtm MXLA/ndgTtBnEaq3MKh10yK2/Qniv0004FPOxrxRtTsTxW2PGnmLFXENlz7AHMFr maJNLEbj2nlcZNHRr2XBzl4/OHTAgvosWvknGxjf9CGmNoEEI/BRGeigKEPD4D00 8F3wKpqKKGG6LKXEmQK5azYDBKxIEt4jGyhg7/Zba/k5KmaKXcjOwqcAhhExI7nc xEmZFTLwUj6YOW2bUQFX3KhWWstWDHwNp57LD7oqCVbYI3+9ewc693z/6bDp8Ji2 GPxVAEf0pnms0j5rZE+o =vahW -----END PGP SIGNATURE----- --Sig_/ek_1+mRtgK/Dqy5_i2j_gQr-- From kjell.ahlstedt@bredband.net Wed Nov 12 15:31:07 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 7501676984 for ; Wed, 12 Nov 2014 15:31:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.9 X-Spam-Level: X-Spam-Status: No, score=-0.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UC_GIBBERISH_OBFU=1] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lhR3-3suvaT5 for ; Wed, 12 Nov 2014 15:31:05 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id E23FE76936 for ; Wed, 12 Nov 2014 15:30:54 +0000 (UTC) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id A3203C50E for ; Wed, 12 Nov 2014 16:30:52 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQDAFJ8Y1RV5ZwjPGdsb2JhbAANT4NiWYhhwQ2CSIdNAoEvAQEBAQEBBQEBAQE4hD4BAQR4ARALBB0WDwkDAgECATEUBg0BBwEBiEIIt0yXSwEBAQEBAQEBAQEBAQEBAQEBAQEBARMEkRQHhEsFk0iDRYhYhwSSLGwBgkoBAQE X-IPAS-Result: ApQDAFJ8Y1RV5ZwjPGdsb2JhbAANT4NiWYhhwQ2CSIdNAoEvAQEBAQEBBQEBAQE4hD4BAQR4ARALBB0WDwkDAgECATEUBg0BBwEBiEIIt0yXSwEBAQEBAQEBAQEBAQEBAQEBAQEBARMEkRQHhEsFk0iDRYhYhwSSLGwBgkoBAQE X-IronPort-AV: E=Sophos;i="5.07,369,1413237600"; d="scan'208,217";a="761940764" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb3.telenor.se with ESMTP; 12 Nov 2014 16:30:52 +0100 Message-ID: <54637D2A.5000802@bredband.net> Date: Wed, 12 Nov 2014 16:30:50 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: fr33domlover Subject: Re: make distcheck References: <20141111174011.75C20769CD@restaurant.gnome.org> In-Reply-To: <20141111174011.75C20769CD@restaurant.gnome.org> Content-Type: multipart/alternative; boundary="------------000300030607080905020304" Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2014 15:31:07 -0000 This is a multi-part message in MIME format. --------------000300030607080905020304 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Glibmm and gtkmm do pass 'make distcheck'. If you want to build them from source code in git, use jhbuild. https://wiki.gnome.org/Projects/Jhbuild https://developer.gnome.org/gtkmm-tutorial/stable/chapter-working-with-source.html.en It can take a while to set everything up and build it the first time. Kjell Den 2014-11-11 18:39, fr33domlover skrev: > Hello, > > > I've been working on a C++ project and recently I started adding doxygen > support based on mm-common. It's a bit different so I didn't just paste the > code as-is: > > - It uses only POSIX features (e.g. no GNU make functions like patsubst and no > wildcards) so it doesn't need the -Wno-portability flag (I use the 'find' > instead, some Automake features and a bit of trivial targets copied > from generated Makefile) > - It builds 2 separate sets of docs (1 for API, 1 is full code reference for > hackers) > - Installation uses regular rules and not a Perl script - although I haven't > yet implemented using tag files so maybe those will require Perl (I don't > know yet why Perl is needed there, haven't checked) > > Today I finished writing the first version of this setup and it failed at `make > distcheck` because the HTML files are in MAINTAINERCLEANFILES and not > DISTCLEANFILES. That makes sense - delete the docs only on > `make maintainer-clean`. But how to make `make distcheck` not complain due to > these files not deleted on `make distclean`? > > I read about how to do it, but I didn't see that mm-common does anything like > that. So I had an idea - maybe glibmm, gtkmm, etc. simply don't pass `make > distcheck`. I decided to check. > > I failed to build them, and I couldn't find info about it, so I decided to ask > here - how do these modules pass `make distcheck`? It expects disted files to > be distributed at distclean time, but it doesn't happen. > > What I did was to install mm-common from git, and then try building glibmm and > gtkmm. They gave errors about ENABLE_DOCUMENTATION not defined with a > AM_CONDITIONAL. Was there another step, e.g. manually copying mm-common files > into glibmm tree, which I missed? > > > > Thanks in advance! > > fr33domlover > PGP key ID: 63E5E57D > --------------000300030607080905020304 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Glibmm and gtkmm do pass 'make distcheck'.

If you want to build them from source code in git, use jhbuild.
https://wiki.gnome.org/Projects/Jhbuild
https://developer.gnome.org/gtkmm-tutorial/stable/chapter-working-with-source.html.en
It can take a while to set everything up  and build it the first time.

Kjell

Den 2014-11-11 18:39, fr33domlover skrev:
Hello,


I've been working on a C++ project and recently I started adding doxygen
support based on mm-common. It's a bit different so I didn't just paste the
code as-is:

- It uses only POSIX features (e.g. no GNU make functions like patsubst and no
  wildcards) so it doesn't need the -Wno-portability flag (I use the 'find'
  instead, some Automake features and a bit of trivial targets copied
  from generated Makefile) 
- It builds 2 separate sets of docs (1 for API, 1 is full code reference for
  hackers)
- Installation uses regular rules and not a Perl script - although I haven't
  yet implemented using tag files so maybe those will require Perl (I don't
  know yet why Perl is needed there, haven't checked)

Today I finished writing the first version of this setup and it failed at `make
distcheck` because the HTML files are in MAINTAINERCLEANFILES and not
DISTCLEANFILES. That makes sense - delete the docs only on
`make maintainer-clean`. But how to make `make distcheck` not complain due to
these files not deleted on `make distclean`?

I read about how to do it, but I didn't see that mm-common does anything like
that. So I had an idea - maybe glibmm, gtkmm, etc. simply don't pass `make
distcheck`. I decided to check.

I failed to build them, and I couldn't find info about it, so I decided to ask
here - how do these modules pass `make distcheck`? It expects disted files to
be distributed at distclean time, but it doesn't happen.

What I did was to install mm-common from git, and then try building glibmm and
gtkmm. They gave errors about ENABLE_DOCUMENTATION not defined with a
AM_CONDITIONAL. Was there another step, e.g. manually copying mm-common files
into glibmm tree, which I missed?



Thanks in advance!

fr33domlover
PGP key ID: 63E5E57D


--------------000300030607080905020304-- From fr33domlover@riseup.net Wed Nov 12 19:51:10 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 6DFD376984 for ; Wed, 12 Nov 2014 19:51:10 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.959 X-Spam-Level: X-Spam-Status: No, score=-1.959 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MISSING_MID=0.497, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.555, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7QhfJ6s1bA47 for ; Wed, 12 Nov 2014 19:51:09 +0000 (UTC) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by restaurant.gnome.org (Postfix) with ESMTP id 29C157684A for ; Wed, 12 Nov 2014 19:50:58 +0000 (UTC) Received: from berryeater.riseup.net (berryeater-pn.riseup.net [10.0.1.120]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 131B541D24; Wed, 12 Nov 2014 19:50:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: fr33domlover) with ESMTPSA id D5594428D2 Date: Wed, 12 Nov 2014 21:50:44 +0200 From: fr33domlover To: Kjell Ahlstedt Subject: Re: make distcheck In-Reply-To: <54637D2A.5000802@bredband.net> References: <20141111174011.75C20769CD@restaurant.gnome.org> <54637D2A.5000802@bredband.net> Organization: Earth MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/s18PrkkAlepEytE.r5ESkSH"; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.98.4 at mx1 X-Virus-Status: Clean Message-Id: <20141112195110.6DFD376984@restaurant.gnome.org> Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2014 19:51:10 -0000 --Sig_/s18PrkkAlepEytE.r5ESkSH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On 2014-11-12 Kjell Ahlstedt wrote: > Glibmm and gtkmm do pass 'make distcheck'. >=20 > If you want to build them from source code in git, use jhbuild. > https://wiki.gnome.org/Projects/Jhbuild > https://developer.gnome.org/gtkmm-tutorial/stable/chapter-working-with-so= urce.html.en > It can take a while to set everything up and build it the first time. >=20 > Kjell Thanks. Maybe the issue was simply version numbers, which jhbuild solves. I would still like to know - how do they solve the issue of HTML files, whi= ch are distributed, specified in MAINTAINERCLEANFILES and not in DISTCLEANFILE= S? Normally this causes `make distcheck` to fail, because `distclean` doesn't clean the HTML files. I'd like to do the same for my code. --Sig_/s18PrkkAlepEytE.r5ESkSH Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJUY7oUAAoJEFJSxchj5eV9fgMP/2hFnz1XM7m/PONj5z6xq6Ir Lr7+ZA3aPie9+9HUMUR4q5PdsDdF0uzAQ/KtwrAbD7epgwpCkQuLDXbV2egrCH1Y Wieag14yChjJzO1wjN91LeW03E7/KD7lZ6yLZ3h5VpyQL4/4GoRKH3kw+WX2tM1g ETVEHul1V7nMuENLMZR/aSnjjXc/M60yuO+8rRcLERFIx6EIA/HBYy7HyozsqC4i XufxdCjTvEAmDKRcK4j9gajjLt3+rNsn8IpS8/tsk6aeWotR5t4oAGr4lnKblVC9 8HlNnHBR2WcPz+Qcpv2PrAYFoypchc10bVJFJ5r6mPrp1MndGYLCRJtyXCBvEaQF PCpiawjDAOC73hbkTNhEpq9cMd3wXYbYRYX9Laevt9lgC9BeANJ7BlUtz0B8Lmg6 HPjokK3T6y4/YwxZWhGTLPuPKYv0d2SWrbyMS7Kt76tuiHbsJbC+i2fGHFC/PAU4 FHquT5kax+Q1KW4vQCjLlZOpwO9tMfYZnhs1vfyOLpxUnfS1PSTvBU7wetn9OFmZ mHOqyQzVEbxezduIlKJ+Tw5h+XKxWrD91EOTIjSnpI7xKXdp1I5obxmwdl0fBgzg bKp1+jdoUErXPRe2hJvFfnNyBmccw9XPD3ykr9vV4Hpu2hM1/LqO+9FYcQYFRgoC xRRVgDFkS9KGicRc1mxF =JIKx -----END PGP SIGNATURE----- --Sig_/s18PrkkAlepEytE.r5ESkSH-- From fr33domlover@riseup.net Wed Nov 12 22:50:30 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 9AD4F76A24 for ; Wed, 12 Nov 2014 22:50:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.959 X-Spam-Level: X-Spam-Status: No, score=-1.959 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MISSING_MID=0.497, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.555, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xZ-O73EiWAu1 for ; Wed, 12 Nov 2014 22:50:29 +0000 (UTC) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by restaurant.gnome.org (Postfix) with ESMTP id DC89676234 for ; Wed, 12 Nov 2014 22:50:19 +0000 (UTC) Received: from plantcutter.riseup.net (plantcutter-pn.riseup.net [10.0.1.121]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 8FF4841EE4 for ; Wed, 12 Nov 2014 22:50:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: fr33domlover) with ESMTPSA id 8F88923081 Date: Thu, 13 Nov 2014 00:50:02 +0200 From: fr33domlover To: gtkmm-list@gnome.org Subject: Re: make distcheck In-Reply-To: <20141112195110.6DFD376984@restaurant.gnome.org> References: <20141111174011.75C20769CD@restaurant.gnome.org> <54637D2A.5000802@bredband.net> <20141112195110.6DFD376984@restaurant.gnome.org> Organization: Earth MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/RzDEjnN0hSZ1qrG=pZaE1rH"; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.98.4 at mx1 X-Virus-Status: Clean Message-Id: <20141112225030.9AD4F76A24@restaurant.gnome.org> X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2014 22:50:30 -0000 --Sig_/RzDEjnN0hSZ1qrG=pZaE1rH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On 2014-11-12 fr33domlover wrote: > Thanks. Maybe the issue was simply version numbers, which jhbuild solves. >=20 > I would still like to know - how do they solve the issue of HTML files, w= hich > are distributed, specified in MAINTAINERCLEANFILES and not in DISTCLEANFI= LES? > Normally this causes `make distcheck` to fail, because `distclean` doesn't > clean the HTML files. >=20 > I'd like to do the same for my code. I think I found the answer: make distcheck simply doesn't build the docs at all, so no errors related to them are generated... --Sig_/RzDEjnN0hSZ1qrG=pZaE1rH Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJUY+QaAAoJEFJSxchj5eV91s8QAKt3Gg7jMJv7AEFxbJcu8Fg4 v/d+jN3U8htdbXTkjW+H+Szv7dmcYW8GduWPm2kimB4U1n9jZLg9WjyXVefQMzZc ZcmVGtXp6+M6Bq0QeCmmnjF13wfMIYgWqEwCKEgjwqeHaTNhi1xyi332flT8MMJx iC+pjHfuYKj3cipY0IosqytZbgde0z8WE+/mWtHurOyOdhThKR/SJNpYKk2D/PrV Vw35PvCcfsR4msToz+5PdgOA6WEPIcY4v5YXlxhAMl9FyrRlOg6V4bTYkpc1+6ss YtvMOUUXKSIQq7Seeyza7DkPtirtVvfx8NkiwAtheMDmcnefbPEBjFGY+ec9BxPo q3vZaKLIp26yWtsV7ovqx+kBBGnQTP5NmqhrEgcZ/wXguDLKyDQWRbbotKeHPoHt h4xQSgwBPAxDlAaU7QSUJpEUnNrMwyNk+wB2ki0p63C/xLYRYL/QLp5ZHvkfCp8w wJoYbCH924kLKnCXJ36J804yH3d09bAVuzEa6OCp+gqdSPxw0PFwVbvghUrkZsZY 5IwgQfU/ig9vC5Gfz/DCYqq39gE6BnLTvRcnPRqOVG36/ubmUKf6YkAqRYKovWQb mArTlsnyqx3EFBCPnwPMiYkHlVxo94hXWUXb4ldxujYKIyWDoteJDbzx/PwXMuDE c1c7m0lfI5S4I7NY+9JP =kWV+ -----END PGP SIGNATURE----- --Sig_/RzDEjnN0hSZ1qrG=pZaE1rH-- From jkleber2701@t-online.de Thu Nov 13 17:48:46 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 2BB65769AD for ; Thu, 13 Nov 2014 17:48:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U1hw-KrkDbLt for ; Thu, 13 Nov 2014 17:48:43 +0000 (UTC) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by restaurant.gnome.org (Postfix) with ESMTP id 1983E769C9 for ; Thu, 13 Nov 2014 17:48:31 +0000 (UTC) Received: from fwd32.aul.t-online.de (fwd32.aul.t-online.de [172.20.26.144]) by mailout09.t-online.de (Postfix) with SMTP id A8A4E405DDE for ; Thu, 13 Nov 2014 18:48:29 +0100 (CET) Received: from [192.168.0.6] (VmAS7ZZGghq9nmmWk9QDvwxoQf0W6mEEsyqHvqzzetR6nraJzcCJXmmZ3El+h7XZw0@[79.250.191.176]) by fwd32.t-online.de with (TLSv1.2:DHE-RSA-AES256-SHA256 encrypted) esmtp id 1XoyVP-4SGNOK0; Thu, 13 Nov 2014 18:48:27 +0100 Message-ID: <1415900906.10101.2.camel@localhost.localdomain> Subject: Upgrade menu-example-main to Gtk::Application/Gtk::ApplicationWindow? From: =?ISO-8859-1?Q?J=FCrgen?= Kleber To: gtkmm-list@gnome.org Date: Thu, 13 Nov 2014 18:48:26 +0100 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-H5Hws0/C2FZZw+IyHQ6A" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 X-ID: VmAS7ZZGghq9nmmWk9QDvwxoQf0W6mEEsyqHvqzzetR6nraJzcCJXmmZ3El+h7XZw0 X-TOI-MSGID: 25312fd0-635f-4fd6-b5b0-aac1346a926e X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2014 17:48:46 -0000 --=-H5Hws0/C2FZZw+IyHQ6A Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, quite a lot of Gnome applications have an application menu allowing for menu items covering the application as a whole to place into the top bar of Gnome-shell. I should appreciate this feature being reflected in the menu-example of the gtkmm-tutorial. This could easily be done by deriving ExampleWindow from Gtk::ApplicationWindow instead from Gtk::Window and adding a new class ExampleApplication derived from Gtk::Application using this example https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/applica= tion/app_and_win_menus as a guideline. Best regards, J=C3=BCrgen --=-H5Hws0/C2FZZw+IyHQ6A 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 v2 iQIcBAABAgAGBQJUZO7qAAoJEAgufJFiXY/ErAYP/jnSW0ss7V/E65dcvyiil4wM Ycgj47DLUqGsvMMpRFhGnSjfIXw7VYnuGmerqWrVrl9vAUDYMVeohp1osfXNSKd7 FxSHLZI3lnakpEx3ezl+YMCoHlc4o8Qxq1OClQ2tqOreUiON/iViZh8n7mjlERLf 0gHtHqBtVPBzZd5gLNGIWHyqiOoPz45vT0gyoNq0M7FXgjpAFvC7CEMcmOPGSQv7 wSL0idHFW5R9oqEo4z/FZNv6BluXVWaWqw+5kGdlyN9qSAxcRwpq8nrPzwfEKBTC qBW4fXAwb7geTUYaKyF0GYlSfP/FSO+l93hYbCeDMWxZnhAltSwWXdPvTZUYtzq0 Rn6DiCBOlfOOHQfD207lAXpGtuCQ5cAjFlRFI7Zte9IQAdueBsi2h7hNgTGVbC0N ihEQmExZ19+izsMeoCLHfoigzfMTR/1z9qUyCjYnUx80UVhCC3KDrhTE+i4ZpGzd L2uOBMhxruN4OhzjegigXWF/ZVpuQfe33BoGPABZmi9b4l/WDID2p85UjA85eGV9 /be2b2KOhqcVyGS9XeojQI24JsiCKEdw1CWPMF/bXEpAnTNdoecRo6drOuIDItwJ +4iIIWBZUxH0hRzgq0yOnJf0tGmwQGVmTsUGh1vOIfop0z2fKW3S0K9T1WoOCAPY 8Dh+HDWD0OypHh7YKCTE =pG7S -----END PGP SIGNATURE----- --=-H5Hws0/C2FZZw+IyHQ6A-- From ziegler@atlatec.de Fri Nov 14 14:14:51 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 1B1987695E for ; Fri, 14 Nov 2014 14:14:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2 X-Spam-Level: X-Spam-Status: No, score=-2 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] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tj6mLjTEmYti for ; Fri, 14 Nov 2014 14:14:49 +0000 (UTC) X-Greylist: delayed 368 seconds by postgrey-1.34 at restaurant.gnome.org; Fri, 14 Nov 2014 14:14:49 UTC Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.216]) by restaurant.gnome.org (Postfix) with ESMTP id 6421776952 for ; Fri, 14 Nov 2014 14:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1415974476; l=1257; s=domk; d=atlatec.de; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From: Date; bh=B1+i9SHcKEKH94MjQ8ruKx5EQK8=; b=vFcYdfQ2FjEDJknsKAibbQ27vuzhzZRLUCVzKwbSX9bifBM3c5kCE4w+QewWY0YwnjE nSf3heHMlC5bPSSQO8hQR/mnu93jh3lkMHt1Wr0s4P6o+A/p0bOATcN84Anl6n8DdmAJx dYvIknwJZcPvT4aSF+x32ahFzt92y9CU7Wc= X-RZG-AUTH: :NmUBckytad9iXVW5x0MugHWJK+/jfIT46pHiAiH0R3rWXvba3dBOUxUbqQNuMEJX X-RZG-CLASS-ID: mo00 Received: from [192.168.178.20] (p57B676E3.dip0.t-ipconnect.de [87.182.118.227]) by smtp.strato.de (RZmta 35.11 DYNA|AUTH) with ESMTPSA id K03397qAEE8S1gA (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Fri, 14 Nov 2014 15:08:28 +0100 (CET) Message-ID: <54660C77.8030104@atlatec.de> Date: Fri, 14 Nov 2014 15:06:47 +0100 From: Julius Ziegler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: Pre-set selected elements of Gtk::ListViewText Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2014 14:14:51 -0000 Dear list, I have created a dialog where I prompt the user with a ListViewText, from which he can choose multiple strings. This works fine. I would now like to remember his selection in a configuration file, and use this to pre-select these elements on a later run of the program. Lets assume that I already now the row index of the elements that I want to set selected. Unfortunately, I could not find out how to set a specific row of the ListViewText as selected. The interface of ListViewText is quite clear, and I think what I am looking for is not in there. I am quite sure that I have to use the interface of Gtk::TreeSelection for this. The select(...) functions in there look promising: select(const TreeModel::Path& path) select(const TreeModel::iterator& iter) select(const TreeModel::Row& row) Unfortunately, the documentation of the Path, iterator and Row classes did not really help me. Path is practically undocumented. I can create it from an integer of from a string, but what is the semantics of this? Row and iterator both turn out to be TreeIter's, but how do I use them to iterate my TreeSelection (I do not see a "begin()" function there). Is there a "right" way of achieving this? Thanks! Julius From john@creativepost.co.uk Mon Nov 17 11:46:26 2014 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 restaurant.gnome.org (Postfix) with ESMTP id E067F15C028 for ; Mon, 17 Nov 2014 11:46:26 +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, FROM_12LTRDOM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qX3x5PBoO4ig for ; Mon, 17 Nov 2014 11:46:26 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by restaurant.gnome.org (Postfix) with ESMTP id 7EA9B15C01C for ; Mon, 17 Nov 2014 11:46:14 +0000 (UTC) Received: from [192.168.1.2] (88-104-15-37.dynamic.dsl.as9105.com [88.104.15.37]) by mrelayeu.kundenserver.de (node=mreue003) with ESMTP (Nemesis) id 0M1kWE-1Y65Wa0rOc-00tkmU; Mon, 17 Nov 2014 12:46:10 +0100 Message-ID: <5469E001.1060907@creativepost.co.uk> Date: Mon, 17 Nov 2014 11:46:09 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: gtkmm Subject: TreeViewColumn::get_first_cell_renderer() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:E40iCeXt0H5Ra+vEBF2jLuIARfaTbq3brtW1JwRQL6G NXGR/qVOoqzat7uBvJN1FwTNA5Oeazqr/Mmxx6n7lCWmA+IM7C p6Kz6nUJI4Gmq9H9MBe+Hr45bC06hemhmrQeRqPCoyucqwZVDc zWmMssy24po/qFbYwT8skXeHcfEZsYiI1jQ3FuO+nVVXQ6AX2X IeIWRH7mKtcdP6eQXjx83OqwizuH3VSpkzGdtbXnWIrrAMNYiS RRB+1PQ4g7BIBNe1dXz0dLJXqJ192FOOLzt0wzZUO0ri8EQHil kv4CNx4mMxrToy+bkWOqqu6QBk9mybJU4WgtWpLFml1xd6XaPk 7o9wT9M7vt6EKumjRC9oBLvmVE5Hm586/roSIsRqQ X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2014 11:46:27 -0000 I'm not sure if this is something new or if I just never noticed it before but round about line 119 of 'gtkmm/treeviewcolumn.cc' I seem to have these functions:- CellRenderer* TreeViewColumn::get_first_cell_renderer() { return get_first_cell(); } const CellRenderer* TreeViewColumn::get_first_cell_renderer() const { return get_first_cell_renderer(); } I assume the intention was that the 2nd function would call the 1st one but MSVC warns me that the 2nd function will just call itself recursively until the stack overflows. Any thoughts anyone? John From john@creativepost.co.uk Mon Nov 17 14:21:40 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 2A9BB762D0 for ; Mon, 17 Nov 2014 14:21:40 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gf3NJ0yavubQ for ; Mon, 17 Nov 2014 14:21:39 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by restaurant.gnome.org (Postfix) with ESMTP id EC60E762AA for ; Mon, 17 Nov 2014 14:21:28 +0000 (UTC) Received: from [192.168.1.2] (88-104-4-198.dynamic.dsl.as9105.com [88.104.4.198]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0MdLIx-1XYZRl0Gvr-00IUUX; Mon, 17 Nov 2014 15:21:26 +0100 Message-ID: <546A0464.3060208@creativepost.co.uk> Date: Mon, 17 Nov 2014 14:21:24 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: gtkmm Subject: Re: TreeViewColumn::get_first_cell_renderer() References: <5469E001.1060907@creativepost.co.uk> In-Reply-To: <5469E001.1060907@creativepost.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:GX7ApSQmPocT214ajbmSz5x4tWjw0a2IdybTg0hVx/o E4ZkGVYmsuLyS2dSvaIwJl659n7+Zqob1ucYsjikfUEmtl15m6 g8jaOeLCKa4NqhMZc8cnEL6ECxSgqU3zDejhg7bnubCEW+nSyV h5esEAGczUvdkcjQbolwgHuKKzYC0qd3R/R5ipzZSKzDh/UiE6 TbEmWBaVAN7mPWGTLaljLZ2us3WOFqJCi+vE3rzAdeDM4dn5pr GA9JyDKOGPSL2u7NRoS5hb0pHxYPVGVHOEjqNky1iMQ9smk2Zp sL3RKxYFzx2rePbG1Hrl5K4lVIExx+zkgb4KS5cmplRHw2yyJx LPFDRl/fcSI0WuFf2xqFe12+ADCO8kVs+f2+MhTiC X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2014 14:21:40 -0000 On 17/11/2014 11:46, John Emmas wrote: > I'm not sure if this is something new or if I just never noticed it > before but round about line 119 of 'gtkmm/treeviewcolumn.cc' I seem to > have these functions:- > > CellRenderer* TreeViewColumn::get_first_cell_renderer() > { > return get_first_cell(); > } > > const CellRenderer* TreeViewColumn::get_first_cell_renderer() const > { > return get_first_cell_renderer(); > } > > I assume the intention was that the 2nd function would call the 1st > one but MSVC warns me that the 2nd function will just call itself > recursively until the stack overflows. Any thoughts anyone? > Apologies - I should have added that this is in git (branch 'gtkmm-2-24'). 'master' (and presumably gtkmm-3-xx?) don't seem to have the above code. John From murrayc@murrayc.com Tue Nov 18 09:57:18 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 4AFE776A00 for ; Tue, 18 Nov 2014 09:57:18 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MGqhM2-Bq7Km for ; Tue, 18 Nov 2014 09:57:17 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by restaurant.gnome.org (Postfix) with ESMTP id 46790769D3 for ; Tue, 18 Nov 2014 09:57:06 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1D13A20A0B; Tue, 18 Nov 2014 04:57:05 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 18 Nov 2014 04:57:05 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:subject:from:to:cc :date:in-reply-to:references:content-type:mime-version :content-transfer-encoding; s=smtpout; bh=9ti3xUmb9mvM/6OraMI+xM bZowU=; b=CsP8Hip6806UN+glmeSLsUbJS1NdKCj5hz9/rbSTxsKZ7OsZVqGyQ/ 8jzNIYgeOcbuebL/jPIIYOPWAv/1GnmEwz94kZWxXhEwodXQgcYsbOIeJPFpLMzC UVAyIoDB+hRikXZnr2S+ge7KUhNmoOI6FN9bq0Ldhooms6dmz+fbQ= X-Sasl-enc: 0kKSxaKLplnpmZtRph9Pqv2G8vMlz0jwIBOc1nOvgUuH 1416304624 Received: from murrayc-ThinkPad-X220 (unknown [88.217.180.81]) by mail.messagingengine.com (Postfix) with ESMTPA id 232D5680195; Tue, 18 Nov 2014 04:57:03 -0500 (EST) Message-ID: <1416304622.22581.1.camel@murrayc.com> Subject: Re: TreeViewColumn::get_first_cell_renderer() From: Murray Cumming To: John Emmas Date: Tue, 18 Nov 2014 10:57:02 +0100 In-Reply-To: <546A0464.3060208@creativepost.co.uk> References: <5469E001.1060907@creativepost.co.uk> <546A0464.3060208@creativepost.co.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2014 09:57:18 -0000 On Mon, 2014-11-17 at 14:21 +0000, John Emmas wrote: > Apologies - I should have added that this is in git (branch > 'gtkmm-2-24'). 'master' (and presumably gtkmm-3-xx?) don't seem to have > the above code. We aren't likely to do much work on gtkmm 2, but if you submit a patch in bugzilla then we'll push it. I seem to remember that it's hard to make releases of gtkmm 2, however. -- Murray Cumming murrayc@murrayc.com www.murrayc.com From kjell.ahlstedt@bredband.net Wed Nov 19 15:35:42 2014 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 restaurant.gnome.org (Postfix) with ESMTP id C80F07693C for ; Wed, 19 Nov 2014 15:35:42 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GW7xw6pJftGB for ; Wed, 19 Nov 2014 15:35:41 +0000 (UTC) Received: from smtprelay-b32.telenor.se (smtprelay-b32.telenor.se [213.150.131.21]) by restaurant.gnome.org (Postfix) with ESMTP id 9B4F3769A0 for ; Wed, 19 Nov 2014 15:35:29 +0000 (UTC) Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b32.telenor.se (Postfix) with ESMTP id ACC1F879E3 for ; Wed, 19 Nov 2014 16:35:27 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AscBAPi3bFRV5ZwjPGdsb2JhbAANTYNjyiiCSIdHAoEdAQEBAQEBBQEBAQE4hD4BAQR4ARALBB0WDwkDAgECATEUBg0BBwEBiEIIvAuXagEBAQEBAQEBAgEBAQEBAQEBARUEkQgHhEsFlzWiI4M3AQEB X-IPAS-Result: AscBAPi3bFRV5ZwjPGdsb2JhbAANTYNjyiiCSIdHAoEdAQEBAQEBBQEBAQE4hD4BAQR4ARALBB0WDwkDAgECATEUBg0BBwEBiEIIvAuXagEBAQEBAQEBAgEBAQEBAQEBARUEkQgHhEsFlzWiI4M3AQEB X-IronPort-AV: E=Sophos;i="5.07,417,1413237600"; d="scan'208,217";a="685068212" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb4.telenor.se with ESMTP; 19 Nov 2014 16:35:27 +0100 Message-ID: <546CB8BE.6020202@bredband.net> Date: Wed, 19 Nov 2014 16:35:26 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: =?windows-1252?Q?J=FCrgen_Kleber?= Subject: Re: Upgrade menu-example-main to Gtk::Application/Gtk::ApplicationWindow? References: <1415900906.10101.2.camel@localhost.localdomain> In-Reply-To: <1415900906.10101.2.camel@localhost.localdomain> Content-Type: multipart/alternative; boundary="------------000807080404080004070103" Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 15:35:42 -0000 This is a multi-part message in MIME format. --------------000807080404080004070103 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit If you file a bug in Bugzilla and attach a patch, I can push it to the git repository. If you haven't installed git, and don't want to do it, you can attach the new and the modified files. I can make a patch out of them. Third alternative: File a bug without attachments, and hope for the best. Someone will probably fix it some day, but it will be fixed quicker if you do most of the job yourself. Kjell Den 2014-11-13 18:48, Jürgen Kleber skrev: > Hi, > > quite a lot of Gnome applications have an application menu allowing for > menu items covering the application as a whole to place into the top bar > of Gnome-shell. I should appreciate this feature being reflected in the > menu-example of the gtkmm-tutorial. This could easily be done by > deriving ExampleWindow from Gtk::ApplicationWindow instead from > Gtk::Window and adding a new class ExampleApplication derived from > Gtk::Application using this example > https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus > as a guideline. > > Best regards, > Jürgen > > --------------000807080404080004070103 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit If you file a bug in Bugzilla and attach a patch, I can push it to the git repository.
If you haven't installed git, and don't want to do it, you can attach the new and the modified files. I can make a patch out of them.
Third alternative: File a bug without attachments, and hope for the best. Someone will probably fix it some day, but it will be fixed quicker if you do most of the job yourself.

Kjell

Den 2014-11-13 18:48, Jürgen Kleber skrev:
Hi,

quite a lot of Gnome applications have an application menu allowing for
menu items covering the application as a whole to place into the top bar
of Gnome-shell. I should appreciate this feature being reflected in the
menu-example of the gtkmm-tutorial. This could easily be done by
deriving ExampleWindow from Gtk::ApplicationWindow instead from
Gtk::Window and adding a new class ExampleApplication derived from
Gtk::Application using this example
https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus
as a guideline.

Best regards,
Jürgen



--------------000807080404080004070103-- From jkleber2701@t-online.de Wed Nov 19 18:55:50 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 8A0E2769E7 for ; Wed, 19 Nov 2014 18:55:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.91 X-Spam-Level: X-Spam-Status: No, score=-1.91 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ILkGk4IVJSJB for ; Wed, 19 Nov 2014 18:55:48 +0000 (UTC) Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by restaurant.gnome.org (Postfix) with ESMTP id 4AA277693C for ; Wed, 19 Nov 2014 18:55:31 +0000 (UTC) Received: from fwd02.aul.t-online.de (fwd02.aul.t-online.de [172.20.26.148]) by mailout11.t-online.de (Postfix) with SMTP id A687C3D12F1; Wed, 19 Nov 2014 19:55:29 +0100 (CET) Received: from cohg (XRfNqkZUYhITqSiLCetAmbmwJP1WOvApxqjbPVcaOb5KXucde9WWhuW3j37lB-zgVs@[79.250.176.251]) by fwd02.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1XrAPZ-1DvyLI0; Wed, 19 Nov 2014 19:55:29 +0100 Message-ID: <1416423328.4534.1.camel@t-online.de> Subject: Re: Upgrade menu-example-main to Gtk::Application/Gtk::ApplicationWindow? From: =?ISO-8859-1?Q?J=FCrgen?= Kleber To: Kjell Ahlstedt Date: Wed, 19 Nov 2014 19:55:28 +0100 In-Reply-To: <546CB8BE.6020202@bredband.net> References: <1415900906.10101.2.camel@localhost.localdomain> <546CB8BE.6020202@bredband.net> Content-Type: multipart/mixed; boundary="=-wrFBfPyEU4HOKuWbZVUE" X-Mailer: Evolution 3.12.7-1 Mime-Version: 1.0 X-ID: XRfNqkZUYhITqSiLCetAmbmwJP1WOvApxqjbPVcaOb5KXucde9WWhuW3j37lB-zgVs X-TOI-MSGID: c1d34f08-582a-409f-ae73-fdfe07a9b0b8 Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 18:55:50 -0000 --=-wrFBfPyEU4HOKuWbZVUE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit I'm following your second proposal and attached the source files, hoping you can make a patch out of them. You can also see the files in http://jkleber.homepage.t-online.de/c ++/menu_appwin_builder_app/index.html . Jürgen Am Mittwoch, den 19.11.2014, 16:35 +0100 schrieb Kjell Ahlstedt: > If you file a bug in Bugzilla and attach a patch, I can push it to the > git repository. > If you haven't installed git, and don't want to do it, you can attach > the new and the modified files. I can make a patch out of them. > Third alternative: File a bug without attachments, and hope for the > best. Someone will probably fix it some day, but it will be fixed > quicker if you do most of the job yourself. > > Kjell > > Den 2014-11-13 18:48, Jürgen Kleber skrev: > > > Hi, > > > > quite a lot of Gnome applications have an application menu allowing for > > menu items covering the application as a whole to place into the top bar > > of Gnome-shell. I should appreciate this feature being reflected in the > > menu-example of the gtkmm-tutorial. This could easily be done by > > deriving ExampleWindow from Gtk::ApplicationWindow instead from > > Gtk::Window and adding a new class ExampleApplication derived from > > Gtk::Application using this example > > https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus > > as a guideline. > > > > Best regards, > > Jürgen > > > > > --=-wrFBfPyEU4HOKuWbZVUE Content-Disposition: attachment; filename="exampleapplication.cc" Content-Transfer-Encoding: base64 Content-Type: text/x-c++src; name="exampleapplication.cc"; charset="UTF-8" LyoKICogRW5oYW5jaW5nIHRoZSBtYWluIG1lbnUgZXhhbXBsZSBvZiBndGttbS10dXRvcmlhbC91 bnN0YWJsZSBwcmVzZW50ZWQgaW4KICogaHR0cHM6Ly9kZXZlbG9wZXIuZ25vbWUub3JnL2d0a21t LXR1dG9yaWFsL3Vuc3RhYmxlL1wKICogICAgICAgc2VjLW1lbnVzLWV4YW1wbGVzLmh0bWwuZGUj bWVudS1leGFtcGxlLW1haW4KICogdG8gc2hvdyBhbiBhcHBsaWNhdGlvbiBtZW51IGFzIHN1Z2dl c3RlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUub3JnL1RocmVlUG9pbnRUaHJlZS9GZWF0dXJl cy9BcHBsaWNhdGlvbk1lbnUsCiAqIGRlc2NyaWJlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUu b3JnL0hvd0RvSS9BcHBsaWNhdGlvbk1lbnUKICogYW5kIHJlYWxpc2VkIHVzaW5nIGd0a21tIGlu CiAqIGh0dHBzOi8vZ2l0Lmdub21lLm9yZy9icm93c2UvZ3RrbW0tZG9jdW1lbnRhdGlvbi90cmVl L2V4YW1wbGVzL2Jvb2svXAogKiAgICAgICBhcHBsaWNhdGlvbi9hcHBfYW5kX3dpbl9tZW51cwog KgogKiBTdGFydGVkIG9uIDIwMTQtMTEtMTAKICogQ3VycmVudCB2ZXJzaW9uOiAyMDE0LTExLTEw CiAqIFBlcmZvcm1lZCBieTogSsO8cmdlbiBLbGVi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fQoK --=-wrFBfPyEU4HOKuWbZVUE Content-Disposition: attachment; filename="exampleapplication.h" Content-Transfer-Encoding: base64 Content-Type: text/x-chdr; name="exampleapplication.h"; charset="UTF-8" LyoKICogRW5oYW5jaW5nIHRoZSBtYWluIG1lbnUgZXhhbXBsZSBvZiBndGttbS10dXRvcmlhbC91 bnN0YWJsZSBwcmVzZW50ZWQgaW4KICogaHR0cHM6Ly9kZXZlbG9wZXIuZ25vbWUub3JnL2d0a21t LXR1dG9yaWFsL3Vuc3RhYmxlL1wKICogICAgICAgc2VjLW1lbnVzLWV4YW1wbGVzLmh0bWwuZGUj bWVudS1leGFtcGxlLW1haW4KICogdG8gc2hvdyBhbiBhcHBsaWNhdGlvbiBtZW51IGFzIHN1Z2dl c3RlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUub3JnL1RocmVlUG9pbnRUaHJlZS9GZWF0dXJl cy9BcHBsaWNhdGlvbk1lbnUsCiAqIGRlc2NyaWJlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUu b3JnL0hvd0RvSS9BcHBsaWNhdGlvbk1lbnUKICogYW5kIHJlYWxpc2VkIHVzaW5nIGd0a21tIGlu CiAqIGh0dHBzOi8vZ2l0Lmdub21lLm9yZy9icm93c2UvZ3RrbW0tZG9jdW1lbnRhdGlvbi90cmVl L2V4YW1wbGVzL2Jvb2svXAogKiAgICAgICBhcHBsaWNhdGlvbi9hcHBfYW5kX3dpbl9tZW51cwog KgogKiBTdGFydGVkIG9uIDIwMTQtMTEtMTAKICogQ3VycmVudCB2ZXJzaW9uOiAyMDE0LTExLTEw CiAqIFBlcmZvcm1lZCBieTogSsO8cmdlbiBLbGViZXIgKGprbGViZXIyNzAxQHQtb25saW5lLmRl KQogKgogKiBPcmlnaW5hbCBmaWxlIGRvd25sb2FkZWQgb24gU3VuZGF5LCA5dGggb2YgTm92ZW1i ZXIsIDIwMTQgZnJvbQogKiBodHRwczovL2dpdC5nbm9tZS5vcmcvYnJvd3NlL2d0a21t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j4gYWJvdXRfYWN0aW9uOwog IEdsaWI6OlJlZlB0cjxHdGs6OkJ1aWxkZXI+IG1fcmVmQnVpbGRlcjsKCiAgRXhhbXBsZVdpbmRv dyogd2luOwoKICB2b2lkIG9uX21lbnVfZmlsZV9uZXdfZ2VuZXJpYygpOwogIHZvaWQgb25fbWVu dV9maWxlX3F1aXQoKTsKICB2b2lkIG9uX21lbnVfb3RoZXJzKCk7CiAgdm9pZCBjcmVhdGVfd2lu ZG93KCk7CgogIHZvaWQgb25fd2luZG93X2hpZGUoR3RrOjpXaW5kb3cqIHdpbmRvdyk7Cn07Cgoj ZW5kaWYgLyogR1RLTU1fRVhBTVBMRUFQUExJQ0FUSU9OX0ggKi8KCg== --=-wrFBfPyEU4HOKuWbZVUE Content-Disposition: attachment; filename="examplewindow.cc" Content-Transfer-Encoding: base64 Content-Type: text/x-c++src; name="examplewindow.cc"; charset="UTF-8" LyoKICogRW5oYW5jaW5nIHRoZSBtYWluIG1lbnUgZXhhbXBsZSBvZiBndGttbS10dXRvcmlhbC91 bnN0YWJsZSBwcmVzZW50ZWQgaW4KICogaHR0cHM6Ly9kZXZlbG9wZXIuZ25vbWUub3JnL2d0a21t LXR1dG9yaWFsL3Vuc3RhYmxlL1wKICogICAgICAgc2VjLW1lbnVzLWV4YW1wbGVzLmh0bWwuZGUj bWVudS1leGFtcGxlLW1haW4KICogdG8gc2hvdyBhbiBhcHBsaWNhdGlvbiBtZW51IGFzIHN1Z2dl c3RlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUub3JnL1RocmVlUG9pbnRUaHJlZS9GZWF0dXJl cy9BcHBsaWNhdGlvbk1lbnUsCiAqIGRlc2NyaWJlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUu b3JnL0hvd0RvSS9BcHBsaWNhdGlvbk1lbnUKICogYW5kIHJlYWxpc2VkIHVzaW5nIGd0a21tIGlu CiAqIGh0dHBzOi8vZ2l0Lmdub21lLm9yZy9icm93c2UvZ3RrbW0tZG9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oK --=-wrFBfPyEU4HOKuWbZVUE Content-Disposition: attachment; filename="examplewindow.h" Content-Transfer-Encoding: base64 Content-Type: text/x-chdr; name="examplewindow.h"; charset="UTF-8" LyoKICogRW5oYW5jaW5nIHRoZSBtYWluIG1lbnUgZXhhbXBsZSBvZiBndGttbS10dXRvcmlhbC91 bnN0YWJsZSBwcmVzZW50ZWQgaW4KICogaHR0cHM6Ly9kZXZlbG9wZXIuZ25vbWUub3JnL2d0a21t LXR1dG9yaWFsL3Vuc3RhYmxlL1wKICogICAgICAgc2VjLW1lbnVzLWV4YW1wbGVzLmh0bWwuZGUj bWVudS1leGFtcGxlLW1haW4KICogdG8gc2hvdyBhbiBhcHBsaWNhdGlvbiBtZW51IGFzIHN1Z2dl c3RlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUub3JnL1RocmVlUG9pbnRUaHJlZS9GZWF0dXJl cy9BcHBsaWNhdGlvbk1lbnUsCiAqIGRlc2NyaWJlZCBpbgogKiBodHRwczovL3dpa2kuZ25vbWUu b3JnL0hvd0RvSS9BcHBsaWNhdGlvbk1lbnUKICogYW5kIHJlYWxpc2VkIHVzaW5nIGd0a21tIGlu CiAqIGh0dHBzOi8vZ2l0Lmdub21lLm9yZy9icm93c2UvZ3RrbW0tZG9jdW1lbnRhdGlvbi90cmVl L2V4YW1wbGVzL2Jvb2svXAogKiAgICAgICBhcHBsaWNhdGlvbi9hcHBfYW5kX3dpbl9tZW51cwog KgogKiBTdGFydGVkIG9uIDIwMTQtMTEtMTAKICogQ3VycmVudCB2ZXJzaW9uOiAyMDE0LTExLTEw CiAqIFBlcmZvcm1lZCBieTogSsO8cmdlbiBLbGViZXIgKGprbGViZXIyNzAxQHQtb25saW5lLmRl KQogKgogKiBPcmlnaW5hbCBmaWxlIGRvd25sb2FkZWQgb24gU3VuZGF5LCA5dGggb2YgTm92ZW1i ZXIsIDIwMTQgZnJvbQogKiBodHRwczovL2dpdC5nbm9tZS5vcmcvYnJvd3NlL2d0a21tLWRvY3Vt ZW50YXRpb24vdHJlZS9leGFtcGxlcy9ib29rL21lbnVzL1wKICogICAgICAgbWFpbl9tZW51L2V4 YW1wbGV3aW5kb3cuaAogKi8KCiNpZm5kZWYgR1RLTU1fRVhBTVBMRVdJTkRPV19ICiNkZWZpbmUg R1RLTU1fRVhBTVBMRVdJTkRPV19ICgojaW5jbHVkZSA8Z3RrbW0uaD4KCmNsYXNzIEV4YW1wbGVX aW5kb3c6IHB1YmxpYyBHdGs6OkFwcGxpY2F0aW9uV2luZG93IHsKcHVibGljOgogICBFeGFtcGxl V2luZG93KCk7CiAgIHZpcnR1YWwgfkV4YW1wbGVXaW5kb3coKTsKCnByb3RlY3RlZDoKICAgLy9T aWduYWwgaGFuZGxlcnM6CiAgIHZvaWQgb25fbWVudV9vdGhlcnMoKTsKCiAgIHZvaWQgb25fbWVu dV9jaG9pY2VzKGNvbnN0IEdsaWI6OnVzdHJpbmcmIHBhcmFtZXRlcik7CiAgIHZvaWQgb25fbWVu dV9jaG9pY2VzX290aGVyKGludCBwYXJhbWV0ZXIpOwogICB2b2lkIG9uX21lbnVfdG9nZ2xlKCk7 CgogICAvL0NoaWxkIHdpZGdldHM6CiAgIEd0azo6Qm94IG1fQm94OwoKICAgLy9Ud28gc2V0cyBv ZiBjaG9pY2VzOgogICBHbGliOjpSZWZQdHI8R2lvOjpTaW1wbGVBY3Rpb24+IG1fcmVmQ2hvaWNl LCBtX3JlZkNob2ljZU90aGVyOwoKICAgR2xpYjo6UmVmUHRyPEdpbzo6U2ltcGxlQWN0aW9uPiBt X3JlZlRvZ2dsZTsKfTsKCiNlbmRpZiAvL0dUS01NX0VYQU1QTEVXSU5ET1dfSAoK --=-wrFBfPyEU4HOKuWbZVUE Content-Disposition: attachment; filename="main.cc" Content-Transfer-Encoding: base64 Content-Type: text/x-c++src; name="main.cc"; charset="UTF-8" LyoKICogRW5oYW5jaW5nIHRoZSBtYWluIG1lbnUgZXhhbXBsZSBvZiBndGttbS10dXRvcmlhbC91 b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CIKCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pIHsK ICAgR2xpYjo6UmVmUHRyPEV4YW1wbGVBcHBsaWNhdGlvbj4gYXBwbGljYXRpb24gPSBFeGFtcGxl QXBwbGljYXRpb246OmNyZWF0ZSgpOwoKICAgLy8gU3RhcnQgdGhlIGFwcGxpY2F0aW9uLCBzaG93 aW5nIHRoZSBpbml0aWFsIHdpbmRvdywKICAgLy8gYW5kIG9wZW5pbmcgZXh0cmEgd2luZG93cyBm b3IgYW55IGZpbGVzIHRoYXQgaXQgaXMgYXNrZWQgdG8gb3BlbiwKICAgLy8gZm9yIGluc3RhbmNl IGFzIGEgY29tbWFuZC1saW5lIHBhcmFtZXRlci4KICAgLy8gcnVuKCkgd2lsbCByZXR1cm4gd2hl biB0aGUgbGFzdCB3aW5kb3cgaGFzIGJlZW4gY2xvc2VkIGJ5IHRoZSB1c2VyLgogICBjb25zdCBp bnQgc3RhdHVzID0gYXBwbGljYXRpb24tPnJ1bihhcmdjLCBhcmd2KTsKICAgcmV0dXJuIHN0YXR1 czsKfQo= --=-wrFBfPyEU4HOKuWbZVUE-- From marcin.kolny@gmail.com Fri Nov 21 09:18:37 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 6057576A13 for ; Fri, 21 Nov 2014 09:18:37 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TWi2R43McS_u for ; Fri, 21 Nov 2014 09:18:36 +0000 (UTC) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by restaurant.gnome.org (Postfix) with ESMTP id 21D20769B7 for ; Fri, 21 Nov 2014 09:18:25 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id rd18so4533370iec.29 for ; Fri, 21 Nov 2014 01:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IMqs2RCQNwo/CioPAJa+IVsB3rxeISe4c/JIA50Wphw=; b=m7pBS5ybZSZA3Pzr795q/KbWYZe/mhKNznEutWZh2XPegnCQRUbWxgg6QQxUMCN/g5 AOiIJVZMF5KsTrqCikvt26XD+T78yivJ0KunDi3gFUI7dOqGow8dbL21wCzZaBN5xblm qlnWA2FdNB4e5mxHerAZMu7CucNYBlU7hL6/pYz9Idqg0fq+qOUknBAhIXLMRdNOeCN9 q1IOEGwxNpAaPybzVNt3auNRg13D3Ztag+c7yK4Q58lb3Ie+HmgmBBk1PPA72EpxAiXy 4jVJH3+8ZleHN/8oghjafXpG6Xa+pbK9o+T5ieZzmw+tDnJ/8EwthBfaVOsiMdNLZU6b 6Gpg== MIME-Version: 1.0 X-Received: by 10.107.39.5 with SMTP id n5mr1590528ion.72.1416561504072; Fri, 21 Nov 2014 01:18:24 -0800 (PST) Received: by 10.64.126.1 with HTTP; Fri, 21 Nov 2014 01:18:24 -0800 (PST) Date: Fri, 21 Nov 2014 10:18:24 +0100 Message-ID: Subject: Unmanaged mode in RefPtr From: Marcin Kolny To: gtkmm-list Content-Type: multipart/alternative; boundary=001a11406f1840bb5505085aeda9 X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 09:18:37 -0000 --001a11406f1840bb5505085aeda9 Content-Type: text/plain; charset=UTF-8 Hi, I've got following problem; I've got a class Query, which is base class for QueryAllocation. Passing \ QueryAllocation object as Query to a function is pretty simple because of automatic cas\ ting: void do_sth(const RefPtr& query); ... RefPtr alloc_query = QueryAllocation::create (); do_sth (alloc_query); But... in do_sth method, refcount of my object equals 2 (because casting \ increases ref count, it's obvious). Unfortunately, I have to have refcoun\ t=1 in do_sth method, so that's what I'm doing now: RefPtr alloc_query = QueryAllocation::create(); RefPtr query = alloc_query; query->unreference(); do_sth(query); query->reference(); query.reset(); It's workaround.. that would be great, if I can do something like "unmana\ ged RefPtr". It might look like this: RefPtr alloc_query = QueryAllocation::create(); do_sth(RefPtr(alloc_query, false)); And constructor declaration: template RefPtr(const RefPtr& src, bool manage = true); If 'manage' equals false, RefPtr doesn't increase/decrease refcount durin\ g construction and destruction. I know, it's unsafe, and might lead to a \ problems, if somebody uses it wrong, but it allows me to remove a lot of \ magic from my code. Of course, it's only conceptual solution, maybe it would be better to do \ single function instead of constructor, ideas are welcome. Best regards, Marcin Kolny --001a11406f1840bb5505085aeda9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+SGksPGJyPkkmIzM5O3ZlIGdvdCBmb2xsb3dpbmcgcHJvYmxlbTvCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgwqA8YnI+SSYjMzk7dmUgZ290IGEgY2xhc3Mg UXVlcnksIHdoaWNoIGlzIGJhc2UgY2xhc3MgZm9yIFF1ZXJ5QWxsb2NhdGlvbi4gUGFzc2luZyBc PGJyPlF1ZXJ5QWxsb2NhdGlvbiBvYmplY3QgYXMgUXVlcnkgdG8gYSBmdW5jdGlvbiBpcyBwcmV0 dHkgc2ltcGxlIGJl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ZS48YnI+PGJyPkJlc3QgcmVnYXJkcyw8YnI+TWFyY2luIEtvbG55PGJyPjxicj48L2Rpdj4NCg== --001a11406f1840bb5505085aeda9-- From kjell.ahlstedt@bredband.net Fri Nov 21 14:02:35 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 98EE576A55 for ; Fri, 21 Nov 2014 14:02:35 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4-WvYZKfr8oE for ; Fri, 21 Nov 2014 14:02:33 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id DDEEE76976 for ; Fri, 21 Nov 2014 14:02:17 +0000 (UTC) Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 4C159C8EC for ; Fri, 21 Nov 2014 15:02:15 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An8CAC9Fb1RV5ZwjPGdsb2JhbAANT4tFwhSGc4McAoEYAQEBAQEBBQEBAQE4hD4BAQQnUQEQCyEWDwkDAgECATEUBg0BBwEBF4grtwKXZwEBAQEBAQQBAQEBAQEBAQEZinCCWoM+B4RLBblYgzcBAQE X-IPAS-Result: An8CAC9Fb1RV5ZwjPGdsb2JhbAANT4tFwhSGc4McAoEYAQEBAQEBBQEBAQE4hD4BAQQnUQEQCyEWDwkDAgECATEUBg0BBwEBF4grtwKXZwEBAQEBAQQBAQEBAQEBAQEZinCCWoM+B4RLBblYgzcBAQE X-IronPort-AV: E=Sophos;i="5.07,431,1413237600"; d="scan'208,217";a="115773586" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb2.telenor.se with ESMTP; 21 Nov 2014 15:02:14 +0100 Message-ID: <546F45E6.1080608@bredband.net> Date: Fri, 21 Nov 2014 15:02:14 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Marcin Kolny Subject: Re: Unmanaged mode in RefPtr References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------080003010408070308080408" Cc: gtkmm-list X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 14:02:35 -0000 This is a multi-part message in MIME format. --------------080003010408070308080408 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Have you tried: Glib::RefPtr query = QueryAllocation::create(); do_sth(query); Glib::RefPtr alloc_query = Glib::RefPtr::cast_dynamic(query); It's not very nice, but if it works, it's better than fiddling with unreference() and reference(). The obvious suggestion is to fix do_sth(). It's really odd to require refcount==1. Kjell Den 2014-11-21 10:18, Marcin Kolny skrev: > Hi, > I've got following problem; > I've got a class Query, which is base class for QueryAllocation. Passing \ > QueryAllocation object as Query to a function is pretty simple because > of automatic cas\ > ting: > > void do_sth(const RefPtr& query); > ... > RefPtr alloc_query = QueryAllocation::create (); > do_sth (alloc_query); > > But... in do_sth method, refcount of my object equals 2 (because casting \ > increases ref count, it's obvious). Unfortunately, I have to have refcoun\ > t=1 in do_sth method, so that's what I'm doing now: > > RefPtr alloc_query = QueryAllocation::create(); > RefPtr query = alloc_query; > query->unreference(); > do_sth(query); > query->reference(); > query.reset(); > > It's workaround.. that would be great, if I can do something like "unmana\ > ged RefPtr". It might look like this: > > RefPtr alloc_query = QueryAllocation::create(); > do_sth(RefPtr(alloc_query, false)); > > And constructor declaration: > template > RefPtr(const RefPtr& src, bool manage = true); > > If 'manage' equals false, RefPtr doesn't increase/decrease refcount durin\ > g construction and destruction. I know, it's unsafe, and might lead to a \ > problems, if somebody uses it wrong, but it allows me to remove a lot of \ > magic from my code. > > Of course, it's only conceptual solution, maybe it would be better to do \ > single function instead of constructor, ideas are welcome. > > Best regards, > Marcin Kolny --------------080003010408070308080408 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Have you tried:
Glib::RefPtr<Query> query = QueryAllocation::create();
do_sth(query);
Glib::RefPtr<QueryAllocation> alloc_query = Glib::RefPtr<QueryAllocation>::cast_dynamic(query);
It's not very nice, but if it works, it's better than fiddling with unreference() and reference().
The obvious suggestion is to fix do_sth(). It's really odd to require refcount==1.

Kjell

Den 2014-11-21 10:18, Marcin Kolny skrev:
Hi,
I've got following problem;                                               
I've got a class Query, which is base class for QueryAllocation. Passing \
QueryAllocation object as Query to a function is pretty simple because of automatic cas\
ting:

void do_sth(const RefPtr<Query>& query);                                  
...
RefPtr<QueryAllocation> alloc_query = QueryAllocation::create ();         
do_sth (alloc_query);                                                     

But... in do_sth method, refcount of my object equals 2 (because casting \
increases ref count, it's obvious). Unfortunately, I have to have refcoun\
t=1 in do_sth method, so that's what I'm doing now:

RefPtr<QueryAllocation> alloc_query = QueryAllocation::create();          
RefPtr<Query> query = alloc_query;                                        
query->unreference();                                                     
do_sth(query);                                                            
query->reference();                                                       
query.reset();                                                            

It's workaround.. that would be great, if I can do something like "unmana\
ged RefPtr". It might look like this:

RefPtr<QueryAllocation> alloc_query = QueryAllocation::create();          
do_sth(RefPtr<Query>(alloc_query, false));                                

And constructor declaration:
template<typename T>
RefPtr(const RefPtr<T>& src, bool manage = true);                         

If 'manage' equals false, RefPtr doesn't increase/decrease refcount durin\
g construction and destruction. I know, it's unsafe, and might lead to a \
problems, if somebody uses it wrong, but it allows me to remove a lot of \
magic from my code.

Of course, it's only conceptual solution, maybe it would be better to do \
single function instead of constructor, ideas are welcome.

Best regards,
Marcin Kolny

--------------080003010408070308080408-- From marcin.kolny@gmail.com Sat Nov 22 00:21:14 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 958AA76A22 for ; Sat, 22 Nov 2014 00:21:14 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ztT14By2QK9 for ; Sat, 22 Nov 2014 00:21:12 +0000 (UTC) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by restaurant.gnome.org (Postfix) with ESMTP id 4940D76944 for ; Sat, 22 Nov 2014 00:21:01 +0000 (UTC) Received: by mail-ig0-f179.google.com with SMTP id r2so518035igi.12 for ; Fri, 21 Nov 2014 16:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ksSGQsVwNDQt7iBRV5k39IzKvsbBTr2dKMCXExvgvkc=; b=Gtmp9fF7sQWzK0jVwQ3nERfjKP4q+xsEQYVd1yqvwmK55AO0YaBKpn9ZAvEGIPIAXQ 02EgizFxTeLSKoO2CZVjH2RoRPcfdW5IjBu8Fc9lMukLySFi1vzPckGpPdaRf5cRVP0L kfKQDaYs78siLNVYf37fo1uLe0hiPSMJcY738mNE465Yq4jtnrgAB4h706eXYBNHH5IG dPOKhhTYE7Io91nQv2bZYE470mHKDvdze0Fy25PRz4s4A72VxuRC7pupVYjoajyt1foa 8UgUWj4ycHCmVE3xfzWVsGidlPLgEZE6w6HeXDvjwK27vd5EOxxk/20xOgOAb1u5l492 Qh9A== MIME-Version: 1.0 X-Received: by 10.42.179.132 with SMTP id bq4mr8392260icb.61.1416615660378; Fri, 21 Nov 2014 16:21:00 -0800 (PST) Received: by 10.64.126.1 with HTTP; Fri, 21 Nov 2014 16:21:00 -0800 (PST) In-Reply-To: <546F45E6.1080608@bredband.net> References: <546F45E6.1080608@bredband.net> Date: Sat, 22 Nov 2014 01:21:00 +0100 Message-ID: Subject: Re: Unmanaged mode in RefPtr From: Marcin Kolny To: Kjell Ahlstedt Content-Type: multipart/alternative; boundary=90e6ba6e80fe385fe60508678943 Cc: gtkmm-list X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2014 00:21:14 -0000 --90e6ba6e80fe385fe60508678943 Content-Type: text/plain; charset=UTF-8 2014-11-21 15:02 GMT+01:00 Kjell Ahlstedt : > Have you tried: > > Glib::RefPtr query = QueryAllocation::create(); > do_sth(query); > Glib::RefPtr alloc_query = > Glib::RefPtr::cast_dynamic(query); > > It's not very nice, but if it works, it's better than fiddling with > unreference() and reference(). > It doesn't really solve my problem, but it's still some kind of workaround (probably better than my trick with inc/dec refcounts, but still - workaround). When I'd like to call QueryAllocation's methods, I have to do castings: Glib::RefPtr::cast_static(query)->call1(); Glib::RefPtr::cast_static(query)->call2(); It's inconvenient. > The obvious suggestion is to fix do_sth(). It's really odd to require > refcount==1. > It's not odd in gstreamer. A lot of methods requires refcount equals 1, because if refcount is greater, a copy of object is created (or even assertion fails, in some cases). That's why I don't want to increase refcount, if it's in fact not necessary. Of course, I can implement my method as template function: template void do_sth(const Glib::RefPtr& arg); and it's even type-safe, but I've got bad feelings about it. It's tricky, type of argument isn't obvious, and a lot of code has to be moved to a header files (or instantiate template by every possible query type in source file, but it's inconvenient). Best regards, Marcin Kolny > Kjell > > Den 2014-11-21 10:18, Marcin Kolny skrev: > > Hi, > I've got following problem; > I've got a class Query, which is base class for QueryAllocation. Passing \ > QueryAllocation object as Query to a function is pretty simple because of > automatic cas\ > ting: > > void do_sth(const RefPtr& query); > ... > RefPtr alloc_query = QueryAllocation::create (); > do_sth (alloc_query); > > But... in do_sth method, refcount of my object equals 2 (because casting \ > increases ref count, it's obvious). Unfortunately, I have to have refcoun\ > t=1 in do_sth method, so that's what I'm doing now: > > RefPtr alloc_query = QueryAllocation::create(); > RefPtr query = alloc_query; > query->unreference(); > do_sth(query); > query->reference(); > query.reset(); > > It's workaround.. that would be great, if I can do something like "unmana\ > ged RefPtr". It might look like this: > > RefPtr alloc_query = QueryAllocation::create(); > do_sth(RefPtr(alloc_query, false)); > > And constructor declaration: > template > RefPtr(const RefPtr& src, bool manage = true); > > If 'manage' equals false, RefPtr doesn't increase/decrease refcount durin\ > g construction and destruction. I know, it's unsafe, and might lead to a \ > problems, if somebody uses it wrong, but it allows me to remove a lot of \ > magic from my code. > > Of course, it's only conceptual solution, maybe it would be better to do \ > single function instead of constructor, ideas are welcome. > > Best regards, > Marcin Kolny > > > --90e6ba6e80fe385fe60508678943 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
2014= -11-21 15:02 GMT+01:00 Kjell Ahlstedt <kjell.ahlstedt@bredband.n= et>:
=20 =20 =20
Have you tried:
Glib::RefPtr<Query> query =3D QueryAllocation::create();
do_sth(query);
Glib::RefPtr<QueryAllocation> alloc_query =3D Glib::RefPtr<QueryAllocation>::cast_dynamic(query);
It's not very nice, but if it works, it's bet= ter than fiddling with unreference() and reference().
It doesn't really solve my problem, but it's still s= ome kind of workaround (probably better than my trick with inc/dec refcount= s, but still - workaround). When I'd like to call QueryAllocation's= methods, I have to do castings:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Glib::= RefPtr<QueryAllocation>::cast_static(query)->call1();
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Glib::RefPtr<QueryAllocati= on>::cast_static(query)->call2();
It's inconvenient= .
The obvious suggestion is to fix do_sth(). It's really odd to require refcount=3D=3D1.
It's = not odd in gstreamer. A lot of methods requires refcount equals 1, because = if refcount is greater, a copy of object is created (or even assertion fail= s, in some cases). That's why I don't want to increase refcount, if= it's in fact not necessary. Of course, I can implement my method as te= mplate function:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 template<typename T> void do_sth(const Glib::RefPtr&l= t;T>& arg);

and it's even type-safe, but I'= ;ve got bad feelings about it. It's tricky, type of argument isn't = obvious, and a lot of code has to be moved to a header files (or instantiat= e template by every possible query type in source file, but it's inconv= enient).

Best regards,
Marcin Koln= y


Kjell

Den 2014-11-21 10:18, Marcin Kolny skrev:
Hi,
I've got following problem;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
I've got a class Query, which is base class for QueryAllocation= . Passing \
QueryAllocation object as Query to a function is pretty simple because of automatic cas\
ting:

void do_sth(const RefPtr<Query>& query);=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
...
RefPtr<QueryAllocation> alloc_query =3D QueryAllocation::create ();=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =C2=A0
do_sth (alloc_query);=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0

But... in do_sth method, refcount of my object equals 2 (because casting \
increases ref count, it's obvious). Unfortunately, I have to have refcoun\
t=3D1 in do_sth method, so that's what I'm doing now:

RefPtr<QueryAllocation> alloc_query =3D QueryAllocation::create();=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 =C2=A0
RefPtr<Query> query =3D alloc_query;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0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A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
query.reset();=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0

It's workaround.. that would be great, if I can do something like "unmana\
ged RefPtr". It might look like this:

RefPtr<QueryAllocation> alloc_query =3D QueryAllocation::create();=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 =C2=A0
do_sth(RefPtr<Query>(alloc_query, false));=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0

And constructor declaration:
template<typename T>
RefPtr(const RefPtr<T>& src, bool manage =3D true);=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =C2=A0

If 'manage' equals false, RefPtr doesn't increase/decre= ase refcount durin\
g construction and destruction. I know, it's unsafe, and might lead to a \
problems, if somebody uses it wrong, but it allows me to remove a lot of \
magic from my code.

Of course, it's only conceptual solution, maybe it would be better to do \
single function instead of constructor, ideas are welcome.

Best regards,
Marcin Kolny

--90e6ba6e80fe385fe60508678943-- From kjell.ahlstedt@bredband.net Tue Nov 25 07:50:21 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 46FD4768CF for ; Tue, 25 Nov 2014 07:50:21 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jDmpz_Qj1NVB for ; Tue, 25 Nov 2014 07:50:19 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id 1D91C762EB for ; Tue, 25 Nov 2014 07:50:08 +0000 (UTC) Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id E22FAE027 for ; Tue, 25 Nov 2014 08:50:06 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlwDAEgzdFRV5ZwjOmdsb2JhbAANToNYVwGDBMNIGoJLhk4CgSkBAQEBAQEFAQEBASIWhD4BAQQjVQEQCwQdFgsCAgkDAgECATEUBg0BBwEBiEEIuHl4lmkBAQEBAQEBAQIBAQEBAQEBAQEZkHoHgniBVQWXSIhmP5EbiAd3gkkBAQE X-IPAS-Result: AlwDAEgzdFRV5ZwjOmdsb2JhbAANToNYVwGDBMNIGoJLhk4CgSkBAQEBAQEFAQEBASIWhD4BAQQjVQEQCwQdFgsCAgkDAgECATEUBg0BBwEBiEEIuHl4lmkBAQEBAQEBAQIBAQEBAQEBAQEZkHoHgniBVQWXSIhmP5EbiAd3gkkBAQE X-IronPort-AV: E=Sophos;i="5.07,454,1413237600"; d="scan'208,217";a="822425125" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb5.telenor.se with ESMTP; 25 Nov 2014 08:50:06 +0100 Message-ID: <547434AD.8060709@bredband.net> Date: Tue, 25 Nov 2014 08:50:05 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: =?UTF-8?B?SsO8cmdlbiBLbGViZXI=?= Subject: Re: Upgrade menu-example-main to Gtk::Application/Gtk::ApplicationWindow? References: <1415900906.10101.2.camel@localhost.localdomain> <546CB8BE.6020202@bredband.net> <1416423328.4534.1.camel@t-online.de> In-Reply-To: <1416423328.4534.1.camel@t-online.de> Content-Type: multipart/alternative; boundary="------------080101050002070803070300" Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2014 07:50:21 -0000 This is a multi-part message in MIME format. --------------080101050002070803070300 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I have pushed modified versions of your files to the git repository, and added some text to the /Menus and To//olbars/ chapter in the gtkmm tutorial. That chapter is still not up to date. It needs a total rewrite. Kjell Den 2014-11-19 19:55, Jürgen Kleber skrev: > I'm following your second proposal and attached the source files, hoping > you can make a patch out of them. You can also see the files in > http://jkleber.homepage.t-online.de/c > ++/menu_appwin_builder_app/index.html . > > Jürgen > > Am Mittwoch, den 19.11.2014, 16:35 +0100 schrieb Kjell Ahlstedt: >> If you file a bug in Bugzilla and attach a patch, I can push it to the >> git repository. >> If you haven't installed git, and don't want to do it, you can attach >> the new and the modified files. I can make a patch out of them. >> Third alternative: File a bug without attachments, and hope for the >> best. Someone will probably fix it some day, but it will be fixed >> quicker if you do most of the job yourself. >> >> Kjell >> >> Den 2014-11-13 18:48, Jürgen Kleber skrev: >> >>> Hi, >>> >>> quite a lot of Gnome applications have an application menu allowing for >>> menu items covering the application as a whole to place into the top bar >>> of Gnome-shell. I should appreciate this feature being reflected in the >>> menu-example of the gtkmm-tutorial. This could easily be done by >>> deriving ExampleWindow from Gtk::ApplicationWindow instead from >>> Gtk::Window and adding a new class ExampleApplication derived from >>> Gtk::Application using this example >>> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus >>> as a guideline. >>> >>> Best regards, >>> Jürgen >>> >>> --------------080101050002070803070300 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I have pushed modified versions of your files to the git repository, and added some text to the Menus and Toolbars chapter in the gtkmm tutorial. That chapter is still not up to date. It needs a total rewrite.

Kjell

Den 2014-11-19 19:55, Jürgen Kleber skrev:
I'm following your second proposal and attached the source files, hoping
you can make a patch out of them. You can also see the files in
http://jkleber.homepage.t-online.de/c
++/menu_appwin_builder_app/index.html .

Jürgen

Am Mittwoch, den 19.11.2014, 16:35 +0100 schrieb Kjell Ahlstedt:
If you file a bug in Bugzilla and attach a patch, I can push it to the
git repository.
If you haven't installed git, and don't want to do it, you can attach
the new and the modified files. I can make a patch out of them.
Third alternative: File a bug without attachments, and hope for the
best. Someone will probably fix it some day, but it will be fixed
quicker if you do most of the job yourself.

Kjell

Den 2014-11-13 18:48, Jürgen Kleber skrev:

Hi,

quite a lot of Gnome applications have an application menu allowing for
menu items covering the application as a whole to place into the top bar
of Gnome-shell. I should appreciate this feature being reflected in the
menu-example of the gtkmm-tutorial. This could easily be done by
deriving ExampleWindow from Gtk::ApplicationWindow instead from
Gtk::Window and adding a new class ExampleApplication derived from
Gtk::Application using this example
https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus
as a guideline.

Best regards,
Jürgen



      

    

--------------080101050002070803070300-- From adiabat@centurylink.net Wed Nov 26 04:32:44 2014 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 restaurant.gnome.org (Postfix) with ESMTP id CC1AB76962 for ; Wed, 26 Nov 2014 04:32:44 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.011 X-Spam-Level: X-Spam-Status: No, score=-2.011 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, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p9dVxu7jd9n9 for ; Wed, 26 Nov 2014 04:32:43 +0000 (UTC) Received: from smtp.centurylink.net (mail.centurylink.net [205.219.233.9]) by restaurant.gnome.org (Postfix) with ESMTP id 1655B762D0 for ; Wed, 26 Nov 2014 04:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1416976350; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=hbKFYkUBus6tud74XNVNXcWLcjQ=; b=zcDELF4bVExO5sgT+Q4p1a8nRRk6adImvu1gCLsM1f0eNplnoJRMKLR0bVNjL/Jj 0S+Xr1zqgCNLK6ppCAB9sMq4yqILEDcSVqilaSYv9lgCdNT6TckhKtT40aKDeK5t PRf0AQn/9IdtKhbsZldt57XNJfkeVTcS4KfJNPNw/xYmxrfaCs4UWOUN5+Y9VmGW W2gMQ0YlnzM7yv41cOOKXMWS5c9RyyQZ0Waiz5bJ5c2yhAEB3uGqE13bTThF0ABD 8uIw+1eXsVvRm43x9ULZFRa+DFr8N4HUxX2QJJzmEbQZkSocubI9OZZ7fSK+Rkqd 82/MpeJ62peJXggRzS46zA==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=YNQdOG6x c=1 sm=1 a=H03XQNzO3ZIBWxh40sAgAw==:17 a=5ZTteq0x3j8A:10 a=IkcTkHD0fZMA:10 a=I_5RNyk1AAAA:8 a=aiIX5UjjAAAA:8 a=uJLZOLH3KYxBR_rK7Y4A:9 a=QEXdDO2ut3YA:10 a=Nj4Hl1Ei7yMA:10 a=99EM7YJ8h3IA:10 a=H03XQNzO3ZIBWxh40sAgAw==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YWRpYWJhdEBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=adiabat@centurylink.net; auth=pass (LOGIN) Received: from [75.165.62.138] ([75.165.62.138:12138] helo=[192.168.0.101]) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-SHA) id 91/B2-23789-ED755745; Tue, 25 Nov 2014 23:32:30 -0500 Message-ID: <547557DD.3070000@centurylink.net> Date: Tue, 25 Nov 2014 20:32:29 -0800 From: Phil Wolff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: gtkmm-list@gnome.org Subject: App menu name Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 04:32:44 -0000 I'm looking at the example code at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. At runtime the app menu is titled "Unknown Application Name," but the win menus are properly titled as "File," "Edit," and "Notification." Does this imply that something is missing from the code? From kjell.ahlstedt@bredband.net Wed Nov 26 10:04:14 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 8838276962 for ; Wed, 26 Nov 2014 10:04:14 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XHtSZYVE4Y59 for ; Wed, 26 Nov 2014 10:04:13 +0000 (UTC) Received: from smtprelay-h31.telenor.se (smtprelay-h31.telenor.se [213.150.131.4]) by restaurant.gnome.org (Postfix) with ESMTP id AEDD5762C3 for ; Wed, 26 Nov 2014 10:04:02 +0000 (UTC) Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id 641F9DB9A for ; Wed, 26 Nov 2014 11:03:40 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsoBAHekdVRV5ZwjPGdsb2JhbAANToNYyHeGSwKBIQEBAQEBAQUBAQEBOIQ+AQEEOEABEAsOExYPCQMCAQIBMRQGDQEHAQEaiCcIuiyXGAEBAQEBAQEBAQEBAQEBAQEBAQEBFASQeweETQEEl0iiTYNAAQEB X-IPAS-Result: AsoBAHekdVRV5ZwjPGdsb2JhbAANToNYyHeGSwKBIQEBAQEBAQUBAQEBOIQ+AQEEOEABEAsOExYPCQMCAQIBMRQGDQEHAQEaiCcIuiyXGAEBAQEBAQEBAQEBAQEBAQEBAQEBFASQeweETQEEl0iiTYNAAQEB X-IronPort-AV: E=Sophos;i="5.07,461,1413237600"; d="scan'208";a="118726509" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb2.telenor.se with ESMTP; 26 Nov 2014 11:03:06 +0100 Message-ID: <5475A559.2060302@bredband.net> Date: Wed, 26 Nov 2014 11:03:05 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Phil Wolff Subject: Re: App menu name References: <547557DD.3070000@centurylink.net> In-Reply-To: <547557DD.3070000@centurylink.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 10:04:14 -0000 Den 2014-11-26 05:32, Phil Wolff skrev: > I'm looking at the example code at > https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. > > > At runtime the app menu is titled "Unknown Application Name," but the > win menus are properly titled as "File," "Edit," and "Notification." > > Does this imply that something is missing from the code? > ______________________________________________ I have recently pushed some changes that make the menus/main_menu example use an application menu. Then I noticed the same thing. I use Ubuntu, which has two desktop environments to choose from: Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app menu and the menubar outside the application's window, and the app menu is titled "Unknown Application Name". Gnome Flashback shows both the app menu and the menubar in the application's window, and the app menu is titled "Gtk::Application Example" (or whatever name is set with Glib::set_application_name()). Gtk+'s demo program behaves the same. I don't know if something is missing in these programs, or if it's a bug in the Ubuntu Unity desktop shell. Which operating system do you use? Kjell From adiabat@centurylink.net Wed Nov 26 12:48:58 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 9751176A05 for ; Wed, 26 Nov 2014 12:48:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.011 X-Spam-Level: X-Spam-Status: No, score=-2.011 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, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yMicKl0uwliK for ; Wed, 26 Nov 2014 12:48:57 +0000 (UTC) Received: from smtp.centurylink.net (mail.centurylink.net [205.219.233.9]) by restaurant.gnome.org (Postfix) with ESMTP id 18631762C3 for ; Wed, 26 Nov 2014 12:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1417006119; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=hI7BWRyK3vrXnucNtX2AIVq9MvE=; b=Z7CkJ0qMbUCR7dgGxlg+P/krjb7h0RFM0C8J2CaQ0bq356PItp+ZsZ/KoCBfmkXp 9lnh64uJUvGMH9BAwvHDi6jCmbWeRS/1hsu/nq0r+J5GbKvVzhLcF1K2u2c8LGeR X5fkcBVercnUSuXqTO0jkO/T4tndkjux4EKu8W/uNWKj1uBx69GFLEywl2HsdlaO X3yD4aeYm4lPrKe76YQNzjAzRBWsLXR0vBKc2t7YiXOXy8RNkfrtrrHgp3KIZHHt T/HCOOep03ZwapwjwXfLhQkj9581lim2JafOpd5y1VrdygLn5EsGPhkkHqlafDbK +Hz1g5IIMOu9mHaytjDOPw==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=H91ZMpki c=1 sm=1 a=H03XQNzO3ZIBWxh40sAgAw==:17 a=5ZTteq0x3j8A:10 a=N659UExz7-8A:10 a=I_5RNyk1AAAA:8 a=aiIX5UjjAAAA:8 a=HGax8fYCcaDHn9W9flQA:9 a=pILNOxqGKmIA:10 a=H03XQNzO3ZIBWxh40sAgAw==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YWRpYWJhdEBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp03.agate.dfw.synacor.com smtp.user=adiabat@centurylink.net; auth=pass (LOGIN) Received: from [75.165.62.138] ([75.165.62.138:1998] helo=[192.168.0.101]) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-SHA) id B9/77-28279-72CC5745; Wed, 26 Nov 2014 07:48:39 -0500 Message-ID: <5475CC26.700@centurylink.net> Date: Wed, 26 Nov 2014 04:48:38 -0800 From: Phil Wolff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Kjell Ahlstedt Subject: Re: App menu name References: <547557DD.3070000@centurylink.net> <5475A559.2060302@bredband.net> In-Reply-To: <5475A559.2060302@bredband.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 12:48:58 -0000 I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm inclined to regard Unity as the prime suspect, so I'll submit a bug report accordingly. I was also looking at the changes you mention, and I think it would be great if you could demo the handling of command-line option and file parameters as well... On 2014/11/26 02:03, Kjell Ahlstedt wrote: > Den 2014-11-26 05:32, Phil Wolff skrev: >> I'm looking at the example code at >> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. >> >> >> At runtime the app menu is titled "Unknown Application Name," but the >> win menus are properly titled as "File," "Edit," and "Notification." >> >> Does this imply that something is missing from the code? >> ______________________________________________ > I have recently pushed some changes that make the menus/main_menu > example use an application menu. Then I noticed the same thing. > > I use Ubuntu, which has two desktop environments to choose from: > Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app menu > and the menubar outside the application's window, and the app menu is > titled "Unknown Application Name". Gnome Flashback shows both the app > menu and the menubar in the application's window, and the app menu is > titled "Gtk::Application Example" (or whatever name is set with > Glib::set_application_name()). Gtk+'s demo program behaves the same. > > I don't know if something is missing in these programs, or if it's a > bug in the Ubuntu Unity desktop shell. Which operating system do you use? > > Kjell -- If sunbeams were weapons of war, we would have had solar energy centuries ago. -- George Porter From john@creativepost.co.uk Wed Nov 26 13:36:43 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 6C29776A24 for ; Wed, 26 Nov 2014 13:36:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_FROM_12LTRDOM=0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h4ThZp8pd__0 for ; Wed, 26 Nov 2014 13:36:41 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by restaurant.gnome.org (Postfix) with ESMTP id 7505476A05 for ; Wed, 26 Nov 2014 13:36:30 +0000 (UTC) Received: from [192.168.1.2] (88-104-23-223.dynamic.dsl.as9105.com [88.104.23.223]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0LqlQA-1YOoeM3p7i-00eJIk; Wed, 26 Nov 2014 14:36:29 +0100 Message-ID: <5475D75B.8040506@creativepost.co.uk> Date: Wed, 26 Nov 2014 13:36:27 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: gtkmm Subject: MSVC build problems after updating from git Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:GBka+6jRZUUTGAQUityMD9/dOkVM5juY9dezZPjQ88b evk+O5hmTt38ARjPLM7FA71pU8TO83+INbFSzQCr/NilGJrP6i BW+nJmyATZ/gTeimE3ITNjnAXFawOLv7YirmD0XRmh+dNp23T/ hmannz1HFBXjx3y4LpybAQlXPWgymsck/6TVM+8TZrUyAXY+R9 bjxDit0X8VNfsxXprBneY3RBrlvSR/8UGk/Si0I3I4uStbHe7t jTk60AlKIN62PUm/u4ukCO+6XlWIXGTlHFdoiIaide4ZyViFm1 Rua+P0Mkr5lv0TEnpLaR8Lv8wYizaXFLH8q6qJtmnd4oAXfbjh c2G7xqYhlGrv4zNOUDo4452kbVlu6j5hUGnoEkZAt X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 13:36:43 -0000 Firstly, a rider... I'm using my own-built MSVC projects for building glibmm and giomm (i.e. I don't use the ones supplied by git) - but having said that, my projects have worked perfectly up until this morning. After updating from git master this morning I noticed that some new sources got added to glibmm (namely, 'glib/src/binding.ccg' and its header file, 'binding.hg'). I added them to my project and glibmm built perfectly (i.e. my project converts them into the corresponding cc and h files). However, when the build then moved to giomm I suddenly see a lot of errors like this (which I've never seen before) and the build fails:- DocsParser.pm:lookup_object_of_method(): Warning: GtkDefs::lookup_object() failed for object name=GNotification, function name=g_notification_set_priority This may be a missing define-object in a *.defs file. There are probably half a dozen similar errors (where 'function name' is 'g_resources_register' / 'g_settings_schema_source_lookup' or whatever). I've never seen these errors before. Can anyone suggest what might be causing them? A new script that I need to run, maybe?? FWIW all the named 'function names' can be found in 'gio/src/gio_methods.defs') - except for the very last one which is 'g_settings_schema_key_range_check' (that one isn't found in any of my .defs files). Does that shed any light on the problem? Thanks, John From kjell.ahlstedt@bredband.net Wed Nov 26 14:32:29 2014 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 restaurant.gnome.org (Postfix) with ESMTP id D382576A67 for ; Wed, 26 Nov 2014 14:32:29 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sQd4enauzX8H for ; Wed, 26 Nov 2014 14:32:27 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id 13283769CC for ; Wed, 26 Nov 2014 14:32:16 +0000 (UTC) Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 00E12D119 for ; Wed, 26 Nov 2014 15:32:14 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtMBAHzjdVRV5ZwjPGdsb2JhbAANToNYV8U8gmeGSQKBIAEBAQEBAQUBAQEBOIQ+AQEEeAEQCw4KCRYPCQMCAQIBMRQGDQEHAQEaiCcIumqXHgEBAQEBAQEBAQEBAQEBAQEBAQEBARMEkHsHhE0Fl0iiTXYBgkkBAQE X-IPAS-Result: AtMBAHzjdVRV5ZwjPGdsb2JhbAANToNYV8U8gmeGSQKBIAEBAQEBAQUBAQEBOIQ+AQEEeAEQCw4KCRYPCQMCAQIBMRQGDQEHAQEaiCcIumqXHgEBAQEBAQEBAQEBAQEBAQEBAQEBARMEkHsHhE0Fl0iiTXYBgkkBAQE X-IronPort-AV: E=Sophos;i="5.07,462,1413237600"; d="scan'208,217";a="823594795" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb5.telenor.se with ESMTP; 26 Nov 2014 15:32:14 +0100 Message-ID: <5475E46D.5060705@bredband.net> Date: Wed, 26 Nov 2014 15:32:13 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Phil Wolff Subject: Re: App menu name References: <547557DD.3070000@centurylink.net> <5475A559.2060302@bredband.net> <5475CC26.700@centurylink.net> In-Reply-To: <5475CC26.700@centurylink.net> Content-Type: multipart/alternative; boundary="------------070402070806030709010007" Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 14:32:29 -0000 This is a multi-part message in MIME format. --------------070402070806030709010007 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit I suppose you have seen the example at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling. Unfortunately it's not mentioned in the gtkmm tutorial. The tutorial would benefit from a whole new chapter, describing Gtk::Application and Gtk::ApplicationWindow. More volunteers would be welcome. The gtkmm tutorial has not been kept up-to-date with the latest changes in gtk+ and gtkmm. As an example, the Gesture classes are not mentioned. There is a short description of command-line options in the section that describes Boxes, https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options. Kjell Den 2014-11-26 13:48, Phil Wolff skrev: > I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm > inclined to regard Unity as the prime suspect, so I'll submit a bug > report accordingly. > > I was also looking at the changes you mention, and I think it would be > great if you could demo the handling of command-line option and file > parameters as well... > > On 2014/11/26 02:03, Kjell Ahlstedt wrote: >> Den 2014-11-26 05:32, Phil Wolff skrev: >>> I'm looking at the example code at >>> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. >>> >>> >>> At runtime the app menu is titled "Unknown Application Name," but >>> the win menus are properly titled as "File," "Edit," and >>> "Notification." >>> >>> Does this imply that something is missing from the code? >>> ______________________________________________ >> I have recently pushed some changes that make the menus/main_menu >> example use an application menu. Then I noticed the same thing. >> >> I use Ubuntu, which has two desktop environments to choose from: >> Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app >> menu and the menubar outside the application's window, and the app >> menu is titled "Unknown Application Name". Gnome Flashback shows both >> the app menu and the menubar in the application's window, and the app >> menu is titled "Gtk::Application Example" (or whatever name is set >> with Glib::set_application_name()). Gtk+'s demo program behaves the >> same. >> >> I don't know if something is missing in these programs, or if it's a >> bug in the Ubuntu Unity desktop shell. Which operating system do you >> use? >> >> Kjell > --------------070402070806030709010007 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit I suppose you have seen the example at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling. Unfortunately it's not mentioned in the gtkmm tutorial. The tutorial would benefit from a whole new chapter, describing Gtk::Application and Gtk::ApplicationWindow. More volunteers would be welcome. The gtkmm tutorial has not been kept up-to-date with the latest changes in gtk+ and gtkmm. As an example, the Gesture classes are not mentioned.

There is a short description of command-line options in the section that describes Boxes, https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options.

Kjell

Den 2014-11-26 13:48, Phil Wolff skrev:
I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm inclined to regard Unity as the prime suspect, so I'll submit a bug report accordingly.

I was also looking at the changes you mention, and I think it would be great if you could demo the handling of command-line option and file parameters as well...

On 2014/11/26 02:03, Kjell Ahlstedt wrote:
Den 2014-11-26 05:32, Phil Wolff skrev:
I'm looking at the example code at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus.

At runtime the app menu is titled "Unknown Application Name," but the win menus are properly titled as "File," "Edit," and "Notification."

Does this imply that something is missing from the code?
______________________________________________
I have recently pushed some changes that make the menus/main_menu example use an application menu. Then I noticed the same thing.

I use Ubuntu, which has two desktop environments to choose from: Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app menu and the menubar outside the application's window, and the app menu is titled "Unknown Application Name". Gnome Flashback shows both the app menu and the menubar in the application's window, and the app menu is titled "Gtk::Application Example" (or whatever name is set with Glib::set_application_name()). Gtk+'s demo program behaves the same.

I don't know if something is missing in these programs, or if it's a bug in the Ubuntu Unity desktop shell. Which operating system do you use?

Kjell


--------------070402070806030709010007-- From kjell.ahlstedt@bredband.net Wed Nov 26 14:44:07 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 3ACE8769AE for ; Wed, 26 Nov 2014 14:44:07 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yteFtKyvauwf for ; Wed, 26 Nov 2014 14:44:06 +0000 (UTC) Received: from smtprelay-b32.telenor.se (smtprelay-b32.telenor.se [213.150.131.21]) by restaurant.gnome.org (Postfix) with ESMTP id ABA067696B for ; Wed, 26 Nov 2014 14:43:55 +0000 (UTC) Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b32.telenor.se (Postfix) with ESMTP id 3BB72EF83E for ; Wed, 26 Nov 2014 15:43:52 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngCAMDmdVRV5ZwjPGdsb2JhbAANTopovwOGH4MRAoEgAQEBAQEBBQEBAQE4hD4BAQR4ARALBB0WDwkDAgECATEUBg0BBwEBiEG7AZcdAQEBAQEBAQECAQEBAQEBAQEBGZB7B4RNBboVg0ABAQE X-IPAS-Result: AngCAMDmdVRV5ZwjPGdsb2JhbAANTopovwOGH4MRAoEgAQEBAQEBBQEBAQE4hD4BAQR4ARALBB0WDwkDAgECATEUBg0BBwEBiEG7AZcdAQEBAQEBAQECAQEBAQEBAQEBGZB7B4RNBboVg0ABAQE X-IronPort-AV: E=Sophos;i="5.07,462,1413237600"; d="scan'208,217";a="118949372" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb2.telenor.se with ESMTP; 26 Nov 2014 15:43:52 +0100 Message-ID: <5475E728.3050801@bredband.net> Date: Wed, 26 Nov 2014 15:43:52 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John Emmas Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> In-Reply-To: <5475D75B.8040506@creativepost.co.uk> Content-Type: multipart/alternative; boundary="------------070700060405030807010605" Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 14:44:07 -0000 This is a multi-part message in MIME format. --------------070700060405030807010605 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit When I deleted the glibmm/gio/src/.stamps directory, thus forcing gmmproc to process all .hg an .ccg files, I got 7 warnings of the type you mention. When I did the same with gtkmm/gtk/src/.stamps, I got 9 such warnings. Those warnings are quite common. They only affect the documentation that gmmproc generates. gmmproc fails to convert a C function name to a corresponding C++ method name. It shouldn't make the build fail. I'm sure you've got similar warnings before, just you haven't noticed them when the build succeeded. You should probably search for the reason for the build failure somewhere else. Did any compilation start? Did you get compilation errors? Kjell Den 2014-11-26 14:36, John Emmas skrev: > Firstly, a rider... I'm using my own-built MSVC projects for building > glibmm and giomm (i.e. I don't use the ones supplied by git) - but > having said that, my projects have worked perfectly up until this > morning. > > After updating from git master this morning I noticed that some new > sources got added to glibmm (namely, 'glib/src/binding.ccg' and its > header file, 'binding.hg'). I added them to my project and glibmm > built perfectly (i.e. my project converts them into the corresponding > cc and h files). > > However, when the build then moved to giomm I suddenly see a lot of > errors like this (which I've never seen before) and the build fails:- > > DocsParser.pm:lookup_object_of_method(): Warning: > GtkDefs::lookup_object() failed > for object name=GNotification, function > name=g_notification_set_priority > This may be a missing define-object in a *.defs file. > > There are probably half a dozen similar errors (where 'function name' > is 'g_resources_register' / 'g_settings_schema_source_lookup' or > whatever). I've never seen these errors before. Can anyone suggest > what might be causing them? A new script that I need to run, maybe?? > > FWIW all the named 'function names' can be found in > 'gio/src/gio_methods.defs') - except for the very last one which is > 'g_settings_schema_key_range_check' (that one isn't found in any of my > .defs files). Does that shed any light on the problem? > > Thanks, > John > --------------070700060405030807010605 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit When I deleted the glibmm/gio/src/.stamps directory, thus forcing gmmproc to process all .hg an .ccg files, I got 7 warnings of the type you mention. When I did the same with gtkmm/gtk/src/.stamps, I got 9 such warnings. Those warnings are quite common. They only affect the documentation that gmmproc generates. gmmproc fails to convert a C function name to a corresponding C++ method name. It shouldn't make the build fail. I'm sure you've got similar warnings before, just you haven't noticed them when the build succeeded.

You should probably search for the reason for the build failure somewhere else. Did any compilation start? Did you get compilation errors?

Kjell

Den 2014-11-26 14:36, John Emmas skrev:
Firstly, a rider...  I'm using my own-built MSVC projects for building glibmm and giomm (i.e. I don't use the ones supplied by git) - but having said that, my projects have worked perfectly up until this morning.

After updating from git master this morning I noticed that some new sources got added to glibmm (namely, 'glib/src/binding.ccg' and its header file, 'binding.hg').  I added them to my project and glibmm built perfectly (i.e. my project converts them into the corresponding cc and h files).

However, when the build then moved to giomm I suddenly see a lot of errors like this (which I've never seen before) and the build fails:-

      DocsParser.pm:lookup_object_of_method(): Warning: GtkDefs::lookup_object() failed
          for object name=GNotification, function name=g_notification_set_priority
              This may be a missing define-object in a *.defs file.

There are probably half a dozen similar errors (where 'function name' is 'g_resources_register' / 'g_settings_schema_source_lookup' or whatever).  I've never seen these errors before.  Can anyone suggest what might be causing them?  A new script that I need to run, maybe??

FWIW all the named 'function names' can be found in 'gio/src/gio_methods.defs') - except for the very last one which is 'g_settings_schema_key_range_check' (that one isn't found in any of my .defs files).  Does that shed any light on the problem?

Thanks,
John


--------------070700060405030807010605-- From john@creativepost.co.uk Wed Nov 26 18:59:30 2014 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 restaurant.gnome.org (Postfix) with ESMTP id BC68B76A06 for ; Wed, 26 Nov 2014 18:59:30 +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_00=-1.9, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7HnSc79RAmoI for ; Wed, 26 Nov 2014 18:59:29 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by restaurant.gnome.org (Postfix) with ESMTP id 3B271769F7 for ; Wed, 26 Nov 2014 18:59:18 +0000 (UTC) Received: from [192.168.1.2] (88-104-7-179.dynamic.dsl.as9105.com [88.104.7.179]) by mrelayeu.kundenserver.de (node=mreue002) with ESMTP (Nemesis) id 0Ly6KL-1XxTQP2AOD-015WtC; Wed, 26 Nov 2014 19:59:16 +0100 Message-ID: <54762304.7060704@creativepost.co.uk> Date: Wed, 26 Nov 2014 18:59:16 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> In-Reply-To: <5475E728.3050801@bredband.net> Content-Type: multipart/alternative; boundary="------------040805030309060801010901" X-Provags-ID: V02:K0:n8htoRtQdadkblXRskdIv1eMOg9M+TMQQFMweADxgP+ oFbI7ArWpJ4SMKhnWb/d46diIdVuomB5uH3eqGp0gmuWqUyzfc mFLnkHd6Vas2OYE2tY6PPXo1mpOMJm0MsbiL71cFmqTmoUmrcU OaJKunBpfVYlLAlRq+HOPc22Pv+i34K5FcxVvY1wLD5EepaL1v 88CeKpLkiI8ppX9pz03AE8QYCM8n7vGe5djs/AVixij7d1vM07 IAIodpZ+L4a7JW8OQ0hDU82l8EPOUfTjU8yn4ed9d8Uc1hKl4Q e4flhcrYKCxsv+x9JVSRSTd/pDTBrdkS7bggx0kyFzCFE+hwui 08q68r467NP9iZwlADALUAo0Sh8jAMeQKFBA5Iqk+ X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 18:59:30 -0000 This is a multi-part message in MIME format. --------------040805030309060801010901 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 26/11/2014 14:43, Kjell Ahlstedt wrote: > Those warnings are quite common. They only affect the documentation > that gmmproc generates. gmmproc fails to convert a C function name to > a corresponding C++ method name. It shouldn't make the build fail. I'm > sure you've got similar warnings before, just you haven't noticed them > when the build succeeded. > Hi Kjell and thanks for the prompt reply. Firstly, you're right about those messages. My last update was about a fortnight ago (Nov 11th) and by a stroke of luck I backed it up. So I restored my old backup and ran a build (which worked). I only see 4 of those messages for giomm - but they do include the one I thought might be problematic (g_settings_schema_key_range_check). So I think you're right about that just being coincidental. > > You should probably search for the reason for the build failure > somewhere else. Did any compilation start? Did you get compilation errors? > No - in fact it fails exactly at the point where the compilation would normally begin. But there's no obvious reason. All the ccg and hg files got converted (correctly AFAICT). And I can compile the generated cc files (manually) and link them manually. It just won't flow from the pre-compile step into the compile stage any more. I decided to examine the generated cc and h files for giomm. 'resource.cc', 'resource.h' and 'error.h' are all significantly bigger than a fortnight ago but they all compile okay (so I don't think they're causing any problem) and everything else looks the same! Does gmmproc have any kind of return value? I'm just wondering if it might be returning an error status now, when it wasn't previously? Anyway, I'm too tired tonight to do any more work on this. It'll have to wait until I feel a bit fresher, tomorrow! John --------------040805030309060801010901 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 26/11/2014 14:43, Kjell Ahlstedt wrote:
Those warnings are quite common. They only affect the documentation that gmmproc generates. gmmproc fails to convert a C function name to a corresponding C++ method name. It shouldn't make the build fail. I'm sure you've got similar warnings before, just you haven't noticed them when the build succeeded.


Hi Kjell and thanks for the prompt reply.

Firstly, you're right about those messages.  My last update was about a fortnight ago (Nov 11th) and by a stroke of luck I backed it up.  So I restored my old backup and ran a build (which worked).  I only see 4 of those messages for giomm - but they do include the one I thought might be problematic (g_settings_schema_key_range_check).  So I think you're right about that just being coincidental.



You should probably search for the reason for the build failure somewhere else. Did any compilation start? Did you get compilation errors?


No - in fact it fails exactly at the point where the compilation would
normally begin. But there's no obvious reason.  All the ccg and hg files got converted (correctly AFAICT).  And I can compile the generated cc files (manually) and link them manually.  It just won't flow from the pre-compile step into the compile stage any more.

I decided to examine the generated cc and h files for giomm.  'resource.cc', 'resource.h' and 'error.h' are all significantly bigger than a fortnight ago but they all compile okay (so I don't think they're causing any problem) and everything else looks the same!

Does gmmproc have any kind of return value?  I'm just wondering if it might be returning an error status now, when it wasn't previously?

Anyway, I'm too tired tonight to do any more work on this.  It'll have to wait until I feel a bit fresher, tomorrow!

John
--------------040805030309060801010901-- From adiabat@centurylink.net Thu Nov 27 00:07:23 2014 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 restaurant.gnome.org (Postfix) with ESMTP id D821A76A79 for ; Thu, 27 Nov 2014 00:07:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.011 X-Spam-Level: X-Spam-Status: No, score=-2.011 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, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bYBycvdgOJIB for ; Thu, 27 Nov 2014 00:07:22 +0000 (UTC) Received: from smtp.centurylink.net (mail.centurylink.net [205.219.233.9]) by restaurant.gnome.org (Postfix) with ESMTP id 1325C76983 for ; Thu, 27 Nov 2014 00:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1417046829; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=cTELQdWdhXyYXXwYW0zKXO65NpI=; b=Ejo76uO3NB+sgtLBDXNdyVdZ5MS6VumVp3mUYHzHs0KW2nFPvzRSskiVlxk30MS+ J5D9vX/xXNNpwHbdyphcTdIPhyO3B204v/A8tZRJKTenBnqMjc2S9PrTwTkHTExz TjLhJY/Di4NGUIovp6VzKJ9SQxYUKGqRzhan7rk0n5shp74CNTsN3r/73cna5whx XLBTVUT7ntcCg4EgzV8uKchHxivrUzcUixzwMcMJ2uLyZskaKRAPPxgXp67S5af7 nNrUCUWl5S3edmQmnxovbizKdbYAu7JCNscMKgO0AcrBfD/Cj1U86OezqDJiuf58 RdFa4xyGeZOpLNedd6m9oA==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=IdgFqBWa c=1 sm=1 a=H03XQNzO3ZIBWxh40sAgAw==:17 a=5ZTteq0x3j8A:10 a=N659UExz7-8A:10 a=I_5RNyk1AAAA:8 a=aiIX5UjjAAAA:8 a=WAzi3h8D1lWZKPi0etcA:9 a=pILNOxqGKmIA:10 a=2ipMPbs7hIUA:10 a=H03XQNzO3ZIBWxh40sAgAw==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YWRpYWJhdEBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=adiabat@centurylink.net; auth=pass (LOGIN) Received: from [75.165.62.138] ([75.165.62.138:5817] helo=[192.168.0.101]) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-SHA) id E1/1C-02382-C2B66745; Wed, 26 Nov 2014 19:07:09 -0500 Message-ID: <54766B2C.2010805@centurylink.net> Date: Wed, 26 Nov 2014 16:07:08 -0800 From: Phil Wolff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Kjell Ahlstedt Subject: Re: App menu name References: <547557DD.3070000@centurylink.net> <5475A559.2060302@bredband.net> <5475CC26.700@centurylink.net> <5475E46D.5060705@bredband.net> In-Reply-To: <5475E46D.5060705@bredband.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 00:07:23 -0000 I am now seeing my application's name as the app menu title, and it appeared after I created a .desktop file for the application. When I remove the ,desktop file, the app menu title reverts to "Unknown Application Name." On 2014/11/26 06:32, Kjell Ahlstedt wrote: > I suppose you have seen the example at > https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling. > Unfortunately it's not mentioned in the gtkmm tutorial. The tutorial > would benefit from a whole new chapter, describing Gtk::Application > and Gtk::ApplicationWindow. More volunteers would be welcome. The > gtkmm tutorial has not been kept up-to-date with the latest changes in > gtk+ and gtkmm. As an example, the Gesture classes are not mentioned. > > There is a short description of command-line options in the section > that describes Boxes, > https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options. > > Kjell > > Den 2014-11-26 13:48, Phil Wolff skrev: >> I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm >> inclined to regard Unity as the prime suspect, so I'll submit a bug >> report accordingly. >> >> I was also looking at the changes you mention, and I think it would >> be great if you could demo the handling of command-line option and >> file parameters as well... >> >> On 2014/11/26 02:03, Kjell Ahlstedt wrote: >>> Den 2014-11-26 05:32, Phil Wolff skrev: >>>> I'm looking at the example code at >>>> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. >>>> >>>> >>>> At runtime the app menu is titled "Unknown Application Name," but >>>> the win menus are properly titled as "File," "Edit," and >>>> "Notification." >>>> >>>> Does this imply that something is missing from the code? >>>> ______________________________________________ >>> I have recently pushed some changes that make the menus/main_menu >>> example use an application menu. Then I noticed the same thing. >>> >>> I use Ubuntu, which has two desktop environments to choose from: >>> Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app >>> menu and the menubar outside the application's window, and the app >>> menu is titled "Unknown Application Name". Gnome Flashback shows >>> both the app menu and the menubar in the application's window, and >>> the app menu is titled "Gtk::Application Example" (or whatever name >>> is set with Glib::set_application_name()). Gtk+'s demo program >>> behaves the same. >>> >>> I don't know if something is missing in these programs, or if it's a >>> bug in the Ubuntu Unity desktop shell. Which operating system do you >>> use? >>> >>> Kjell >> > -- If sunbeams were weapons of war, we would have had solar energy centuries ago. -- George Porter From john@creativepost.co.uk Thu Nov 27 10:05:25 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 2B5A976A8C for ; Thu, 27 Nov 2014 10:05:25 +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_00=-1.9, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2OKWIANsVuiW for ; Thu, 27 Nov 2014 10:05:18 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by restaurant.gnome.org (Postfix) with ESMTP id 605C276A8B for ; Thu, 27 Nov 2014 10:05:07 +0000 (UTC) Received: from [192.168.1.2] (88-104-8-171.dynamic.dsl.as9105.com [88.104.8.171]) by mrelayeu.kundenserver.de (node=mreue002) with ESMTP (Nemesis) id 0MXR93-1XOBW80RCX-00WBoU; Thu, 27 Nov 2014 11:05:05 +0100 Message-ID: <5476F748.2010902@creativepost.co.uk> Date: Thu, 27 Nov 2014 10:04:56 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> In-Reply-To: <54762304.7060704@creativepost.co.uk> Content-Type: multipart/alternative; boundary="------------010205070008050206040305" X-Provags-ID: V02:K0:4VDw3DN6V10Gs5qn0ZM51dBsMhHo/G6i9ng0hOXW8NI eL70EPxW6q4SGfSgnBUBrhsZqwtwYS/Rg63Vx0p8cTiawy2ZR5 zsB283Efdh0Jg/b8uSu3kAX2O20wkCbs5DGHm9LLdlIovb8WEk Moxb+ZnIs/a1g2SXXylLcgIOcyRv8/urfDNBtAyGZopkL9rhW7 XUlRhR/HWCN2+ncOgVpT+PEN3NxlQWO60lkPJREPXBOlIFy3oI wxgdSnm2/mD5VMjbWpCh2fHyxcqgaTDu0HwCijo0k0I5IKTlxE sHgYuXxVT81+YGLU46dKXgRPMdQOTn2tToQJw8/91ITKAGjidS x1DxSMUEVbBDF/8Fonl7rIT67U7stDiA9yluMgIy+ X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 10:05:25 -0000 This is a multi-part message in MIME format. --------------010205070008050206040305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 26/11/2014 18:59, John Emmas wrote: > . > Does gmmproc have any kind of return value? I'm just wondering if it > might be returning an error status now, when it wasn't previously? > > Anyway, I'm too tired tonight to do any more work on this. It'll have > to wait until I feel a bit fresher, tomorrow! > Well.. even after some more tests this morning, I'm still as baffled as ever! When I examine my build log, the only instance of the word "error" (which isn't part of a function name) is this line:- gmmproc: error: GIOErrorEnum: Example code discarded. I don't see that line in the previous version (which builds okay). But does that indicate a genuine error? Up to now, I've assumed it doesn't - because, in both builds, I do see similar looking lines, such as:- gmmproc: enums: GIOErrorEnum: Example code discarded. gmmproc: file: g_file_get_uri_scheme: Example code discarded. So I've assumed that the first one doesn't indicate an actual build error. Is that assumption safe? John --------------010205070008050206040305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 26/11/2014 18:59, John Emmas wrote:
.
Does gmmproc have any kind of return value?  I'm just wondering if it might be returning an error status now, when it wasn't previously?

Anyway, I'm too tired tonight to do any more work on this.  It'll have to wait until I feel a bit fresher, tomorrow!


Well..  even after some more tests this morning, I'm still as baffled as ever!  When I examine my build log, the only instance of the word "error" (which isn't part of a function name) is this line:-

      gmmproc: error: GIOErrorEnum: Example code discarded.

I don't see that line in the previous version (which builds okay).  But does that indicate a genuine error?  Up to now, I've assumed it doesn't - because, in both builds, I do see similar looking lines, such as:-

      gmmproc: enums: GIOErrorEnum: Example code discarded.
      gmmproc: file: g_file_get_uri_scheme: Example code discarded.

So I've assumed that the first one doesn't indicate an actual build error.  Is that assumption safe?

John
--------------010205070008050206040305-- From kjell.ahlstedt@bredband.net Thu Nov 27 10:24:11 2014 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 restaurant.gnome.org (Postfix) with ESMTP id A1FD576A73 for ; Thu, 27 Nov 2014 10:24:11 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VCvCTTCKO-DW for ; Thu, 27 Nov 2014 10:24:09 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id 2B4F476A8B for ; Thu, 27 Nov 2014 10:23:58 +0000 (UTC) Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id B867CDBFD for ; Thu, 27 Nov 2014 11:23:56 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIBAFH7dlRV5ZwjPGdsb2JhbAANTopoxGiDEQKBIgEBAQEBAQUBAQEBOIQ+AQEEeAEQCwQUCRYPCQMCAQIBMRQGDQEHAQGIQbsIlywBAQEBAQEBAwEBAQEBAQEBARmQeweETQW6GoM4AQEB X-IPAS-Result: AuIBAFH7dlRV5ZwjPGdsb2JhbAANTopoxGiDEQKBIgEBAQEBAQUBAQEBOIQ+AQEEeAEQCwQUCRYPCQMCAQIBMRQGDQEHAQGIQbsIlywBAQEBAQEBAwEBAQEBAQEBARmQeweETQW6GoM4AQEB X-IronPort-AV: E=Sophos;i="5.07,468,1413237600"; d="scan'208,217";a="690040849" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb4.telenor.se with ESMTP; 27 Nov 2014 11:23:56 +0100 Message-ID: <5476FBBB.8010600@bredband.net> Date: Thu, 27 Nov 2014 11:23:55 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John Emmas Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> In-Reply-To: <5476F748.2010902@creativepost.co.uk> Content-Type: multipart/alternative; boundary="------------080506090708090706010608" Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 10:24:11 -0000 This is a multi-part message in MIME format. --------------080506090708090706010608 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Den 2014-11-27 11:04, John Emmas skrev: > On 26/11/2014 18:59, John Emmas wrote: >> . >> Does gmmproc have any kind of return value? I'm just wondering if it >> might be returning an error status now, when it wasn't previously? >> >> Anyway, I'm too tired tonight to do any more work on this. It'll have >> to wait until I feel a bit fresher, tomorrow! >> > > Well.. even after some more tests this morning, I'm still as baffled > as ever! When I examine my build log, the only instance of the word > "error" (which isn't part of a function name) is this line:- > > gmmproc: error: GIOErrorEnum: Example code discarded. > > I don't see that line in the previous version (which builds okay). > But does that indicate a genuine error? Up to now, I've assumed it > doesn't - because, in both builds, I do see similar looking lines, > such as:- > > gmmproc: enums: GIOErrorEnum: Example code discarded. > gmmproc: file: g_file_get_uri_scheme: Example code discarded. > > So I've assumed that the first one doesn't indicate an actual build > error. Is that assumption safe? > > John Yes, it's a safe assumption. "error" here just means that the message was printed while processing error.hg. Kjell --------------080506090708090706010608 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Den 2014-11-27 11:04, John Emmas skrev:
On 26/11/2014 18:59, John Emmas wrote:
.
Does gmmproc have any kind of return value?  I'm just wondering if it might be returning an error status now, when it wasn't previously?

Anyway, I'm too tired tonight to do any more work on this.  It'll have to wait until I feel a bit fresher, tomorrow!


Well..  even after some more tests this morning, I'm still as baffled as ever!  When I examine my build log, the only instance of the word "error" (which isn't part of a function name) is this line:-

      gmmproc: error: GIOErrorEnum: Example code discarded.

I don't see that line in the previous version (which builds okay).  But does that indicate a genuine error?  Up to now, I've assumed it doesn't - because, in both builds, I do see similar looking lines, such as:-

      gmmproc: enums: GIOErrorEnum: Example code discarded.
      gmmproc: file: g_file_get_uri_scheme: Example code discarded.

So I've assumed that the first one doesn't indicate an actual build error.  Is that assumption safe?

John
Yes, it's a safe assumption. "error" here just means that the message was printed while processing error.hg.

Kjell
--------------080506090708090706010608-- From john@creativepost.co.uk Thu Nov 27 12:06:29 2014 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 restaurant.gnome.org (Postfix) with ESMTP id B958D76A66 for ; Thu, 27 Nov 2014 12:06:29 +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_00=-1.9, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rp4zp6BWY3xR for ; Thu, 27 Nov 2014 12:06:27 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by restaurant.gnome.org (Postfix) with ESMTP id D330976A11 for ; Thu, 27 Nov 2014 12:06:11 +0000 (UTC) Received: from [192.168.1.2] (88-104-8-171.dynamic.dsl.as9105.com [88.104.8.171]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0LmNdq-1YSkM13Bxa-00Zv0H; Thu, 27 Nov 2014 13:06:08 +0100 Message-ID: <547713AE.3010502@creativepost.co.uk> Date: Thu, 27 Nov 2014 12:06:06 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> In-Reply-To: <5476FBBB.8010600@bredband.net> Content-Type: multipart/alternative; boundary="------------010605000605020801000507" X-Provags-ID: V02:K0:uqT8ekJXR2NXpBWHllCQv2ozC5oNnDeSDzTM3JjTCQh PMl0zkcLhXEGm1etpLlTXY16nUgtcuUB3V1JhYffg+UTPBIHKH j19s11M/N5IjYW6aFB+Mf9bZhzVcHnI+uHJZ7BHxyv3hCovCSx P/EX5K6yS7mqoa+ab4Illw0ctjIeinhkDigI5wmN4pWo7lgZqJ MIihnOLztO+bDObpD9ocT7MTuyDi5X9oJ2r847upG8y38nbjS8 DFP686J7F0Blu+bf18bNUd/ET6yOUNdjt+CQf1nZuviYgyrj9F xi9PGJOyGKJkbwpCVw79Iui0vIiL0lHx8Sgl37NAIzT8TbdeJZ RFzQvJ805cnBcDfV6RXTaxQCavcmh4hUEsEtaSgcL X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 12:06:29 -0000 This is a multi-part message in MIME format. --------------010605000605020801000507 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 27/11/2014 10:23, Kjell Ahlstedt wrote: > >> On 26/11/2014 18:59, John Emmas wrote: >> >> So I've assumed that the first one doesn't indicate an actual build >> error. Is that assumption safe? >> > Yes, it's a safe assumption. "error" here just means that the message > was printed while processing error.hg. > Hi Kjell (and first of all, apologies for this being long-winded). You're not going to believe this - it must surely be the world's biggest irony - but processing error.hg is somehow producing an error now!! I mentioned yesterday how the following 3 files had increased (in their generated size) since my last build:- gio/giomm/resource.cc gio/giomm/resource.h gio/giomm/error.h I can understand the first two (because resource.ccg and resource.hg have also increased in size). But error.hg is exactly the same as it was two weeks ago. So what's making error.h so much bigger..? Up until a fortnight ago, line 51 of the generated 'error'h' looked like this:- class Error : public Glib::Error { public: enum Code { // a bunch of enums }; // remaining generated code }; But since yesterday, that same code section now looks like this:- class Error : public Glib::Error { public: /** @var Code FAILED * Generic error condition for when an operation fails and no more specific IOErrorEnum value is defined. * * @var Code NOT_FOUND * File not found. * * @var Code EXISTS * File already exists. * * @var Code IS_DIRECTORY * File is a directory. * * @var Code NOT_DIRECTORY * File is not a directory. * // and a whole bunch of similar comments */ enum Code { // the same enums as before }; // remaining generated code }; Strictly speaking, these are all just extra comments - but somehow, they seem to have introduced an error condition while processing 'error.hg'. Does that help explain anything? How can an unchanged input file be producing different output? John --------------010605000605020801000507 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 27/11/2014 10:23, Kjell Ahlstedt wrote:

On 26/11/2014 18:59, John Emmas wrote:

So I've assumed that the first one doesn't indicate an actual build error.  Is that assumption safe?

Yes, it's a safe assumption. "error" here just means that the message was printed while processing error.hg.


Hi Kjell (and first of all, apologies for this being long-winded).  You're not going to believe this - it must surely be the world's biggest irony - but processing error.hg is somehow producing an error now!!

I mentioned yesterday how the following 3 files had increased (in their generated size) since my last build:-

        gio/giomm/resource.cc
        gio/giomm/resource.h
        gio/giomm/error.h

I can understand the first two (because resource.ccg and resource.hg have also increased in size).  But error.hg is exactly the same as it was two weeks ago.  So what's making error.h so much bigger..?  Up until a fortnight ago, line 51 of the generated 'error'h' looked like this:-

        class Error : public Glib::Error
        {
         public:
          enum Code
          {
              // a bunch of enums
          };

          // remaining generated code
        };

But since yesterday, that same code section now looks like this:-

        class Error : public Glib::Error
        {
         public:
           /**  @var Code FAILED
            *  Generic error condition for when an operation fails and no more specific IOErrorEnum value is defined.
            *
            *  @var Code NOT_FOUND
            *  File not found.
            *
            *  @var Code EXISTS
            *  File already exists.
            *
            *  @var Code IS_DIRECTORY
            *  File is a directory.
            *
            *  @var Code NOT_DIRECTORY
            *  File is not a directory.
            *
            // and a whole bunch of similar comments

            */
          enum Code
          {
              // the same enums as before
          };

          // remaining generated code
        };

Strictly speaking, these are all just extra comments - but somehow, they seem to have introduced an error condition while processing 'error.hg'.  Does that help explain anything?  How can an unchanged input file be producing different output?

John
--------------010605000605020801000507-- From murrayc@murrayc.com Thu Nov 27 13:08:49 2014 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 restaurant.gnome.org (Postfix) with ESMTP id CFB9876A11 for ; Thu, 27 Nov 2014 13:08:49 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0fyPhgRM8c2p for ; Thu, 27 Nov 2014 13:08:48 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by restaurant.gnome.org (Postfix) with ESMTP id 422657622D for ; Thu, 27 Nov 2014 13:08:37 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4DCFC2078F; Thu, 27 Nov 2014 08:08:36 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 27 Nov 2014 08:08:36 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:subject:from:to:cc :date:in-reply-to:references:content-type:mime-version :content-transfer-encoding; s=smtpout; bh=k/8eq8owlvVwxViPSTzx/u x4DaQ=; b=YWLnlTSpvGoOotYu2VLjLhfb/6yyPjGIxpKfagRDI7xMaF7OAGhrme Xsg3Wh6/sTKBKAQWmGFW99UGAZWiGUOp5F/gmfmoCI3/yzexefZ4HDIoYwKC/sxc GaZ6Hs1ivvIbRWivmNRlB7vFAHEgvZSrtrqXU6bRNj9XZcQNMOEyI= X-Sasl-enc: +rzZgFG+mEsaITvL8Tc0wFwamCceMxaxnoGuoHPvRGVn 1417093715 Received: from murrayc-ThinkPad-X220 (unknown [88.217.180.22]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D6356800F4; Thu, 27 Nov 2014 08:08:35 -0500 (EST) Message-ID: <1417093714.832.2.camel@murrayc.com> Subject: Re: MSVC build problems after updating from git From: Murray Cumming To: John Emmas Date: Thu, 27 Nov 2014 14:08:34 +0100 In-Reply-To: <547713AE.3010502@creativepost.co.uk> References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 13:08:49 -0000 On Thu, 2014-11-27 at 12:06 +0000, John Emmas wrote: > Strictly speaking, these are all just extra comments - but somehow, > they seem to have introduced an error condition while processing > 'error.hg'. Does that help explain anything? How can an unchanged > input file be producing different output? Maybe you have a bad doxygen? It's not uncommon for various versions of doxygen to crash on various things. The tarball has the built documentation files so you don't need to build them. -- Murray Cumming murrayc@murrayc.com www.murrayc.com From john@creativepost.co.uk Thu Nov 27 13:38:55 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 88D1676A11 for ; Thu, 27 Nov 2014 13:38:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.879 X-Spam-Level: X-Spam-Status: No, score=-0.879 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ryk7LjEA2j7E for ; Thu, 27 Nov 2014 13:38:54 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by restaurant.gnome.org (Postfix) with ESMTP id E45677622D for ; Thu, 27 Nov 2014 13:38:43 +0000 (UTC) Received: from [192.168.1.2] (88-104-8-171.dynamic.dsl.as9105.com [88.104.8.171]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0LaNXn-1YKlFH3FIl-00mGfE; Thu, 27 Nov 2014 14:38:40 +0100 Message-ID: <5477295E.80001@creativepost.co.uk> Date: Thu, 27 Nov 2014 13:38:38 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> In-Reply-To: <1417093714.832.2.camel@murrayc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:V2o+p3iuulY7TXhz1k0qmtiNeIT4/yxu+JeA5PxJfZC hZcW5PDA/RPa1emoR9ECpYXKgIb80NraVPxVeRaNf2CL0QIIgj Datklfk4jqfZBWEvL1ZINlVIzcdhnYGqlQpb64y/PQwPXyTHP/ 4Ul5Vnc7ZF028Mi8NoeUjOI95YQouIvoSFGA6aBZzDrZgncS/4 pdmk4KhIigXmPDM508vyT2+rUrkb96xH4e37Svajm9KjAPAJiW cAc18UQhuUFEbAEnfTkAVWmRZMCEHKCe3tUtXJjK7ykeRcOyt4 OxBcOJM1zzDnTFV99UeiQFwTUrd3PuJvNa+WlAFlZsz73V2Qtt DyPQB2MuLFjjsLb4059FwZTBrovQjz4BmsPdR6cyn X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 13:38:55 -0000 On 27/11/2014 13:08, Murray Cumming wrote: > Maybe you have a bad doxygen? It's not uncommon for various versions of > doxygen to crash on various things. > Hi Murray, To the best of my knowledge, doxygen isn't involved in the process. What I mean by that is that I'm not (consciously) generating any documentation files. Or are you saying that it'll be doxygen that's inserting all those extra comments all of a sudden? John From kjell.ahlstedt@bredband.net Thu Nov 27 14:25:10 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 337FA76A22 for ; Thu, 27 Nov 2014 14:25:10 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IwnGWq3JzvIt for ; Thu, 27 Nov 2014 14:25:08 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id 53FDF76A11 for ; Thu, 27 Nov 2014 14:24:57 +0000 (UTC) Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id D43832467A for ; Thu, 27 Nov 2014 15:24:55 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQBANAzd1RV5ZwjPGdsb2JhbAANToNXyB+FdlUCgR8BAQEBAQEFAQEBATiEPgEBBDhAARALGAkWDwkDAgECATEUBg0BBwEBiEEIuxqXIQEBAQEBAQEBAQEBAQEBAQEBAQEVBJB7B4RNAQSXTKJOc4JFAQEB X-IPAS-Result: AsQBANAzd1RV5ZwjPGdsb2JhbAANToNXyB+FdlUCgR8BAQEBAQEFAQEBATiEPgEBBDhAARALGAkWDwkDAgECATEUBg0BBwEBiEEIuxqXIQEBAQEBAQEBAQEBAQEBAQEBAQEVBJB7B4RNAQSXTKJOc4JFAQEB X-IronPort-AV: E=Sophos;i="5.07,469,1413237600"; d="scan'208";a="119762992" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb2.telenor.se with ESMTP; 27 Nov 2014 15:24:46 +0100 Message-ID: <5477342D.9010901@bredband.net> Date: Thu, 27 Nov 2014 15:24:45 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John Emmas Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> In-Reply-To: <5477295E.80001@creativepost.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 14:25:10 -0000 Den 2014-11-27 14:38, John Emmas skrev: > On 27/11/2014 13:08, Murray Cumming wrote: >> Maybe you have a bad doxygen? It's not uncommon for various versions of >> doxygen to crash on various things. >> > > Hi Murray, > > To the best of my knowledge, doxygen isn't involved in the process. > What I mean by that is that I'm not (consciously) generating any > documentation files. > > Or are you saying that it'll be doxygen that's inserting all those > extra comments all of a sudden? > > John The extra comments are inserted by gmmproc. All ,hg that contain _WRAP_GERROR directives will result in bigger .h files now because of this patch that I added to the git repository last week: https://git.gnome.org/browse/glibmm/commit/?id=491b05f2a8e503109400e692aee0f5f7da788284 I'm surprised that those comments can make the build fail. They look like perfectly normal comments when I generate error.h on my Ubuntu 14.10 system. Kjell From john@creativepost.co.uk Thu Nov 27 14:42:50 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 2A2FC76A22 for ; Thu, 27 Nov 2014 14:42:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.879 X-Spam-Level: X-Spam-Status: No, score=-0.879 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M4EcUTaavQbM for ; Thu, 27 Nov 2014 14:42:48 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by restaurant.gnome.org (Postfix) with ESMTP id 2ADF576A11 for ; Thu, 27 Nov 2014 14:42:37 +0000 (UTC) Received: from [192.168.1.2] (88-104-8-171.dynamic.dsl.as9105.com [88.104.8.171]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0LknvV-1YRyBT2R4n-00al24; Thu, 27 Nov 2014 15:42:34 +0100 Message-ID: <54773858.3080602@creativepost.co.uk> Date: Thu, 27 Nov 2014 14:42:32 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> In-Reply-To: <5477342D.9010901@bredband.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:cWD3J/0WX4BZuDtg2085ArL/RWwGkKZEtLLvTPbdGV2 GyYa7HIzCtEjizo9IQ/SBf7GNRqbUTTJLNevVpeXzBHUr213Ga sjtKUyEESIKEVVIZ/bHnL+or3DIUz5A4ITbOiKB5sS/NVbE63m czOx8phw6lB62IdgoqiCZAKRZqP4Xiei6zqnsZg2x5tryYIsI7 pKY1R8H5cB2v9q2p/SuohmhdT+EMkvs5NaA21Rc0VWdJpPlz9J UybaqqjiZi4skTUapALD9yO6i9QyquTcgi60vq7TStRQekX8ck d5TprJxYwdvJAFERFs2WB8eruxppId30K+imL9LY9EIHOy0xS8 5Zw9TX5TVDuYdstYNbXz25glA0rFLypjClLnBFfzk X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 14:42:50 -0000 On 27/11/2014 14:24, Kjell Ahlstedt wrote: > > The extra comments are inserted by gmmproc. All ,hg that contain > _WRAP_GERROR directives will result in bigger .h files now because of > this patch that I added to the git repository last week: > https://git.gnome.org/browse/glibmm/commit/?id=491b05f2a8e503109400e692aee0f5f7da788284 > > > I'm surprised that those comments can make the build fail. They look > like perfectly normal comments when I generate error.h on my Ubuntu > 14.10 system. > I agree Kjell. Not only do the comments look normal but the generated files ('error.cc' and 'error.h') compile without any problems. It's the previous stage of generating them which seems to be going wrong. All tolled I have a list of around 125 x ccg/hg pairs which I process. If I just take that one pair out of the list, everything builds normally again (except that ultimately, 'error.cc' ends up as a missing file, of course!) Sadly, I need to take my sister for a hospital appointment this afternoon so it'll be tomorrow before I can take a good look at that patch. It looks like only 2 files were affected though - so I might try reverting them temporarily and see if that changes anything. Thanks Kjell and Murray for your help with this. John From lts-rudolph@gmx.de Fri Nov 28 07:43:52 2014 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 restaurant.gnome.org (Postfix) with ESMTP id C48D076A97 for ; Fri, 28 Nov 2014 07:43:52 +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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uvmD7868h94h for ; Fri, 28 Nov 2014 07:43:50 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by restaurant.gnome.org (Postfix) with ESMTP id 7A18376A86 for ; Fri, 28 Nov 2014 07:43:38 +0000 (UTC) Received: from [199.64.72.252] by 3capp-gmx-bs02.server.lan (via HTTP); Fri, 28 Nov 2014 08:43:36 +0100 MIME-Version: 1.0 Message-ID: From: "Klaus Rudolph" To: gtkmm-list@gnome.org Subject: strange behaviour with goocanvas signal handler Content-Type: text/plain; charset=UTF-8 Date: Fri, 28 Nov 2014 08:43:36 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:wwC42uIOiusp2PC38seSZI0YG2az6jOZcGwr6GLDsyi E2JPpWItLGtesFWYT1ivKLoPWIKjtJnDCKLe/LwT7C4lhsk7tp tjESSr1Im9V562V/4CjqSJ1PMKGjhkzBwDMS8mmqe7p6YUP2hQ B23pcknG97Wr0E1QIra5658e4Lgz9XCNrrocBwUn1QavPy36+T 1DYT++GEZ3X1C6XhVcAqKG7FcOQmjcIybG6cL5q3isKnCpp4hm FjvEoEmO2NihrciPV6nnXYewBWm/m96CfWz0TmcyErLEXSv6Fp E0quSg= X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 07:43:52 -0000 Hi, I have to deal with a workaround for a bug https://bugzilla.gnome.org/show_bug.cgi?id=711709 But the behavior is quite strange! After pressing on the circle a dialog is shown (expected). If I press the ok button on the dialog, the whole window hangs on the mouse pointer! This is really not what I expect! :-) To reproduce it: compile prog with: /opt/linux-gnu_4.8.2/bin/g++ `pkg-config gtkmm-3.0 --cflags` `pkg-config goocanvasmm-2.0 --cflags` --std=c++11 -Wall --pedantic -Wextra -O2 `pkg-config gtkmm-3.0 --libs` `pkg-config goocanvasmm-2.0 --libs` main.cpp -g -o go and main.cpp is: #include #include #include Goocanvas::Canvas m_canvas; bool ShowDialog( const Glib::RefPtr& item, GdkEventButton* ev) { enum { OK }; Gtk::Dialog dialog; dialog.add_button( Gtk::Stock::OK, OK); dialog.show_all_children(); dialog.run(); // this line SHOULD! fixes the problem reported in BUG 711709 m_canvas.pointer_ungrab( item, ev->time); return false; } int main(int argc, char* argv[]) { Gtk::Main app(&argc, &argv); Goocanvas::init("example", "0.1", argc, argv); Gtk::Window win; m_canvas.set_size_request(640, 480); m_canvas.set_bounds(0, 0, 800, 800); Glib::RefPtr root = m_canvas.get_root_item(); Glib::RefPtr outer = Goocanvas::Ellipse::create( 100,100,20,20); outer->property_line_width() = 5; outer->property_stroke_color() = "red"; outer->property_fill_color()="blue"; root->add_child( outer ); sigc::connection conn2= outer->signal_button_press_event().connect( sigc::ptr_fun(&ShowDialog)); win.add(m_canvas); win.show_all_children(); Gtk::Main::run(win); return 0; } From john@creativepost.co.uk Fri Nov 28 10:33:24 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 5DE6976937 for ; Fri, 28 Nov 2014 10:33:24 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wsrg6Vk8PrY3 for ; Fri, 28 Nov 2014 10:33:22 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by restaurant.gnome.org (Postfix) with ESMTP id 9DEE8762CF for ; Fri, 28 Nov 2014 10:33:12 +0000 (UTC) Received: from [192.168.1.2] (88-104-6-199.dynamic.dsl.as9105.com [88.104.6.199]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0MJrYu-1XvOmv3qke-0018YC; Fri, 28 Nov 2014 11:33:10 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: MSVC build problems after updating from git From: John Emmas In-Reply-To: <54773858.3080602@creativepost.co.uk> Date: Fri, 28 Nov 2014 10:33:04 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> To: gtkmm X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:CS6dQYz04bcitjMvVrhb39YXL0XOjFLpWcC5/drrBlt fOmDFXmAK2PG988gyl26SI15Yv01fX4sWfbe0kUfXkmOhQsbz4 wKpZrGeKkZn6Jv0TldDDHilnuRAAH7PON/zUpABYlCyohlpC4m UGnojeyPTb8PQqO3He8xW3xSxD4JIq32WEphd6YgZu2O3UC5wa RbIyeSyLSuxlkdvIK0QkWkwYHqdUVaOW3eQibOWbUaiCQMqtys apNL1U6VI9pDReTeQCaN8KHU+sUO/pmEgYfuzm8DmDsjl2/2+X 1J6OiNvfK/Tx3LOF7s64VG+OjvSYgz9TjYY+7LRaS9FJvZfwHs i4oTRYs5SunCXbi/gjb9Tu2ubMAbPTIQ0OEcR/3oMWdkIDbu2P IfEDL1Gsih+Dg== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 10:33:24 -0000 On 27 Nov 2014, at 14:42, John Emmas wrote: >=20 >> it'll be tomorrow before I can take a good look at that patch. >=20 Hi Kjell - after some further testing this morning, this problem is = turning out to be an unbelievably stupid issue with MSVC!!! I mentioned = this yesterday:- >=20 > When I examine my build log, the only instance of the word "error" = (which isn't part of a function name) is this line:- >=20 > gmmproc: error: GIOErrorEnum: Example code discarded.=20 >=20 Basically, I'm processing 125 x hg / ccg pairs as a pre-build step. = After the recent changes you mentioned yesterday ('Output.pm' and = 'gerror.m4') I'm now seeing the above line while the "error" pair is = getting processed (keep in mind that MSVC routinely captures the output = text from any pre-build steps). What seems to be happening is that it's noticing the word "error:" in = that captured text - and assuming that one of the pre-build steps = failed.! If I temporarily rename error.hg and error.ccg to something = else (then process the renamed files instead) the problem goes away. = But that's not a viable solution of course! Is there any way I could experiment with changing that message text - = let's say to this:- gmmproc: 'error': GIOErrorEnum: Example code discarded. Or maybe to this:- gmmproc: (source_module=3D'error'): GIOErrorEnum: Example code = discarded. Experimenting with that text output will probably be the only solution, = I think. Thanks. John= From murrayc@murrayc.com Fri Nov 28 12:23:16 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 0B7EB76A9B for ; Fri, 28 Nov 2014 12:23:16 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mp_1vROC8zW1 for ; Fri, 28 Nov 2014 12:23:14 +0000 (UTC) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by restaurant.gnome.org (Postfix) with ESMTP id BECB0762CF for ; Fri, 28 Nov 2014 12:23:04 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E7CDB204AB; Fri, 28 Nov 2014 07:23:02 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 28 Nov 2014 07:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:subject:from:to:cc :date:in-reply-to:references:content-type:mime-version :content-transfer-encoding; s=smtpout; bh=0bBCpveQ3p+H/ZAMxl8ulo ch5Co=; b=eTE+MUg4ruzsitODcjLqWaf+7FowAEhMzvuVcwxR8Dlv5sXTkVkhKE wWZYGgkoX4h7GCbOIv1qzb/ajyyL2Or7Zum1HbMnFYEZ4WR9S0wdZXxtXXwVSO4r xGmsBvb8qdWaTEbquNoLZj2622mmLbdcOr2r45P7oAESS5NMPZyTw= X-Sasl-enc: bESFFxDOlCWdlyUDc+Uln6i67Txy1G7o3vb2B3O4sNWL 1417177382 Received: from murrayc-ThinkPad-X220 (unknown [185.17.207.111]) by mail.messagingengine.com (Postfix) with ESMTPA id 09B396800D2; Fri, 28 Nov 2014 07:23:01 -0500 (EST) Message-ID: <1417177380.19790.5.camel@murrayc.com> Subject: Re: MSVC build problems after updating from git From: Murray Cumming To: John Emmas Date: Fri, 28 Nov 2014 13:23:00 +0100 In-Reply-To: References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 12:23:16 -0000 On Fri, 2014-11-28 at 10:33 +0000, John Emmas wrote: > What seems to be happening is that it's noticing the word "error:" in > that captured text - and assuming that one of the pre-build steps > failed.! If I temporarily rename error.hg and error.ccg to something > else (then process the renamed files instead) the problem goes away. > But that's not a viable solution of course! > > Is there any way I could experiment with changing that message text - > let's say to this:- > > gmmproc: 'error': GIOErrorEnum: Example code discarded. > > Or maybe to this:- > > gmmproc: (source_module='error'): GIOErrorEnum: Example code > discarded. It's not really an error. Maybe we can call it a warning or just a note. -- Murray Cumming murrayc@murrayc.com www.murrayc.com From john@creativepost.co.uk Fri Nov 28 13:19:26 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 864F076A86 for ; Fri, 28 Nov 2014 13:19:26 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t5CSFB2XwUmD for ; Fri, 28 Nov 2014 13:19:25 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by restaurant.gnome.org (Postfix) with ESMTP id 22E9A76AA4 for ; Fri, 28 Nov 2014 13:19:14 +0000 (UTC) Received: from [192.168.1.2] (88-104-9-22.dynamic.dsl.as9105.com [88.104.9.22]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0MPXwP-1XqCiP1skT-004kJ4; Fri, 28 Nov 2014 14:19:12 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: MSVC build problems after updating from git From: John Emmas In-Reply-To: <1417177380.19790.5.camel@murrayc.com> Date: Fri, 28 Nov 2014 13:19:08 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> To: gtkmm X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:UPWJHXYzRk6TFXbtz3xE/6e/zQaRtrraOoQbxHYUxDk KRuoH1pAogOKu6vrZV0p8MJCT4IVbhiQyHI3Fsm24QLGNKtlRo ERW8FzvjzvuSVfZOhXz3vwpSTpfAloCdImhLeSm7cFqmg7AZXP LIikgZhQ1lC029JbrYJGOiiUXGNRhT6QAV7Bz99MmSgXLjpy6m MSpKuK9W0yfTQ5fhaPDv67D/QZdEOyC8r8+MsE0P1sVzU9OUyJ dAT9ESlr52bS4BapAJGvmsVwLnRLIfhLd1PeF9s519rDnU3BWE 16Ml54ihYdlxdIBmjqZDCYByjvEYjehaA2rvoVs8Cju6Yd/j+z meznUMHEsTNQepqdd2UToOKQzF4Rz5iLD9h9Jl6agMfhS/mha7 QKRybHdl9RPWQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 13:19:26 -0000 On 28 Nov 2014, at 12:23, Murray Cumming wrote: > On Fri, 2014-11-28 at 10:33 +0000, John Emmas wrote: >>=20 >> Is there any way I could experiment with changing that message text - >> let's say to this:- >>=20 >> gmmproc: 'error': GIOErrorEnum: Example code discarded. >>=20 >> Or maybe to this:- >>=20 >> gmmproc: (source_module=3D'error'): GIOErrorEnum: Example code >> discarded. >=20 > It's not really an error. Maybe we can call it a warning or just a = note. >=20 Hi Murray, Kjell mentioned yesterday (and I confirmed this morning) that the word = "error:" in that message is just an indication that the files being = processed (at that particular time) happened to be "error.ccg" and = "error.hg". But MSVC sees the text "error:" and wrongly assumes that an = error occurred :-( John= From john@creativepost.co.uk Fri Nov 28 13:27:45 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 0B3E276AA3 for ; Fri, 28 Nov 2014 13:27:45 +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 restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GNGjE_vEyVTc for ; Fri, 28 Nov 2014 13:27:44 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by restaurant.gnome.org (Postfix) with ESMTP id 7DEBA762CF for ; Fri, 28 Nov 2014 13:27:28 +0000 (UTC) Received: from [192.168.1.2] (88-104-9-22.dynamic.dsl.as9105.com [88.104.9.22]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0LpOFB-1YQe7c3f09-00f8kY; Fri, 28 Nov 2014 14:27:26 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: MSVC build problems after updating from git From: John Emmas In-Reply-To: Date: Fri, 28 Nov 2014 13:27:24 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> To: gtkmm X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:C/r6ZD3l+TCNjWUPSY0/FjHHazGK1vIbafl5Pic8qzc cOGjApQTT667r7Kb4NVu5kwouzctPuzJBsyaPJG2J/7c2Mo5m3 7L8VYIezEPAiacytmCpLwtGn86PD44VF0B5jgKaA7UasMKdyom QgmjduRiD9gIE0suzx8JIm93YIMg7zsWbOk8v0CCnNmx/5C1Y1 zZFl+4Yns9puGAk5Kg0adNpnK5ESS4/BApgXIJmB+9qViT8kTk QxsZS1eQuFYnAGroFuj9/2fmcy9o+wR390SOhsmAUQnCDWu2v2 g0gC2w4aSMngkaUeJuYCaOPr+ALqCWSMC1hxJWRVGYNm7GmowY lECpbI5W6/WnsRdQeLIC9Mcdi2hbdDc3UJLIrBRcMTyjjYoqCk +BtCoNzlxLU1w== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 13:27:45 -0000 On 28 Nov 2014, at 13:19, John Emmas wrote: >=20 > Kjell mentioned yesterday (and I confirmed this morning) that the word = "error:" in that message is just an indication that the files being = processed (at that particular time) happened to be "error.ccg" and = "error.hg". But MSVC sees the text "error:" and wrongly assumes that an = error occurred :-( >=20 Hmmm... in fact, maybe we could just print the full file name - in this = case:- gmmproc: error.ccg: GIOErrorEnum: Example code discarded. That would hopefully solve it? John= From kjell.ahlstedt@bredband.net Fri Nov 28 13:58:57 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 25FF876AA3 for ; Fri, 28 Nov 2014 13:58:57 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epW56UGhZ220 for ; Fri, 28 Nov 2014 13:58:55 +0000 (UTC) Received: from smtprelay-h21.telenor.se (smtprelay-h21.telenor.se [195.54.99.196]) by restaurant.gnome.org (Postfix) with ESMTP id 3405076A86 for ; Fri, 28 Nov 2014 13:58:39 +0000 (UTC) Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id D4114D0E5 for ; Fri, 28 Nov 2014 14:58:37 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIBAMB+eFRV5ZwjPGdsb2JhbAANTopovjSGEIMRAoEjAQEBAQEBBQEBAQE4hD4BAQR4ARALBBQJFg8JAwIBAgExFAYNAQcBAYhBuySXCAEBAQEBAQEDAQEBAQEBAQEBGZB7B4RNBboagzgBAQE X-IPAS-Result: AuIBAMB+eFRV5ZwjPGdsb2JhbAANTopovjSGEIMRAoEjAQEBAQEBBQEBAQE4hD4BAQR4ARALBBQJFg8JAwIBAgExFAYNAQcBAYhBuySXCAEBAQEBAQEDAQEBAQEBAQEBGZB7B4RNBboagzgBAQE X-IronPort-AV: E=Sophos;i="5.07,477,1413237600"; d="scan'208,217";a="691166919" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb4.telenor.se with ESMTP; 28 Nov 2014 14:58:37 +0100 Message-ID: <54787F8C.4040600@bredband.net> Date: Fri, 28 Nov 2014 14:58:36 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John Emmas Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080909060908050004090804" Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 13:58:57 -0000 This is a multi-part message in MIME format. --------------080909060908050004090804 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Den 2014-11-28 14:27, John Emmas skrev: > On 28 Nov 2014, at 13:19, John Emmas wrote: > >> Kjell mentioned yesterday (and I confirmed this morning) that the word "error:" in that message is just an indication that the files being processed (at that particular time) happened to be "error.ccg" and "error.hg". But MSVC sees the text "error:" and wrongly assumes that an error occurred :-( >> > Hmmm... in fact, maybe we could just print the full file name - in this case:- > > gmmproc: error.ccg: GIOErrorEnum: Example code discarded. > > That would hopefully solve it? > > John > The message is printed by glibmm/tools/pm/DocsParser.pm, line 378-379, print STDERR "gmmproc: $main::source: $obj_name: Example code discarded.\n" if ($example_removals); There are other warnings that contain $main::source. If you can tell what suits MSVC, I can modify them. I think the word /error /in the message can confuse human readers as well as MSVC. I'd prefer error.hg|ccg or error.hg or something like that. The .hg file is more important than the .ccg file here. Kjell --------------080909060908050004090804 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Den 2014-11-28 14:27, John Emmas skrev:
On 28 Nov 2014, at 13:19, John Emmas wrote:

Kjell mentioned yesterday (and I confirmed this morning) that the word "error:" in that message is just an indication that the files being processed (at that particular time) happened to be "error.ccg" and "error.hg".  But MSVC sees the text "error:" and wrongly assumes that an error occurred  :-(

Hmmm...  in fact, maybe we could just print the full file name - in this case:-

        gmmproc: error.ccg: GIOErrorEnum: Example code discarded.

That would hopefully solve it?

John

The message is printed by glibmm/tools/pm/DocsParser.pm, line 378-379,

  print STDERR "gmmproc: $main::source: $obj_name: Example code discarded.\n"
    if ($example_removals);

There are other warnings that contain $main::source. If you can tell what suits MSVC, I can modify them. I think the word error in the message can confuse human readers as well as MSVC.
I'd prefer error.hg|ccg or error.hg or something like that. The .hg file is more important than the .ccg file here.

Kjell

--------------080909060908050004090804-- From kjell.ahlstedt@bredband.net Fri Nov 28 14:41:02 2014 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 restaurant.gnome.org (Postfix) with ESMTP id B344076AA5 for ; Fri, 28 Nov 2014 14:41:02 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3AoduqlsJBcy for ; Fri, 28 Nov 2014 14:41:01 +0000 (UTC) Received: from smtprelay-h31.telenor.se (smtprelay-h31.telenor.se [213.150.131.4]) by restaurant.gnome.org (Postfix) with ESMTP id 7370276AA3 for ; Fri, 28 Nov 2014 14:40:49 +0000 (UTC) Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id BCC3FD64D for ; Fri, 28 Nov 2014 15:40:27 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQBANOIeFRV5ZwjPGdsb2JhbAANToNXxUWCWIZJAoEkAQEBAQEBBQEBAQE4hD4BAQR4ARALDgoJFg8JAwIBAgExFAYNAQcBARqIJwi7LJcEAQEBAQEBAQEBAQEBAQEBAQEBAQEBEwSQeweETQWXTIhqg1mDOZJSbgGCSQEBAQ X-IPAS-Result: AsQBANOIeFRV5ZwjPGdsb2JhbAANToNXxUWCWIZJAoEkAQEBAQEBBQEBAQE4hD4BAQR4ARALDgoJFg8JAwIBAgExFAYNAQcBARqIJwi7LJcEAQEBAQEBAQEBAQEBAQEBAQEBAQEBEwSQeweETQWXTIhqg1mDOZJSbgGCSQEBAQ X-IronPort-AV: E=Sophos;i="5.07,477,1413237600"; d="scan'208,217";a="771861177" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb3.telenor.se with ESMTP; 28 Nov 2014 15:40:27 +0100 Message-ID: <5478895A.3070702@bredband.net> Date: Fri, 28 Nov 2014 15:40:26 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Phil Wolff Subject: Re: App menu name References: <547557DD.3070000@centurylink.net> <5475A559.2060302@bredband.net> <5475CC26.700@centurylink.net> <5475E46D.5060705@bredband.net> <54766B2C.2010805@centurylink.net> In-Reply-To: <54766B2C.2010805@centurylink.net> Content-Type: multipart/alternative; boundary="------------010207030902000906060106" Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 14:41:02 -0000 This is a multi-part message in MIME format. --------------010207030902000906060106 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit You're right. If I add a .desktop file for the application, and run the Ubuntu Unity desktop environment, the name of the app menu is read from the Name entry in the .desktop file. But the Gnome Flashback desktop environment lets gtk+ display both the app menu and the window's menubar attached to the window. And gtk+ still gets the app menu name with g_get_application_name(), if Glib::set_application_name() has been called. If not, Gnome Flashback also gets the app menu name from the .desktop file. To further complicate the issue, Unity and Gnome Flashback/gtk+/glib seems to use slightly different algorithms for finding the right .desktop file, when the program has been started from the command line. I haven't investigated in detail, and I don't want to do it. Basically it seems Gnome Flashback only considers .desktop files with the same name as the executable file, while Unity checks the contents of the .desktop files (the Exec and/or the TryExec entries, I think). If you think the issue with the app menu name needs further investigation or documentation, please file a bug in Bugzilla, preferably with suggestions what to do. Kjell Den 2014-11-27 01:07, Phil Wolff skrev: > I am now seeing my application's name as the app menu title, and it > appeared after I created a .desktop file for the application. When I > remove the ,desktop file, the app menu title reverts to "Unknown > Application Name." > > On 2014/11/26 06:32, Kjell Ahlstedt wrote: >> I suppose you have seen the example at >> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling. >> Unfortunately it's not mentioned in the gtkmm tutorial. The tutorial >> would benefit from a whole new chapter, describing Gtk::Application >> and Gtk::ApplicationWindow. More volunteers would be welcome. The >> gtkmm tutorial has not been kept up-to-date with the latest changes >> in gtk+ and gtkmm. As an example, the Gesture classes are not mentioned. >> >> There is a short description of command-line options in the section >> that describes Boxes, >> https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options. >> >> Kjell >> >> Den 2014-11-26 13:48, Phil Wolff skrev: >>> I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm >>> inclined to regard Unity as the prime suspect, so I'll submit a bug >>> report accordingly. >>> >>> I was also looking at the changes you mention, and I think it would >>> be great if you could demo the handling of command-line option and >>> file parameters as well... >>> >>> On 2014/11/26 02:03, Kjell Ahlstedt wrote: >>>> Den 2014-11-26 05:32, Phil Wolff skrev: >>>>> I'm looking at the example code at >>>>> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. >>>>> >>>>> >>>>> At runtime the app menu is titled "Unknown Application Name," but >>>>> the win menus are properly titled as "File," "Edit," and >>>>> "Notification." >>>>> >>>>> Does this imply that something is missing from the code? >>>>> ______________________________________________ >>>> I have recently pushed some changes that make the menus/main_menu >>>> example use an application menu. Then I noticed the same thing. >>>> >>>> I use Ubuntu, which has two desktop environments to choose from: >>>> Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app >>>> menu and the menubar outside the application's window, and the app >>>> menu is titled "Unknown Application Name". Gnome Flashback shows >>>> both the app menu and the menubar in the application's window, and >>>> the app menu is titled "Gtk::Application Example" (or whatever name >>>> is set with Glib::set_application_name()). Gtk+'s demo program >>>> behaves the same. >>>> >>>> I don't know if something is missing in these programs, or if it's >>>> a bug in the Ubuntu Unity desktop shell. Which operating system do >>>> you use? >>>> >>>> Kjell >>> >> > --------------010207030902000906060106 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit You're right. If I add a .desktop file for the application, and run the Ubuntu Unity desktop environment, the name of the app menu is read from the Name entry in the .desktop file. But the Gnome Flashback desktop environment lets gtk+ display both the app menu and the window's menubar attached to the window. And gtk+ still gets the app menu name with g_get_application_name(), if Glib::set_application_name() has been called. If not, Gnome Flashback also gets the app menu name from the .desktop file.

To further complicate the issue, Unity and Gnome Flashback/gtk+/glib seems to use slightly different algorithms for finding the right .desktop file, when the program has been started from the command line. I haven't investigated in detail, and I don't want to do it. Basically it seems Gnome Flashback only considers .desktop files with the same name as the executable file, while Unity checks the contents of the .desktop files (the Exec and/or the TryExec entries, I think).

If you think the issue with the app menu name needs further investigation or documentation, please file a bug in Bugzilla, preferably with suggestions what to do.

Kjell

Den 2014-11-27 01:07, Phil Wolff skrev:
I am now seeing my application's name as the app menu title, and it appeared after I created a .desktop file for the application. When I remove the ,desktop file, the app menu title reverts to "Unknown Application Name."

On 2014/11/26 06:32, Kjell Ahlstedt wrote:
I suppose you have seen the example at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling. Unfortunately it's not mentioned in the gtkmm tutorial. The tutorial would benefit from a whole new chapter, describing Gtk::Application and Gtk::ApplicationWindow. More volunteers would be welcome. The gtkmm tutorial has not been kept up-to-date with the latest changes in gtk+ and gtkmm. As an example, the Gesture classes are not mentioned.

There is a short description of command-line options in the section that describes Boxes, https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options.

Kjell

Den 2014-11-26 13:48, Phil Wolff skrev:
I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm inclined to regard Unity as the prime suspect, so I'll submit a bug report accordingly.

I was also looking at the changes you mention, and I think it would be great if you could demo the handling of command-line option and file parameters as well...

On 2014/11/26 02:03, Kjell Ahlstedt wrote:
Den 2014-11-26 05:32, Phil Wolff skrev:
I'm looking at the example code at https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus.

At runtime the app menu is titled "Unknown Application Name," but the win menus are properly titled as "File," "Edit," and "Notification."

Does this imply that something is missing from the code?
______________________________________________
I have recently pushed some changes that make the menus/main_menu example use an application menu. Then I noticed the same thing.

I use Ubuntu, which has two desktop environments to choose from: Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app menu and the menubar outside the application's window, and the app menu is titled "Unknown Application Name". Gnome Flashback shows both the app menu and the menubar in the application's window, and the app menu is titled "Gtk::Application Example" (or whatever name is set with Glib::set_application_name()). Gtk+'s demo program behaves the same.

I don't know if something is missing in these programs, or if it's a bug in the Ubuntu Unity desktop shell. Which operating system do you use?

Kjell




--------------010207030902000906060106-- From adiabat@centurylink.net Fri Nov 28 16:12:00 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 4FB7076AA5 for ; Fri, 28 Nov 2014 16:12:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.011 X-Spam-Level: X-Spam-Status: No, score=-2.011 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, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JkuP-JaAXYdN for ; Fri, 28 Nov 2014 16:11:59 +0000 (UTC) Received: from smtp.centurylink.net (mail.centurylink.net [205.219.233.9]) by restaurant.gnome.org (Postfix) with ESMTP id EAF9876AAB for ; Fri, 28 Nov 2014 16:11:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=centurylink.net; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@centurylink.net; t=1417191105; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=eRb3y9Dhn8unYyfFFySpb6ZbtOM=; b=UWtpDA+k4rPev6gUxXvbu2rwsV0KpWKEWmEZGBhQShXBBgruh+suZcCurQhbm64S x4Yur2CbhCU93iLJQ/o1FElJGXSWdG5Sx6AGw1xChoMyX0j6lT2ZqUEROXRJrnw+ GqUH6v/6Xt4ljZ23djzajk7J3U5Qu3O4Jr0vyQZpVUABiHfKK60k/Xpp3gLZdkOl 69IjS/+a3aKUaogaSXaaheDISSbE2ZSDHAf0hrsfJ056uF3l/S5RfaXRfWwSga0b Frr0jCCZ7mojY48rIka7vjgmEEdH5breNCOi0kAOrPY7CgnjO5meJCez1Y9WX+1e 7445bNsvlvCtJjuR375rIA==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=OIKlLFmB c=1 sm=1 a=H03XQNzO3ZIBWxh40sAgAw==:17 a=5ZTteq0x3j8A:10 a=N659UExz7-8A:10 a=I_5RNyk1AAAA:8 a=aiIX5UjjAAAA:8 a=HhPe28mjvY8EtegPSUAA:9 a=pILNOxqGKmIA:10 a=2ipMPbs7hIUA:10 a=H03XQNzO3ZIBWxh40sAgAw==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YWRpYWJhdEBjZW50dXJ5bGluay5uZXQ= Authentication-Results: smtp01.agate.dfw.synacor.com smtp.user=adiabat@centurylink.net; auth=pass (LOGIN) Received: from [75.165.62.138] ([75.165.62.138:57686] helo=[192.168.0.101]) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-SHA) id 56/CC-31746-0CE98745; Fri, 28 Nov 2014 11:11:44 -0500 Message-ID: <54789EC1.7070402@centurylink.net> Date: Fri, 28 Nov 2014 08:11:45 -0800 From: Phil Wolff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Kjell Ahlstedt Subject: Re: App menu name References: <547557DD.3070000@centurylink.net> <5475A559.2060302@bredband.net> <5475CC26.700@centurylink.net> <5475E46D.5060705@bredband.net> <54766B2C.2010805@centurylink.net> <5478895A.3070702@bredband.net> In-Reply-To: <5478895A.3070702@bredband.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: gtkmm-list@gnome.org X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 16:12:00 -0000 We've identified the problem and the solution. The issue seems to be confined to one flavor of desktop in one flavor of Linux. Search engines will eventually pick this up, so I'm inclined to let it go. On 2014/11/28 06:40, Kjell Ahlstedt wrote: > You're right. If I add a .desktop file for the application, and run > the Ubuntu Unity desktop environment, the name of the app menu is read > from the Name entry in the .desktop file. But the Gnome Flashback > desktop environment lets gtk+ display both the app menu and the > window's menubar attached to the window. And gtk+ still gets the app > menu name with g_get_application_name(), if > Glib::set_application_name() has been called. If not, Gnome Flashback > also gets the app menu name from the .desktop file. > > To further complicate the issue, Unity and Gnome Flashback/gtk+/glib > seems to use slightly different algorithms for finding the right > .desktop file, when the program has been started from the command > line. I haven't investigated in detail, and I don't want to do it. > Basically it seems Gnome Flashback only considers .desktop files with > the same name as the executable file, while Unity checks the contents > of the .desktop files (the Exec and/or the TryExec entries, I think). > > If you think the issue with the app menu name needs further > investigation or documentation, please file a bug in Bugzilla, > preferably with suggestions what to do. > > Kjell > > Den 2014-11-27 01:07, Phil Wolff skrev: >> I am now seeing my application's name as the app menu title, and it >> appeared after I created a .desktop file for the application. When I >> remove the ,desktop file, the app menu title reverts to "Unknown >> Application Name." >> >> On 2014/11/26 06:32, Kjell Ahlstedt wrote: >>> I suppose you have seen the example at >>> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling. >>> Unfortunately it's not mentioned in the gtkmm tutorial. The tutorial >>> would benefit from a whole new chapter, describing Gtk::Application >>> and Gtk::ApplicationWindow. More volunteers would be welcome. The >>> gtkmm tutorial has not been kept up-to-date with the latest changes >>> in gtk+ and gtkmm. As an example, the Gesture classes are not >>> mentioned. >>> >>> There is a short description of command-line options in the section >>> that describes Boxes, >>> https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options. >>> >>> Kjell >>> >>> Den 2014-11-26 13:48, Phil Wolff skrev: >>>> I'm also running Ubuntu (14.10), and I use the Unity desktop. I'm >>>> inclined to regard Unity as the prime suspect, so I'll submit a bug >>>> report accordingly. >>>> >>>> I was also looking at the changes you mention, and I think it would >>>> be great if you could demo the handling of command-line option and >>>> file parameters as well... >>>> >>>> On 2014/11/26 02:03, Kjell Ahlstedt wrote: >>>>> Den 2014-11-26 05:32, Phil Wolff skrev: >>>>>> I'm looking at the example code at >>>>>> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus. >>>>>> >>>>>> >>>>>> At runtime the app menu is titled "Unknown Application Name," but >>>>>> the win menus are properly titled as "File," "Edit," and >>>>>> "Notification." >>>>>> >>>>>> Does this imply that something is missing from the code? >>>>>> ______________________________________________ >>>>> I have recently pushed some changes that make the menus/main_menu >>>>> example use an application menu. Then I noticed the same thing. >>>>> >>>>> I use Ubuntu, which has two desktop environments to choose from: >>>>> Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the app >>>>> menu and the menubar outside the application's window, and the app >>>>> menu is titled "Unknown Application Name". Gnome Flashback shows >>>>> both the app menu and the menubar in the application's window, and >>>>> the app menu is titled "Gtk::Application Example" (or whatever >>>>> name is set with Glib::set_application_name()). Gtk+'s demo >>>>> program behaves the same. >>>>> >>>>> I don't know if something is missing in these programs, or if it's >>>>> a bug in the Ubuntu Unity desktop shell. Which operating system do >>>>> you use? >>>>> >>>>> Kjell >>>> >>> >> > -- If sunbeams were weapons of war, we would have had solar energy centuries ago. -- George Porter From john@creativepost.co.uk Fri Nov 28 19:06:19 2014 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 restaurant.gnome.org (Postfix) with ESMTP id A124776AB2 for ; Fri, 28 Nov 2014 19:06:19 +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_00=-1.9, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6CE79XU_neTn for ; Fri, 28 Nov 2014 19:06:18 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by restaurant.gnome.org (Postfix) with ESMTP id 744A476AAF for ; Fri, 28 Nov 2014 19:06:06 +0000 (UTC) Received: from [192.168.1.2] (88-104-9-22.dynamic.dsl.as9105.com [88.104.9.22]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0MS2e2-1XSMAT2Ps2-00TGCx; Fri, 28 Nov 2014 20:06:03 +0100 Message-ID: <5478C79B.3080505@creativepost.co.uk> Date: Fri, 28 Nov 2014 19:06:03 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> <54787F8C.4040600@bredband.net> In-Reply-To: <54787F8C.4040600@bredband.net> Content-Type: multipart/alternative; boundary="------------070101040203010105010406" X-Provags-ID: V02:K0:fOMAfB0DC9eK4J7JuJ6pGZg7ETCG/7ewYhSTUAGzN7k XcaRYAHxDDHa/PoXKN9xYGZ7PmAhScxPwEjGTYvureWtc6kfMr DgUHeO0mLDjKmKF3CV8Z0gxmMWzlSouoLop7rFzFZqTwCXyYQX nLpd1Cp0Vjia+abfpy2yxVuIfTx4TuTHFASSHy1oucDC9jf9s6 MFqpqLLIilz7K4UrI+FlSYtsvB3IoECGk1g1t0xmsoE17R6Vfm tAE8BvyxJnfr3Z8awY8bGd3gaE1CTkjVDwJNrrXmKwtW8Y7x6m splIz9mKMjBemO7m01pFe3cwBunF/HcR/GX3qBpt6ezy29EtSR N4tBGtfRXHPzUVfd1ZAO9ZMtsKHMm86/P9A3nLoEr X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 19:06:19 -0000 This is a multi-part message in MIME format. --------------070101040203010105010406 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 28/11/2014 13:58, Kjell Ahlstedt wrote: > The message is printed by glibmm/tools/pm/DocsParser.pm, line 378-379, > > print STDERR "gmmproc: $main::source: $obj_name: Example code > discarded.\n" > if ($example_removals); > > There are other warnings that contain $main::source. If you can tell > what suits MSVC, I can modify them. I think the word /error /in the > message can confuse human readers as well as MSVC. > I'd prefer error.hg|ccg or error.hg or something like that. The .hg > file is more important than the .ccg file here. > Phew - this has had me tearing my hair out for the whole afternoon! Up to now, the output text from those lines looked something like this:- gmmproc: error: GIOErrorEnum: Example code discarded. Basically what I found was that if the text "error" appears anywhere between the 1st and 2nd colon, MSVC assumes that an error occurred. It makes no difference if those characters are on their own or as part of some other string. So all these variations will get regarded as an error:- print STDERR "gmmproc: error: $obj_name: Example code discarded.\n"; print STDERR "gmmproc: something_with_error_in_it: $obj_name: Example code discarded.\n"; print STDERR "gmmproc: \"no error detected\": any text here: Example code discarded.\n"; I also tried printing to STDOUT (in the hope that the word "error" on STDOUT mightn't get interpreted as an error - but no such luck :-( In the end, I found that the only real solution is to remove that first colon (after 'gmmproc'). I experimented with a few variations and my favourite was probably this one:- print STDERR "gmmproc ($main::source.hg) - $obj_name: Example code discarded.\n" if ($example_removals); The resulting text looks like this:- gmmproc (error.hg) - GIOErrorEnum: Example code discarded. Note that there's only one colon! To my eyes, that looks the most pleasing - but of course, it no longer matches the other printouts which have multiple colons - so (for neatness) they'd probably all need to get adjusted. Kjell - if you have any other preferences that you'd like me to try, just list them in an email and I'll try them over the weekend. Thanks again, John --------------070101040203010105010406 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 28/11/2014 13:58, Kjell Ahlstedt wrote:
 
The message is printed by glibmm/tools/pm/DocsParser.pm, line 378-379,

  print STDERR "gmmproc: $main::source: $obj_name: Example code discarded.\n"
    if ($example_removals);

There are other warnings that contain $main::source. If you can tell what suits MSVC, I can modify them. I think the word error in the message can confuse human readers as well as MSVC.
I'd prefer error.hg|ccg or error.hg or something like that. The .hg file is more important than the .ccg file here.


Phew - this has had me tearing my hair out for the whole afternoon!

Up to now, the output text from those lines looked something like this:-

        gmmproc: error: GIOErrorEnum: Example code discarded.

Basically what I found was that if the text "error" appears anywhere between the 1st and 2nd colon, MSVC assumes that an error occurred.  It makes no difference if those characters are on their own or as part of some other string.  So all these variations will get regarded as an error:-

        print STDERR "gmmproc: error: $obj_name: Example code discarded.\n";
        print STDERR "gmmproc: something_with_error_in_it: $obj_name: Example code discarded.\n";
        print STDERR "gmmproc: \"no error detected\": any text here: Example code discarded.\n";

I also tried printing to STDOUT (in the hope that the word "error" on STDOUT mightn't get interpreted as an error - but no such luck  :-(

In the end, I found that the only real solution is to remove that first colon (after 'gmmproc').  I experimented with a few variations and my favourite was probably this one:-

        print STDERR "gmmproc ($main::source.hg) - $obj_name: Example code discarded.\n"
            if ($example_removals);

The resulting text looks like this:-

        gmmproc (error.hg) - GIOErrorEnum: Example code discarded.

Note that there's only one colon!  To my eyes, that looks the most pleasing - but of course, it no longer matches the other printouts which have multiple colons - so (for neatness) they'd probably all need to get adjusted.  Kjell - if you have any other preferences that you'd like me to try, just list them in an email and I'll try them over the weekend.  Thanks again,

John
--------------070101040203010105010406-- From kjell.ahlstedt@bredband.net Sat Nov 29 11:17:19 2014 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 restaurant.gnome.org (Postfix) with ESMTP id CA635769AD for ; Sat, 29 Nov 2014 11:17:19 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bLLstRYQSGPf for ; Sat, 29 Nov 2014 11:17:17 +0000 (UTC) Received: from smtprelay-b22.telenor.se (smtprelay-b22.telenor.se [195.54.99.213]) by restaurant.gnome.org (Postfix) with ESMTP id EFAB276939 for ; Sat, 29 Nov 2014 11:17:06 +0000 (UTC) Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id B1823DD8F for ; Sat, 29 Nov 2014 12:15:22 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar8BAI+peVRV5ZwjPGdsb2JhbAANToNXxR2CVYZOAoEdAQEBAQEBBQEBAQE4hD4BAQR4ARALGAkWDwkDAgECATEUBg0BBwEBF4gqCLsXlmQBAQEBAQEBAwEBAQEBAQEBARmQGREBUAeESAWEcJBiUYdSPI9Xh35uAYEMgToBAQE X-IPAS-Result: Ar8BAI+peVRV5ZwjPGdsb2JhbAANToNXxR2CVYZOAoEdAQEBAQEBBQEBAQE4hD4BAQR4ARALGAkWDwkDAgECATEUBg0BBwEBF4gqCLsXlmQBAQEBAQEBAwEBAQEBAQEBARmQGREBUAeESAWEcJBiUYdSPI9Xh35uAYEMgToBAQE X-IronPort-AV: E=Sophos;i="5.07,483,1413237600"; d="scan'208,217";a="121238867" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb2.telenor.se with ESMTP; 29 Nov 2014 12:15:11 +0100 Message-ID: <5479AABE.5060505@bredband.net> Date: Sat, 29 Nov 2014 12:15:10 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John Emmas Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> <54787F8C.4040600@bredband.net> <5478C79B.3080505@creativepost.co.uk> In-Reply-To: <5478C79B.3080505@creativepost.co.uk> Content-Type: multipart/alternative; boundary="------------010001080700070305080806" Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 11:17:19 -0000 This is a multi-part message in MIME format. --------------010001080700070305080806 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Den 2014-11-28 20:06, John Emmas skrev: > On 28/11/2014 13:58, Kjell Ahlstedt wrote: >> The message is printed by glibmm/tools/pm/DocsParser.pm, line 378-379, >> >> print STDERR "gmmproc: $main::source: $obj_name: Example code >> discarded.\n" >> if ($example_removals); >> >> There are other warnings that contain $main::source. If you can tell >> what suits MSVC, I can modify them. I think the word /error /in the >> message can confuse human readers as well as MSVC. >> I'd prefer error.hg|ccg or error.hg or something like that. The .hg >> file is more important than the .ccg file here. >> > > Phew - this has had me tearing my hair out for the whole afternoon! > > Up to now, the output text from those lines looked something like this:- > > gmmproc: error: GIOErrorEnum: Example code discarded. > > Basically what I found was that if the text "error" appears anywhere > between the 1st and 2nd colon, MSVC assumes that an error occurred. > It makes no difference if those characters are on their own or as part > of some other string. So all these variations will get regarded as an > error:- > > print STDERR "gmmproc: error: $obj_name: Example code > discarded.\n"; > print STDERR "gmmproc: something_with_error_in_it: $obj_name: > Example code discarded.\n"; > print STDERR "gmmproc: \"no error detected\": any text here: > Example code discarded.\n"; > > I also tried printing to STDOUT (in the hope that the word "error" on > STDOUT mightn't get interpreted as an error - but no such luck :-( > > In the end, I found that the only real solution is to remove that > first colon (after 'gmmproc'). I experimented with a few variations > and my favourite was probably this one:- > > print STDERR "gmmproc ($main::source.hg) - $obj_name: Example > code discarded.\n" > if ($example_removals); > > The resulting text looks like this:- > > gmmproc (error.hg) - GIOErrorEnum: Example code discarded. > > Note that there's only one colon! To my eyes, that looks the most > pleasing - but of course, it no longer matches the other printouts > which have multiple colons - so (for neatness) they'd probably all > need to get adjusted. Kjell - if you have any other preferences that > you'd like me to try, just list them in an email and I'll try them > over the weekend. Thanks again, > > John > > Don't let gmmproc write a filename (or perhaps a class name, such as Error, or a method name, such as get_error()?) between the first and the second colon on a line. Is that the result of your investigation? Isn't there a way to inform MSVC that it shall not try to interpret the output from gmmproc? I found this link: http://msdn.microsoft.com/en-us/library/ms171484.aspx. I don't know if it's relevant. If we have to change gmmproc, I think I prefer gmmproc, error.h, GIOErrorEnum: Example code discarded. in this case. There are several other /print/ directives in gmmproc that are potentially problematic. Kjell --------------010001080700070305080806 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Den 2014-11-28 20:06, John Emmas skrev:
On 28/11/2014 13:58, Kjell Ahlstedt wrote:
 
The message is printed by glibmm/tools/pm/DocsParser.pm, line 378-379,

  print STDERR "gmmproc: $main::source: $obj_name: Example code discarded.\n"
    if ($example_removals);

There are other warnings that contain $main::source. If you can tell what suits MSVC, I can modify them. I think the word error in the message can confuse human readers as well as MSVC.
I'd prefer error.hg|ccg or error.hg or something like that. The .hg file is more important than the .ccg file here.


Phew - this has had me tearing my hair out for the whole afternoon!

Up to now, the output text from those lines looked something like this:-

        gmmproc: error: GIOErrorEnum: Example code discarded.

Basically what I found was that if the text "error" appears anywhere between the 1st and 2nd colon, MSVC assumes that an error occurred.  It makes no difference if those characters are on their own or as part of some other string.  So all these variations will get regarded as an error:-

        print STDERR "gmmproc: error: $obj_name: Example code discarded.\n";
        print STDERR "gmmproc: something_with_error_in_it: $obj_name: Example code discarded.\n";
        print STDERR "gmmproc: \"no error detected\": any text here: Example code discarded.\n";

I also tried printing to STDOUT (in the hope that the word "error" on STDOUT mightn't get interpreted as an error - but no such luck  :-(

In the end, I found that the only real solution is to remove that first colon (after 'gmmproc').  I experimented with a few variations and my favourite was probably this one:-

        print STDERR "gmmproc ($main::source.hg) - $obj_name: Example code discarded.\n"
            if ($example_removals);

The resulting text looks like this:-

        gmmproc (error.hg) - GIOErrorEnum: Example code discarded.

Note that there's only one colon!  To my eyes, that looks the most pleasing - but of course, it no longer matches the other printouts which have multiple colons - so (for neatness) they'd probably all need to get adjusted.  Kjell - if you have any other preferences that you'd like me to try, just list them in an email and I'll try them over the weekend.  Thanks again,

John


Don't let gmmproc write a filename (or perhaps a class name, such as Error, or a method name, such as get_error()?) between the first and the second colon on a line. Is that the result of your investigation? Isn't there a way to inform MSVC that it shall not try to interpret the output from gmmproc? I found this link: http://msdn.microsoft.com/en-us/library/ms171484.aspx. I don't know if it's relevant.

If we have to change gmmproc, I think I prefer
gmmproc, error.h, GIOErrorEnum: Example code discarded.
in this case. There are several other print directives in gmmproc that are potentially problematic.

Kjell


--------------010001080700070305080806-- From john@creativepost.co.uk Sat Nov 29 16:09:25 2014 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 restaurant.gnome.org (Postfix) with ESMTP id CD90176939 for ; Sat, 29 Nov 2014 16:09:25 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KgqtWkzDFNTU for ; Sat, 29 Nov 2014 16:09:24 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by restaurant.gnome.org (Postfix) with ESMTP id 15DAE762FA for ; Sat, 29 Nov 2014 16:09:13 +0000 (UTC) Received: from [192.168.1.2] (88-104-14-227.dynamic.dsl.as9105.com [88.104.14.227]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0LxwDU-1Y01Q30Fym-015F0u; Sat, 29 Nov 2014 17:09:11 +0100 From: John Emmas Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: multipart/alternative; boundary=Apple-Mail-2-883483263 Subject: Re: MSVC build problems after updating from git Date: Sat, 29 Nov 2014 16:09:07 +0000 In-Reply-To: <5479AABE.5060505@bredband.net> To: gtkmm References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> <54787F8C.4040600@bredband.net> <5478C79B.3080505@creativepost.co.uk> <5479AABE.5060505@bredband.net> Message-Id: <98EA41FA-FCCF-4AEB-9A4D-DB120DEC2D8B@creativepost.co.uk> X-Mailer: Apple Mail (2.1085) X-Provags-ID: V02:K0:jeRZB7XvNnkCWnFAcodHpLdeVoxIQny0aypY69fKjTi 3/MbJDoaRZRT6vlHnOu8dITsGp3qghX8t9OSaLvjh24HZsdzaF iJbwhA87Nqu+V2lCUH3PYe8InzxuTnchw5xRuu4lubRCvVA7ui rmR3p0TyrS427KTinNR01PpD/rTJ3K7hFo+dQsXW6U8tBpZ89Y H63F1NOFZ+GqgaqANw8N8k49S7HQLapChuWxEwAhm0q1QI60Th DNjWErgdfeQ+2LnLa+hVQkvf1tMf2SY3iNuDys8YeW3wUvUbHr vGWabsIKgAFbwT3TpEqo2L5tn3NL0NHERkT+riuTM8yZv46gs0 RxRmmqb19+l3JjHX06ovQRR9AZEYPaBrygFonUridcs9aQPTmP Vqm3SuGRocHig== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 16:09:25 -0000 --Apple-Mail-2-883483263 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 Nov 2014, at 11:15, Kjell Ahlstedt wrote: >=20 > Don't let gmmproc write a filename (or perhaps a class name, such as = Error, or a method name, such as get_error()?) between the first and the = second colon on a line. Is that the result of your investigation? >=20 Hi Kjell - as bizarre as it might seem, yes. >=20 > Isn't there a way to inform MSVC that it shall not try to interpret = the output from gmmproc? I found this link: = http://msdn.microsoft.com/en-us/library/ms171484.aspx. I don't know if = it's relevant. >=20 To be absolutely honest, I'm not convinced that this is MSVC's problem. = If the IDE was simply looking for the word "error", okay - that I could = understand. But why would it look for some text including "error" that = was (somewhere in between) two colons? That just doesn't sound like a = "Microsoft thing" to me. I wonder if there's a problem with perl maybe? I followed the link that you provided. The article is slightly = misleading because 'Tasks' are a feature of MSBuild, rather than Visual = Studio. MSBuild and VS are related to each other but they're not the = same thing so that suggestion wouldn't help in this case. >=20 > If we have to change gmmproc, I think I prefer > gmmproc, error.h, GIOErrorEnum: Example code discarded. > in this case. There are several other print directives in gmmproc that = are potentially problematic. >=20 I tried with commas, rather than colons and that works fine. Hope that = helps, John= --Apple-Mail-2-883483263 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

Don't let gmmproc write a filename (or perhaps = a class name, such as Error, or a method name, such as get_error()?) = between the first and the second colon on a line. Is that the result of = your investigation?


Hi Kjell = - as bizarre as it might seem, yes.



Isn't there a way to inform MSVC that it shall = not try to interpret the output from gmmproc? I found this link: http://msdn= .microsoft.com/en-us/library/ms171484.aspx. I don't know if it's = relevant.


To be = absolutely honest, I'm not convinced that this is MSVC's problem. =  If the IDE was simply looking for the word "error", okay - that I = could understand.  But why would it look for some text including = "error" that was (somewhere in between) two colons?  That just = doesn't sound like a "Microsoft thing" to me.  I wonder if there's = a problem with perl maybe?

I followed the link = that you provided.  The article is slightly misleading because = 'Tasks' are a feature of MSBuild, rather than Visual Studio. =  MSBuild and VS are related to each other but they're not the same = thing so that suggestion wouldn't help in this = case.


=20 =20

If we have to change gmmproc, I think = I prefer
gmmproc, error.h, GIOErrorEnum: Example code = discarded.
in this case. There are several other print directives in gmmproc that are potentially problematic.


I tried with commas, rather than = colons and that works fine.  Hope that = helps,

John
= --Apple-Mail-2-883483263-- From kjell.ahlstedt@bredband.net Sun Nov 30 10:20:43 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 35E937693F for ; Sun, 30 Nov 2014 10:20:43 +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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i5CP8bN4mX7A for ; Sun, 30 Nov 2014 10:20:41 +0000 (UTC) Received: from smtprelay-b32.telenor.se (smtprelay-b32.telenor.se [213.150.131.21]) by restaurant.gnome.org (Postfix) with ESMTP id 607277622D for ; Sun, 30 Nov 2014 10:20:29 +0000 (UTC) Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b32.telenor.se (Postfix) with ESMTP id 62626F392B for ; Sun, 30 Nov 2014 11:20:27 +0100 (CET) X-SMTPAUTH-B2: [kjell.ahlstedt@bredband.net] X-SENDER-IP: [85.229.156.35] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEBAC/uelRV5ZwjPGdsb2JhbAANToNXWMcEhkoCgR4BAQEBAQEFAQEBATiEPQEBAQECAXgBBQsLGAkWDwkDAgECATEGDgYNAQcBAYgzDgi7bpY6AQEBAQEBAQMBAQEBAQEBAQEZkHsHhEgFhHCQYlGHUjyCf4xYh35uAYJGAQEB X-IPAS-Result: AsEBAC/uelRV5ZwjPGdsb2JhbAANToNXWMcEhkoCgR4BAQEBAQEFAQEBATiEPQEBAQECAXgBBQsLGAkWDwkDAgECATEGDgYNAQcBAYgzDgi7bpY6AQEBAQEBAQMBAQEBAQEBAQEZkHsHhEgFhHCQYlGHUjyCf4xYh35uAYJGAQEB X-IronPort-AV: E=Sophos;i="5.07,486,1413237600"; d="scan'208,217";a="121678726" Received: from c-239ce555.06-203-73746f44.cust.bredbandsbolaget.se (HELO [192.168.1.64]) ([85.229.156.35]) by ipb1.telenor.se with ESMTP; 30 Nov 2014 11:20:26 +0100 Message-ID: <547AEF6A.9080803@bredband.net> Date: Sun, 30 Nov 2014 11:20:26 +0100 From: Kjell Ahlstedt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: John Emmas Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> <54787F8C.4040600@bredband.net> <5478C79B.3080505@creativepost.co.uk> <5479AABE.5060505@bredband.net> <98EA41FA-FCCF-4AEB-9A4D-DB120DEC2D8B@creativepost.co.uk> In-Reply-To: <98EA41FA-FCCF-4AEB-9A4D-DB120DEC2D8B@creativepost.co.uk> Content-Type: multipart/alternative; boundary="------------060408070105080208060903" Cc: gtkmm X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2014 10:20:43 -0000 This is a multi-part message in MIME format. --------------060408070105080208060903 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Den 2014-11-29 17:09, John Emmas skrev: > On 29 Nov 2014, at 11:15, Kjell Ahlstedt wrote: > >> >> Don't let gmmproc write a filename (or perhaps a class name, such as >> Error, or a method name, such as get_error()?) between the first and >> the second colon on a line. Is that the result of your investigation? >> > > Hi Kjell - as bizarre as it might seem, yes. > > >> >> Isn't there a way to inform MSVC that it shall not try to interpret >> the output from gmmproc? I found this link: >> http://msdn.microsoft.com/en-us/library/ms171484.aspx. I don't know >> if it's relevant. >> > > To be absolutely honest, I'm not convinced that this is MSVC's > problem. If the IDE was simply looking for the word "error", okay - > that I could understand. But why would it look for some text > including "error" that was (somewhere in between) two colons? That > just doesn't sound like a "Microsoft thing" to me. I wonder if > there's a problem with perl maybe? > I believe it's a "Microsoft thing" and certainly not a perl problem. I also found this link: http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx If it's really impossible to turn off the "error message awareness" of Visual Studio, I'll change gmmproc for you. But first please check it really**is impossible. > I followed the link that you provided. The article is slightly > misleading because 'Tasks' are a feature of MSBuild, rather than > Visual Studio. MSBuild and VS are related to each other but they're > not the same thing so that suggestion wouldn't help in this case. > > >> >> If we have to change gmmproc, I think I prefer >> >> gmmproc, error.h, GIOErrorEnum: Example code discarded. >> >> in this case. There are several other /print/ directives in gmmproc >> that are potentially problematic. >> > > I tried with commas, rather than colons and that works fine. Hope > that helps, > > John > > --------------060408070105080208060903 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Den 2014-11-29 17:09, John Emmas skrev:
On 29 Nov 2014, at 11:15, Kjell Ahlstedt wrote:


Don't let gmmproc write a filename (or perhaps a class name, such as Error, or a method name, such as get_error()?) between the first and the second colon on a line. Is that the result of your investigation?


Hi Kjell - as bizarre as it might seem, yes.



Isn't there a way to inform MSVC that it shall not try to interpret the output from gmmproc? I found this link: http://msdn.microsoft.com/en-us/library/ms171484.aspx. I don't know if it's relevant.


To be absolutely honest, I'm not convinced that this is MSVC's problem.  If the IDE was simply looking for the word "error", okay - that I could understand.  But why would it look for some text including "error" that was (somewhere in between) two colons?  That just doesn't sound like a "Microsoft thing" to me.  I wonder if there's a problem with perl maybe?

I believe it's a "Microsoft thing" and certainly not a perl problem. I also found this link:
http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx

If it's really impossible to turn off the "error message awareness" of Visual Studio, I'll change gmmproc for you. But first please check it really is impossible.

I followed the link that you provided.  The article is slightly misleading because 'Tasks' are a feature of MSBuild, rather than Visual Studio.  MSBuild and VS are related to each other but they're not the same thing so that suggestion wouldn't help in this case.



If we have to change gmmproc, I think I prefer
gmmproc, error.h, GIOErrorEnum: Example code discarded.
in this case. There are several other print directives in gmmproc that are potentially problematic.


I tried with commas, rather than colons and that works fine.  Hope that helps,

John



--------------060408070105080208060903-- From john@creativepost.co.uk Sun Nov 30 13:54:14 2014 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 restaurant.gnome.org (Postfix) with ESMTP id 42C857693C for ; Sun, 30 Nov 2014 13:54:14 +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_00=-1.9, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2YTV83-nkZ7L for ; Sun, 30 Nov 2014 13:54:12 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) by restaurant.gnome.org (Postfix) with ESMTP id 336667622D for ; Sun, 30 Nov 2014 13:53:56 +0000 (UTC) Received: from [192.168.1.2] (88-104-19-241.dynamic.dsl.as9105.com [88.104.19.241]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0M3Sim-1YCssb1572-00r0lQ; Sun, 30 Nov 2014 14:53:53 +0100 Message-ID: <547B2170.30309@creativepost.co.uk> Date: Sun, 30 Nov 2014 13:53:52 +0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: gtkmm Subject: Re: MSVC build problems after updating from git References: <5475D75B.8040506@creativepost.co.uk> <5475E728.3050801@bredband.net> <54762304.7060704@creativepost.co.uk> <5476F748.2010902@creativepost.co.uk> <5476FBBB.8010600@bredband.net> <547713AE.3010502@creativepost.co.uk> <1417093714.832.2.camel@murrayc.com> <5477295E.80001@creativepost.co.uk> <5477342D.9010901@bredband.net> <54773858.3080602@creativepost.co.uk> <1417177380.19790.5.camel@murrayc.com> <54787F8C.4040600@bredband.net> <5478C79B.3080505@creativepost.co.uk> <5479AABE.5060505@bredband.net> <98EA41FA-FCCF-4AEB-9A4D-DB120DEC2D8B@creativepost.co.uk> <547AEF6A.9080803@bredband.net> In-Reply-To: <547AEF6A.9080803@bredband.net> Content-Type: multipart/alternative; boundary="------------010903030904050808070504" X-Provags-ID: V02:K0:E6o/U01fIUA4wN3YPHXTTR7tNQt9ElRvhMm+qvoZRSG 0h3dH4KUcO/S/5XB+beXKNAIlMIcWIcbuaoMfThEgj7n3TDpfW mK/srMBiBm2UQ6xk/OLyuqt2g7qYx6H+yfwnusH/TO1YGYS/eo F+F/UEvC1tIc6++FR7TbOXxb8ttu2hW26LiFt9iAr/upJAam35 sPjRCEbGEouaFUmMP5pGE1xueSs3u1kE2Ev2YaUFkTKTwgQ5Yv Vz2KgjvJk9wDitmuI6P5xCqdvVSsORHxwRFRLFPBz+gB/s3U+C jigXXb69P0ReZUIN8Z8xs9OcPYc67vQZXVgNjIOUXa5o1gUHga CsLme/tKd2ofw5/2fuDo/2RVlxycL2XH1Fbldu0Hv X-UI-Out-Filterresults: notjunk:1; X-BeenThere: gtkmm-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: gtkmm general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2014 13:54:14 -0000 This is a multi-part message in MIME format. --------------010903030904050808070504 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 30/11/2014 10:20, Kjell Ahlstedt wrote: > > I believe it's a "Microsoft thing" and certainly not a perl problem. I > also found this link: > http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx > Okay, this is starting to make some sense now. Here's the text, as output by DocsParser.pm:- gmmproc: error: GIOErrorEnum: Example code discarded. And here's the format of a typical MSVC error message, as output by the compiler:- : error : : . Notice that both examples have precisely the same format! In particular, they both contain 3 colons and the text string "error" (among some other text) is in between the 1st and 2nd colons. That would definitely explain why MSVC is mis-interpreting the DocsParser output as being an error! > > If it's really impossible to turn off the "error message awareness" of > Visual Studio, I'll change gmmproc for you. But first please check it > really**is impossible. > Knowing the above, even if it was possible to turn the awareness off, my guess is that all such error messages would then get ignored - even genuine errors. It's pretty amazing that something like this has never cropped up before! I think that changing from colons to commas is definitely the safest solution here. John --------------010903030904050808070504 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 30/11/2014 10:20, Kjell Ahlstedt wrote:

I believe it's a "Microsoft thing" and certainly not a perl problem. I also found this link:
http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx


Okay, this is starting to make some sense now.  Here's the text, as output by DocsParser.pm:-

       gmmproc: error: GIOErrorEnum: Example code discarded.

And here's the format of a typical MSVC error message, as output by the compiler:-

      <path to the source file>: error <some error number>: <brief error description>: <more detail>.

Notice that both examples have precisely the same format!  In particular, they both contain 3 colons and the text string "error" (among some other text) is in between the 1st and 2nd colons.  That would definitely explain why MSVC is mis-interpreting the DocsParser output as being an error!



If it's really impossible to turn off the "error message awareness" of Visual Studio, I'll change gmmproc for you. But first please check it really is impossible.


Knowing the above, even if it was possible to turn the awareness off, my guess is that all such error messages would then get ignored - even genuine errors.  It's pretty amazing that something like this has never cropped up before!  I think that changing from colons to commas is definitely the safest solution here.

John
--------------010903030904050808070504--