From valter@fastway.com.br Wed Feb 1 12:58:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D9AE7500EB for ; Wed, 1 Feb 2012 12:58:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.135 X-Spam-Level: X-Spam-Status: No, score=0.135 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_IMAGE_ONLY_12=2.059, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665, T_REMOTE_IMAGE=0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30tgX6b-rLz5 for ; Wed, 1 Feb 2012 12:57:55 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 3A4EB7500E2 for ; Wed, 1 Feb 2012 12:57:46 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so2324979obc.27 for ; Wed, 01 Feb 2012 04:57:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.74.66 with SMTP id r2mr39373120obv.67.1328101065258; Wed, 01 Feb 2012 04:57:45 -0800 (PST) Received: by 10.182.98.131 with HTTP; Wed, 1 Feb 2012 04:57:45 -0800 (PST) In-Reply-To: References: Date: Wed, 1 Feb 2012 10:57:45 -0200 Message-ID: Subject: Re: Drawing over Desktop application From: Valter Nogueira To: Mario Kemper Content-Type: multipart/alternative; boundary=f46d044470d138760504b7e6a03e Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2012 12:58:00 -0000 --f46d044470d138760504b7e6a03e Content-Type: text/plain; charset=ISO-8859-1 It took a little while to install easystroke on Ubuntu - since there is no configure. It is almost what I want - but the gesture draw disapears when button is released. I didn't manage run xstroke and gestikk * * 2012/1/31 Mario Kemper > You might want to have a look at any of the gesture recognition programs > available. E.g. xstroke, easystroke, gestikk. > Am 31.01.2012 22:42 schrieb "Valter Nogueira" : > --f46d044470d138760504b7e6a03e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It took a little while to install easystroke on Ubuntu - since there is no = configure.

It is almost what I want - but the gesture dr= aw disapears when button is released.

I didn't= manage run xstroke and =A0gestikk






2012/1/31 Mario Kemper <mario.kemper@googlemail= .com>

You might want to have a look at any of the gesture recognition programs= available. E.g. xstroke, easystroke, gestikk.

Am 31.01.2012 22:42 schrieb "Valter Nogueir= a" <valt= er@fastway.com.br>:

--f46d044470d138760504b7e6a03e-- From mario.kemper@googlemail.com Wed Feb 1 13:08:40 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8ED7E7502AE for ; Wed, 1 Feb 2012 13:08:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YOWxMekfz5KQ for ; Wed, 1 Feb 2012 13:08:35 +0000 (UTC) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id 42DE9750276 for ; Wed, 1 Feb 2012 13:08:26 +0000 (UTC) Received: by bkbzx1 with SMTP id zx1so1792817bkb.27 for ; Wed, 01 Feb 2012 05:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:content-type :content-transfer-encoding:mime-version; bh=e+oFSBpV4bfbje/JU7vpEv3cqefNz4G/d90UEtjScLw=; b=p16rNrSPZ1gwaRPTxO5mfowVysgDF8kOX8YAClShmfGOQ34/UEXYGJUrOKfRRiYHB0 hWA1XSyhNeUt9m9t/KdTwN3awAo1SFvTjUxY6hFtOWsm+vEH+GklHo9D9Yzy7Gb7Ks9e QkzZuZ0e5aRg0Gjiqxii1iSr6dMW9cNOWLH6Y= Received: by 10.205.128.4 with SMTP id hc4mr12383453bkc.13.1328101704975; Wed, 01 Feb 2012 05:08:24 -0800 (PST) Received: from localhost ([195.227.81.222]) by mx.google.com with ESMTPS id d2sm54418541bky.11.2012.02.01.05.08.23 (version=SSLv3 cipher=OTHER); Wed, 01 Feb 2012 05:08:23 -0800 (PST) Date: Wed, 01 Feb 2012 14:08:22 +0100 (MEZ) From: Mario Kemper To: Valter Nogueira Subject: Re: Drawing over Desktop application Message-ID: <75b7f214-5035-4de5-b50c-4cbc49fe0a2d@qabook1> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2012 13:08:40 -0000 Compiz does offer an annotation plugin. Launch ccsm to enable it. You need = to have the package compizconfig-settings-manager installed. Anyway, I thought you were asking for a way to implement this. This is why = I pointed you to the gesture recognition apps. They are all open source so = you can easily check the source codes. ----- Urspr=C3=BCngliche Mail ----- > Von: "Valter Nogueira" > An: "Mario Kemper" > CC: gtk-list@gnome.org > Gesendet: Mittwoch, 1. Februar 2012 13:57:45 > Betreff: Re: Drawing over Desktop application > > It took a little while to install easystroke on Ubuntu - since there > is no configure. > > > It is almost what I want - but the gesture draw disapears when button > is released. > > > I didn't manage run xstroke and gestikk > > > > > > > > > > 2012/1/31 Mario Kemper < mario.kemper@googlemail.com > > > > > > You might want to have a look at any of the gesture recognition > programs available. E.g. xstroke, easystroke, gestikk. > Am 31.01.2012 22:42 schrieb "Valter Nogueira" < valter@fastway.com.br > >: > > From valter@fastway.com.br Wed Feb 1 13:18:02 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D7AE7502AC for ; Wed, 1 Feb 2012 13:18:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.857 X-Spam-Level: X-Spam-Status: No, score=-1.857 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 99uudeLUB7Ge for ; Wed, 1 Feb 2012 13:18:00 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 2E210750262 for ; Wed, 1 Feb 2012 13:17:51 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so2364985obc.27 for ; Wed, 01 Feb 2012 05:17:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.109.106 with SMTP id hr10mr39496173obb.27.1328102270430; Wed, 01 Feb 2012 05:17:50 -0800 (PST) Received: by 10.182.98.131 with HTTP; Wed, 1 Feb 2012 05:17:50 -0800 (PST) In-Reply-To: <75b7f214-5035-4de5-b50c-4cbc49fe0a2d@qabook1> References: <75b7f214-5035-4de5-b50c-4cbc49fe0a2d@qabook1> Date: Wed, 1 Feb 2012 11:17:50 -0200 Message-ID: Subject: Re: Drawing over Desktop application From: Valter Nogueira To: Mario Kemper Content-Type: multipart/alternative; boundary=f46d0444ee550dee7504b7e6e836 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2012 13:18:02 -0000 --f46d0444ee550dee7504b7e6e836 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable if I am unable to find some software working I will consider starting an open source project for this. What I don't want is reinvent the wheel - as open source community use to do Thanks 2012/2/1 Mario Kemper > Compiz does offer an annotation plugin. Launch ccsm to enable it. You nee= d > to have the package compizconfig-settings-manager installed. > > Anyway, I thought you were asking for a way to implement this. This is wh= y > I pointed you to the gesture recognition apps. They are all open source s= o > you can easily check the source codes. > > > > ----- Urspr=FCngliche Mail ----- > > Von: "Valter Nogueira" > > An: "Mario Kemper" > > CC: gtk-list@gnome.org > > Gesendet: Mittwoch, 1. Februar 2012 13:57:45 > > Betreff: Re: Drawing over Desktop application > > > > It took a little while to install easystroke on Ubuntu - since there > > is no configure. > > > > > > It is almost what I want - but the gesture draw disapears when button > > is released. > > > > > > I didn't manage run xstroke and gestikk > > > > > > > > > > > > > > > > > > > > 2012/1/31 Mario Kemper < mario.kemper@googlemail.com > > > > > > > > > > > You might want to have a look at any of the gesture recognition > > programs available. E.g. xstroke, easystroke, gestikk. > > Am 31.01.2012 22:42 schrieb "Valter Nogueira" < valter@fastway.com.br > > >: > > > > > --f46d0444ee550dee7504b7e6e836 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable if I am unable to find some software working I will consider starting an op= en source project for this.

What I don't want is rei= nvent the wheel - as open source community =A0use to do

Thanks





2012/2/1 Mario Kemper = <mario.kemper@googlemail.= com>
Compiz does offer an annotation plugin. Launch ccsm to enable it. You need = to have the package compizconfig-settings-manager installed.

Anyway, I thought you were asking for a way to implement this. This is why = I pointed you to the gesture recognition apps. They are all open source so = you can easily check the source codes.



----- Urspr=FCngliche Mail -----
> Von: "Valter Nogueira" <valter@fastway.com.br>
> An: "Mario Kemper" <mario.kemper@googlemail.com>
> CC: gtk-list@gnome.org
> Gesendet: Mittwoch, 1. Februar 2012 13:57:45
> Betreff: Re: Drawing over Desktop application
>
> It took a little while to install easystroke on Ubuntu - since there > is no configure.
>
>
> It is almost what I want - but the gesture draw disapears when button<= br> > is released.
>
>
> I didn't manage run xstroke and gestikk
>
>
>
>
>
>
>
>
>
> 2012/1/31 Mario Kemper &= lt; mario.kemper@googlemail.= com >
>
>
>
>
> You might want to have a look at any of the gesture recognition
> programs available. E.g. xstroke, easystroke, gestikk.
> Am 31.01.2012 22:42 schrieb "Valter Nogueira" < valter@fastway.com.br
> >:
>
>

--f46d0444ee550dee7504b7e6e836-- From self@antono.info Thu Feb 2 15:06:11 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 884A57501DE for ; Thu, 2 Feb 2012 15:06:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.149 X-Spam-Level: X-Spam-Status: No, score=-0.149 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_SORBS_WEB=0.77, RDNS_DYNAMIC=0.982, SPF_PASS=-0.001] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j1jC0m+XYWK0 for ; Thu, 2 Feb 2012 15:06:05 +0000 (UTC) Received: from mail.antono.info (ec2-50-19-243-116.compute-1.amazonaws.com [50.19.243.116]) by menubar.gnome.org (Postfix) with ESMTP id E13177500FB for ; Thu, 2 Feb 2012 15:05:55 +0000 (UTC) Received: by mail.antono.info (Postfix, from userid 1003) id B410164797; Thu, 2 Feb 2012 15:06:25 +0000 (UTC) Received: from [192.168.1.3] (unknown [178.121.23.16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: antono) by mail.antono.info (Postfix) with ESMTPSA id BD396611CC for ; Thu, 2 Feb 2012 15:06:19 +0000 (UTC) Message-ID: <4F2AA649.9050102@antono.info> Date: Thu, 02 Feb 2012 18:05:45 +0300 From: Antono Vasiljev Organization: Red Brigade User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120130 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Drawing over Desktop application References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 15:06:11 -0000 On 02/01/2012 12:41 AM, Valter Nogueira wrote: > Does someone know an application that allows us to use Linux Desktop as > a canvas - drawing over it? http://www.home.unix-ag.org/simon/gromit/ From mferrero@reer.it Fri Feb 3 15:21:29 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 24BDB75020C for ; Fri, 3 Feb 2012 15:21: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] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rRpyY9PzPvGq for ; Fri, 3 Feb 2012 15:21:24 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id C9B977501CD for ; Fri, 3 Feb 2012 15:21:15 +0000 (UTC) X-MDAV-Processed: reer.it, Fri, 03 Feb 2012 16:21:12 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001154822.msg for ; Fri, 03 Feb 2012 16:21:12 +0100 X-Spam-Processed: reer.it, Fri, 03 Feb 2012 16:21:12 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F2BFB87.5050209@reer.it> Date: Fri, 03 Feb 2012 16:21:43 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Search and replace on a string Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 15:21:29 -0000 I need to search some text in a big string ansd replace it with some other text. The big string is null terminated and so is the replacement text. I read that I can find the wanted text with g_strstr_len, but I can't figure out how can I do the substitution once I found the text. Can please someone help me? Pseudo code or just a hint will be appreciated. TIA -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From kevin.s.anthony@gmail.com Fri Feb 3 15:28:22 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 991787501CD for ; Fri, 3 Feb 2012 15:28:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.956 X-Spam-Level: X-Spam-Status: No, score=-0.956 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, SARE_HTML_USL_OBFU=1.666, SPF_PASS=-0.001, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VmpQrqypJLpu for ; Fri, 3 Feb 2012 15:28:16 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 7335575020C for ; Fri, 3 Feb 2012 15:28:08 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so7751023obc.27 for ; Fri, 03 Feb 2012 07:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wNwxTO9+zBZ2F1LE4uTSfVHV4w9wmffMIjPpXeI92Z0=; b=J5FwNCjWFZfI/BF224JxIS5KD75i0Su1c1us2lUGmh/g0K7fq6M2BfEzU2u+hGVCif teVHWe4o0WS1j1x6RjiB/7Hd0/121oHyIgZk2rVJHJMAczztHzKOBlekCX/sEKIwzIYZ LUYzRrQV44IShmc5Coc8818WF9otJZH7SMAdI= MIME-Version: 1.0 Received: by 10.182.11.71 with SMTP id o7mr6948201obb.58.1328282886747; Fri, 03 Feb 2012 07:28:06 -0800 (PST) Received: by 10.182.121.65 with HTTP; Fri, 3 Feb 2012 07:28:06 -0800 (PST) In-Reply-To: <4F2BFB87.5050209@reer.it> References: <4F2BFB87.5050209@reer.it> Date: Fri, 3 Feb 2012 10:28:06 -0500 Message-ID: Subject: Re: Search and replace on a string From: Kevin Anthony To: Manuel Ferrero Content-Type: multipart/alternative; boundary=f46d0447f2d0a0373504b810f554 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 15:28:22 -0000 --f46d0447f2d0a0373504b810f554 Content-Type: text/plain; charset=UTF-8 here's how i do it: gchar* replace_str (const gchar *src,const gchar *find,const gchar *replace){ gchar* retval = g_strdup(src); gchar* ptr = NULL; ptr = g_strstr_len(retval,-1,find); if (ptr != NULL){ gchar* after_find = replace_str(ptr+strlen(find),find,replace); gchar* before_find = g_strndup(retval,ptr-retval); gchar* temp = g_strconcat(before_find,replace,after_find,NULL); g_free(retval); retval = g_strdup(temp); g_free(before_find); g_free(temp); } return retval; } On Fri, Feb 3, 2012 at 10:21 AM, Manuel Ferrero wrote: > I need to search some text in a big string ansd replace it with some other > text. > The big string is null terminated and so is the replacement text. > I read that I can find the wanted text with g_strstr_len, but I can't > figure out how can I do the substitution once I found the text. > Can please someone help me? > Pseudo code or just a hint will be appreciated. > TIA > -- > Regards, > Manuel Ferrero > R&D department > > Reer SpA > Tel. +39 011 2482215 > Fax. +39 011 859867 > > L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe > costituire reato. > Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non > deve essere considerato > come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati > se, via e-mail, > ce ne comunicasse l'errata ricezione. > > The unauthorized use of this e-mail is prohibited and could constitute an > offence. > If you are not the intended recipient of this message its contents shall > be understood as neither > given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail > immediately in that case. > > ______________________________**_________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/**listinfo/gtk-list > -- Thanks Kevin Anthony www.NoSideRacing.com Do you use Banshee? Download the Community Extensions: http://banshee.fm/download/extensions/ --f46d0447f2d0a0373504b810f554 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable here's how i do it:

gchar* replace_str (const g= char *src,const gchar *find,const gchar *replace){
=C2=A0 =C2=A0 = gchar* retval =3D g_strdup(src);
=C2=A0 =C2=A0 gchar* ptr =3D NUL= L;
=C2=A0 =C2=A0 ptr =3D g_strstr_len(retval,-1,find);=C2=A0
=C2=A0 =C2=A0 if (ptr !=3D NULL){
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 gchar* after_find =3D replace_str(ptr+strlen(find),find,replace);
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 gchar* before_find =3D g_strndup(retval,pt= r-retval);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 gchar* temp =3D g_strconca= t(before_find,replace,after_find,NULL);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 g_free(retval);
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 retval =3D g_strdup(temp);
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 g_free(before_find);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 g_free(temp)= ;
=C2=A0 =C2=A0 } =C2=A0=C2=A0
=C2=A0 =C2=A0 return ret= val;
}

On Fri, Feb 3, 2012 at 10:21 AM, Manuel Ferrero <mferrero@reer.it> wrote:
I need to search some text in a big string ansd replace it with some other = text.
The big string is null terminated and so is the replacement text.
I read that I can find the wanted text with g_strstr_len, but I can't f= igure out how can I do the substitution once I found the text.
Can please someone help me?
Pseudo code or just a hint will be appreciated.
TIA
--
Regards,
Manuel Ferrero
R&D department

Reer SpA =C2=A0 =C2=A0 =C2=A0 =C2=A0
Tel. =C2=A0+39 011 2482215
Fax. +39 011 859867

L'utilizzo non autorizzato del presente messaggio e' vietato e potr= ebbe costituire reato.
Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non= deve essere considerato
come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati = se, via e-mail,
ce ne comunicasse l'errata ricezione.

The unauthorized use of this e-mail is prohibited and could constitute an o= ffence.
If you are not the intended recipient of this message its contents shall be= understood as neither
given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediatel= y in that case.

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
http://mail.gnome.org/mailman/listinfo/gtk-list



--
Thanks
Ke= vin Anthony
ww= w.NoSideRacing.com

Do you use Banshee?
Dow= nload the Community Extensions:

--f46d0447f2d0a0373504b810f554-- From mferrero@reer.it Fri Feb 3 15:30:07 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 827B87502DF for ; Fri, 3 Feb 2012 15:30:06 +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] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b+dbMmeNGnmg for ; Fri, 3 Feb 2012 15:29:59 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id DBC2075020C for ; Fri, 3 Feb 2012 15:29:50 +0000 (UTC) X-MDAV-Processed: reer.it, Fri, 03 Feb 2012 16:29:48 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001154842.msg for ; Fri, 03 Feb 2012 16:29:47 +0100 X-Spam-Processed: reer.it, Fri, 03 Feb 2012 16:29:47 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F2BFD8D.7020803@reer.it> Date: Fri, 03 Feb 2012 16:30:21 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Search and replace on a string References: <4F2BFB87.5050209@reer.it> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 15:30:07 -0000 Kevin Anthony ha scritto: > here's how i do it: Thanks a lot. Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From ivor.boaz@gmail.com Fri Feb 3 16:17:13 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 91A57750378 for ; Fri, 3 Feb 2012 16:17:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.956 X-Spam-Level: X-Spam-Status: No, score=-0.956 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, SARE_HTML_USL_OBFU=1.666, SPF_PASS=-0.001, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gUY7JQpgwFwp for ; Fri, 3 Feb 2012 16:17:11 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id D530275033A for ; Fri, 3 Feb 2012 16:17:02 +0000 (UTC) Received: by yhfs35 with SMTP id s35so2255533yhf.27 for ; Fri, 03 Feb 2012 08:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=xswGTINq0MIVIELwOpFgGd1bKaK1cDm9TQOjOT8CSek=; b=mosmnyVP1kOBkBSI9kerPFa/8rCwOZQ6Yf/HReXdzb0QZ5Pa++9VFe6tha/psSCwt0 NPx44674JtzGnI+Lc7C9N7DP8e0eUqXUAUrE+oF+HEuAt6WZMzh2pf16Y8831tvwT6SV eUYXEgNaDR0eu8BWF3xM5yvpaz9+pyoJ8FhTk= Received: by 10.236.80.71 with SMTP id j47mr11667332yhe.28.1328285820197; Fri, 03 Feb 2012 08:17:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.88.18 with HTTP; Fri, 3 Feb 2012 08:16:40 -0800 (PST) In-Reply-To: <4F2BFD8D.7020803@reer.it> References: <4F2BFB87.5050209@reer.it> <4F2BFD8D.7020803@reer.it> From: richard boaz Date: Fri, 3 Feb 2012 17:16:40 +0100 Message-ID: Subject: Re: Search and replace on a string To: Manuel Ferrero Content-Type: multipart/alternative; boundary=20cf30050c16791ed204b811a4a3 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 16:17:13 -0000 --20cf30050c16791ed204b811a4a3 Content-Type: text/plain; charset=ISO-8859-1 or as a macro, i.e., in-line as opposed to calling a function: #define strReplace(a, b, c, d) {char **strs = g_strsplit(a, c, -1); b = g_strjoinv(d, strs); g_strfreev(strs);} where a = input string b = output string, def'ed as (char *) c = string to be replaced d = string to replace with r- On Fri, Feb 3, 2012 at 4:30 PM, Manuel Ferrero wrote: > Kevin Anthony ha scritto: > > > here's how i do it: >> > > Thanks a lot. > > > Reer SpA > Tel. +39 011 2482215 > Fax. +39 011 859867 > > L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe > costituire reato. > Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non > deve essere considerato > come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati > se, via e-mail, > ce ne comunicasse l'errata ricezione. > > The unauthorized use of this e-mail is prohibited and could constitute an > offence. > If you are not the intended recipient of this message its contents shall > be understood as neither > given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail > immediately in that case. > > ______________________________**_________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/**listinfo/gtk-list > --20cf30050c16791ed204b811a4a3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable or as a macro, i.e., in-line as opposed to calling a function:

#define strReplace(a, b, c, d) {char **strs =3D g_strsplit(a, c= , -1); b =3D g_strjoinv(d, strs); g_strfreev(strs);}

where
a =3D input string
b =3D output string, def'e= d as (char *)
c =3D string to be replaced
d =3D string = to replace with

r-

On Fri, Feb 3, 2012 at 4:30 PM, Manuel Ferrero <mferrero@reer.it> wrote:
Kevin Anthony ha scritto:
<= br>
here's how i do it:

Thanks a lot.


Reer SpA =A0 =A0 =A0 =A0
Tel. =A0+39 011 2482215
Fax. +39 011 859867

L'utilizzo non autorizzato del presente messaggio e' vietato e potr= ebbe costituire reato.
Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non= deve essere considerato
come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati = se, via e-mail,
ce ne comunicasse l'errata ricezione.

The unauthorized use of this e-mail is prohibited and could constitute an o= ffence.
If you are not the intended recipient of this message its contents shall be= understood as neither
given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediatel= y in that case.

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
http://mail.gnome.org/mailman/listinfo/gtk-list

--20cf30050c16791ed204b811a4a3-- From bounces@nabble.com Sat Feb 4 07:30:35 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F03D275053E for ; Sat, 4 Feb 2012 07:30:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.036 X-Spam-Level: X-Spam-Status: No, score=-1.036 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KIyJnZk5dlKl for ; Sat, 4 Feb 2012 07:30:33 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by menubar.gnome.org (Postfix) with ESMTP id 2819475053C for ; Sat, 4 Feb 2012 07:30:24 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rta4l-0002bu-6Z for gtk-list@gnome.org; Fri, 03 Feb 2012 23:30:23 -0800 Message-ID: <33261605.post@talk.nabble.com> Date: Fri, 3 Feb 2012 23:30:23 -0800 (PST) From: victor-victor To: gtk-list@gnome.org Subject: How to grab key combination event in GDK? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: nadaeck@hotmail.com X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 07:30:35 -0000 Hello I know how to grab a single key event with gdk, but I'd like to know how to grab a key combination that is *not* using a modifier key. For example I would like to grab when 'GDK_KEY_a' and 'GDK_KEY_right' are pressed simultaneously. As far as I understand, the GdkEventKey structure allows only one key to be grabbed at a time (with or without a modifier key). In SDL, there is the function SDL_GetKeyState() that gets a snapshot of the keyboard state; it returns a pointer to an array; then every key can be checked if pressed or not. Is there something similar in GDK? If not how could I achieve this? Thank you Victor -- View this message in context: http://old.nabble.com/How-to-grab-key-combination-event-in-GDK--tp33261605p33261605.html Sent from the Gtk+ - General mailing list archive at Nabble.com. From ikorot01@gmail.com Sat Feb 4 08:58:05 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9EEC7501AA for ; Sat, 4 Feb 2012 08:58:05 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.45 X-Spam-Level: X-Spam-Status: No, score=-2.45 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tZjf4pLj9wXL for ; Sat, 4 Feb 2012 08:58:03 +0000 (UTC) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by menubar.gnome.org (Postfix) with ESMTP id 3778375017A for ; Sat, 4 Feb 2012 08:57:54 +0000 (UTC) Received: by pbdv10 with SMTP id v10so5141045pbd.27 for ; Sat, 04 Feb 2012 00:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=XVgJt1unvzf5qSL++a3vgWlFeWQEGZ9nFIpzPYEeMy8=; b=kIEJ6zM3Y1+6cRVeVRdSPQIr22vs/JxyFPyJspGgbWufezP10/ZQwKHQ6O/oWH5rlU jlVqeCYn/BqynfqRTsbONQmcCwblr4nelz9h+SaGTNs8HQyaBhzlTcy4P/4m/dpo2UR0 QjyC6rwpd1+H4bSVvCTixV6MTh++QonjMSVvg= MIME-Version: 1.0 Received: by 10.68.218.106 with SMTP id pf10mr25688293pbc.81.1328345873262; Sat, 04 Feb 2012 00:57:53 -0800 (PST) Received: by 10.68.134.169 with HTTP; Sat, 4 Feb 2012 00:57:53 -0800 (PST) Date: Sat, 4 Feb 2012 00:57:53 -0800 Message-ID: Subject: How to differentiate between mouse and keyboard From: Igor Korot To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 08:58:06 -0000 Hi, ALL, >From the GTK+ docs: http://developer.gnome.org/gtk3/stable/GtkComboBox.html#GtkComboBox-popup "The ::popup signal is a keybinding signal which gets emitted to popup the combo box list. The default binding for this signal is Alt+Down." Is it possible to know if the user pressed the keys combination or clicked the mouse on the button arrow? Thank you. From paul@linuxaudiosystems.com Sat Feb 4 15:06:43 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4EBBB7505F2 for ; Sat, 4 Feb 2012 15:06:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, TW_GD=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z3-ohKif6MOT for ; Sat, 4 Feb 2012 15:06:41 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id D5CF57505EA for ; Sat, 4 Feb 2012 15:06:32 +0000 (UTC) Received: by vcmm1 with SMTP id m1so5552856vcm.27 for ; Sat, 04 Feb 2012 07:06:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.108.202 with SMTP id g10mr6260709vcp.24.1328367990643; Sat, 04 Feb 2012 07:06:30 -0800 (PST) Received: by 10.220.9.201 with HTTP; Sat, 4 Feb 2012 07:06:30 -0800 (PST) In-Reply-To: <33261605.post@talk.nabble.com> References: <33261605.post@talk.nabble.com> Date: Sat, 4 Feb 2012 10:06:30 -0500 Message-ID: Subject: Re: How to grab key combination event in GDK? From: Paul Davis To: victor-victor Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 15:06:43 -0000 On Sat, Feb 4, 2012 at 2:30 AM, victor-victor wrote: > > Hello > > I know how to grab a single key event with gdk, but I'd like to know how = to > grab a key combination =A0that is *not* using a modifier key. For example= I > would like to grab when 'GDK_KEY_a' and 'GDK_KEY_right' are pressed > simultaneously. As far as I understand, the GdkEventKey structure allows > only one key to be grabbed at a time (with or without a =A0modifier key). (1) you cannot ever press keys simultaneously. the keyboard is a physical device that is scanned at a given rate by the keyboard electronics. one key will always be discovered to be down "first" even if you could simultaneously depress them. (2) given the above, you will get (in the case of a "simultaneous" key press + release) the following events: key press key press key release key release > In SDL, there is the function SDL_GetKeyState() that gets a snapshot of t= he > keyboard state; it returns a pointer to an array; then every key can be > checked if pressed or not. Is there something similar in GDK? If not how > could I achieve this? there is no similar function available for GTK. look into gdk event filters for gdk windows, which will allow you to catch and handle every single key event no matter what else is done with it. then use a hash map to store which keys are down, and a simple api to search it or return the current "down set". alternatively, use a state machine approach in a regular pair of key press/release handlers. before the first press, you're in state "zero". after the first press, you're in state "one". after the second press, you're in state "two". then trigger things from the state transitions rather than the key presses themselves. --p From salsaman@gmail.com Sat Feb 4 15:35:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 092047505F2 for ; Sat, 4 Feb 2012 15:35:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id okOpEe6QND2O for ; Sat, 4 Feb 2012 15:34:57 +0000 (UTC) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by menubar.gnome.org (Postfix) with ESMTP id 7B9897502B8 for ; Sat, 4 Feb 2012 15:34:48 +0000 (UTC) Received: by qaea17 with SMTP id a17so3089353qae.6 for ; Sat, 04 Feb 2012 07:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=dutbD/me9iVGLlNhKjddsF2dx9m0+50eYIJSVMAgtCQ=; b=eFSUc/9A/BehjgHsuKICSIQkUbMWFOhvIEOU41LgvFAS7yCOTUnPfnmf2uhSq9Dd0X 6CBgM0N1ypQtRs4p2fh7KIZ4z4xV32lqhhFamT57QqXDPhpGJNf2OAi2P50i2J9hlL9h jO7RGuZLDkSAywShS1VVit+3UD/xmLWftnX7w= Received: by 10.224.117.146 with SMTP id r18mr13683850qaq.42.1328369686146; Sat, 04 Feb 2012 07:34:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.236.212 with HTTP; Sat, 4 Feb 2012 07:34:26 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> From: salsaman Date: Sat, 4 Feb 2012 12:34:26 -0300 Message-ID: Subject: Re: How to grab key combination event in GDK? To: Paul Davis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 15:35:00 -0000 Hi Paul, Have a look at gtk_key_snooper_install(). Salsaman. http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman On Sat, Feb 4, 2012 at 12:06, Paul Davis wrote= : > On Sat, Feb 4, 2012 at 2:30 AM, victor-victor wrote= : >> >> Hello >> >> I know how to grab a single key event with gdk, but I'd like to know how= to >> grab a key combination =A0that is *not* using a modifier key. For exampl= e I >> would like to grab when 'GDK_KEY_a' and 'GDK_KEY_right' are pressed >> simultaneously. As far as I understand, the GdkEventKey structure allows >> only one key to be grabbed at a time (with or without a =A0modifier key)= . > > (1) you cannot ever press keys simultaneously. the keyboard is a > physical device that is scanned at a given rate by the keyboard > electronics. one key will always be discovered to be down "first" even > if you could simultaneously depress them. > > (2) given the above, you will get (in the case of a "simultaneous" key > press + release) the following events: > > =A0 =A0 =A0 =A0 =A0 =A0 =A0key press > =A0 =A0 =A0 =A0 =A0 =A0 =A0key press > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0key release > =A0 =A0 =A0 =A0 =A0 =A0 =A0key release > >> In SDL, there is the function SDL_GetKeyState() that gets a snapshot of = the >> keyboard state; it returns a pointer to an array; then every key can be >> checked if pressed or not. Is there something similar in GDK? If not how >> could I achieve this? > > there is no similar function available for GTK. > > look into gdk event filters for gdk windows, which will allow you to > catch and handle every single key event no matter what else is done > with it. then use a hash map to store which keys are down, and a > simple api to search it or return the current "down set". > > alternatively, use a state machine approach in a regular pair of key > press/release handlers. before the first press, you're in state > "zero". after the first press, you're in state "one". after the second > press, you're in state "two". then trigger things from the state > transitions rather than the key presses themselves. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From paul@linuxaudiosystems.com Sat Feb 4 15:54:54 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 544F6750371 for ; Sat, 4 Feb 2012 15:54:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, TW_GD=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T3Z8Vv30OAnn for ; Sat, 4 Feb 2012 15:54:52 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id 3F3F7750362 for ; Sat, 4 Feb 2012 15:54:43 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5434453vbb.27 for ; Sat, 04 Feb 2012 07:54:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.155.196 with SMTP id vy4mr5397320vdb.12.1328370881988; Sat, 04 Feb 2012 07:54:41 -0800 (PST) Received: by 10.220.9.201 with HTTP; Sat, 4 Feb 2012 07:54:41 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> Date: Sat, 4 Feb 2012 10:54:41 -0500 Message-ID: Subject: Re: How to grab key combination event in GDK? From: Paul Davis To: salsaman Content-Type: text/plain; charset=ISO-8859-1 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 15:54:54 -0000 On Sat, Feb 4, 2012 at 10:34 AM, salsaman wrote: > Hi Paul, > Have a look at gtk_key_snooper_install(). key snoopers are deprecated now. we use them in ardour but will switch to gdk event filters soon. From salsaman@gmail.com Sat Feb 4 16:21:35 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C5DCF750642 for ; Sat, 4 Feb 2012 16:21:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GWpoZYnXM8yo for ; Sat, 4 Feb 2012 16:21:33 +0000 (UTC) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id 2272E750643 for ; Sat, 4 Feb 2012 16:21:24 +0000 (UTC) Received: by qcmt40 with SMTP id t40so3556859qcm.27 for ; Sat, 04 Feb 2012 08:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=oB668/bGUmGDknJVp0RT1IAzaj8z665ACroUW4WNEAQ=; b=K34EBwBNvAvfmyNmeCej55k45kFhWM8p6M4z+1KBblJQG0BzFYB0P0/E2DOdw/+cyP 9IV8y5zhIvZyL7pBf6ZSr4Lba0oqvkLPGsoYI+gVmHWphaPsRY78aQad1TKEP75SEjO4 cW9tFARw0R30T3cSFRWPC3fDKBWm4CK246f/8= Received: by 10.224.117.146 with SMTP id r18mr13816362qaq.42.1328372483324; Sat, 04 Feb 2012 08:21:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.236.212 with HTTP; Sat, 4 Feb 2012 08:21:03 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> From: salsaman Date: Sat, 4 Feb 2012 13:21:03 -0300 Message-ID: Subject: Re: How to grab key combination event in GDK? To: Paul Davis Content-Type: text/plain; charset=ISO-8859-1 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 16:21:36 -0000 What do you mean deprecated ? There is no mention of this in the documentation. Salsaman. http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman On Sat, Feb 4, 2012 at 12:54, Paul Davis wrote: > On Sat, Feb 4, 2012 at 10:34 AM, salsaman wrote: >> Hi Paul, >> Have a look at gtk_key_snooper_install(). > > key snoopers are deprecated now. > > we use them in ardour but will switch to gdk event filters soon. From paul@linuxaudiosystems.com Sat Feb 4 16:26:09 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 875E175061D for ; Sat, 4 Feb 2012 16:26:09 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ociHHqVjXmFS for ; Sat, 4 Feb 2012 16:26:06 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id 78AED75038C for ; Sat, 4 Feb 2012 16:25:58 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5450801vbb.27 for ; Sat, 04 Feb 2012 08:25:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.155.196 with SMTP id vy4mr5424050vdb.12.1328372756685; Sat, 04 Feb 2012 08:25:56 -0800 (PST) Received: by 10.220.9.201 with HTTP; Sat, 4 Feb 2012 08:25:56 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> Date: Sat, 4 Feb 2012 11:25:56 -0500 Message-ID: Subject: Re: How to grab key combination event in GDK? From: Paul Davis To: salsaman Content-Type: text/plain; charset=ISO-8859-1 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 16:26:09 -0000 On Sat, Feb 4, 2012 at 11:21 AM, salsaman wrote: > What do you mean deprecated ? There is no mention of this in the documentation. i'm looking ahead to 3.0 and i talk to the GTK guys regularly on IRC. From salsaman@gmail.com Sat Feb 4 16:42:12 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1509A750639 for ; Sat, 4 Feb 2012 16:42:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wnf64DVLYmuH for ; Sat, 4 Feb 2012 16:42:09 +0000 (UTC) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id 3CBC575061D for ; Sat, 4 Feb 2012 16:42:00 +0000 (UTC) Received: by qcmt40 with SMTP id t40so3564681qcm.27 for ; Sat, 04 Feb 2012 08:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=uuaI+u6IsaFSoZg7HC94TRHpYJvqqkaANqywqNxkGGk=; b=sv1Puub40DgF0FWu9oTpvzXMm9C5UYYxZfvcHQLvn8T5aFFnFkmTnmYGeGBDsMFGyA JqrpvldVRu9NsCH16NnsR352xlc4Ohg2Iygy4TssRIdp3DUkPEotf+Dv8zH7tLTGLt6g 8YmtvnbgRvym1ai8bkoaSUVzRtEWZreFx8ldM= Received: by 10.224.116.201 with SMTP id n9mr7147854qaq.16.1328373719158; Sat, 04 Feb 2012 08:41:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.236.212 with HTTP; Sat, 4 Feb 2012 08:41:39 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> From: salsaman Date: Sat, 4 Feb 2012 13:41:39 -0300 Message-ID: Subject: Re: How to grab key combination event in GDK? To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 16:42:12 -0000 So whats the replacement ? Set key event handlers for every single window ? That makes no sense. Why remove a function which works perfectly well, which people are relying on ? WHY WHY WHY ??? I just do not get it. Do you just roll a dice and decide which function to drop next ? Im sorry, but all I have seen so far of GTK+3 is function after function being removed, little or no documentation explaining the replacement, no reasoning given as to why any function has to be removed. I can tell you what will happen. You will have a whole load of applications using GTK+2 which will never be upgraded to GTK+3. Then you will have a load of GTK+3 apps. You will end up having to support both sets. Good luck to you all in that. Regards, Salsaman. http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman On Sat, Feb 4, 2012 at 13:25, Paul Davis wrote: > On Sat, Feb 4, 2012 at 11:21 AM, salsaman wrote: >> What do you mean deprecated ? There is no mention of this in the documentation. > > i'm looking ahead to 3.0 and i talk to the GTK guys regularly on IRC. From paul@linuxaudiosystems.com Sat Feb 4 17:08:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 02B81750685 for ; Sat, 4 Feb 2012 17:08:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.523 X-Spam-Level: X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z6tjtxs0R5lg for ; Sat, 4 Feb 2012 17:07:58 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id E16AF75067E for ; Sat, 4 Feb 2012 17:07:49 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5471995vbb.27 for ; Sat, 04 Feb 2012 09:07:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.155.196 with SMTP id vy4mr5459898vdb.12.1328375267902; Sat, 04 Feb 2012 09:07:47 -0800 (PST) Received: by 10.220.9.201 with HTTP; Sat, 4 Feb 2012 09:07:47 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> Date: Sat, 4 Feb 2012 12:07:47 -0500 Message-ID: Subject: Re: How to grab key combination event in GDK? From: Paul Davis To: salsaman Content-Type: text/plain; charset=ISO-8859-1 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 17:08:00 -0000 On Sat, Feb 4, 2012 at 11:41 AM, salsaman wrote: > So whats the replacement ? Set key event handlers for every single window ? > > That makes no sense. Why remove a function which works perfectly well, > which people are relying on ? gdk_window_add_filter (NULL, ....) works for all windows. anyway, key snooping has not been removed and its not *officially* deprecated even in gtk3 (yet). furthermore, deprecation is not removal. > Im sorry, but all I have seen so far of GTK+3 is function after > function being removed, little or no documentation explaining the > replacement, no reasoning given as to why any function has to be > removed. i live in an interesting place. on the one hand, i'm the lead dev of a big, complicated project that uses GTK. as such, i tend to have the same kind of judgement that you're expressing here. but on the other hand, from time to time i also get involved with OS X support in GTK, or trying to fix very specific issues with GTK, which gets me much closer and involved with the core GTK team. far from being the raving crazed fools that you're sort of portraying them to be, i find that they actually have a vision, and that their decisions have clear rationales behind them. do they spend documenting all that stuff for developers? no. why not? because there is only so much time in a day, and that time is arguably better (and certainly more enjoyably) spent actually doing stuff. i know that with ardour, we rarely (if ever) talk about development plans on our "development" mailing list anymore, except for a few topics where for some reason broader input is needed. almost all of our development discussion, both with users and other devs, is now on IRC. GTK is much the same way. if you're on the channel, you'll see a lot of discussion about stuff; if you're on the ML you'll see occasional communications about big things that could and should take some time. > I can tell you what will happen. You will have a whole load of > applications using GTK+2 which will never be upgraded to GTK+3. Very few people use key snoopers. That would be my guess. I don't even need them in ardour, if i was willing to do a bit more work. > you will have a load of GTK+3 apps. You will end up having to support > both sets. Good luck to you all in that. Nobody "supports" GTK2 anymore, other than basic maintainance stuff. From salsaman@gmail.com Sat Feb 4 17:47:50 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8C06A750686 for ; Sat, 4 Feb 2012 17:47:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HcjUpovC-mu6 for ; Sat, 4 Feb 2012 17:47:48 +0000 (UTC) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id 35AE8750682 for ; Sat, 4 Feb 2012 17:47:39 +0000 (UTC) Received: by qcmt40 with SMTP id t40so3588963qcm.27 for ; Sat, 04 Feb 2012 09:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=4+nx/1q/SOhrAQjck72KA+WXP63QVrWhNSPhrRJGtws=; b=KNu0vsr0OyzwoNlmuvEeBpOkkMVezAn+/yGzLDjjViuX6eGVPN/nWtVTyd5tsqUITC EEX/NKxCz1qFDTA5MCiv2Yg5HaFQUFadMUWzmI5ky1s41kIPa1aZyFouSc18AlLOosfZ s65e40ocMRhxF7ustWufu0RILesFPIQuHlQyg= Received: by 10.229.136.137 with SMTP id r9mr4433286qct.92.1328377658102; Sat, 04 Feb 2012 09:47:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.236.212 with HTTP; Sat, 4 Feb 2012 09:47:18 -0800 (PST) In-Reply-To: References: <33261605.post@talk.nabble.com> From: salsaman Date: Sat, 4 Feb 2012 14:47:18 -0300 Message-ID: Subject: Re: How to grab key combination event in GDK? To: Paul Davis Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 17:47:50 -0000 On Sat, Feb 4, 2012 at 14:07, Paul Davis wrote= : > On Sat, Feb 4, 2012 at 11:41 AM, salsaman wrote: >> So whats the replacement ? Set key event handlers for every single windo= w ? >> >> That makes no sense. Why remove a function which works perfectly well, >> which people are relying on ? > > gdk_window_add_filter (NULL, ....) works for all windows. > > anyway, key snooping has not been removed and its not *officially* > deprecated even in gtk3 (yet). furthermore, deprecation is not > removal. > >> Im sorry, but all I have seen so far of GTK+3 is function after >> function being removed, little or no documentation explaining the >> replacement, no reasoning given as to why any function has to be >> removed. > > i live in an interesting place. on the one hand, i'm the lead dev of a > big, complicated project that uses GTK. as such, i tend to have the > same kind of judgement that you're expressing here. but on the other > hand, from time to time i also get involved with OS X support in GTK, > or trying to fix very specific issues with GTK, which gets me much > closer and involved with the core GTK team. far from being the raving > crazed fools that you're sort of portraying them to be, =A0i find that > they actually have a vision, and that their decisions have clear > rationales behind them. do they spend documenting all that stuff for > developers? no. why not? because there is only so much time in a day, > and that time is arguably better (and certainly more enjoyably) spent > actually doing stuff. > > i know that with ardour, we rarely (if ever) talk about development > plans on our "development" mailing list anymore, except for a few > topics where for some reason broader input is needed. almost all of > our development discussion, both with users and other devs, is now on > IRC. GTK is much the same way. if you're on the channel, you'll see a > lot of discussion about stuff; if you're on the ML you'll see > occasional communications about big things that could and should take > some time. > I'm sorry yes, the timing of your message was bad - I just had a very similar issue with another function being removed [ gdk_pixbuf_render_pixmap_and_mask ] apparently with no thought given as to what would replace it, or if there was, certainly no documentation about it. And really, I spend far too much time already testing and writing obscure workarounds for interface issues. I would rather be concentrating on what my app is intented to do - editing and playing video. Just as I am sure you would rather be concentrating on audio production in ardour. The toolkit should be there to solve problems, not require constant attention to be always upgraded like some kind of demented tamagochi. Despite this I think GTK+ is still the best toolkit out there which is why I get so frustrated about issues like this. Regards, Salsaman. From noamraph@gmail.com Sat Feb 4 23:23:50 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62E9F75026E for ; Sat, 4 Feb 2012 23:23:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QUmj3QcJqVZB for ; Sat, 4 Feb 2012 23:23:48 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id 43A3B750610 for ; Sat, 4 Feb 2012 23:23:40 +0000 (UTC) Received: by vcmm1 with SMTP id m1so5762616vcm.27 for ; Sat, 04 Feb 2012 15:23:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=Wv2pyD2ueWWlvs6I/0wqrX8e7kBEs0XCp5f7rMqpGA4=; b=HOUF0b5VU30olzjVid7YNL/3S2oE3CE9gV74mE03DBGZPzhy62Lh2/PkiInozWCIm6 +2OkOXd+KaQ5/KVJCzYR2qBU0pXp5ohlESACimMX/B51WkQQqwJuory2Hft+mHaS+9rx vYm3kVZN4h9m3QQ5zuuS5qUFXHzRVu9gDlALY= Received: by 10.220.209.199 with SMTP id gh7mr6732511vcb.0.1328397817168; Sat, 04 Feb 2012 15:23:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.168.228 with HTTP; Sat, 4 Feb 2012 15:23:22 -0800 (PST) From: Noam Yorav-Raphael Date: Sun, 5 Feb 2012 01:23:22 +0200 Message-ID: Subject: Calling idle callbacks without handling events To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=bcaec54ee74a03449004b82bb895 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 23:23:50 -0000 --bcaec54ee74a03449004b82bb895 Content-Type: text/plain; charset=UTF-8 Hello, I'm the creator of a program called DreamPie, and there's one GTK bug that causes it to crash ( https://bugzilla.gnome.org/show_bug.cgi?id=611069 ). I now found the cause of the bug and filed a patch, and I wonder if a workaround is possible, for users of current and old GTK versions. What caused the bug is that GtkTextView uses some idle callbacks (functions called by idle_add). If an event is emitted before they are handled, the program crashes. Is there a way to make gtk/glib process idle callbacks without handling events? If there is, I would use it after I add text to the TextView, and solve the problem. Thanks, Noam --bcaec54ee74a03449004b82bb895 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I'm the creator of a program= called DreamPie, and there's one GTK bug that causes it to crash (=C2= =A0https://= bugzilla.gnome.org/show_bug.cgi?id=3D611069=C2=A0). I now found the cau= se of the bug and filed a patch, and I wonder if a workaround is possible, = for users of current and old GTK versions.

What caused the bug is that GtkTextView uses some idle = callbacks (functions called by idle_add). If an event is emitted before the= y are handled, the program crashes.

Is there a way= to make gtk/glib process idle callbacks without handling events? If there = is, I would use it after I add text to the TextView, and solve the problem.=

Thanks,
Noam
--bcaec54ee74a03449004b82bb895-- From bounces@nabble.com Sat Feb 4 23:41:21 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0E6B67502A3 for ; Sat, 4 Feb 2012 23:41:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.959 X-Spam-Level: X-Spam-Status: No, score=-0.959 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, SPF_PASS=-0.001, TW_GD=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NfopCxxSIGFE for ; Sat, 4 Feb 2012 23:41:19 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by menubar.gnome.org (Postfix) with ESMTP id 3BAE175026E for ; Sat, 4 Feb 2012 23:41:10 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RtpEC-00071M-Cm for gtk-list@gnome.org; Sat, 04 Feb 2012 15:41:08 -0800 Message-ID: <33264604.post@talk.nabble.com> Date: Sat, 4 Feb 2012 15:41:08 -0800 (PST) From: victor-victor To: gtk-list@gnome.org Subject: Re: How to grab key combination event in GDK? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: nadaeck@hotmail.com References: <33261605.post@talk.nabble.com> X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 23:41:21 -0000 >look into gdk event filters for gdk windows, which will allow you to >catch and handle every single key event no matter what else is done >with it. then use a hash map to store which keys are down, and a >simple api to search it or return the current "down set". I applied this method and it works indeed. Thank you very much Paul Victor -- View this message in context: http://old.nabble.com/How-to-grab-key-combination-event-in-GDK--tp33261605p33264604.html Sent from the Gtk+ - General mailing list archive at Nabble.com. From salsaman@gmail.com Sun Feb 5 00:09:49 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 749D575068B for ; Sun, 5 Feb 2012 00:09:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GD=0.077, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Clwu2PfAXnaT for ; Sun, 5 Feb 2012 00:09:46 +0000 (UTC) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by menubar.gnome.org (Postfix) with ESMTP id 804A3750689 for ; Sun, 5 Feb 2012 00:09:37 +0000 (UTC) Received: by qcmt40 with SMTP id t40so3698090qcm.27 for ; Sat, 04 Feb 2012 16:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=CJfdO6vQgx7pyIzB/1pQoskUhBis6YWzuCScuiRm6Go=; b=dbLEp7knybk+GNcMSQarvapXHaT0xqkAMpoQGC/rAft280cgwVxGVmb6oFFC+VEn/1 MEfBo+wXPiZFFl3ysCHRuemRynSe+ASiT2jWzYyCEhFmQgT+Gwp8o/UTQhxO58Y8O7Br SZV2NWei+2w1aTaJVRZtpOQ6BjUOTxF0o0p+U= Received: by 10.224.181.143 with SMTP id by15mr15106071qab.29.1328400575124; Sat, 04 Feb 2012 16:09:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.236.212 with HTTP; Sat, 4 Feb 2012 16:09:15 -0800 (PST) In-Reply-To: <33264604.post@talk.nabble.com> References: <33261605.post@talk.nabble.com> <33264604.post@talk.nabble.com> From: salsaman Date: Sat, 4 Feb 2012 21:09:15 -0300 Message-ID: Subject: Re: How to grab key combination event in GDK? To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 00:09:49 -0000 Yes I have it working here too. My thanks also. Salsaman. http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman On Sat, Feb 4, 2012 at 20:41, victor-victor wrote: > > > >>look into gdk event filters for gdk windows, which will allow you to >>catch and handle every single key event no matter what else is done >>with it. then use a hash map to store which keys are down, and a >>simple api to search it or return the current "down set". > > I applied this method and it works indeed. > > Thank you very much Paul > > Victor > -- > View this message in context: http://old.nabble.com/How-to-grab-key-combination-event-in-GDK--tp33261605p33264604.html > Sent from the Gtk+ - General mailing list archive at Nabble.com. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From gnome-gtk-list@m.gmane.org Sun Feb 5 13:05:18 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D078D7507B2 for ; Sun, 5 Feb 2012 13:05:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.911 X-Spam-Level: X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, UNPARSEABLE_RELAY=0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3th5iiwkmU4t for ; Sun, 5 Feb 2012 13:05:17 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by menubar.gnome.org (Postfix) with ESMTP id F24C87507B1 for ; Sun, 5 Feb 2012 13:05:08 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ru1mB-0001fd-8Q for gtk-list@gnome.org; Sun, 05 Feb 2012 14:05:03 +0100 Received: from 217-199-25-182.ip.bkom.it ([217-199-25-182.ip.bkom.it]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Feb 2012 14:05:03 +0100 Received: from wavexx by 217-199-25-182.ip.bkom.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Feb 2012 14:05:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Yuri D'Elia Subject: Tearoff menus Date: Sun, 5 Feb 2012 12:53:30 +0000 (UTC) Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 217.199.25.182 (Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 Iceweasel/10.0) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 13:05:19 -0000 Hi everyone. In the past I remember using tear-off menus in GTK+ applications frequently. Today I wanted to use a badly designed GTK+ application with a huge menu system, and discovered that I cannot actually detach menus anymore. In fact, the only GTK+ application having tear-off menus that I could find on my system is DIA (non-gnome version). How can I force _ALL_ menus to be tear-off? The GtkUiManager::add-tearoffs property doesn't seem to do absolutely nothing. Thanks From sezeroz@gmail.com Tue Feb 7 08:20:41 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C89C750189 for ; Tue, 7 Feb 2012 08:20:41 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9osY0z+NFsrW for ; Tue, 7 Feb 2012 08:20:35 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id 3617B750184 for ; Tue, 7 Feb 2012 08:20:29 +0000 (UTC) Received: by vcmm1 with SMTP id m1so7994749vcm.27 for ; Tue, 07 Feb 2012 00:20:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=+IDyBYTaC1bAlRZzoWJyKp+wwNmHwX+wMNXiibfqbe4=; b=fZip8xFT0ySGZRhbsew8yEl+RQH1CHDi6d3u/YAVdodrxJfMPuSerHv6l34O24brtB 3NvlCSDGELhQY9ms3ObO9bcZTDcNTPjSjsxG1MNVKRj9Z5EYwbHKiRD4E/tj9mtxEW3v gIt7xFo5dz2auWlVE4mxLTks8/Dr4WR8iu9+8= MIME-Version: 1.0 Received: by 10.220.226.202 with SMTP id ix10mr6386987vcb.38.1328602828612; Tue, 07 Feb 2012 00:20:28 -0800 (PST) Received: by 10.220.118.148 with HTTP; Tue, 7 Feb 2012 00:20:28 -0800 (PST) Date: Tue, 7 Feb 2012 10:20:28 +0200 Message-ID: Subject: menu widgets and connected signals behavior From: Ozkan Sezer To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 08:20:41 -0000 I have a question about the behavior of connected signals when an option menu's menu items are redefined: In my application, I am targeting all three gtk versions. For gtk1 and gtk2 I use GtkOptionMenu and connect to the "selection-done" signal. For gtk3 I use GtkComboBoxText and connect to the "changed" signal. Upon several events, I need to change the contents of the menu: For gtk1/2 I accomplish this by doing a gtk_option_menu_remove_menu() and rebuilding the menu items through calls to gtk_menu_new(), gtk_menu_item_new_with_label(), gtk_menu_shell_append() and gtk_option_menu_set_menu(). For gtk3 it is as simple as calling gtk_combo_box_text_remove_all() and then for the new items calling gtk_combo_box_text_append_text(). My question is, what happens with the signal connected to the previous and now removed-and-replaced menu? To be on the safe side, because I do not know the internals, I disconnect the signals and then reconnect them which does seem to work. However I do not know how necessary this is and whether there is an easier way for all three gtk version lines. Thanks in advance. -- O.S. From joan_quintana@yahoo.com Wed Feb 8 12:24:38 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F526750216 for ; Wed, 8 Feb 2012 12:24:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.009 X-Spam-Level: X-Spam-Status: No, score=-2.009 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id evT0Cxbo2GbE for ; Wed, 8 Feb 2012 12:24:24 +0000 (UTC) Received: from nm21.bullet.mail.bf1.yahoo.com (nm21.bullet.mail.bf1.yahoo.com [98.139.212.180]) by menubar.gnome.org (Postfix) with SMTP id B1B687501A2 for ; Wed, 8 Feb 2012 12:24:17 +0000 (UTC) Received: from [98.139.212.144] by nm21.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 12:24:16 -0000 Received: from [98.139.212.237] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 12:24:16 -0000 Received: from [127.0.0.1] by omp1046.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 12:24:16 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 399838.34691.bm@omp1046.mail.bf1.yahoo.com Received: (qmail 58254 invoked by uid 60001); 8 Feb 2012 12:24:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1328703856; bh=PDXwrAP1vZ1VokMhvVIKmv8+HC+P5z7d0ojrAEDRVXA=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=k77B3ot1+A4u9yUbHe8P3/+6jKkdKQJ2ZR8h6rUfJoX4oDVJJqOSxTyuXMefi3ShfTcqhsPKvtlG58MOzlKtpvOetYpGEwTfkgmRnfEg2p2RULoY3d5m5qv22zRhJUslEYqDWtRHj4vh1yUWN1vyFwr+8tx6ohJYb9+yGUX6T94= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=3KuPrT7i1VdW1D1Ov+XIKpKAYT8XVjV0J96J/3riXiKSTFraSo0Cq8Uj+KyiM2ozDZr1JtUJh8nSLGrFE15b+Q38dx5QCNIgVPcaG5n/zdj7W0Fg8biGO2uRvwAB/f/s+qhzpOwwErbAxSD7xW0azBZs68TPH6Rb5JjDgFxsct0=; X-YMail-OSG: 96L9dtkVM1k1U2gXiOoJtI9_gbkDW0jAQ_PAqU2DSnKh.ts MvRdAzrEePhxw6cMLcFH2Ngf9x7L7V3rnEiwUT6LXbtCeucI0XqHSqQSnJTU ANLMGXRPry0zNIKJHZKQG5QPmfov7PjkINfpEsteJpn5lQWX1y5rx9IdrkpK pdKUJ5DC5ZShiduNqWPuUccKoWNOnEbXOdEvnTWP301KvD8r9MtjoKH5Od_B dROc9cOLRkNd9HC7T2DmopDUmpq13f0_DAzLLICiNeBqTMgVwfnTEYSu0bLa WP.1Gkwyh9EGPsj24Tga6SpUDfftqA.QBL1_kFM1vQv4DfmHHeFujJjB.tJd Kao7Wg0cSzp1OszKzp_VAK6qy0DFv0YZ_szr4oxzqAYAvssQqipbadgfLKcU yFQRXqNJjbTFpvoes7hyAoD.vYxwSRTG4E88mUP8F2oGtl2XHklNI9OrjQ_m 43MkGv2kjlRyutnEgNEtRB95w9b78cgNinhP23Q6TvqxjghCZWoreM2WoENB Gubsw1vnaLaQKxbEJCVZHLsS10bd2T9_KC6SO3u.y4h39TmRc8ZlwGOE0s1f NfxcRjkw- Received: from [95.17.68.70] by web161904.mail.bf1.yahoo.com via HTTP; Wed, 08 Feb 2012 04:24:16 PST X-Mailer: YahooMailClassic/15.0.4 YahooMailWebService/0.8.116.338427 Message-ID: <1328703856.53856.YahooMailClassic@web161904.mail.bf1.yahoo.com> Date: Wed, 8 Feb 2012 04:24:16 -0800 (PST) From: Joan Quintana Subject: wacom programming and GIMP problem To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 12:24:38 -0000 Hey friends, I want to solve a problem that I'm dealing with. I have a wacom tablet, and I can detect programatically the pen movement. Basically I'm using this code (xopen.c, http://www.bolthole.com/solaris/drivers/xopen.c), and it works as expected when I move my pen around the tablet, and the cursor moves around the screen, where there are several windows. Now I open GIMP, and the Wacom works perfect with GIMP. The problem is that when the pen is focused on the drawing window of GIMP I have no events in my CLI xopen application. I think this is a Glib programming question, maybe I can tell xopen.c to listen the events associated with GIMP Windows (I don't kno how...). The idea that I'm folloging is to draw with GIMP and trigger synth sounds wile I'm drawing... this is the reason why I need an integration between GIMP and my code. thanks in advance From joan_quintana@yahoo.com Wed Feb 8 14:22:47 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D82847502E7 for ; Wed, 8 Feb 2012 14:22:47 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.932 X-Spam-Level: X-Spam-Status: No, score=-1.932 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, TW_GT=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tf9VQIY2Pog9 for ; Wed, 8 Feb 2012 14:22:41 +0000 (UTC) Received: from nm18-vm1.bullet.mail.bf1.yahoo.com (nm18-vm1.bullet.mail.bf1.yahoo.com [98.139.213.145]) by menubar.gnome.org (Postfix) with SMTP id 52F447502E6 for ; Wed, 8 Feb 2012 14:22:35 +0000 (UTC) Received: from [98.139.215.142] by nm18.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 14:22:34 -0000 Received: from [98.139.212.205] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 14:22:34 -0000 Received: from [127.0.0.1] by omp1014.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 14:22:34 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 240961.98741.bm@omp1014.mail.bf1.yahoo.com Received: (qmail 92415 invoked by uid 60001); 8 Feb 2012 14:22:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1328710954; bh=fylDR010t4PeALl3EHisqT8qshB+1z9NKsglg5NedYc=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=B6rcSUZzKUJpMKyeusAGs3AtL6bo8tQdwqAuK/pkgcD6JNh46AWQmvv7TR6u8ptlEOfHNnnnVhfMOzc4WmZXRxNPHTVHxnmPrCWxzj9MezDV+WuNy4ezNejPQ4D/WL3pEOPhy5OqRVcuUWG02q3SnVgEFmbwppJjrWJtFb3bQjI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=wZZ5w1Avjau6hf3GZEANwbAK5zt0NrT1qV3qBIE3eKqhC0xThxyO3HuYGAEZoiCBDV+nuB57pZWjhX+P39eNIv24hJpL3eD5B437gLt7TLhx8wEBCcEZMwa48U+8xJjhDyoiaJbJsbsMKN5Jmz8sn7BMSuHDaUkpB1tL1J1695I=; X-YMail-OSG: O9__JGgVM1m4oe76kgQAWz21nKEChPHPamz5jr9Y8yzKku6 55J5PmlqSZ4VyaHkpDvzvB8XHf8XjO4386LcNJHA93CgKiDELXR77xEMvfrb KjwovcCsOeG_So0vtRZx9yU_Cuuf6UUdh29IEbNauQXaMQhkjxCsJ6QFfX_l gM07J_Q2A2oZWfxTBPU5PmjfYbkrQPkvMvN.juuAP0oqoD5clvp00DruJ.kE kR7NiBl7nUd8sPtK4g25NVyn6rO264cHMl63pRL6a6h15ZqSDlddyjnELxtP EiKSGNOc1c95BUmC3aWOeUnIvyGukKxUqqzwbRsu0dE0Du5.7gtKjdUbULJT n3UmjgmF_V.tzy4ow2qm8U.94dFDh9JIrOStPSkeSSntltMWH4ffAc_ZhDaH 4Kxg95JraGN7UunK2TEXVWAlFjET2.02bJCRvFfBk4GbngqWq_Z3efOA2.aQ 5KdsJS3qZlOCgssDyTM24ovHEWGxO04IJU3t19Px42xV4I4qZdY61UD9MTCV U5_B.XCsRrUZztKS_LOiAvmbjfZRfCH2GJ9KArSDbZ3BImiC7e6JOUy4ROtc GBJYioNQxohuYdfFaT6kSSn8YuMyWdKiIv2Y- Received: from [213.176.161.198] by web161902.mail.bf1.yahoo.com via HTTP; Wed, 08 Feb 2012 06:22:34 PST X-Mailer: YahooMailClassic/15.0.4 YahooMailWebService/0.8.116.338427 Message-ID: <1328710954.82516.YahooMailClassic@web161902.mail.bf1.yahoo.com> Date: Wed, 8 Feb 2012 06:22:34 -0800 (PST) From: Joan Quintana Subject: Re: wacom programming and GIMP problem To: gtk-list@gnome.org In-Reply-To: <1328703856.53856.YahooMailClassic@web161904.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 14:22:48 -0000 I have found a weird solution. It was necessary to detect buttonPressEventType and buttonReleaseEventType event (a part of motionEventType), and more important, to start GIMP with sudo (!). Finally it works and I can draw with GIMP and execute a code in the background that responses to my pen movement. Joan Q --- On Wed, 2/8/12, Joan Quintana wrote: > From: Joan Quintana > Subject: wacom programming and GIMP problem > To: gtk-list@gnome.org > Date: Wednesday, February 8, 2012, 12:24 PM > Hey friends, I want to solve a > problem that I'm dealing with. > > I have a wacom tablet, and I can detect programatically the > pen movement. Basically I'm using this code (xopen.c, http://www.bolthole.com/solaris/drivers/xopen.c), and > it works as expected when I move my pen around the tablet, > and the cursor moves around the screen, where there are > several windows. > > Now I open GIMP, and the Wacom works perfect with GIMP. The > problem is that when the pen is focused on the drawing > window of GIMP I have no events in my CLI xopen > application. > > I think this is a Glib programming question, maybe I can > tell xopen.c to listen the events associated with GIMP > Windows (I don't kno how...). > > The idea that I'm folloging is to draw with GIMP and trigger > synth sounds wile I'm drawing... this is the reason why I > need an integration between GIMP and my code. > > thanks in advance > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mferrero@reer.it Thu Feb 9 14:06:58 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D4DC175025E for ; Thu, 9 Feb 2012 14:06:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.5 X-Spam-Level: X-Spam-Status: No, score=-0.5 tagged_above=-999 required=2 tests=[BAYES_05=-0.5] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bdzQdcNb5tl4 for ; Thu, 9 Feb 2012 14:06:56 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id 7213075023B for ; Thu, 9 Feb 2012 14:06:47 +0000 (UTC) X-MDAV-Processed: reer.it, Thu, 09 Feb 2012 15:02:39 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001160020.msg for ; Thu, 09 Feb 2012 15:02:38 +0100 X-Spam-Processed: reer.it, Thu, 09 Feb 2012 15:02:38 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F33D233.1050108@reer.it> Date: Thu, 09 Feb 2012 15:03:31 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: g_strsplit() return Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 14:06:59 -0000 I have this code: ---SNIP--- GString *my_gstring; gchar **strings_vector; gchar **single_string_vector; my_gstring = g_string_sized_new(1024); g_string_assign(my_gstring, "AB\tCD\tEF\n12\t34\t56"); strings_vector = g_strsplit(string_vector[i], "\n", -1); // now string_vector has two elements: // [0] is AB\tCD\tEF // [1] is 12\t34\t56 for(i=0;i<2;i++) { single_string_vector = g_strsplit(strings_vector[i], "\t", -1); some_other_code(); g_strfreev(single_string_vector, TRUE); // do I need this here? } g_strfreev(strings_vector, TRUE); ---PINS--- The g_strsplit() documentation says it returns a newly-allocated NULL-terminated array of strings. The "newly-allocated" means that I have to call g_strfreev(single_string_vector, TRUE) in the for loop or can I just do it once outside the cycle? TIA -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From ian.liu88@gmail.com Thu Feb 9 15:03:47 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 03135750219 for ; Thu, 9 Feb 2012 15:03:47 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.449 X-Spam-Level: X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZT3gZRFBP22y for ; Thu, 9 Feb 2012 15:03:28 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id 2806D750167 for ; Thu, 9 Feb 2012 15:03:19 +0000 (UTC) Received: by ghbg15 with SMTP id g15so1265831ghb.27 for ; Thu, 09 Feb 2012 07:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=shG8g16SIdI+6YtTUbpSbG954qclG1HUlb1Tvia4PQs=; b=TW2UBYp6Olp/L8JCWT0FKd2qV6Ulj2xrIpLhSQnZnNeoc4JUH01jeMBnL4G2Yx68Iv r4B1jpdc1UlPPxtfyIE8QcfB1uE0OvvyUbFyZ49fSrcWK2V2ekFgTmZkqGJvfO2VdZ36 2UZoisfkrqjNUpo0n2r8ZMq8hnEyjDZSHOyDE= Received: by 10.182.216.41 with SMTP id on9mr2247393obc.18.1328799798276; Thu, 09 Feb 2012 07:03:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.72.162 with HTTP; Thu, 9 Feb 2012 07:02:48 -0800 (PST) In-Reply-To: <4F33D233.1050108@reer.it> References: <4F33D233.1050108@reer.it> From: Ian Liu Rodrigues Date: Thu, 9 Feb 2012 13:02:48 -0200 Message-ID: Subject: Re: g_strsplit() return To: Manuel Ferrero Content-Type: multipart/alternative; boundary=f46d04478a7ff4304404b8894f3a Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 15:03:47 -0000 --f46d04478a7ff4304404b8894f3a Content-Type: text/plain; charset=ISO-8859-1 > > The "newly-allocated" means that I have to call > g_strfreev(single_string_vector, TRUE) in the for loop or can I just do it > once outside the cycle? > You must free inside the loop, since a vector is allocated in every iteration. Regards, Ian L. Rodrigues --f46d04478a7ff4304404b8894f3a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The "newly-allocated" means that I have to call g_strfreev(single= _string_vector, TRUE) in the for loop or can I just do it once outside the = cycle?

You must free inside the loop, since a vect= or is allocated in every iteration.

Regards,
Ian L. Rodrigues
--f46d04478a7ff4304404b8894f3a-- From mferrero@reer.it Thu Feb 9 17:13:01 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6431875017F for ; Thu, 9 Feb 2012 17:13:01 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.515 X-Spam-Level: X-Spam-Status: No, score=-1.515 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BP=0.077, TW_GD=0.077, TW_GT=0.077, TW_LG=0.077, TW_LQ=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4dy47+XbubS9 for ; Thu, 9 Feb 2012 17:12:55 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id E4748750233 for ; Thu, 9 Feb 2012 17:12:46 +0000 (UTC) X-MDAV-Processed: reer.it, Thu, 09 Feb 2012 18:08:47 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001160331.msg for ; Thu, 09 Feb 2012 18:08:47 +0100 X-Spam-Processed: reer.it, Thu, 09 Feb 2012 18:08:47 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F33FDD4.3070703@reer.it> Date: Thu, 09 Feb 2012 18:09:40 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Install GTK on windows using no official installers References: <17967.16153.734000.210937@gargle.gargle.HOWL> In-Reply-To: <17967.16153.734000.210937@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 17:13:01 -0000 Tor Lillqvist wrote: > > what files should be copied, what environment variables > > modified... and so on? > > I could try to list them, but you learn best by doing, so I will tell you > how to do that: > > Start by fetching from http://ftp.gnome.org/pub/gnome/binaries/win32/ > the latest run-time zipfiles (not the *-dev-* ones) for gtk+, pango, > atk, glib. From the depencensies subfolder get the latest cairo, > gettext, and libiconv run-time zipfiles. If you know that your app > will need the libpng pixbuf loader at run-time, also get libpng and > zlib. > > Unzip all the above in some new empty folder. Add the "bin" folder of > that to your PATH environment variable. > > Then start removing stuff you think your app and your customers won't > need. For instance, if you don't have any need for localised strings from > gtk+ etc, you can remove everything from lib/locale . If you want localised > strings, but not for some "exotic" languages, remove the corresponding > subfolders from lib/locale. > > If you don't need pixbuf loaders for "exotic" image formats, remove > those dlls from lib/gtk-2.0/2.10.0/loaders . > > If you don't need gtk+ input modules, drop lib/gtk-2.0/2.10.0/immodules > . Also, then edit etc/gtk-2.0/gtk.immodules. > > If you want the MS-Windows theme to be the default, create a file > etc/gtk-2.0/gtkrc with the line gtk-theme-name = "MS-Windows" . Otherwise, > if you don't want the end-users to be able to change theme engine, drop > lib/gtk-2.0/2.10.0/engines and share/themes/MS-Windows . > > If you don't need the Freetype2 Pango backend (and you presumably > won't), remove bin/linpangoft2-1.0-0.dll. > > Hmm, that should be about it. If I forgot something obvious that can > also be dropped, please follow-up... > > Then you add what's left to your application's installer. > > Don't change the folder substructure. Keep the DLLs in the "bin" > subfolder for instance. > > It's easiest to put your application's exe file in the same "bin" folder > and have your Start Menu etc shortcuts point to that. Otherwise you will > have to make sure that the "bin" folder is included in PATH when the > end-user runs your app, either by having your installer modifying the > environment variable, using the App Paths Registry method, using a tiny > wrapper executable that modifies PATH, or something else. > > The recommended way (at least if I am doing the recommentation) is indeed > to install a copy of GTK+ with each application (or set of applications > originating from the same maintainer / packager) that uses it. This is > unlike Linux, I know. But attempts to use a shared GTK+ installation on > Windows between applications developed and distributed by unrelated parties > have not really been successful. First of all, sorry for resurrecting such an old thread. I'm done coding, now I'd like to deploy my application to a customer. I read about how GTK should not be static compiled in my application and how I sould rather distribute the toolkit with it. I stumbled in this message and I tried to follow all the steps to create my package, but it's not working. My application (let's call it my_app.exe) is for win32 and it's compiled with Code::blocks and MinGW, I used Glade3 to create the GUI and GtkBuilder to load it. I used Inno setup to create the installer. I downloaded the following packages: atk_1.32.0-2_win32.zip gdk-pixbuf_2.24.0-1_win32.zip glib_2.28.8-1_win32.zip gtk+_2.24.10-1_win32.zip pango_1.29.4-1_win32.zip Then I unzipped all the packages in a directory and then I added my_app.exe file in the bin directory. Right now I don't need to reduce the installer so I don't removed any file from the GTK tree, even if the application don't use some of them. During the installation process I don't want to set up any environment variable and afaik placing my_app.exe file in the bin directory is the way to avoid it. If I try to install the package on a new machine and run my application I get an error about the entry point for g_strcmp0 in libglib-2.0-0.dll. I checked, that dll is in the bin directory in the new machine. The command line I used to compile one of the project file is this (I separate all the compiling switches for reading commodity): mingw32-gcc.exe -Wall -mms-bitfields -IC:/Programmi/Gtk+/include/gtk-2.0 -IC:/Programmi/Gtk+/lib/gtk-2.0/include -IC:/Programmi/Gtk+/include/atk-1.0 -IC:/Programmi/Gtk+/include/cairo -IC:/Programmi/Gtk+/include/gdk-pixbuf-2.0 -IC:/Programmi/Gtk+/include/pango-1.0 -IC:/Programmi/Gtk+/include/glib-2.0 -IC:/Programmi/Gtk+/lib/glib-2.0/include -IC:/Programmi/Gtk+/include -IC:/Programmi/Gtk+/include/freetype2 -IC:/Programmi/Gtk+/include/libpng14 -O2 -c C:\Progetti\callbacks.c -o obj\Release\callbacks.o And the cli for the linker: mingw32-g++.exe -o bin\Release\my_app.exe obj\Release\callbacks.o obj\Release\my_app.o -LC:/Programmi/Gtk+/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -s -lgtk-win32-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0 -mwindows Any help, please? -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From agnel.kurian@gmail.com Thu Feb 9 21:29:26 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D63F975027B for ; Thu, 9 Feb 2012 21:29:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p+45QyHMn846 for ; Thu, 9 Feb 2012 21:29:24 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by menubar.gnome.org (Postfix) with ESMTP id B55107501F5 for ; Thu, 9 Feb 2012 21:29:15 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so2556680wib.27 for ; Thu, 09 Feb 2012 13:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=9+ZhN/0qc1MUv3X/48T5E4tsi3dRSwzDxBgqoeisH+M=; b=KbWp/rIpkVP3VnVWUHgtXA4vM/Ys3hQsfqPFtBXg5j332RSJoUakEUZMgJVcp1296L EGvQ/vMqj/1QOXh9LMOVNnaW3yHjJXWKkdgOmDtFe0qTA3bGGgqzYLVOewEDSSqxRt3U Is9WnjYg1HM6jRuanI17nAN5t5o99/BEsZuaM= Received: by 10.180.79.229 with SMTP id m5mr5323354wix.6.1328822953485; Thu, 09 Feb 2012 13:29:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.96.65 with HTTP; Thu, 9 Feb 2012 13:28:53 -0800 (PST) From: Agnel Kurian Date: Fri, 10 Feb 2012 02:58:53 +0530 Message-ID: Subject: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=f46d041826581ca4f804b88eb42a X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 21:29:26 -0000 --f46d041826581ca4f804b88eb42a Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called from C++. I find that the constructor and destructor of my widget is never called. So... 1. Is this expected behaviour? 2. What is the usual solution to such a problem (apart from using gtkmm)? 3. Any other issues I need to watch out for when using C++ with GTK+? Thanks, -- Agnel --f46d041826581ca4f804b88eb42a Content-Type: text/html; charset=ISO-8859-1 Hi,

I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called from C++. I find that the constructor and destructor of my widget is never called. So...

1. Is this expected behaviour?
2. What is the usual solution to such a problem (apart from using gtkmm)?
3. Any other issues I need to watch out for when using C++ with GTK+?

Thanks,

-- Agnel

--f46d041826581ca4f804b88eb42a-- From paul@linuxaudiosystems.com Thu Feb 9 22:16:38 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 25DAC7501F5 for ; Thu, 9 Feb 2012 22:16:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LICCqs5O9dIl for ; Thu, 9 Feb 2012 22:16:36 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id 961227501DA for ; Thu, 9 Feb 2012 22:16:27 +0000 (UTC) Received: by vcmm1 with SMTP id m1so2685777vcm.27 for ; Thu, 09 Feb 2012 14:16:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.39.67 with SMTP id f3mr1650007vce.46.1328825786397; Thu, 09 Feb 2012 14:16:26 -0800 (PST) Received: by 10.220.194.6 with HTTP; Thu, 9 Feb 2012 14:16:26 -0800 (PST) In-Reply-To: References: Date: Thu, 9 Feb 2012 17:16:26 -0500 Message-ID: Subject: Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called From: Paul Davis To: Agnel Kurian Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmxGNq8+21/47eWAAdcnYvu99HdHaMPbXo93DU7JHBZdMhagQE0OMuMrbAByIXW3aeC95al Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 22:16:38 -0000 On Thu, Feb 9, 2012 at 4:28 PM, Agnel Kurian wrote: > Hi, > > I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called from C++. > I find that the constructor and destructor of my widget is never called. > So... > > 1. Is this expected behaviour? > 2. What is the usual solution to such a problem (apart from using gtkmm)? that is the usual solution. you're wasting your time trying to solve this in any other way. From chetverovod@gmail.com Fri Feb 10 06:55:16 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2D1B7502C4 for ; Fri, 10 Feb 2012 06:55:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t-lC162-dO04 for ; Fri, 10 Feb 2012 06:55:02 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id F02D97502C1 for ; Fri, 10 Feb 2012 06:54:53 +0000 (UTC) Received: by iaeo4 with SMTP id o4so5445678iae.27 for ; Thu, 09 Feb 2012 22:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GNQY1+peP/TxVUTIMgfRon8kOvXu5XWFKufKITbJnhk=; b=GKClmMWsPan7aCeG4CjkpY9dhGr3ceoGd3TWgVi0Znr2VryJR9udduP95+xzT3dv4w RU9LUJmtZvF3QYlqbIJFtlGx+pksy5gxhZ0ubyxKu+Lz50vKO42czb6KpzUVUN7EPl8N McVc7UBKwIa/EMNNsRQNa9R8cxJK76GY9T+v4= MIME-Version: 1.0 Received: by 10.42.152.134 with SMTP id i6mr6756761icw.27.1328856887744; Thu, 09 Feb 2012 22:54:47 -0800 (PST) Received: by 10.50.88.196 with HTTP; Thu, 9 Feb 2012 22:54:47 -0800 (PST) In-Reply-To: References: Date: Fri, 10 Feb 2012 10:54:47 +0400 Message-ID: Subject: Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called From: Igor Chetverovod To: Paul Davis Content-Type: text/plain; charset=ISO-8859-1 Cc: Agnel Kurian , gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 06:55:17 -0000 Paul, GTK+ widget is not a c++ class, it is a C structure. If you want to create custom widget, you should define it structure for it and some mandatory functions. Read manuals about this, for example: http://zetcode.com/tutorials/cairographicstutorial/customgtkwidget/ If you need just to add several data field into the widget you can use functions g_object_set_data, g_object_get_data. Best regards, Igor 2012/2/10, Paul Davis : > On Thu, Feb 9, 2012 at 4:28 PM, Agnel Kurian wrote: >> Hi, >> >> I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called from >> C++. >> I find that the constructor and destructor of my widget is never called. >> So... >> >> 1. Is this expected behaviour? >> 2. What is the usual solution to such a problem (apart from using gtkmm)? > > that is the usual solution. you're wasting your time trying to solve > this in any other way. > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From mferrero@reer.it Fri Feb 10 13:23:17 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2485F75022E for ; Fri, 10 Feb 2012 13:23:17 +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] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rhzy69et33Qj for ; Fri, 10 Feb 2012 13:23:10 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id 618397501B4 for ; Fri, 10 Feb 2012 13:23:01 +0000 (UTC) X-MDAV-Processed: reer.it, Fri, 10 Feb 2012 14:20:46 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001161160.msg for ; Fri, 10 Feb 2012 14:20:45 +0100 X-Spam-Processed: reer.it, Fri, 10 Feb 2012 14:20:45 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F3519CD.1000903@reer.it> Date: Fri, 10 Feb 2012 14:21:17 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Install GTK on windows using no official installers References: <17967.16153.734000.210937@gargle.gargle.HOWL> <4F33FDD4.3070703@reer.it> In-Reply-To: <4F33FDD4.3070703@reer.it> Content-Type: text/plain; charset=UTF-7 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 13:23:17 -0000 Manuel Ferrero ha scritto: > Any help, please? Problem solved: I had some issue with a previous GTK installation and a messy environment PATH. Once I figured out I was able to make my application work. -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +-39 011 2482215 Fax. +-39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA+ADs- in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From mferrero@reer.it Fri Feb 10 13:25:04 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5146475020E for ; Fri, 10 Feb 2012 13:25:04 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.823 X-Spam-Level: X-Spam-Status: No, score=-1.823 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rp4uGmts2-gN for ; Fri, 10 Feb 2012 13:25:02 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id E269C750267 for ; Fri, 10 Feb 2012 13:25:00 +0000 (UTC) X-MDAV-Processed: reer.it, Fri, 10 Feb 2012 14:23:22 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001161163.msg for ; Fri, 10 Feb 2012 14:23:20 +0100 X-Spam-Processed: reer.it, Fri, 10 Feb 2012 14:23:20 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F351A6B.6050502@reer.it> Date: Fri, 10 Feb 2012 14:23:55 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Tree structure for a win32 application deployment Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 13:25:04 -0000 I was finally able to compile a working gtk+ application in my win32 system. After a lot of trial and error work on how to include the right GTK framework I was also able to deploy and make it work on a new machine, but I have one more question on this topic: right now I can have my application work by placing the application .exe file in the bin directory along with all the gtk toolkit executables. I'm not satisfied by this and I'd like to have a different tree: my application in the root, all the resource files in a directory and all the GTK toolkit in another directory named GTK+. Right now my working tree is like this: c:\program files\my_app |-Resource | |-my_resource_file.rc |-GTK+ |-bin | |-all_the_gtk_bin_files.exe | |-... | |-my_app.exe | |-my_app.ini | |-etc |-include |...and so on I want to have it like this: c:\program files\my_app |-my_app.exe |-my_app.ini |-Resource | |-my_resource_file.rc |-GTK+ |-bin |-etc |-include |...and so on Obviusly I tried to move my_app.exe from the GTK bin directory to the root, but I get an error finding libglib-2.0-0.dll. How can I let my application know that the dlls are in a subdirectory? -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From jcupitt@gmail.com Fri Feb 10 13:31:35 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 215B175022E for ; Fri, 10 Feb 2012 13:31:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VtBAuog5F7nM for ; Fri, 10 Feb 2012 13:31:30 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 5588E75020E for ; Fri, 10 Feb 2012 13:31:21 +0000 (UTC) Received: by iaeo4 with SMTP id o4so495282iae.27 for ; Fri, 10 Feb 2012 05:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=EK02/SVvK+sDNIjSc4LKNTs+h7lmfOyLcouRPL/dZpc=; b=lo8Dc9XQ7i3AmI0pkGAWjXH2/QmXfVLC4fn59Yc9plOllXWcpzqs+5a42+1TBxn/dC ZaGDzppfRjRYp1a+Ml87JLaVRktSTiqN3zm4uBpd+n+Aj9cJN5UCKv5+BUB1T7/uBpEH EFkxBjLHjy4vyf9sihWt8cGrINo6Dgwu66g+4= Received: by 10.42.157.133 with SMTP id d5mr8900408icx.46.1328880680595; Fri, 10 Feb 2012 05:31:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.46.226 with HTTP; Fri, 10 Feb 2012 05:30:40 -0800 (PST) In-Reply-To: <4F351A6B.6050502@reer.it> References: <4F351A6B.6050502@reer.it> From: jcupitt@gmail.com Date: Fri, 10 Feb 2012 13:30:40 +0000 Message-ID: Subject: Re: Tree structure for a win32 application deployment To: Manuel Ferrero Content-Type: text/plain; charset=ISO-8859-1 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 13:31:35 -0000 Hi Manuel, On 10 February 2012 13:23, Manuel Ferrero wrote: > have one more question on this topic: right now I can have my application > work by placing the application .exe file in the bin directory along with > all the gtk toolkit executables. > I'm not satisfied by this and I'd like to have a different tree: You can remove all of the gtk .exes, you just need to leave the .dlls behind. The only one you might need to leave is the spawn helper (I think). If you're not spawning child processes with glib then you can remove this one too. In any case, why does this matter? Your users will (I guess) be clicking a shortcut icon to launch your app, they won't know or care what other programs are in the same directory. John From eboyd53sf@gmail.com Fri Feb 10 13:36:13 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BBC57750267 for ; Fri, 10 Feb 2012 13:36:13 +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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7vltgRikltQk for ; Fri, 10 Feb 2012 13:35:57 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id B6F2375023A for ; Fri, 10 Feb 2012 13:35:48 +0000 (UTC) Received: by vcmm1 with SMTP id m1so3409104vcm.27 for ; Fri, 10 Feb 2012 05:35:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Ae3zhmFVDm63QIlGdpplJtvuboU/cx2pP520z5w4xXw=; b=O8C/rHNX6/HSWAVmtL8/zFqBXmicy1GTlB6qEso8h4Tp78OgvB9L3GYyNmVEPCRrSQ rkLNsQ9SNKsaMUUgUAKf2Otl41eCYOZm4caXKWX06ZE8ILhY5w6gsNgile3Y/RRRfJ7T AotdQWqNZjg6qz/Ky7AZklhanA9iAU+MMeu4E= MIME-Version: 1.0 Received: by 10.220.108.202 with SMTP id g10mr3161448vcp.24.1328880946856; Fri, 10 Feb 2012 05:35:46 -0800 (PST) Sender: eboyd53sf@gmail.com Received: by 10.220.184.10 with HTTP; Fri, 10 Feb 2012 05:35:46 -0800 (PST) In-Reply-To: <4F3519CD.1000903@reer.it> References: <17967.16153.734000.210937@gargle.gargle.HOWL> <4F33FDD4.3070703@reer.it> <4F3519CD.1000903@reer.it> Date: Fri, 10 Feb 2012 08:35:46 -0500 X-Google-Sender-Auth: Uw4nDmNPbiwmlPHAGCswQERrsn8 Message-ID: Subject: Re: Install GTK on windows using no official installers From: Earnie Boyd To: Manuel Ferrero Content-Type: text/plain; charset=UTF-8 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 13:36:13 -0000 On Fri, Feb 10, 2012 at 8:21 AM, Manuel Ferrero wrote: > Manuel Ferrero ha scritto: > >> Any help, please? > > Problem solved: I had some issue with a previous GTK installation and a > messy environment PATH. > Once I figured out I was able to make my application work. I dislike applications that adjust the Windows PATH variable. Rather than setting the PATH externally during installation, set the PATH based on the location of the executable. And users who do set the PATH variable manually run the risk of screwing with themselves. -- Earnie -- https://sites.google.com/site/earnieboyd From mferrero@reer.it Fri Feb 10 14:18:14 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49BD8750281 for ; Fri, 10 Feb 2012 14:18:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MISSING_HEADERS=1.021, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oy7yeG9+M21z for ; Fri, 10 Feb 2012 14:18:13 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id DA32A750267 for ; Fri, 10 Feb 2012 14:18:01 +0000 (UTC) X-MDAV-Processed: reer.it, Fri, 10 Feb 2012 15:14:56 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001161267.msg for ; Fri, 10 Feb 2012 15:14:54 +0100 X-Spam-Processed: reer.it, Fri, 10 Feb 2012 15:14:54 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F35267C.3090200@reer.it> Date: Fri, 10 Feb 2012 15:15:24 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 CC: gtk-list@gnome.org Subject: Re: Tree structure for a win32 application deployment References: <4F351A6B.6050502@reer.it> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 14:18:14 -0000 jcupitt@gmail.com: > You can remove all of the gtk .exes, you just need to leave the .dlls > behind. The only one you might need to leave is the spawn helper (I > think). If you're not spawning child processes with glib then you can > remove this one too. That's beyond the point. I'm happy with the gtk toolkit I have, I wrote .exes, but I meant all the files that sould to be in the gtk bin directory. > In any case, why does this matter? Your users will (I guess) be > clicking a shortcut icon to launch your app, they won't know or care > what other programs are in the same directory. They don't, but I do. If I want to refer to some non-gtk file in my app I need to know where this file is, For example a ini file, having my_app.exe in the bin directory forces me to put the ini file in that directory too or to write code to point to it using ../my_app.ini and I don't like it. -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From mferrero@reer.it Fri Feb 10 14:58:17 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 21BA8750298 for ; Fri, 10 Feb 2012 14:58:17 +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, TO_NO_BRKTS_PCNT=0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SeE5TUMgNCDg for ; Fri, 10 Feb 2012 14:58:12 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id B55FD75022E for ; Fri, 10 Feb 2012 14:58:02 +0000 (UTC) X-MDAV-Processed: reer.it, Fri, 10 Feb 2012 15:57:16 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001161340.msg for ; Fri, 10 Feb 2012 15:57:15 +0100 X-Spam-Processed: reer.it, Fri, 10 Feb 2012 15:57:15 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F35306A.40008@reer.it> Date: Fri, 10 Feb 2012 15:57:46 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Tree structure for a win32 application deployment References: <4F351A6B.6050502@reer.it> <1328881453.23214.140661034787833@webmail.messagingengine.com> In-Reply-To: <1328881453.23214.140661034787833@webmail.messagingengine.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 14:58:17 -0000 J. Ali Harlow: >> How can I let my application know that the dlls are in a subdirectory? > > Setting PATH would work, or (assuming your app isn't intended to be run > from the command line) you could use AppPaths: > > http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121%28v=vs.85%29.aspx I don' twant to mess with the system environment PATH variable because I learned that's not the right way to work with GTK. I tried AppPaths, but it either I'm not able to make it work or it's not working at all (quite sure it's the first one) -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From prlw1@inf.phy.cam.ac.uk Fri Feb 10 17:01:34 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7503A750201 for ; Fri, 10 Feb 2012 17:01:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.133 X-Spam-Level: X-Spam-Status: No, score=-4.133 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, TW_GD=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id txKARxnk54H1 for ; Fri, 10 Feb 2012 17:01:31 +0000 (UTC) X-Greylist: delayed 1424 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 10 Feb 2012 17:01:31 UTC Received: from ppsw-51.csi.cam.ac.uk (ppsw-51.csi.cam.ac.uk [131.111.8.151]) by menubar.gnome.org (Postfix) with ESMTP id 4FB997501A9 for ; Fri, 10 Feb 2012 17:01:22 +0000 (UTC) X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from skye.inf.phy.cam.ac.uk ([131.111.52.83]:57285) by ppsw-51.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.138]:25) with esmtp id 1RvtTc-0004KK-Yg (Exim 4.72) for gtk-list@gnome.org (return-path ); Fri, 10 Feb 2012 16:37:36 +0000 Received: from quartz.inf.phy.cam.ac.uk ([131.111.52.91]) by skye.inf.phy.cam.ac.uk with esmtp (Exim 3.36 #1) id 1RvtTc-0003DT-00 for gtk-list@gnome.org; Fri, 10 Feb 2012 16:37:36 +0000 Received: from prlw1 by quartz.inf.phy.cam.ac.uk with local (Exim 4.66) (envelope-from ) id 1RvtTc-0000LA-BU for gtk-list@gnome.org; Fri, 10 Feb 2012 16:37:36 +0000 Date: Fri, 10 Feb 2012 16:37:36 +0000 From: Patrick Welche To: gtk-list@gnome.org Subject: gdk-pixbuf and gir Message-ID: <20120210163736.GF29274@quartz.inf.phy.cam.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.5.20 (2010-03-22) Sender: Patrick Welche X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 17:01:34 -0000 I'm not sure which list to post this too... When compiling gdk-pixbuf 2.24.1 with gobject-introspection 1.30.0, python 2.6.7 has the following problem: libtool: link: gcc -std=3Dgnu99 -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -I/usr/= pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/include -Wall -Wl,-R/usr= /pkg/lib -o .libs/test-gdk-pixbuf test-gdk-pixbuf.o -pthread -L/usr/pkgsrc= /graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib ./.libs/libgdk_pixbuf-2.0.= so /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libgio-2.0.s= o /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libgobject-2.= 0.so /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libffi.so = /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libgmodule-2.0.= so /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libgthread-2= =2E0.so /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libglib= -2.0.so /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/libpcre= =2Eso -lintl /usr/pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib/li= bpng15.so -lz -lm -pthread -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/= pkgsrc/graphics/gdk-pixbuf2/work.x86_64/.buildlink/lib LOADERS=3D`echo libpixbufloader-*.la` ; \ if test "x$LOADERS" !=3D 'xlibpixbufloader-*.la' ; then \ echo "Writing a loaders.cache file to use when running examples b= efore installing gdk-pixbuf."; \ ../gdk-pixbuf/gdk-pixbuf-query-loaders $LOADERS > ./loaders.cache ;\ else \ echo "No dynamic modules found; will use only static modules for = uninstalled example programs."; \ touch loaders.cache; \ fi Traceback (most recent call last): File "/usr/pkg/bin/g-ir-scanner", line 46, in sys.exit(scanner_main(sys.argv)) File "/usr/pkg/lib/gobject-introspection/giscanner/scannermain.py", line = 407, in scanner_main ss =3D create_source_scanner(options, args) File "/usr/pkg/lib/gobject-introspection/giscanner/scannermain.py", line = 332, in create_source_scanner ss.parse_files(filenames) File "/usr/pkg/lib/gobject-introspection/giscanner/sourcescanner.py", lin= e 249, in parse_files Writing a loaders.cache file to use when running examples before installing= gdk-pixbuf. self._parse(headers) File "/usr/pkg/lib/gobject-introspection/giscanner/sourcescanner.py", lin= e 282, in _parse stdout=3Dsubprocess.PIPE) File "/usr/pkg/lib/python2.6/subprocess.py", line 623, in __init__ errread, errwrite) File "/usr/pkg/lib/python2.6/subprocess.py", line 1141, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory gmake[4]: *** [GdkPixbuf-2.0.gir] Error 1 I don't really know where to start - does this ring a bell? Cheers, Patrick From prlw1@inf.phy.cam.ac.uk Fri Feb 10 17:23:42 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EAEDF7501E7 for ; Fri, 10 Feb 2012 17:23:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.133 X-Spam-Level: X-Spam-Status: No, score=-4.133 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, TW_GD=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sc2l+x7wTTCe for ; Fri, 10 Feb 2012 17:23:41 +0000 (UTC) Received: from ppsw-50.csi.cam.ac.uk (ppsw-50.csi.cam.ac.uk [131.111.8.150]) by menubar.gnome.org (Postfix) with ESMTP id 53A4C7501A9 for ; Fri, 10 Feb 2012 17:23:32 +0000 (UTC) X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from skye.inf.phy.cam.ac.uk ([131.111.52.83]:43932) by ppsw-50.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtp id 1RvuC2-0002U5-rV (Exim 4.72) for gtk-list@gnome.org (return-path ); Fri, 10 Feb 2012 17:23:30 +0000 Received: from quartz.inf.phy.cam.ac.uk ([131.111.52.91]) by skye.inf.phy.cam.ac.uk with esmtp (Exim 3.36 #1) id 1RvuC2-0003Kb-00 for gtk-list@gnome.org; Fri, 10 Feb 2012 17:23:30 +0000 Received: from prlw1 by quartz.inf.phy.cam.ac.uk with local (Exim 4.66) (envelope-from ) id 1RvuC2-00006w-3A for gtk-list@gnome.org; Fri, 10 Feb 2012 17:23:30 +0000 Date: Fri, 10 Feb 2012 17:23:30 +0000 From: Patrick Welche To: gtk-list@gnome.org Subject: Re: gdk-pixbuf and gir Message-ID: <20120210172330.GI29274@quartz.inf.phy.cam.ac.uk> References: <20120210163736.GF29274@quartz.inf.phy.cam.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120210163736.GF29274@quartz.inf.phy.cam.ac.uk> User-Agent: Mutt/1.5.20 (2010-03-22) Sender: Patrick Welche X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 17:23:43 -0000 On Fri, Feb 10, 2012 at 04:37:36PM +0000, Patrick Welche wrote: > I'm not sure which list to post this too... > > When compiling gdk-pixbuf 2.24.1 with gobject-introspection 1.30.0, > python 2.6.7 has the following problem: ... > OSError: [Errno 2] No such file or directory > gmake[4]: *** [GdkPixbuf-2.0.gir] Error 1 The answer is Bug 660160 (Thanks to Mattias Drochner) Cheers, Patrick From chris@cvine.freeserve.co.uk Fri Feb 10 20:29:43 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5B7D875009D for ; Fri, 10 Feb 2012 20:29:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.823 X-Spam-Level: X-Spam-Status: No, score=-1.823 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FIoIXbnTstT4 for ; Fri, 10 Feb 2012 20:29:41 +0000 (UTC) X-Greylist: delayed 460 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 10 Feb 2012 20:29:40 UTC Received: from smtpout.wanadoo.co.uk (smtpout4.wanadoo.co.uk [80.12.242.68]) by menubar.gnome.org (Postfix) with ESMTP id B57B8750092 for ; Fri, 10 Feb 2012 20:29:31 +0000 (UTC) Received: from bother.homenet ([2.25.94.6]) by mwinf5d52 with ME id YLMp1i00408Eb1N03LMpZ7; Fri, 10 Feb 2012 21:21:50 +0100 Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (8.14.4/8.14.4) with ESMTP id q1AKLmxC012561; Fri, 10 Feb 2012 20:21:48 GMT Date: Fri, 10 Feb 2012 20:21:48 +0000 From: Chris Vine To: Agnel Kurian Subject: Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called Message-ID: <20120210202148.47fa14dd@bother.homenet> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 20:29:43 -0000 On Fri, 10 Feb 2012 02:58:53 +0530 Agnel Kurian wrote: > I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called > from C++. I find that the constructor and destructor of my widget is > never called. So... > > 1. Is this expected behaviour? > 2. What is the usual solution to such a problem (apart from using > gtkmm)? 3. Any other issues I need to watch out for when using C++ > with GTK+? If you just want to manage the lifetime of a GtkWidget object using C++ constructors and destructors by containing the Gtk+ object within a C++ object, and add your own interface or specialisations to the GTK+ object, there are some very thin wrapper classes here which will do this: http://cxx-gtk-utils.sourceforge.net/2.0/index.html. See in particular the WinBase class. gtkmm automatically wraps all the C object's methods into C++ methods, whereas WinBase assumes you don't want to do this or that you will do it yourself. It depends entirely on what you want from it, how UI intensive your application is, and how rigorously "C++-ized" you want GTK+ to become. Chris From louisliangjun@gmail.com Sat Feb 11 04:58:46 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 325AE750089 for ; Sat, 11 Feb 2012 04:58:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.956 X-Spam-Level: X-Spam-Status: No, score=-0.956 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, SARE_HTML_USL_OBFU=1.666, SPF_PASS=-0.001, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lckx2YprXwWv for ; Sat, 11 Feb 2012 04:58:33 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by menubar.gnome.org (Postfix) with ESMTP id 38168750088 for ; Sat, 11 Feb 2012 04:58:24 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so4041649wib.27 for ; Fri, 10 Feb 2012 20:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bdFl6HJYUFxGVl8HNqbBUf6GLMZ+1n2nB7t261h5A8w=; b=puHrsPd0ErPIyzt3QLNvijfkEaGcFhpKuj4F2dWF7uxla/SINBrTG9GN4O9bbrdAvR hVFr4ooqSydrgoYYQpDVtGKedDMOlN/x3l0OBMeVzzwoR3/LWk1vdL0kDNMH+EUmN69q XlrtrSnDB1OWCuUSKdynU8yaQGju7G6DZDVAI= MIME-Version: 1.0 Received: by 10.216.133.205 with SMTP id q55mr1847790wei.6.1328936301785; Fri, 10 Feb 2012 20:58:21 -0800 (PST) Received: by 10.223.2.204 with HTTP; Fri, 10 Feb 2012 20:58:21 -0800 (PST) In-Reply-To: <4F35306A.40008@reer.it> References: <4F351A6B.6050502@reer.it> <1328881453.23214.140661034787833@webmail.messagingengine.com> <4F35306A.40008@reer.it> Date: Sat, 11 Feb 2012 12:58:21 +0800 Message-ID: Subject: Re: Tree structure for a win32 application deployment From: jun louis To: Manuel Ferrero Content-Type: multipart/alternative; boundary=0016e6deddfe3272c304b8a91800 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2012 04:58:46 -0000 --0016e6deddfe3272c304b8a91800 Content-Type: text/plain; charset=ISO-8859-1 make a simple your_app.exe in root dir then just use winAPI LoadLibrary("gtk/bin/your_app.dll") then load your_main() function in your_app.dll 2012/2/10 Manuel Ferrero > J. Ali Harlow: > > How can I let my application know that the dlls are in a subdirectory? >>> >> >> Setting PATH would work, or (assuming your app isn't intended to be run >> from the command line) you could use AppPaths: >> >> http://msdn.microsoft.com/en-**us/library/windows/desktop/** >> ee872121%28v=vs.85%29.aspx >> > > I don' twant to mess with the system environment PATH variable because I > learned that's not the right way to work with GTK. > I tried AppPaths, but it either I'm not able to make it work or it's not > working at all (quite sure it's the first one) > > -- > Regards, > Manuel Ferrero > R&D department > > Reer SpA > Tel. +39 011 2482215 > Fax. +39 011 859867 > > L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe > costituire reato. > Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non > deve essere considerato > come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati > se, via e-mail, > ce ne comunicasse l'errata ricezione. > > The unauthorized use of this e-mail is prohibited and could constitute an > offence. > If you are not the intended recipient of this message its contents shall > be understood as neither > given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail > immediately in that case. > > ______________________________**_________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/**listinfo/gtk-list > --0016e6deddfe3272c304b8a91800 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable make a simple your_app.exe in root dir
then just use winAPI LoadLibrary= ("gtk/bin/your_app.dll")
then load your_main() function= in your_app.dll



2012= /2/10 Manuel Ferrero <mferrero@reer.it>
J. Ali Harlow:

How can I let my application know that the dlls are in a subdirectory?

Setting PATH would work, or (assuming your app isn't intended to be run=
from the command line) you could use AppPaths:

http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121%28v=3Dvs.85%29.aspx

I don' twant to mess with the system environment PATH variable because = I learned that's not the right way to work with GTK.
I tried AppPaths, but it either I'm not able to make it work or it'= s not working at all (quite sure it's the first one)

--
Regards,
Manuel Ferrero
R&D department

Reer SpA =A0 =A0 =A0 =A0
Tel. =A0+39 011 2482215
Fax. +39 011 859867

L'utilizzo non autorizzato del presente messaggio e' vietato e potr= ebbe costituire reato.
Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non= deve essere considerato
come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati = se, via e-mail,
ce ne comunicasse l'errata ricezione.

The unauthorized use of this e-mail is prohibited and could constitute an o= ffence.
If you are not the intended recipient of this message its contents shall be= understood as neither
given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediatel= y in that case.

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
http://mail.gnome.org/mailman/listinfo/gtk-list

--0016e6deddfe3272c304b8a91800-- From palmettojl@yahoo.com Mon Feb 13 04:37:16 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F3E347500E8 for ; Mon, 13 Feb 2012 04:37:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.531 X-Spam-Level: X-Spam-Status: No, score=-0.531 tagged_above=-999 required=2 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, TW_GT=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i+qkr7BITBfU for ; Mon, 13 Feb 2012 04:37:13 +0000 (UTC) Received: from nm24.bullet.mail.bf1.yahoo.com (nm24.bullet.mail.bf1.yahoo.com [98.139.212.183]) by menubar.gnome.org (Postfix) with SMTP id 7CF297500BF for ; Mon, 13 Feb 2012 04:37:04 +0000 (UTC) Received: from [98.139.214.32] by nm24.bullet.mail.bf1.yahoo.com with NNFMP; 13 Feb 2012 04:37:03 -0000 Received: from [98.139.212.215] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 13 Feb 2012 04:37:03 -0000 Received: from [127.0.0.1] by omp1024.mail.bf1.yahoo.com with NNFMP; 13 Feb 2012 04:37:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 415291.45223.bm@omp1024.mail.bf1.yahoo.com Received: (qmail 66586 invoked by uid 60001); 13 Feb 2012 04:37:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329107823; bh=ypSetdL87S01/N0NsvKSx278h28c0hEypu6Dx/YjC7c=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=RZqu9hZMhb8HzfxUqxDrhxftBL94kV7DepthegkQa/MbFtJg31A76HUwyk4BPSTu0byZejxZFvZF8oCfl7F22A3JwyAGlvzSboJLZ2aNIn8dfxdHPTN9zJmuezmCEzLF4+w3svdk5A+7SOSwLxoFXu0Sj6FdESkCnjReML0UkFY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=fbiWabjedpseRqykX+2JUxIzbOtVg9PAYJOhvKu5iyO5bFMERhFyaRkkalOnvl+vVFsO8PxXmq5nOHVbP5i3xn0u/5hcUQV+E91hfsIqLiEAlTYVr0EEJfDHuuAeSo8yklKagu8kkJYRUakJ8lrZz1WoI4G4+3BnaaFs6/roh+Y=; X-YMail-OSG: EyVg4NMVM1nx31_6cptVHPK9h2G360Zh9X84rcy3B2.NAeT uEn02BKFJjFffaarHwJdXi15P8UxN23ShXHkih59qT4ZIqOV.Ru_iMnlUWQt 8l7EzHbCHCF2P6PTXJYwogMxdtp.e9bKQLm2zjzd8vOFyrPmx3.xN2QWkBHP 2bfeYm3IvI2TcEyJQSeDtlNpNOGFFwWAm9fd9.DMtvgG_j3VCsdhHEA.STGs VKgfssX08KcSzdziNbP5rxkXTDf8skAPmzDOTrXMlgl3BmqqkYT7ecONE9wz Tebi.cp_ZD6TmKFhjE5LOdmwiB8V0W5teTj4oaxTfz2.JyaYcgTu5Dk_uxMS rocPuZFVtZgpCYuLnNtY4bPOYdnYmp7RUZND5BS2vjbx43GCPD6H4Klhs.ES TyPckNdCE2EnTTzHFhWBDnavpprJvq3LWDhxcvYsPR7M3D3H6SHnH_OyC6Sz zYNN4pegd4oq3I7.5q.aSqQ3BcI8j Received: from [24.211.42.255] by web161903.mail.bf1.yahoo.com via HTTP; Sun, 12 Feb 2012 20:37:03 PST X-Mailer: YahooMailClassic/15.0.4 YahooMailWebService/0.8.116.338427 Message-ID: <1329107823.62222.YahooMailClassic@web161903.mail.bf1.yahoo.com> Date: Sun, 12 Feb 2012 20:37:03 -0800 (PST) From: Enoch Langston Subject: tree_view_set_cursor outlier case To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-814414838-456230965-1329107823=:62222" X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 04:37:16 -0000 ---814414838-456230965-1329107823=:62222 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable My name is Kevin and I work in IT support. I am new to the mailing list and= development in general. I have found gtk both rewarding and difficult to l= earn. I have especially been having a rough time with figuring out how to d= eactivate a cell I have set to editing with a call to gtk_tree_view_set_cur= sor(). Once I've set the path via this function to enable editing I am worr= ied about a user selecting another option in the treeview with a left click= and notcing that the old path still has a text field in it and can be edit= ited. Below is the function I wrote that gets called when someone selects r= ename on a popup menu which is one of the choices. I use this function to s= et the path to the cell to enable editing, I am also controlling editing in= my tree model with a boolean property which I switch on just before callin= g this function. I need to know how to caputure the case that the user clic= ks on a different tree view path mid edit before actually submitting the editing cell with the "enter" key. Here is how I enable it, how do I d= isable it if they click somewhere else? void tree_select_menu_rename(GtkWidget *menuitem, gpointer userdata) { =A0 GtkTreeView *view; =A0 GtkTreeModel *sortModel, *baseModel; =A0 GtkTreePath *path =3D NULL; =A0 GtkTreePath *sortPath =3D NULL; =A0 GtkTreeIter sortIter, baseIter; =A0 GtkTreeSelection *selection; =A0 view =3D GTK_TREE_VIEW(userdata); =A0 selection =3D gtk_tree_view_get_selection(view);=20 =A0=20 =A0 if(!gtk_tree_selection_get_selected(selection, &sortModel, &sortIter)){= return;} =A0 gtk_tree_model_sort_convert_iter_to_child_iter(GTK_TREE_MODEL_SORT(sort= Model), &baseIter, &sortIter); =A0 baseModel =3D gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(sortMod= el)); =A0 gtk_tree_store_set(GTK_TREE_STORE(baseModel), &baseIter, EDITCELL, TRUE= , -1); =A0 path =3D gtk_tree_model_get_path(baseModel, &baseIter); =A0 sortPath =3D gtk_tree_model_sort_convert_child_path_to_path(GTK_TREE_MO= DEL_SORT(sortModel), path); =A0 GtkTreeViewColumn *col =3D gtk_tree_view_get_column(GTK_TREE_VIEW(view)= , 0);=20 =A0 gtk_tree_view_set_cursor(view, sortPath, col, TRUE);=20 =A0 /*FREE RESOURCES USED */ =A0 gtk_tree_path_free(path); =A0 gtk_tree_path_free(sortPath); } ---814414838-456230965-1329107823=:62222 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
My name is Kevin and I work in IT support. I = am new to the mailing list and development in general. I have found gtk bot= h rewarding and difficult to learn. I have especially been having a rough t= ime with figuring out how to deactivate a cell I have set to editing with a= call to gtk_tree_view_set_cursor(). Once I've set the path via this functi= on to enable editing I am worried about a user selecting another option in = the treeview with a left click and notcing that the old path still has a te= xt field in it and can be editited. Below is the function I wrote that gets= called when someone selects rename on a popup menu which is one of the cho= ices. I use this function to set the path to the cell to enable editing, I = am also controlling editing in my tree model with a boolean property which = I switch on just before calling this function. I need to know how to caputu= re the case that the user clicks on a different tree view path mid edit befor= e actually submitting the editing cell with the "enter" key. Here is how I = enable it, how do I disable it if they click somewhere else?

void tr= ee_select_menu_rename(GtkWidget *menuitem, gpointer userdata)
{
 = ; GtkTreeView *view;
  GtkTreeModel *sortModel, *baseModel;
&nbs= p; GtkTreePath *path =3D NULL;
  GtkTreePath *sortPath =3D NULL;  GtkTreeIter sortIter, baseIter;
  GtkTreeSelection *selecti= on;

  view =3D GTK_TREE_VIEW(userdata);
  selection =3D= gtk_tree_view_get_selection(view);
 
  if(!gtk_tree_sele= ction_get_selected(selection, &sortModel, &sortIter)){ return;}
=   gtk_tree_model_sort_convert_iter_to_child_iter(GTK_TREE_MODEL_SORT(s= ortModel), &baseIter, &sortIter);
  baseModel =3D gtk_tree_= model_sort_get_model(GTK_TREE_MODEL_SORT(sortModel));
  gtk_tree_store_set(GTK_TREE_STORE(baseModel), &baseIter, EDITCELL, TRU= E, -1);
  path =3D gtk_tree_model_get_path(baseModel, &baseIter= );
  sortPath =3D gtk_tree_model_sort_convert_child_path_to_path(GT= K_TREE_MODEL_SORT(sortModel), path);
  GtkTreeViewColumn *col =3D g= tk_tree_view_get_column(GTK_TREE_VIEW(view), 0);
  gtk_tree_view_s= et_cursor(view, sortPath, col, TRUE);



  /*FREE RESOURC= ES USED */
  gtk_tree_path_free(path);
  gtk_tree_path_free= (sortPath);
}


---814414838-456230965-1329107823=:62222-- From ian.liu88@gmail.com Mon Feb 13 09:45:42 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09C2A7500BF for ; Mon, 13 Feb 2012 09:45:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.372 X-Spam-Level: X-Spam-Status: No, score=-2.372 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1RL7NPUdHMw7 for ; Mon, 13 Feb 2012 09:45:23 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 24BB7750099 for ; Mon, 13 Feb 2012 09:45:14 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so11201695obc.27 for ; Mon, 13 Feb 2012 01:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uN1jAc4O+as9NoOhHn0ApwKEaKDm0fPNSo9v0kcv93A=; b=so2igOwhLO2pWWXg653Hbp38lhDX3BdVXzObHGVj5MhYsDRYsvVdCRXP/o9HiluzJh nsdoaVCRMxz27rAKZ12Ku8mjlBF3KS70JKJWlzXOJ8kcj/nJAR8gQT56xCiYOMnMPGQl z1fvZAgqdoIxbLXvRmUycZVLIGxe4WzCDw1Yg= Received: by 10.182.188.6 with SMTP id fw6mr11222100obc.8.1329126313412; Mon, 13 Feb 2012 01:45:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.72.162 with HTTP; Mon, 13 Feb 2012 01:44:43 -0800 (PST) In-Reply-To: <1329107823.62222.YahooMailClassic@web161903.mail.bf1.yahoo.com> References: <1329107823.62222.YahooMailClassic@web161903.mail.bf1.yahoo.com> From: Ian Liu Rodrigues Date: Mon, 13 Feb 2012 07:44:43 -0200 Message-ID: Subject: Re: tree_view_set_cursor outlier case To: Enoch Langston Content-Type: multipart/alternative; boundary=f46d04478a13c5c96004b8d555d6 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 09:45:42 -0000 --f46d04478a13c5c96004b8d555d6 Content-Type: text/plain; charset=ISO-8859-1 To disable editing on a TreeView cell you must change the editableproperty to FALSE. But doing so will affect the whole column. I can think of 2 ways to solve your problem: 1. What you can do is add another G_TYPE_BOOLEAN column in your model and associate the editable property of the CellRenderer with that column. 2. Customize the CellRenderer with gtk-tree-view-column-set-cell-data-func Regards, Ian On Mon, Feb 13, 2012 at 2:37 AM, Enoch Langston wrote: > My name is Kevin and I work in IT support. I am new to the mailing list > and development in general. I have found gtk both rewarding and difficult > to learn. I have especially been having a rough time with figuring out how > to deactivate a cell I have set to editing with a call to > gtk_tree_view_set_cursor(). Once I've set the path via this function to > enable editing I am worried about a user selecting another option in the > treeview with a left click and notcing that the old path still has a text > field in it and can be editited. Below is the function I wrote that gets > called when someone selects rename on a popup menu which is one of the > choices. I use this function to set the path to the cell to enable editing, > I am also controlling editing in my tree model with a boolean property > which I switch on just before calling this function. I need to know how to > caputure the case that the user clicks on a different tree view path mid > edit before actually submitting the editing cell with the "enter" key. Here > is how I enable it, how do I disable it if they click somewhere else? > > void tree_select_menu_rename(GtkWidget *menuitem, gpointer userdata) > { > GtkTreeView *view; > GtkTreeModel *sortModel, *baseModel; > GtkTreePath *path = NULL; > GtkTreePath *sortPath = NULL; > GtkTreeIter sortIter, baseIter; > GtkTreeSelection *selection; > > view = GTK_TREE_VIEW(userdata); > selection = gtk_tree_view_get_selection(view); > > if(!gtk_tree_selection_get_selected(selection, &sortModel, &sortIter)){ > return;} > > gtk_tree_model_sort_convert_iter_to_child_iter(GTK_TREE_MODEL_SORT(sortModel), > &baseIter, &sortIter); > baseModel = > gtk_tree_model_sort_get_model(GTK_TREE_MODEL_SORT(sortModel)); > gtk_tree_store_set(GTK_TREE_STORE(baseModel), &baseIter, EDITCELL, TRUE, > -1); > path = gtk_tree_model_get_path(baseModel, &baseIter); > sortPath = > gtk_tree_model_sort_convert_child_path_to_path(GTK_TREE_MODEL_SORT(sortModel), > path); > GtkTreeViewColumn *col = gtk_tree_view_get_column(GTK_TREE_VIEW(view), > 0); > gtk_tree_view_set_cursor(view, sortPath, col, TRUE); > > > > /*FREE RESOURCES USED */ > gtk_tree_path_free(path); > gtk_tree_path_free(sortPath); > } > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > --f46d04478a13c5c96004b8d555d6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable To disable editing on a TreeView cell you must change the editable property to FALSE. But doing so will affect the who= le column.

I can think of 2 ways to solve your problem:
    <= li>What you can do is add another G_TYPE_BOOLEAN column in your model and a= ssociate the editable property of the CellRenderer with that column.
  1. Customize the CellRenderer with=A0gtk-tree-view-column-set-cell-data-func
Regards,
Ian

On Mon, Feb 13, 2012 at 2:37 A= M, Enoch Langston <palmettojl@yahoo.com> wrote:
My name is Kevin and I work in IT support= . I am new to the mailing list and development in general. I have found gtk= both rewarding and difficult to learn. I have especially been having a rou= gh time with figuring out how to deactivate a cell I have set to editing wi= th a call to gtk_tree_view_set_cursor(). Once I've set the path via thi= s function to enable editing I am worried about a user selecting another op= tion in the treeview with a left click and notcing that the old path still = has a text field in it and can be editited. Below is the function I wrote t= hat gets called when someone selects rename on a popup menu which is one of= the choices. I use this function to set the path to the cell to enable edi= ting, I am also controlling editing in my tree model with a boolean propert= y which I switch on just before calling this function. I need to know how t= o caputure the case that the user clicks on a different tree view path mid edit befor= e actually submitting the editing cell with the "enter" key. Here= is how I enable it, how do I disable it if they click somewhere else?

void tree_select_menu_rename(GtkWidget *menuitem, gpointer userdata){
=A0 GtkTreeView *view;
=A0 GtkTreeModel *sortModel, *baseModel;=A0 GtkTreePath *path =3D NULL;
=A0 GtkTreePath *sortPath =3D NULL;
= =A0 GtkTreeIter sortIter, baseIter;
=A0 GtkTreeSelection *selection;

=A0 view =3D GTK_TREE_VIEW(userdata= );
=A0 selection =3D gtk_tree_view_get_selection(view);
=A0
=A0 = if(!gtk_tree_selection_get_selected(selection, &sortModel, &sortIte= r)){ return;}
=A0 gtk_tree_model_sort_convert_iter_to_child_iter(GTK_TREE_MODEL_SORT(sort= Model), &baseIter, &sortIter);
=A0 baseModel =3D gtk_tree_model_= sort_get_model(GTK_TREE_MODEL_SORT(sortModel));
=A0 gtk_tree_store_set(GTK_TREE_STORE(baseModel), &baseIter, EDITCELL, TRU= E, -1);
=A0 path =3D gtk_tree_model_get_path(baseModel, &baseIter);<= br>=A0 sortPath =3D gtk_tree_model_sort_convert_child_path_to_path(GTK_TREE= _MODEL_SORT(sortModel), path);
=A0 GtkTreeViewColumn *col =3D gtk_tree_view_get_column(GTK_TREE_VIEW(view)= , 0);
=A0 gtk_tree_view_set_cursor(view, sortPath, col, TRUE);

=

=A0 /*FREE RESOURCES USED */
=A0 gtk_tree_path_free(path);
= =A0 gtk_tree_path_free(sortPath);
}



________________________________= _______________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


--f46d04478a13c5c96004b8d555d6-- From paul@linuxaudiosystems.com Mon Feb 13 12:51:09 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4DC8E7501CE for ; Mon, 13 Feb 2012 12:51:09 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rlirjsHrtfaD for ; Mon, 13 Feb 2012 12:51:07 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id 064FF75009C for ; Mon, 13 Feb 2012 12:50:58 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5844624vbb.27 for ; Mon, 13 Feb 2012 04:50:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.91.18 with SMTP id ca18mr6809890vdb.101.1329137457460; Mon, 13 Feb 2012 04:50:57 -0800 (PST) Received: by 10.220.194.6 with HTTP; Mon, 13 Feb 2012 04:50:57 -0800 (PST) In-Reply-To: <1329107823.62222.YahooMailClassic@web161903.mail.bf1.yahoo.com> References: <1329107823.62222.YahooMailClassic@web161903.mail.bf1.yahoo.com> Date: Mon, 13 Feb 2012 07:50:57 -0500 Message-ID: Subject: Re: tree_view_set_cursor outlier case From: Paul Davis To: Enoch Langston Content-Type: multipart/alternative; boundary=20cf307f33f80275df04b8d7eec8 X-Gm-Message-State: ALoCoQljCA+DNxYUyQEX1k0KPGj7xg+dI1B1IDt1tdLSoATm7VpDpJgWKdFf9pCTGhDu0gaMfkdi Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 12:51:09 -0000 --20cf307f33f80275df04b8d7eec8 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 12, 2012 at 11:37 PM, Enoch Langston wrote: > My name is Kevin and I work in IT support. I am new to the mailing list > and development in general. I have found gtk both rewarding and difficult > to learn. I have especially been having a rough time with figuring out how > to deactivate a cell I have set to editing with a call to > gtk_tree_view_set_cursor(). Once I've set the path via this function to > enable editing I am worried about a user selecting another option in the > treeview with a left click and notcing that the old path still has a text > field in it and can be editited. Below is the function I wrote that gets > called when someone selects rename on a popup menu which is one of the > choices. I use this function to set the path to the cell to enable editing, > I am also controlling editing in my tree model with a boolean property > which I switch on just before calling this function. I need to know how to > caputure the case that the user clicks on a different tree view path mid > edit before actually submitting the editing cell with the "enter" key. Here > is how I enable it, how do I disable it if they click somewhere else? > it is certainly tricky to discover and not well documented. luckily, its also simple once you know how. the signal emitted when editing starts includes a pointer to a GtkCellEditable. you need to stash this away, and whenever you want to end editing programatically, you need to either call gtk_cell_editable_editing_done() or to cancel the edit, make it emit the "editing-done" signal with a TRUE argument (which indicates that editing was cancelled). the mental leap that you have to make is that the editing is actually taking place in an entirely different widget than is used to display the cell, and so all operations related to editing involve that widget (which is a GtkCellEditable) and not anything already present in the treeview. --p --20cf307f33f80275df04b8d7eec8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Feb 12, 2012 at 11:37 PM, Enoch = Langston <palm= ettojl@yahoo.com> wrote:
My name is Kevin and I work in IT support= . I am new to the mailing list and development in general. I have found gtk= both rewarding and difficult to learn. I have especially been having a rou= gh time with figuring out how to deactivate a cell I have set to editing wi= th a call to gtk_tree_view_set_cursor(). Once I've set the path via thi= s function to enable editing I am worried about a user selecting another op= tion in the treeview with a left click and notcing that the old path still = has a text field in it and can be editited. Below is the function I wrote t= hat gets called when someone selects rename on a popup menu which is one of= the choices. I use this function to set the path to the cell to enable edi= ting, I am also controlling editing in my tree model with a boolean propert= y which I switch on just before calling this function. I need to know how t= o caputure the case that the user clicks on a different tree view path mid edit befor= e actually submitting the editing cell with the "enter" key. Here= is how I enable it, how do I disable it if they click somewhere else?

it is certainly tricky to d= iscover and not well documented. luckily, its also simple once you know how= .

the signal emitted when editing starts includes a pointer to a Gtk= CellEditable. you need to stash this away, and whenever you want to end edi= ting programatically, you need to either call gtk_cell_editable_editing_don= e() or to cancel the edit, make it emit the "editing-done" signal= with a TRUE argument (which indicates that editing was cancelled).

the mental leap that you have to make is that the editing is actually t= aking place in an entirely different widget than is used to display the cel= l, and so all operations related to editing involve that widget (which is a= GtkCellEditable) and not anything already present in the treeview.

--p

--20cf307f33f80275df04b8d7eec8-- From bounces@nabble.com Tue Feb 14 00:39:15 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 408BE7500CC for ; Tue, 14 Feb 2012 00:39:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.036 X-Spam-Level: X-Spam-Status: No, score=-1.036 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74eRtnWFVIgD for ; Tue, 14 Feb 2012 00:39:14 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by menubar.gnome.org (Postfix) with ESMTP id EDEBF7500B4 for ; Tue, 14 Feb 2012 00:39:05 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rx6QA-0003TO-OQ for gtk-list@gnome.org; Mon, 13 Feb 2012 16:39:02 -0800 Message-ID: <33319146.post@talk.nabble.com> Date: Mon, 13 Feb 2012 16:39:02 -0800 (PST) From: Bernard Victor To: gtk-list@gnome.org Subject: Change background color in GTK 3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: nadaeck@hotmail.com X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 00:39:15 -0000 Hello I would like to change the background of a button in GTK3 In GTK2, I was doing : GdkColor color; gdk_color_parse ("gold",&color); gtk_widget_modify_bg(GTK_WIDGET(widget), GTK_STATE_NORMAL, &color); and it was working perfectly. In GTK3, I am doing : GdkRGBA color; gdk_rgba_parse (&color, "orange"); gtk_widget_override_background_color(GTK_WIDGET(widget), GTK_STATE_FLAG_NORMAL, &color); and it doesn't work. I don't understand what I have missed Thank you -- View this message in context: http://old.nabble.com/Change-background-color-in-GTK-3-tp33319146p33319146.html Sent from the Gtk+ - General mailing list archive at Nabble.com. From sezeroz@gmail.com Tue Feb 14 07:29:17 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C3A25750140 for ; Tue, 14 Feb 2012 07:29:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.623 X-Spam-Level: X-Spam-Status: No, score=-2.623 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id seb6Vl4F-BGb for ; Tue, 14 Feb 2012 07:29:15 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id B6C5C7500B4 for ; Tue, 14 Feb 2012 07:29:07 +0000 (UTC) Received: by vcmm1 with SMTP id m1so7059940vcm.27 for ; Mon, 13 Feb 2012 23:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MNPYRkTvUy4rlAmRysi44t2Lirmdo6IL8wH+bKVBp/8=; b=maYCVqB2MlK4DxVuz5c+7RZPltwI5W7/6OU7SmBsbki5lBMOS7dMH0OJOVUE3sMEro 1xpdKPhM396LkRkVXqiEPF5RLEqY7vLfXVo1/AmCq3Ui5TMhcfdbGmZAh13YA64xavL4 7KAuchitgoV3EI3NaUSqUUBMAqg2jhxnErvFw= MIME-Version: 1.0 Received: by 10.220.151.5 with SMTP id a5mr5681984vcw.8.1329204545540; Mon, 13 Feb 2012 23:29:05 -0800 (PST) Received: by 10.221.13.198 with HTTP; Mon, 13 Feb 2012 23:29:05 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Feb 2012 09:29:05 +0200 Message-ID: Subject: Re: menu widgets and connected signals behavior From: Ozkan Sezer To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 07:29:18 -0000 On Tue, Feb 7, 2012 at 10:20 AM, Ozkan Sezer wrote: > I have a question about the behavior of connected signals when an > option menu's menu items are redefined: > > In my application, I am targeting all three gtk versions. For gtk1 > and gtk2 I use GtkOptionMenu and connect to the "selection-done" > signal. For gtk3 I use GtkComboBoxText and connect to the "changed" > signal. > Upon several events, I need to change the contents of the menu: > For gtk1/2 I accomplish this by doing a gtk_option_menu_remove_menu() > and rebuilding the menu items through calls to gtk_menu_new(), > gtk_menu_item_new_with_label(), gtk_menu_shell_append() and > gtk_option_menu_set_menu(). > For gtk3 it is as simple as calling gtk_combo_box_text_remove_all() > and then for the new items calling gtk_combo_box_text_append_text(). > > My question is, what happens with the signal connected to the previous > and now removed-and-replaced menu? To be on the safe side, because I > do not know the internals, I disconnect the signals and then reconnect > them which does seem to work. However I do not know how necessary this > is and whether there is an easier way for all three gtk version lines. > > Thanks in advance. > > -- > O.S. Any luck that anyone have some knowledge about this? (or did I post to the wrong list?) -- O.S. From nadaeck@hotmail.com Tue Feb 14 09:05:50 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 111D675019D for ; Tue, 14 Feb 2012 09:05:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -101.832 X-Spam-Level: X-Spam-Status: No, score=-101.832 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_GT=0.077, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j3lgWkuAtqCY for ; Tue, 14 Feb 2012 09:05:44 +0000 (UTC) X-Greylist: delayed 327 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 14 Feb 2012 09:05:44 UTC Received: from snt0-omc1-s6.snt0.hotmail.com (snt0-omc1-s6.snt0.hotmail.com [65.55.90.17]) by menubar.gnome.org (Postfix) with ESMTP id CAEF67500D4 for ; Tue, 14 Feb 2012 09:05:36 +0000 (UTC) Received: from SNT110-W1 ([65.55.90.8]) by snt0-omc1-s6.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 14 Feb 2012 01:00:06 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_e8168426-9fd6-497f-afee-bf7160fe1bcf_" X-Originating-IP: [80.214.0.115] From: Victor henri To: Subject: RE: Change background color in GTK 3 Date: Tue, 14 Feb 2012 10:00:06 +0100 Importance: Normal In-Reply-To: <33319146.post@talk.nabble.com> References: <33319146.post@talk.nabble.com> MIME-Version: 1.0 X-OriginalArrivalTime: 14 Feb 2012 09:00:06.0276 (UTC) FILETIME=[0BCDCC40:01CCEAF7] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 09:05:50 -0000 --_e8168426-9fd6-497f-afee-bf7160fe1bcf_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Well I had the issue on ubuntu 11.10. On another machine using ubuntu 11.04= it works...=20 Is it related to theme? Anyway should't gtk_widget_override_background_colo= r override theme? Victor > Date: Mon=2C 13 Feb 2012 16:39:02 -0800 > From: nadaeck@hotmail.com > To: gtk-list@gnome.org > Subject: Change background color in GTK 3 >=20 >=20 > Hello >=20 > I would like to change the background of a button in GTK3 >=20 > In GTK2=2C I was doing : >=20 > GdkColor color=3B > gdk_color_parse ("gold"=2C&color)=3B > gtk_widget_modify_bg(GTK_WIDGET(widget)=2C GTK_STATE_NORMAL=2C &c= olor)=3B >=20 > and it was working perfectly. >=20 > In GTK3=2C I am doing : >=20 > GdkRGBA color=3B > gdk_rgba_parse (&color=2C "orange")=3B > gtk_widget_override_background_color(GTK_WIDGET(widget)=2C > GTK_STATE_FLAG_NORMAL=2C &color)=3B >=20 > and it doesn't work. I don't understand what I have missed >=20 > Thank you >=20 > --=20 > View this message in context: http://old.nabble.com/Change-background-col= or-in-GTK-3-tp33319146p33319146.html > Sent from the Gtk+ - General mailing list archive at Nabble.com. >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list = --_e8168426-9fd6-497f-afee-bf7160fe1bcf_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Well I had the issue on ubuntu 1= 1.10. On another machine using ubuntu 11.04 it works...
Is it related t= o theme? Anyway should'=3Bt gtk_widget_override_background_color overrid= e theme?

Victor

> Date:=3B Mon=2C 13 Feb 2012 16:=3B39&= #58=3B02 -0800
> From:=3B nadaeck@=3Bhotmail.com
> To:=3B gt= k-list@=3Bgnome.org
> Subject:=3B Change background color in GTK 3=
>
>
> Hello
>
> I would like to change the background of= a button in GTK3
>
> In GTK2=2C I was doing :=3B
>
> = GdkColor color;=3B
> gdk_color_parse (=3B"=3Bgold&#= 34=3B=2C&=3Bcolor)=3B;=3B
> gtk_widget_modify_bg(=3B= GTK_WIDGET(=3Bwidget)=3B=2C GTK_STATE_NORMAL=2C &=3Bcolor)=3B&#= 59=3B
>
> and it was working perfectly.
>
> In GTK3=2C I am d= oing :=3B
>
> GdkRGBA color;=3B
> gdk_rgba_= parse (=3B&=3Bcolor=2C "=3Borange"=3B)=3B;=3B
> = gtk_widget_override_background_color(=3BGTK_WIDGET(=3Bwidget)=3B= =2C
> GTK_STATE_FLAG_NORMAL=2C &=3Bcolor)=3B;=3B
>
> and= it doesn'=3Bt work. I don'=3Bt understand what I have missed
> > Thank you
>
> --
> View this message in context:=3B http&= #58=3B//old.nabble.com/Change-background-color-in-GTK-3-tp33319146p33319146= .html
> Sent from the Gtk+=3B - General mailing list archive at Nabbl= e.com.
>
> _______________________________________________
> gtk-= list mailing list
> gtk-list@=3Bgnome.org
> http:=3B//mail.gnom= e.org/mailman/listinfo/gtk-list
= --_e8168426-9fd6-497f-afee-bf7160fe1bcf_-- From jean.brefort@normalesup.org Tue Feb 14 09:17:48 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DABE77500D4 for ; Tue, 14 Feb 2012 09:17:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.044 X-Spam-Level: X-Spam-Status: No, score=-1.044 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.779, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bB++kRXkhSdh for ; Tue, 14 Feb 2012 09:17:42 +0000 (UTC) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by menubar.gnome.org (Postfix) with ESMTP id 44CBB75019F for ; Tue, 14 Feb 2012 09:17:40 +0000 (UTC) Received: from [IPv6:2a01:e35:8ac4:1010:ceaf:78ff:feb4:c667] (unknown [IPv6:2a01:e35:8ac4:1010:ceaf:78ff:feb4:c667]) by smtp1-g21.free.fr (Postfix) with ESMTP id E50339401B9; Tue, 14 Feb 2012 10:17:31 +0100 (CET) Message-ID: <1329211010.2613.0.camel@vaio.brefort.fr> Subject: RE: Change background color in GTK 3 From: Jean Brefort To: Victor henri Date: Tue, 14 Feb 2012 10:16:50 +0100 In-Reply-To: References: <33319146.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 09:17:49 -0000 This is https://bugzilla.gnome.org/show_bug.cgi?id=656461 Regards, Jean Le mardi 14 février 2012 à 10:00 +0100, Victor henri a écrit : > Well I had the issue on ubuntu 11.10. On another machine using ubuntu > 11.04 it works... > Is it related to theme? Anyway should't > gtk_widget_override_background_color override theme? > > Victor > > > Date: Mon, 13 Feb 2012 16:39:02 -0800 > > From: nadaeck@hotmail.com > > To: gtk-list@gnome.org > > Subject: Change background color in GTK 3 > > > > > > Hello > > > > I would like to change the background of a button in GTK3 > > > > In GTK2, I was doing : > > > > GdkColor color; > > gdk_color_parse ("gold",&color); > > gtk_widget_modify_bg(GTK_WIDGET(widget), GTK_STATE_NORMAL, &color); > > > > and it was working perfectly. > > > > In GTK3, I am doing : > > > > GdkRGBA color; > > gdk_rgba_parse (&color, "orange"); > > gtk_widget_override_background_color(GTK_WIDGET(widget), > > GTK_STATE_FLAG_NORMAL, &color); > > > > and it doesn't work. I don't understand what I have missed > > > > Thank you > > > > -- > > View this message in context: > http://old.nabble.com/Change-background-color-in-GTK-3-tp33319146p33319146.html > > Sent from the Gtk+ - General mailing list archive at Nabble.com. > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From nadaeck@hotmail.com Tue Feb 14 23:24:15 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B276575017F for ; Tue, 14 Feb 2012 23:24:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -101.909 X-Spam-Level: X-Spam-Status: No, score=-101.909 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KRuH1fzXeyeB for ; Tue, 14 Feb 2012 23:24:13 +0000 (UTC) Received: from snt0-omc1-s1.snt0.hotmail.com (snt0-omc1-s1.snt0.hotmail.com [65.55.90.12]) by menubar.gnome.org (Postfix) with ESMTP id AE2797500B4 for ; Tue, 14 Feb 2012 23:24:05 +0000 (UTC) Received: from SNT110-W14 ([65.55.90.8]) by snt0-omc1-s1.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 14 Feb 2012 15:24:02 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_be2ddc82-30f0-454c-b1bd-8a44b4e752a7_" X-Originating-IP: [91.88.184.157] From: Victor henri To: gtk-list Subject: RE: Change background color in GTK 3 Date: Wed, 15 Feb 2012 00:24:02 +0100 Importance: Normal In-Reply-To: <1329211010.2613.0.camel@vaio.brefort.fr> References: <33319146.post@talk.nabble.com>, , <1329211010.2613.0.camel@vaio.brefort.fr> MIME-Version: 1.0 X-OriginalArrivalTime: 14 Feb 2012 23:24:02.0815 (UTC) FILETIME=[BCC9F0F0:01CCEB6F] X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 23:24:15 -0000 --_be2ddc82-30f0-454c-b1bd-8a44b4e752a7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you Jean Victor >=20 > This is https://bugzilla.gnome.org/show_bug.cgi?id=3D656461 >=20 > Regards=2C > Jean >=20 > > >=20 > > > Hello > > >=20 > > > I would like to change the background of a button in GTK3 > > >=20 > > > In GTK2=2C I was doing : > > >=20 > > > GdkColor color=3B > > > gdk_color_parse ("gold"=2C&color)=3B > > > gtk_widget_modify_bg(GTK_WIDGET(widget)=2C GTK_STATE_NORMAL=2C &color= )=3B > > >=20 > > > and it was working perfectly. > > >=20 > > > In GTK3=2C I am doing : > > >=20 > > > GdkRGBA color=3B > > > gdk_rgba_parse (&color=2C "orange")=3B > > > gtk_widget_override_background_color(GTK_WIDGET(widget)=2C > > > GTK_STATE_FLAG_NORMAL=2C &color)=3B > > >=20 > > > and it doesn't work. I don't understand what I have missed > > >=20 = --_be2ddc82-30f0-454c-b1bd-8a44b4e752a7_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thank you Jean

Victor


>=3B
>=3B This is https://bugzilla.gnome.org/show_bug.cgi?i= d=3D656461
>=3B
>=3B Regards=2C
>=3B Jean
>=3B
>=3B >=3B >=3B
>=3B >=3B >=3B Hello
>=3B >=3B >= =3B
>=3B >=3B >=3B I would like to change the background of a but= ton in GTK3
>=3B >=3B >=3B
>=3B >=3B >=3B In GTK2=2C I w= as doing :
>=3B >=3B >=3B
>=3B >=3B >=3B GdkColor color= =3B
>=3B >=3B >=3B gdk_color_parse ("gold"=2C&=3Bcolor)=3B
&= gt=3B >=3B >=3B gtk_widget_modify_bg(GTK_WIDGET(widget)=2C GTK_STATE_NO= RMAL=2C &=3Bcolor)=3B
>=3B >=3B >=3B
>=3B >=3B >=3B a= nd it was working perfectly.
>=3B >=3B >=3B
>=3B >=3B >= =3B In GTK3=2C I am doing :
>=3B >=3B >=3B
>=3B >=3B >= =3B GdkRGBA color=3B
>=3B >=3B >=3B gdk_rgba_parse (&=3Bcolor= =2C "orange")=3B
>=3B >=3B >=3B gtk_widget_override_background_col= or(GTK_WIDGET(widget)=2C
>=3B >=3B >=3B GTK_STATE_FLAG_NORMAL=2C &= amp=3Bcolor)=3B
>=3B >=3B >=3B
>=3B >=3B >=3B and it doe= sn't work. I don't understand what I have missed
>=3B >=3B >=3B
= --_be2ddc82-30f0-454c-b1bd-8a44b4e752a7_-- From agnel.kurian@gmail.com Wed Feb 15 22:36:07 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EB027501FC for ; Wed, 15 Feb 2012 22:36:07 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.545 X-Spam-Level: X-Spam-Status: No, score=-2.545 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rdo5uj1+tGmS for ; Wed, 15 Feb 2012 22:35:50 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by menubar.gnome.org (Postfix) with ESMTP id D425C750123 for ; Wed, 15 Feb 2012 22:35:41 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so1467489wib.27 for ; Wed, 15 Feb 2012 14:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=y44jcalXtzgXKlDtk4dmFKAzoNKMdNaOjhsIjIB01nA=; b=DMchIRXN2YFtFuOuxa1/q0BCC5fiVuFSbRncwplkxrY1kF4Bwohwu1EZQf2aGzQ+AK KeFEoYi8RdZPMve7z+XDcVPQH2q8sUFv44JwGD3VvCcfxXoqh9H4AR1p0hAIFlI1+3Wk voYeV6APONU9urLM4feQZLV7lm7FvuNTXRs74= Received: by 10.180.106.33 with SMTP id gr1mr105761wib.6.1329345339601; Wed, 15 Feb 2012 14:35:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.13.14 with HTTP; Wed, 15 Feb 2012 14:35:19 -0800 (PST) In-Reply-To: <20120210202148.47fa14dd@bother.homenet> References: <20120210202148.47fa14dd@bother.homenet> From: Agnel Kurian Date: Thu, 16 Feb 2012 04:05:19 +0530 Message-ID: Subject: Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called To: Chris Vine Content-Type: multipart/alternative; boundary=f46d04451999c031ee04b908547c Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 22:36:07 -0000 --f46d04451999c031ee04b908547c Content-Type: text/plain; charset=ISO-8859-1 I'm sorry I was not very clear in my original message. I have implemented a custom GTK+ widget which relies on a C++ object internally. i.e. the widget structure contains an instance of a C++ class. My concern was that the constructor and destructor of the contained object were not being called. I had assumed that merely compiling as C++ would make it work... but now I realize it need not be so when allocated via g_object_new. c++-gtk-utils looks like just what I need. Thank you. -- Agnel On Sat, Feb 11, 2012 at 1:51 AM, Chris Vine wrote: > On Fri, 10 Feb 2012 02:58:53 +0530 > Agnel Kurian wrote: > > I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called > > from C++. I find that the constructor and destructor of my widget is > > never called. So... > > > > 1. Is this expected behaviour? > > 2. What is the usual solution to such a problem (apart from using > > gtkmm)? 3. Any other issues I need to watch out for when using C++ > > with GTK+? > > If you just want to manage the lifetime of a GtkWidget object using C++ > constructors and destructors by containing the Gtk+ object within a C++ > object, and add your own interface or specialisations to the GTK+ > object, there are some very thin wrapper classes here which will do > this: http://cxx-gtk-utils.sourceforge.net/2.0/index.html. See in > particular the WinBase class. > > gtkmm automatically wraps all the C object's methods into C++ methods, > whereas WinBase assumes you don't want to do this or that you will do > it yourself. It depends entirely on what you want from it, how UI > intensive your application is, and how rigorously "C++-ized" you want > GTK+ to become. > > Chris > --f46d04451999c031ee04b908547c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm sorr= y I was not very clear in my original message.

I have implemented a custom GTK+ widge= t which relies on a C++ object internally. i.e. the widget structure contai= ns an instance of a C++ class. My concern was that the constructor and dest= ructor of the contained object were not being called. I had assumed that me= rely compiling as C++ would make it work... but now I realize it need not b= e so when allocated via g_object_new.

c++-gtk-utils looks li= ke just what I need. Thank you.

-- Agnel


On Sat, Feb 11, 2012 at 1:51 AM, Chris V= ine <ch= ris@cvine.freeserve.co.uk> wrote:
On Fri, 10 Feb 2012 02:58:53 +0530<= br> Agnel Kurian <agnel.kurian@gma= il.com> wrote:
> I am trying to create a custom GTK+ widget using GTK+ 2.4.8 called
> from C++. I find that the constructor and destructor of my widget is > never called. So...
>
> 1. Is this expected behaviour?
> 2. What is the usual solution to such a problem (apart from using
> gtkmm)? 3. Any other issues I need to watch out for when using C++
> with GTK+?

If you just want to manage the lifetime of a GtkWidget object u= sing C++
constructors and destructors by containing the Gtk+ object within a C++
object, and add your own interface or specialisations to the GTK+
object, there are some very thin wrapper classes here which will do
this: http://cxx-gtk-utils.sourceforge.net/2.0/index.html. =A0Se= e in
particular the WinBase class.

gtkmm automatically wraps all the C object's methods into C++ methods,<= br> whereas WinBase assumes you don't want to do this or that you will do it yourself. =A0It depends entirely on what you want from it, how UI
intensive your application is, and how rigorously "C++-ized" you = want
GTK+ to become.

Chris

--f46d04451999c031ee04b908547c-- From yeti@physics.muni.cz Wed Feb 15 23:14:47 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ECE2B7501D5 for ; Wed, 15 Feb 2012 23:14:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.056 X-Spam-Level: X-Spam-Status: No, score=-4.056 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, TW_CX=0.077, TW_GT=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZwAFnFTp7FTn for ; Wed, 15 Feb 2012 23:14:33 +0000 (UTC) Received: from minas.ics.muni.cz (minas.ics.muni.cz [147.251.4.40]) by menubar.gnome.org (Postfix) with ESMTP id 9FE62750123 for ; Wed, 15 Feb 2012 23:14:23 +0000 (UTC) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by minas.ics.muni.cz (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id q1FNEJFv005563; Thu, 16 Feb 2012 00:14:20 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 3C724C1B81A; Thu, 16 Feb 2012 00:14:19 +0100 (CET) Date: Thu, 16 Feb 2012 00:14:19 +0100 From: David =?utf-8?B?TmXEjWFz?= To: Agnel Kurian Subject: Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called Message-ID: <20120215231419.GB3264@physics.muni.cz> References: <20120210202148.47fa14dd@bother.homenet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (minas.ics.muni.cz [147.251.4.35]); Thu, 16 Feb 2012 00:14:20 +0100 (CET) Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 23:14:47 -0000 On Thu, Feb 16, 2012 at 04:05:19AM +0530, Agnel Kurian wrote: > I have implemented a custom GTK+ widget which relies on a C++ object > internally. i.e. the widget structure contains an instance of a C++ class. > My concern was that the constructor and destructor of the contained object > were not being called. I had assumed that merely compiling as C++ would > make it work... but now I realize it need not be so when allocated via > g_object_new. It will not work if you embed the C++ class within the GObject struct because the GObject struct is simply allocated as a block of memory from the heap (using GSlice or whatever but anyway no C++ new operator is involved). You can create C++ objects in the instance-init method of the GObject and then, for example, put pointers to them to the GObject struct and destroy them in the the GObject finalize method. If you just want this and not any of the fancy stuff cxx-gtk-utils does then it is quite trivial and you do not need any extra library. Yeti From thepro4ever@gmail.com Thu Feb 16 06:24:06 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9BAB7500CA for ; Thu, 16 Feb 2012 06:24:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.622 X-Spam-Level: X-Spam-Status: No, score=-2.622 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DoMPZ4hAodLV for ; Thu, 16 Feb 2012 06:23:53 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id 4AB2C75005D for ; Thu, 16 Feb 2012 06:23:44 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so2426928vbb.27 for ; Wed, 15 Feb 2012 22:23:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=z3DFLPvRWCWG9YLNOfis7WXbqHkCCpkB9UUc+by3XNU=; b=AzqHC5tbegqWxUuDLXQBPOO6PLh8ki/KRZLmht/vq3+yXzyYPDYenB7AkCuVsyhqpx 95Nb4OoqXGmxCHV3yxRjH2c8is9y3uabQzwX/57TWQeoAzibHCjaK6LS+Gp/8YO4nzbG 8CavgztkU5fFMsjabybbsn7ZlYNmPzkX3r/yE= MIME-Version: 1.0 Received: by 10.52.73.169 with SMTP id m9mr458082vdv.95.1329373422879; Wed, 15 Feb 2012 22:23:42 -0800 (PST) Received: by 10.52.22.140 with HTTP; Wed, 15 Feb 2012 22:23:42 -0800 (PST) Date: Thu, 16 Feb 2012 01:23:42 -0500 Message-ID: Subject: GTK+ Styling From: the pro To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=bcaec5016409a5030604b90ede46 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 06:24:07 -0000 --bcaec5016409a5030604b90ede46 Content-Type: text/plain; charset=ISO-8859-1 I am primarily a C developer and right now I have hit what appears to be two major road blocks with gtk+. I AM NOT USING GTK3, I am using GTk2.XXXXX First I added opacity to my window via the gtk_window_set_opacity(). I am using this gui application soley for a menu bar and a treeview. I love the transparency effect but I have no idea how to make it so the transparency only applies to the window and not the font in the cells of the treeview on the window. I want the window to be slightly opaque and the font to be displayed normally. Right now this function makes everything opaque. Second I successfully ported the application from my linux development workstation to a windows workstation. It looks wonderful on linux but horrible on windows. I see references to the possiblity of themeing all over google for gtk but I couldn't find any examples that involved finding a theme and loading it with C. I am under tight time constraints and almost considering using a different gui api even though I've come fairly far with this app. Any help would be greatly appreciated, thank you. --bcaec5016409a5030604b90ede46 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am primarily a C developer and right now I have hit what appears to be tw= o major road blocks with gtk+. I AM NOT USING GTK3, I am using GTk2.XXXXX

=A0=A0=A0=A0=A0=A0 First I added opacity to my window via the gtk= _window_set_opacity(). I am using this gui application soley for a menu bar= and a treeview. I love the transparency effect but I have no idea how to m= ake it so the transparency only applies to the window and not the font in t= he cells of the treeview on the window. I want the window to be slightly op= aque and the font to be displayed normally. Right now this function makes e= verything opaque.



=A0=A0=A0=A0=A0=A0 Second I successfully ported the application= from my linux development workstation to a windows workstation. It looks w= onderful on linux but horrible on windows. I see references to the
possi= blity of themeing all over google for gtk but I couldn't find any examp= les that involved finding a theme and loading it with C.


=A0=A0=A0=A0=A0 I am under tight time constraints and almost consid= ering using a different gui api even though I've come fairly far with t= his app. Any help would be greatly appreciated, thank you.
--bcaec5016409a5030604b90ede46-- From hrvoje.niksic@avl.com Thu Feb 16 09:45:30 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BAC28750201 for ; Thu, 16 Feb 2012 09:45:30 +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, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id anKGiVzJFjkp for ; Thu, 16 Feb 2012 09:45:28 +0000 (UTC) X-Greylist: delayed 760 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 16 Feb 2012 09:45:28 UTC Received: from relay02.avl.com (relay02.avl.com [157.247.254.72]) by menubar.gnome.org (Postfix) with ESMTP id 2B4C975002B for ; Thu, 16 Feb 2012 09:45:19 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.73,428,1325458800"; d="scan'208";a="8204490" Received: from atgrzls001a.avl.com (HELO ATGRZMS003.avl01.avlcorp.lan) ([157.247.252.45]) by smtp02.avl.com with ESMTP; 16 Feb 2012 10:32:37 +0100 Received: from [157.247.180.145] ([157.247.180.145]) by ATGRZMS003.avl01.avlcorp.lan with Microsoft SMTPSVC(6.0.3790.3959); Thu, 16 Feb 2012 10:32:36 +0100 Message-ID: <4F3CCD34.1060900@avl.com> Date: Thu, 16 Feb 2012 10:32:36 +0100 From: Hrvoje Niksic User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: agnel.kurian@gmail.com Subject: Re: Creating custom GTK+ widget using C++ -- Ctor/Dtor not called References: <20120210202148.47fa14dd@bother.homenet> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Feb 2012 09:32:36.0911 (UTC) FILETIME=[EB4C93F0:01CCEC8D] Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 09:45:31 -0000 On 02/15/2012 11:35 PM, Agnel Kurian wrote: > contained object were not being called. I had assumed that merely > compiling as C++ would make it work... but now I realize it need not be > so when allocated via g_object_new. Note that you can always call placement new in your gobject constructor and explicitly invoke the C++ destructor in the gobject destructor. That way, even when created via g_object_new, your class will be correctly constructed in the C++ sense. Google "placement new" for more details. From jcupitt@gmail.com Thu Feb 16 10:12:16 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6618C750201 for ; Thu, 16 Feb 2012 10:12:16 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.546 X-Spam-Level: X-Spam-Status: No, score=-2.546 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077, TW_KR=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UR9luQ+T5wg1 for ; Thu, 16 Feb 2012 10:12:10 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 07FAB75002B for ; Thu, 16 Feb 2012 10:12:01 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so4783906obc.27 for ; Thu, 16 Feb 2012 02:12:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=8l1FlEAO6iTOlhUQaNLYBZK/m5tmvdz3F1dQwf1RO2A=; b=KKu0FT+LA8WxcI+bIett+zsA303I9jhQYNbUnZpww9NzBhkZ4ehroSMmWMtW3CGi4v NPOEyl924m243zr/d8E1n3P91Xbe9k1fVGA3c0PU1I7xTaPwRcr+byQFINOJPpSsQMSI rqWXx5EAq6rlNszsGsMSxPLHY6f8L0BqtX6hM= Received: by 10.182.41.5 with SMTP id b5mr1353353obl.79.1329387120319; Thu, 16 Feb 2012 02:12:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.46.226 with HTTP; Thu, 16 Feb 2012 02:11:20 -0800 (PST) In-Reply-To: References: From: jcupitt@gmail.com Date: Thu, 16 Feb 2012 10:11:20 +0000 Message-ID: Subject: Re: GTK+ Styling To: the pro Content-Type: text/plain; charset=ISO-8859-1 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 10:12:16 -0000 On 16 February 2012 06:23, the pro wrote: > linux but horrible on windows. I see references to the > possiblity of themeing all over google for gtk but I couldn't find any > examples that involved finding a theme and loading it with C. When you package your gtk app for Windows you need to lay out a directory structure something like this: myapp-1.0 bin myapp.exe ... loads of gtk/glib/etc. DLLs etc gtk-2.0 gtkrc share themes erm actually I forget this bit The gtkrc file needs to contain something like: gtk-theme-name = "Clearlooks" And you need to put the clearlooks (or whatever theme you select) theme into share and (I think) lib. I have a project here: https://github.com/jcupitt/build-win32 that does this. You give it a .tar.gz source tarball for your project and it builds you a myapp-1.0-setup.exe installer automatically. I use it on linux with a cross-compiler. John From drcouzelis@gmail.com Fri Feb 17 04:41:43 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0488A75008B for ; Fri, 17 Feb 2012 04:41:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wuGlN7F-IPBX for ; Fri, 17 Feb 2012 04:41:41 +0000 (UTC) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by menubar.gnome.org (Postfix) with ESMTP id 067D475006D for ; Fri, 17 Feb 2012 04:41:32 +0000 (UTC) Received: by qaea17 with SMTP id a17so3656636qae.6 for ; Thu, 16 Feb 2012 20:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=BFnfb4XR5mgJxFG/g97Z4TaeRAGkvjw7odGlTVd/lqs=; b=hTKoNaWS+tb+VMBNzrKSxe9sUOEaf4RTMu8m6inIQLqGSf+IWk8t7UMeFMx0ijGSTk TD5Ly3qiwlgziKad0/pZhp9GC6T8UAo7GEKO5j2wrgz1tFtQL+SQc5h53rF8ahIDznWH KZqJfDqvgHojDg9VeTMFTlpyhWen6RJHVSqHo= Received: by 10.229.77.13 with SMTP id e13mr3760982qck.32.1329453691254; Thu, 16 Feb 2012 20:41:31 -0800 (PST) Received: from [192.168.1.2] ([108.227.18.158]) by mx.google.com with ESMTPS id k19sm22368229qak.4.2012.02.16.20.41.30 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Feb 2012 20:41:30 -0800 (PST) Message-ID: <4F3DDA79.6080000@gmail.com> Date: Thu, 16 Feb 2012 23:41:29 -0500 From: David Rawson Couzelis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120212 Thunderbird/10.0.1 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: GtkSeparatorMenuItem looks wrong (Gtk3, Python3) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 04:41:43 -0000 The GtkSeparatorMenuItem widgets in the menubar of my application look wrong. There should be a horizontal line separating the menu items, but instead, there is only an empty space. In other words, there's a space separating the two menu items, but there's no horizontal line. Could this be a bug? Or, am I using the GtkSeparatorMenuItem incorrectly? I'm using Gtk 3.2.3 and Python 3.2.2. Below is a simple example showing how to reproduce the problem. Thank you, Dave --------------------------------------------------------- from gi.repository import Gtk menu = Gtk.Menu() menu.append(Gtk.MenuItem('New')) # The following separator menu item looks wrong :'( menu.append(Gtk.SeparatorMenuItem()) menu.append(Gtk.MenuItem('Quit')) menuitem = Gtk.MenuItem('File') menuitem.set_submenu(menu) menubar = Gtk.MenuBar() menubar.append(menuitem) vbox = Gtk.VBox() vbox.pack_start(menubar, False, True, 0) def on_closed(widget, data): Gtk.main_quit() window = Gtk.Window() window.resize(400, 300) window.add(vbox) window.connect('delete-event', on_closed) window.show_all() Gtk.main() From bijanbina@gmail.com Fri Feb 17 09:34:44 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A55E37500B5 for ; Fri, 17 Feb 2012 09:34:44 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2bR4rcl77r9P for ; Fri, 17 Feb 2012 09:34:28 +0000 (UTC) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by menubar.gnome.org (Postfix) with ESMTP id 651A77500A2 for ; Fri, 17 Feb 2012 09:34:19 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so4029898vbb.27 for ; Fri, 17 Feb 2012 01:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=5KQ7CVD3T4svTA9U02P+BSZi4D4kebQeF6w1xbZO00U=; b=unMD398g4ynlEYZ8i9nnGCcJZeyyNuMvXL6DUYF5eZT4025dUtBP5Qwg2oN7SxHCCa SnuuWZ5aM0arBcnn46AW2cKBDx7bPuU516WXRgQbIP3a4V5loeS6d812BAI6TnpEOGD1 PUJJFuXC7phe7Yq7G3N3heQZMQGDjaPNG4BOw= MIME-Version: 1.0 Received: by 10.52.38.102 with SMTP id f6mr2758647vdk.70.1329471258305; Fri, 17 Feb 2012 01:34:18 -0800 (PST) Received: by 10.52.31.232 with HTTP; Fri, 17 Feb 2012 01:34:18 -0800 (PST) Date: Fri, 17 Feb 2012 13:04:18 +0330 Message-ID: Subject: High Quality Icon For GtkWindow From: Bijan Binaee To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=bcaec51d20d81724bc04b925a694 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 09:34:44 -0000 --bcaec51d20d81724bc04b925a694 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Everybody in the mailing list I=92m trying to set icon for my GtkWindow but why the quality decrease when it show in Dash(overview in gnome shell) ? i use gtk_window_set_icon and use gdk_pixbuf_new_from_file for loading my icon and my icon size is 128x128 and the type is png also i resize it to 64x64 but it didn't have any influence also i use gtk_window_set_default_icon_name ("eog"); to test some other icon and the result is the eog icon quality decrease too! you can see it in http://up98.org/upload/server1/02/a/y2v05wuq758mebtl1y8d.jpg Regard Bijan Binaee --bcaec51d20d81724bc04b925a694 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Everybody in th= e mailing list

I=92m trying to set icon for my GtkWindow but why the quality decrease = when it show in Dash(overview in gnome shell) ?

i use gtk_window_s= et_icon and use gdk_pixbuf_new_from_file for loading my icon


and my icon size is 128x128 and the type is png also i resize it to= 64x64 but it didn't have any influence


also i use gtk_w= indow_set_default_icon_name ("eog"); to test some other icon and = the result is the eog icon quality decrease too!

you can see it in http://up98.org/upload/server1/02/a/y2v05wuq758mebtl1y8= d.jpg


Regard Bijan Binaee --bcaec51d20d81724bc04b925a694-- From chris@cvine.freeserve.co.uk Fri Feb 17 10:14:39 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 43B407500B5 for ; Fri, 17 Feb 2012 10:14:39 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xJ6k9fL2j7wz for ; Fri, 17 Feb 2012 10:14:37 +0000 (UTC) Received: from smtpout.wanadoo.co.uk (smtpout2.wanadoo.co.uk [80.12.242.42]) by menubar.gnome.org (Postfix) with ESMTP id E09DB7500A2 for ; Fri, 17 Feb 2012 10:14:28 +0000 (UTC) Received: from bother.homenet ([2.25.73.161]) by mwinf5d28 with ME id ayEQ1i00T3UnR5603yERfF; Fri, 17 Feb 2012 11:14:26 +0100 Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (8.14.4/8.14.4) with ESMTP id q1HAEOpf004017; Fri, 17 Feb 2012 10:14:24 GMT Date: Fri, 17 Feb 2012 10:14:24 +0000 From: Chris Vine To: David Rawson Couzelis Subject: Re: GtkSeparatorMenuItem looks wrong (Gtk3, Python3) Message-ID: <20120217101424.6b5b891a@bother.homenet> In-Reply-To: <4F3DDA79.6080000@gmail.com> References: <4F3DDA79.6080000@gmail.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 10:14:39 -0000 On Thu, 16 Feb 2012 23:41:29 -0500 David Rawson Couzelis wrote: > The GtkSeparatorMenuItem widgets in the menubar of my application look > wrong. There should be a horizontal line separating the menu items, > but instead, there is only an empty space. In other words, there's a > space separating the two menu items, but there's no horizontal line. > > Could this be a bug? Or, am I using the GtkSeparatorMenuItem > incorrectly? > > I'm using Gtk 3.2.3 and Python 3.2.2. If you are using Adwaita as a theme, try a different one. Adwaita suppresses many of the visual clues that GTK+ tries to provide, so for example, amongst other things, GtkFrame objects won't show. Why GNOME has gone down this bizarre route is beyond me. Chris From drcouzelis@gmail.com Sat Feb 18 01:35:56 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 180C275001A for ; Sat, 18 Feb 2012 01:35:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90YZNEET6Tvc for ; Sat, 18 Feb 2012 01:35:41 +0000 (UTC) Received: from mail-qw0-f47.google.com (mail-qw0-f47.google.com [209.85.216.47]) by menubar.gnome.org (Postfix) with ESMTP id B8C55750081 for ; Sat, 18 Feb 2012 01:35:33 +0000 (UTC) Received: by qadz30 with SMTP id z30so1699335qad.6 for ; Fri, 17 Feb 2012 17:35:31 -0800 (PST) Received-SPF: pass (google.com: domain of drcouzelis@gmail.com designates 10.229.77.31 as permitted sender) client-ip=10.229.77.31; Authentication-Results: mr.google.com; spf=pass (google.com: domain of drcouzelis@gmail.com designates 10.229.77.31 as permitted sender) smtp.mail=drcouzelis@gmail.com; dkim=pass header.i=drcouzelis@gmail.com Received: from mr.google.com ([10.229.77.31]) by 10.229.77.31 with SMTP id e31mr7421006qck.63.1329528931926 (num_hops = 1); Fri, 17 Feb 2012 17:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=8NRNU9M9iMtP004TvXvCyS1xjRLXCszrFKsUiSXq5FU=; b=ty4y9+C+unf1AGzG8eKW4e02KFks59S2FAcSIwOlkTYBJXOxNJSaGVyx7GzN/0ecv0 m8V+1W7QeVDRTCPJbYrH9W99CPUKplkQ7RZbqylA+5sE6n2yr8s49cmWuOpvfEf4hTXh HZPSiatZqnyuIeCvP2GkkFk7ywzrLTLGn4xCs= Received: by 10.229.77.31 with SMTP id e31mr6288856qck.63.1329528931835; Fri, 17 Feb 2012 17:35:31 -0800 (PST) Received: from [192.168.1.2] ([108.227.19.71]) by mx.google.com with ESMTPS id i19sm4202047qad.19.2012.02.17.17.35.30 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Feb 2012 17:35:31 -0800 (PST) Message-ID: <4F3F0061.8010309@gmail.com> Date: Fri, 17 Feb 2012 20:35:29 -0500 From: David Rawson Couzelis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: High Quality Icon For GtkWindow References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 01:35:56 -0000 > I’m trying to set icon for my GtkWindow but why the quality decrease > when it show in Dash(overview in gnome shell) ? > i use gtk_window_set_icon and use gdk_pixbuf_new_from_file for loading > my icon and my icon size is 128x128 and the type is png also i resize it to > 64x64 but it didn't have any influence Does it look correct if you supply a list of all sizes of icons? (16x16, 32x32, 48x48, 64x64, 128x128) Maybe it ends up looking fuzzy because the icon is too large and ends up being downscaled... From drcouzelis@gmail.com Sat Feb 18 01:39:03 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0CFD7750081 for ; Sat, 18 Feb 2012 01:39:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CkfnMMlwYZxH for ; Sat, 18 Feb 2012 01:39:01 +0000 (UTC) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by menubar.gnome.org (Postfix) with ESMTP id 3144475001A for ; Sat, 18 Feb 2012 01:38:52 +0000 (UTC) Received: by qaea17 with SMTP id a17so4861218qae.6 for ; Fri, 17 Feb 2012 17:38:51 -0800 (PST) Received-SPF: pass (google.com: domain of drcouzelis@gmail.com designates 10.229.75.143 as permitted sender) client-ip=10.229.75.143; Authentication-Results: mr.google.com; spf=pass (google.com: domain of drcouzelis@gmail.com designates 10.229.75.143 as permitted sender) smtp.mail=drcouzelis@gmail.com; dkim=pass header.i=drcouzelis@gmail.com Received: from mr.google.com ([10.229.75.143]) by 10.229.75.143 with SMTP id y15mr7550983qcj.2.1329529131582 (num_hops = 1); Fri, 17 Feb 2012 17:38:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=NeN6kBur+NbpOFrD17jRIYk6ql/kesFq1x1PcTOZEsw=; b=rSihvChCgwW31ZWo49mtvhwPzUVBr7gTpzkdlAbU+iEZE//nZuwRvG6w8nNmolGeSF luYDICMVyPzIAFyXCgiJ11vLBTPS/t5Dr4n1Apc8bU6T6QX6lknQZ+XgR11bRH4V8HL7 OC8AxUIf0cfNk2DuHptjOO0hYvkaKWvq347vQ= Received: by 10.229.75.143 with SMTP id y15mr6391943qcj.2.1329529131353; Fri, 17 Feb 2012 17:38:51 -0800 (PST) Received: from [192.168.1.2] ([108.227.19.71]) by mx.google.com with ESMTPS id g3sm29374826qap.2.2012.02.17.17.38.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Feb 2012 17:38:50 -0800 (PST) Message-ID: <4F3F012A.8070308@gmail.com> Date: Fri, 17 Feb 2012 20:38:50 -0500 From: David Rawson Couzelis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: GtkSeparatorMenuItem looks wrong (Gtk3, Python3) References: <4F3DDA79.6080000@gmail.com> <20120217101424.6b5b891a@bother.homenet> In-Reply-To: <20120217101424.6b5b891a@bother.homenet> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 01:39:03 -0000 > If you are using Adwaita as a theme, try a different one. Adwaita > suppresses many of the visual clues that GTK+ tries to provide, so for > example, amongst other things, GtkFrame objects won't show. Why GNOME > has gone down this bizarre route is beyond me. Thank you for the tip, but I don't think it's the problem... As far as I can tell, I'm using the default Gtk3 theme. Also, the menu separater appears correct in other Gtk3 applications, such as Gedit 3.2.6. From bijanbina@gmail.com Sat Feb 18 02:45:52 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA474750089 for ; Sat, 18 Feb 2012 02:45:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.622 X-Spam-Level: X-Spam-Status: No, score=-1.622 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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4w0KvmkNDhVr for ; Sat, 18 Feb 2012 02:45:50 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id C9B2A750081 for ; Sat, 18 Feb 2012 02:45:41 +0000 (UTC) Received: by vcmm1 with SMTP id m1so5059211vcm.27 for ; Fri, 17 Feb 2012 18:45:40 -0800 (PST) Received-SPF: pass (google.com: domain of bijanbina@gmail.com designates 10.52.20.201 as permitted sender) client-ip=10.52.20.201; Authentication-Results: mr.google.com; spf=pass (google.com: domain of bijanbina@gmail.com designates 10.52.20.201 as permitted sender) smtp.mail=bijanbina@gmail.com; dkim=pass header.i=bijanbina@gmail.com Received: from mr.google.com ([10.52.20.201]) by 10.52.20.201 with SMTP id p9mr4687574vde.87.1329533140286 (num_hops = 1); Fri, 17 Feb 2012 18:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qyBZEsalHXiWrqRvlnrKK6Bo95fhFaPcdpb8VpFPXDw=; b=KVMMT++wpU17AMtpAKHjsIrfFsJg//8gYbCN5OpqwuC0RFJlRrdW5MAlUeDZ9apsBl vgVCtnkU5RzPGWMhw8PEkpQJupBmiES5qRwhtIWWiO+eR7YlIuvi3AjtTROaH1qqK343 XGJJTHjfPecw43A7jPEHfnKmA20rX1p5HiloQ= MIME-Version: 1.0 Received: by 10.52.20.201 with SMTP id p9mr3814555vde.87.1329533140190; Fri, 17 Feb 2012 18:45:40 -0800 (PST) Received: by 10.52.31.232 with HTTP; Fri, 17 Feb 2012 18:45:40 -0800 (PST) In-Reply-To: <4F3F0061.8010309@gmail.com> References: <4F3F0061.8010309@gmail.com> Date: Sat, 18 Feb 2012 06:15:40 +0330 Message-ID: Subject: Re: High Quality Icon For GtkWindow From: Bijan Binaee To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=20cf307c9f3c89c6e704b9340ec7 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 02:45:52 -0000 --20cf307c9f3c89c6e704b9340ec7 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable i find that gnome automatically set icon for known application for example eog! if you rename the eog binary file you see that the icon manually set with gtk_window_set_default_icon_name and the result is the icon quality decrease i notice again that i use gtk_window_set_default_icon_name ("eog"); to test some other icon and the result is the eog icon quality decrease too= ! you can see it in http://up98.org/upload/server1/02/a/y2v05wuq758mebtl1y8d.jpg in my theme i have all size so gtk have some fault! i also check some other big project like gnome-power-setting and i realize that icon of that project set automatically too and if you rename the binary file you could see the icon quality decrease now what sould i do? On Sat, Feb 18, 2012 at 5:05 AM, David Rawson Couzelis wrote: > > I=92m trying to set icon for my GtkWindow but why the quality decrease > > > when it show in Dash(overview in gnome shell) ? > > i use gtk_window_set_icon and use gdk_pixbuf_new_from_file for loading > > my icon and my icon size is 128x128 and the type is png also i resize i= t > to > > 64x64 but it didn't have any influence > > > Does it look correct if you supply a list of all sizes of icons? (16x16, > 32x32, 48x48, 64x64, 128x128) > > Maybe it ends up looking fuzzy because the icon is too large and ends up > being downscaled... > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --20cf307c9f3c89c6e704b9340ec7 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable i find that gnome automatically set icon for known application for example = eog!

if you rename the eog binary file you see that the icon manuall= y set with gtk_window_set_default_icon_name and the result is the icon qual= ity decrease i notice again that
i use gtk_window_set_default_icon_name ("eog");
to test some = other icon and the result is the eog icon quality decrease too!

you can see it in http://up98.org/upload/server1/02/a/y= 2v05wuq758mebtl1y8d.jpg

in my theme i have all size so gtk have = some fault!

i also check some other big project like gnome-power-setting and i real= ize that icon of that project set automatically too and if you rename the b= inary file you could see the icon quality decrease

now what sould i = do?



On Sat, Feb 18, 2012 at 5:05 AM, David Rawso= n Couzelis <drcouzelis@gmail.com> wrote:
> I=92m trying to set icon for my GtkWindow but why the quality dec= rease

> when it show in Dash(overview in gnome shell) ?
> i use gtk_window_set_icon and use gdk_pixbuf_new_from_file for loading=
> my icon and my icon size is 128x128 and the type is png also i resize = it to
> 64x64 but it didn't have any influence


Does it look correct if you supply a list of all sizes of icons? (16x= 16,
32x32, 48x48, 64x64, 128x128)

Maybe it ends up looking fuzzy because the icon is too large and ends up being downscaled...
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org<= /a>
http://mail.gnome.org/mailman/listinfo/gtk-list

--20cf307c9f3c89c6e704b9340ec7-- From agnel.kurian@gmail.com Sat Feb 18 08:21:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75B5175006C for ; Sat, 18 Feb 2012 08:21:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1QiqALbCxzPD for ; Sat, 18 Feb 2012 08:20:58 +0000 (UTC) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by menubar.gnome.org (Postfix) with ESMTP id 7DB1675001A for ; Sat, 18 Feb 2012 08:20:50 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3461134wib.27 for ; Sat, 18 Feb 2012 00:20:48 -0800 (PST) Received-SPF: pass (google.com: domain of agnel.kurian@gmail.com designates 10.180.107.68 as permitted sender) client-ip=10.180.107.68; Authentication-Results: mr.google.com; spf=pass (google.com: domain of agnel.kurian@gmail.com designates 10.180.107.68 as permitted sender) smtp.mail=agnel.kurian@gmail.com; dkim=pass header.i=agnel.kurian@gmail.com Received: from mr.google.com ([10.180.107.68]) by 10.180.107.68 with SMTP id ha4mr2279085wib.9.1329553248419 (num_hops = 1); Sat, 18 Feb 2012 00:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=lerDs8nvJsv0Qf4NkQDQSVZO86LM43itAw0AovBzdzc=; b=PhUC6W58/wEWokZ5Wkf5Vl0sXyyYBi8bz6sAraI8Ch+lbKROqX9LmFYj5BUjdjrLQW ZK/31N7QvVwNjbFES+OO4mWXmN3EYhW+vHHwwgjxr14atJmC9QvAf3jhWwdBKqbVMlJc yACaNAm8wlZI4EE/y28TnryfpLgZPWT+eQ2qs= Received: by 10.180.107.68 with SMTP id ha4mr1960183wib.9.1329553248384; Sat, 18 Feb 2012 00:20:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.13.14 with HTTP; Sat, 18 Feb 2012 00:20:28 -0800 (PST) From: Agnel Kurian Date: Sat, 18 Feb 2012 13:50:28 +0530 Message-ID: Subject: GTK+ Custom Widget - Assign Button Release Handler in Class struct To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=e89a8f13ec3414765d04b938bd28 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 08:21:00 -0000 --e89a8f13ec3414765d04b938bd28 Content-Type: text/plain; charset=ISO-8859-1 Hello Everyone, I have a custom GTK+ widget in which I need to handle the release of a mouse button. I have assigned my handler callback function to the button_release_event member of GtkWidgetClass in the '_class_init' function. I have also set the GDK_BUTTON_RELEASE_MASK flag in the '_realize' function. However, my handler is not being called. Are there any other steps I need to take in order to receive mouse events? (I am following the Custom GTK+ widget tutorial at http://zetcode.com/tutorials/gtktutorial/customwidget/ ) -- Agnel --e89a8f13ec3414765d04b938bd28 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Everyo= ne,

I have a custom GTK+ widget in which I need to handle the releas= e of a mouse button. I have assigned my handler callback function to the bu= tton_release_event member of GtkWidgetClass in the '_class_init' fu= nction. I have also set the GDK_BUTTON_RELEASE_MASK flag in the '_reali= ze' function. However, my handler is not being called. Are there any ot= her steps I need to take in order to receive mouse events?

(I am following the Custom GTK+ widget tutorial at http://zetcode.com/tutorials= /gtktutorial/customwidget/ )



-- Agnel


--e89a8f13ec3414765d04b938bd28-- From bijanbina@gmail.com Wed Feb 15 23:48:26 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75A8F7501DD for ; Wed, 15 Feb 2012 23:48:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NeZu-3+66lhc for ; Wed, 15 Feb 2012 23:48:12 +0000 (UTC) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by menubar.gnome.org (Postfix) with ESMTP id 2C2F57501E7 for ; Wed, 15 Feb 2012 23:48:03 +0000 (UTC) Received: by vcmm1 with SMTP id m1so2132585vcm.27 for ; Wed, 15 Feb 2012 15:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=sEto82uaVZDNfaIYTS0TvsCwNxvPN93BvoWSDj4wQe8=; b=O8+gpccL24aGONoz5ag9GkiBPZC3HsMSYLZJcU0LADDnhe6k3eKXm5nCQqLGW322DO gwPbnL5cuvJSHzNG2D2GJie6L5Wi+GTlaxb/xMkqjEI9Igcs91qMLYMXoxjpmmEiVorr o1CPtY5NjfcBOA6Y3As5nuYtU0HXX3IxQvOQ0= MIME-Version: 1.0 Received: by 10.52.95.65 with SMTP id di1mr73125vdb.87.1329349682074; Wed, 15 Feb 2012 15:48:02 -0800 (PST) Received: by 10.52.31.232 with HTTP; Wed, 15 Feb 2012 15:48:02 -0800 (PST) Date: Thu, 16 Feb 2012 03:18:02 +0330 Message-ID: Subject: High Quality Icon For GtkWindow From: Bijan Binaee To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=20cf307f314295130f04b9095791 X-Mailman-Approved-At: Mon, 20 Feb 2012 13:04:03 +0000 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 23:48:26 -0000 --20cf307f314295130f04b9095791 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Everybody in the mailing list I=92m trying to set icon for my GtkWindow but why the quality decrease when it show in Dash(overview in gnome shell) ? i use gtk_window_set_icon and use gdk_pixbuf_new_from_file for loading my icon and my icon size is 128x128 and the type is png also i resize it to 64x64 but it didn't have any influence Regard Bijan Binaee --20cf307f314295130f04b9095791 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Everybody in the mailing list

I=92m trying to set icon for my GtkWindow but why the quality decrease = when it show in Dash(overview in gnome shell) ?

i use gtk_window_set_icon and use gdk_pixb= uf_new_from_file for loading my icon


and my icon size is 128x128 and the type is png also i resize it to= 64x64 but it didn't have any influence




Regard B= ijan Binaee
--20cf307f314295130f04b9095791-- From chrarnold@web.de Thu Feb 16 23:30:21 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 61FA575006D for ; Thu, 16 Feb 2012 23:30:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.199 X-Spam-Level: X-Spam-Status: No, score=-4.199 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uTsjHMrVOL-3 for ; Thu, 16 Feb 2012 23:30:07 +0000 (UTC) X-Greylist: delayed 575 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 16 Feb 2012 23:30:07 UTC Received: from v4.rz.uni-leipzig.de (v4.rz.uni-leipzig.de [139.18.1.30]) by menubar.gnome.org (Postfix) with ESMTP id 3C2937500CD for ; Thu, 16 Feb 2012 23:29:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by v4.rz.uni-leipzig.de (Postfix) with ESMTP id 5BB2082087 for ; Fri, 17 Feb 2012 00:20:33 +0100 (CET) X-Virus-Scanned: by amavisd-new at v4-ul Received: from v4.rz.uni-leipzig.de ([127.0.0.1]) by localhost (v4.rz.uni-leipzig.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yKsXFuuzpmdE for ; Fri, 17 Feb 2012 00:20:33 +0100 (CET) Received: from m1.rz.uni-leipzig.de (m1.rz.uni-leipzig.de [139.18.1.9]) by v4.rz.uni-leipzig.de (Postfix) with ESMTP id 394DD82003 for ; Fri, 17 Feb 2012 00:20:33 +0100 (CET) Received: from bierdepot.bioinf.uni-leipzig.de (bierdepot.bioinf.uni-leipzig.de [139.18.75.68]) by m1.rz.uni-leipzig.de (Postfix) with ESMTP id E458282002 for ; Fri, 17 Feb 2012 00:20:22 +0100 (CET) Received: from [139.18.75.213] ([139.18.75.213]) by bierdepot.bioinf.uni-leipzig.de (8.14.5/8.12.10) with ESMTP id q1GNKM9D007742 for ; Fri, 17 Feb 2012 00:20:22 +0100 Message-ID: <4F3D8F36.6090109@web.de> Date: Fri, 17 Feb 2012 00:20:22 +0100 From: Christian Arnold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Glib linking error: undefined reference to ... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 20 Feb 2012 13:04:03 +0000 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 23:30:21 -0000 Hi, I am not sure if this is the correct way of asking my question, but I nevertheless hope someone can help me... I just tried to solve the problem for 4 hours, and I am extremely frustrated right now... I have the following issue: I installed Ubuntu 11.10 and some libraries and packages afterwards. I then installed glib 2.30. Everything went fine, I got no errors when doing ./configure, make, or make install. However, when I try to compile a test file in C, I can compile without errors, but I get the following errors: glibTest.c:24: undefined reference to `g_timer_new' glibTest.c:32: undefined reference to `g_random_double' glibTest.c:36: undefined reference to `g_timer_stop' glibTest.c:55: undefined reference to `g_str_hash' ... I compile with: "gcc `pkg-config --cflags --libs glib-2.0` -g3 -O2 -std=c99 -Wall -pedantic glibTest.c -o glibTest pkg-config --cflags --libs glib-2.0 gives me: -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -L/usr/local/lib -lglib-2.0 This all worked on my old laptop with Ubuntu 10.04, and I have no idea what the issue is. I tried to install glib 2.28 and the newest 2.31 version, with the same error messages. I am no real expert, so please try to help me and let me know as precisely as possible how I can address the issue, I would greatly appreciate it. Thanks, Christian From prlw1@inf.phy.cam.ac.uk Mon Feb 20 13:27:12 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F20577501E0 for ; Mon, 20 Feb 2012 13:27:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.21 X-Spam-Level: X-Spam-Status: No, score=-4.21 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wOtdTgBNs8ek for ; Mon, 20 Feb 2012 13:26:54 +0000 (UTC) Received: from ppsw-51.csi.cam.ac.uk (ppsw-51.csi.cam.ac.uk [131.111.8.151]) by menubar.gnome.org (Postfix) with ESMTP id 3D0C07501A4 for ; Mon, 20 Feb 2012 13:26:45 +0000 (UTC) X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from skye.inf.phy.cam.ac.uk ([131.111.52.83]:34048) by ppsw-51.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.138]:25) with esmtp id 1RzTGN-0004HM-Yh (Exim 4.72) (return-path ); Mon, 20 Feb 2012 13:26:43 +0000 Received: from quartz.inf.phy.cam.ac.uk ([131.111.52.91]) by skye.inf.phy.cam.ac.uk with esmtp (Exim 3.36 #1) id 1RzTGN-0004hW-00; Mon, 20 Feb 2012 13:26:43 +0000 Received: from prlw1 by quartz.inf.phy.cam.ac.uk with local (Exim 4.66) (envelope-from ) id 1RzTGN-0002Xf-DM; Mon, 20 Feb 2012 13:26:43 +0000 Date: Mon, 20 Feb 2012 13:26:43 +0000 From: Patrick Welche To: Christian Arnold Subject: Re: Glib linking error: undefined reference to ... Message-ID: <20120220132643.GC987@quartz.inf.phy.cam.ac.uk> References: <4F3D8F36.6090109@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F3D8F36.6090109@web.de> User-Agent: Mutt/1.5.20 (2010-03-22) Sender: Patrick Welche Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2012 13:27:12 -0000 On Fri, Feb 17, 2012 at 12:20:22AM +0100, Christian Arnold wrote: > glibTest.c:24: undefined reference to `g_timer_new' > glibTest.c:32: undefined reference to `g_random_double' > glibTest.c:36: undefined reference to `g_timer_stop' > glibTest.c:55: undefined reference to `g_str_hash' > ... > > I compile with: > "gcc `pkg-config --cflags --libs glib-2.0` -g3 -O2 -std=c99 -Wall > -pedantic glibTest.c -o glibTest > > pkg-config --cflags --libs glib-2.0 gives me: > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include > -L/usr/local/lib -lglib-2.0 Maybe we need to check that what is in /usr/local/lib is the new ?2.30? version you expect? e.g. ls /usr/local/lib/libglib-2.0* nm -g /usr/local/lib/libglib-2.0.3000.2 | grep g_timer_new (or whatever the library ends up being called) ? Cheers, Patrick From vmalerba@gmail.com Mon Feb 20 13:28:31 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B849C7500DE for ; Mon, 20 Feb 2012 13:28:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6CBpXALgppM8 for ; Mon, 20 Feb 2012 13:28:25 +0000 (UTC) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by menubar.gnome.org (Postfix) with ESMTP id 007D77501A4 for ; Mon, 20 Feb 2012 13:28:16 +0000 (UTC) Received: by yhfs35 with SMTP id s35so3578730yhf.27 for ; Mon, 20 Feb 2012 05:28:15 -0800 (PST) Received-SPF: pass (google.com: domain of vmalerba@gmail.com designates 10.236.173.134 as permitted sender) client-ip=10.236.173.134; Authentication-Results: mr.google.com; spf=pass (google.com: domain of vmalerba@gmail.com designates 10.236.173.134 as permitted sender) smtp.mail=vmalerba@gmail.com; dkim=pass header.i=vmalerba@gmail.com Received: from mr.google.com ([10.236.173.134]) by 10.236.173.134 with SMTP id v6mr19946511yhl.114.1329744495246 (num_hops = 1); Mon, 20 Feb 2012 05:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pjdCuKYWyBqFGIyvN2FhME+soDDiE1TcCIZPoIdappQ=; b=i81uLIRRwaRgssRiAoqp6ZvEVf2cAuCHbs8xs81c6UFTDUwykPcpwrnkyML0Go6jex yCrxaLsNezCr5fIDOuoBQ65UEQ17LM8X73CUyvjIru29DCJ+9NkMcuqURETeytEn24pj POyBwwTr/Bm7IfuDe3xTMtfRbC6utOol3HuN0= MIME-Version: 1.0 Received: by 10.236.173.134 with SMTP id v6mr15307224yhl.114.1329744495185; Mon, 20 Feb 2012 05:28:15 -0800 (PST) Received: by 10.147.61.3 with HTTP; Mon, 20 Feb 2012 05:28:15 -0800 (PST) In-Reply-To: <4F3D8F36.6090109@web.de> References: <4F3D8F36.6090109@web.de> Date: Mon, 20 Feb 2012 14:28:15 +0100 Message-ID: Subject: Re: Glib linking error: undefined reference to ... From: Vivien Malerba To: Christian Arnold Content-Type: multipart/alternative; boundary=20cf305b0c1647105404b96544fc Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2012 13:28:31 -0000 --20cf305b0c1647105404b96544fc Content-Type: text/plain; charset=ISO-8859-1 On 17 February 2012 00:20, Christian Arnold wrote: > Hi, > > I am not sure if this is the correct way of asking my question, but I > nevertheless hope someone can help me... I just tried to solve the problem > for 4 hours, and I am extremely frustrated right now... I have the > following issue: > > I installed Ubuntu 11.10 and some libraries and packages afterwards. I > then installed glib 2.30. Everything went fine, I got no errors when doing > ./configure, make, or make install. However, when I try to compile a test > file in C, I can compile without errors, but I get the following errors: > > glibTest.c:24: undefined reference to `g_timer_new' > glibTest.c:32: undefined reference to `g_random_double' > glibTest.c:36: undefined reference to `g_timer_stop' > glibTest.c:55: undefined reference to `g_str_hash' > ... > > I compile with: > "gcc `pkg-config --cflags --libs glib-2.0` -g3 -O2 -std=c99 -Wall > -pedantic glibTest.c -o glibTest > > pkg-config --cflags --libs glib-2.0 gives me: > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/**include > -L/usr/local/lib -lglib-2.0 > > This all worked on my old laptop with Ubuntu 10.04, and I have no idea > what the issue is. I tried to install glib 2.28 and the newest 2.31 > version, with the same error messages. I am no real expert, so please try > to help me and let me know as precisely as possible how I can address the > issue, I would greatly appreciate it. > > Could it be possible that you try to use the static version of glib and, because you pass it 1st on the command line, the symbols you use are not there in the final exe? Can you try the command like: gcc -g3 -O2 -std=c99 -Wall -pedantic glibTest.c -o glibTest `pkg-config --cflags --libs glib-2.0` Vivien --20cf305b0c1647105404b96544fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 17 February 2012 00:20, Christian Arn= old <chrarnold@web= .de> wrote:
Hi,

I am not sure if this is the correct way of asking my question, but I never= theless hope someone can help me... I just tried to solve the problem for 4= hours, and I am extremely frustrated right now... I have the following iss= ue:

I installed Ubuntu 11.10 and some libraries and packages afterwards. I then= installed glib 2.30. Everything went fine, I got no errors when doing ./co= nfigure, make, or make install. However, when I try to compile a test file = in C, I can compile without errors, but I get the following =A0errors:

glibTest.c:24: undefined reference to `g_timer_new'
glibTest.c:32: undefined reference to `g_random_double'
glibTest.c:36: undefined reference to `g_timer_stop'
glibTest.c:55: undefined reference to `g_str_hash'
...

I compile with:
"gcc `pkg-config --cflags --libs glib-2.0` =A0-g3 -O2 -std=3Dc99 -Wall= -pedantic glibTest.c -o glibTest

pkg-config --cflags --libs glib-2.0 gives me:
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include =A0-= L/usr/local/lib -lglib-2.0

This all worked on my old laptop with Ubuntu 10.04, and I have no idea what= the issue is. I tried to install glib 2.28 and the newest 2.31 version, wi= th the same error messages. I am no real expert, so please try to help me a= nd let me know as precisely as possible how I can address the issue, I woul= d greatly appreciate it.


Could it be possible that you try to use the stat= ic version of glib and, because you pass it 1st on the command line, the sy= mbols you use are not there in the final exe? Can you try the command like:=
gcc -g3 -O2 -std=3Dc99 -Wall -pedantic glibTest.c -o glibTest `pkg-config -= -cflags --libs glib-2.0`

Vivien
--20cf305b0c1647105404b96544fc-- From desrt@desrt.ca Tue Feb 21 01:13:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3956F750212; Tue, 21 Feb 2012 01:13:00 +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, T_RP_MATCHES_RCVD=-0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BeHmmS6OnfSc; Tue, 21 Feb 2012 01:12:46 +0000 (UTC) Received: from mail.desrt.ca (manic.desrt.ca [207.192.74.61]) by menubar.gnome.org (Postfix) with ESMTP id 8A2DA7501FC; Tue, 21 Feb 2012 01:12:38 +0000 (UTC) Received: from [172.29.90.111] (mx-b.hotelavanti.cz [81.19.13.62]) by manic.desrt.ca (Postfix) with ESMTPSA id 95B0C83DB; Mon, 20 Feb 2012 20:12:35 -0500 (EST) Message-ID: <1329786753.31877.4.camel@moonpix> Subject: GLib 2.31.18 From: Ryan Lortie To: gtk-devel-list@gnome.org Date: Tue, 21 Feb 2012 02:12:33 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu2 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Cc: gnome-announce-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: gtk-devel-list@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 01:13:00 -0000 Live from the Czech Republic, it's GLib 2.31.18! This release is an unstable release on the way to 2.32.0. http://download.gnome.org/sources/glib/2.31/ 1ce3d275189000e1c50e92efcdb6447bc260b1e5c41699b7a1959e3e1928fbaa glib-2.31.8.tar.xz This release is aimed at being used as part of GNOME 3.3.90. You will need this to build the just-released Gtk+ 3.3.16. Overview of changes from GLib 2.31.16 to 2.31.18 ================================================ * GDBusProxy has now a flag, G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES, which can be set to make GDBus automatically reload changed properties even if the propertychanged signal does not contain the new values. * GApplication puts non-unique applications on the bus * GApplication now has g_application_quit() * g_async_queue_timed_pop has been deprecated in favor of the new g_async_queue_timeout_pop, which uses relative delays in microseconds instead of a GTimeVal. * a huge number of API documentation fixes * Bugs fixed: 647986 put non-unique apps on D-Bus 658484 vpn connection vs NetworkSecretDialog 664237 GDateTime falls back to UTC if TZ is set 669329 gthread-win32: update for g_get_monotonic_time() changes 669330 glocalfile: fix error code when opening a directory on win32 669372 glib/tests memory leaks. 669412 mem leak in g_environ_unsetenv 669538 Fix compilation of glib-compile-resources.c on Windows 669544 gdbus-codegen example introspection XML is not complete 669595 glib-mkenums: fix handling of forward enum declarations 669670 gasyncqueue: don't use deprecated g_cond_timed_wait() 669671 gobject: use #pragmas to avoid deprecated function warnings 669689 Retrieve cwd and environ in local GApplicationCommandLine 669810 socket/win32: flush pending read before signaling HUP 669865 g_regex_fetch() 670085 memory leak in g_output_stream_write_async 670138 gbytes.h is missing the G_BEGIN/END_DECL guards 670485 Simplify session API (shared bug with gtk+) * Updated translations: Belarusian Danish Galician Serbian Telugu Hebrew Thanks to the contributors to this release: Ask H. Larsen Christian Persch Christophe Fergeau Chun-wei Fan Dan Winship Daniel Mustieles David King David Zeuthen Fran Diéguez Giovanni Campagna Javier Jardón Jesse van den Kieboom Kasia Bondarava Kjartan Maraas Luca Ferretti Marc-André Lureau Matthias Clasen Murray Cumming Peter Kjellerstedt Ravi Sankar Guntur Richard Hughes Swecha Localization Team Yaron Shahrabani Мирослав Николић Cheers From salsaman@gmail.com Wed Feb 22 02:42:45 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 929277500B7 for ; Wed, 22 Feb 2012 02:42:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VFMwTc7KS12E for ; Wed, 22 Feb 2012 02:42:43 +0000 (UTC) Received: from mail-qw0-f47.google.com (mail-qw0-f47.google.com [209.85.216.47]) by menubar.gnome.org (Postfix) with ESMTP id 655427500AC for ; Wed, 22 Feb 2012 02:42:34 +0000 (UTC) Received: by qadz30 with SMTP id z30so5682593qad.6 for ; Tue, 21 Feb 2012 18:42:33 -0800 (PST) Received-SPF: pass (google.com: domain of salsaman@gmail.com designates 10.229.111.141 as permitted sender) client-ip=10.229.111.141; Authentication-Results: mr.google.com; spf=pass (google.com: domain of salsaman@gmail.com designates 10.229.111.141 as permitted sender) smtp.mail=salsaman@gmail.com; dkim=pass header.i=salsaman@gmail.com Received: from mr.google.com ([10.229.111.141]) by 10.229.111.141 with SMTP id s13mr20641456qcp.38.1329878553369 (num_hops = 1); Tue, 21 Feb 2012 18:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=9J25wf3UHFXKaZVKPLClAVFWH5bIayED07nUxpJ1cNU=; b=Cn3ofYZfjYIu8x1xJRbtD6ClW7QrXg5CbECzZXEHjeCce947YP3P/7KOgv9aNKtLc8 Bcv+nq9NEh+h5nsU/8gmAsetsbwuxGP5e/ffYAwFUs2LjhlBriiHORglOM4zurVy1o8H xmLx37t+NkM9OBh4f5AaCqxd+qrJH8cgb0J3I= Received: by 10.229.111.141 with SMTP id s13mr17418347qcp.38.1329878553212; Tue, 21 Feb 2012 18:42:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.42.131 with HTTP; Tue, 21 Feb 2012 18:42:13 -0800 (PST) From: salsaman Date: Tue, 21 Feb 2012 23:42:13 -0300 Message-ID: Subject: Documentation for gdk_win32_* functions To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2012 02:42:45 -0000 Hi. I have been trying in vain to find documentation for the gdk_win32_* functions but searching on google brings up nothing. Is there somewhere I can find the documentation for these functions ? What is their status (supported ? deprecated ? about to be deprecated ?) TIA, salsaman. http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman From cc_subhero@163.com Thu Feb 23 03:36:41 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 70DB67502EB for ; Thu, 23 Feb 2012 03:36:41 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.765 X-Spam-Level: * X-Spam-Status: No, score=1.765 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, SARE_RECV_IP_220168=1.666, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zD-ioqGocEiR for ; Thu, 23 Feb 2012 03:36:40 +0000 (UTC) Received: from m13-145.163.com (m13-145.163.com [220.181.13.145]) by menubar.gnome.org (Postfix) with ESMTP id 9DB877500AA for ; Thu, 23 Feb 2012 03:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=/QRynFHMSEhFe1TJjU3DJlnQN4p3Q85dik Ul5xu5BEo=; b=HCLK1f4Cv3DYcc2Ya4kES5XCwvusdd4y11YXI2Uciw7TwLNvTa 1wuJe+GbcLj9vznyC5Wp6qdl8DmLn3QarfDwnF4y1yK8B4J9fR1nYJc/jJ5Lfcy+ +IMEvgTJn+BrSXVZj26sFAw3DRF5uJ1nqIgqTlAX9sJTD1JBxlJHglR8o= Received: from cc_subhero ( [220.168.48.23] ) by ajax-webmail-wmsvr145 (Coremail) ; Thu, 23 Feb 2012 11:36:34 +0800 (CST) Date: Thu, 23 Feb 2012 11:36:34 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: gtk-list@gnome.org Message-ID: <4b61999d.9206.135a8482577.Coremail.cc_subhero@163.com> Subject: how to install GTK+3.2.0 correctly MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_108709_239286140.1329968194935" X-Originating-IP: [220.168.48.23] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: KX42OGZvb3Rlcl9odG09MTg0NTo4MQ== X-CM-TRANSID: kcGowEAJzkNDtEVPNX01AA--.2157W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/xtbBURBdM00vLSxLWgABsc X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 03:36:41 -0000 ------=_Part_108709_239286140.1329968194935 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Recently I install GTK+3.2.0 according the GTK+3.2.0 installation guide in ubuntu 11.04. When I finished the install and reboot the computer, I found that system interface has changed and file can't open by mouse. And I think the question is GTK 2.x and GTK+3 in the same process is not support. When I uninstall GTK 2.x, a new question is coming.The GNome is can't work normally and I can't enter the system interface. So how I should do next? Here My GNome version is 2.32.1.If I should first put the GNome upgraded to 3.2. I very much look forward to someone can help me,and to express my heartfelt thanks. -- ------=_Part_108709_239286140.1329968194935 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
   Recently I install GTK+3.2.0 according the GTK+3.2.0 installation guide  in ubuntu 11.04. When I finished the install and reboot the computer,  I found that system interface has changed and file can't open by mouse. And I  think the question is GTK 2.x and GTK+3 in the same process is not support. When I uninstall GTK 2.x, a new question is coming.The GNome is can't work normally and I can't enter the system interface. 
   So how I should do next? Here My GNome version is 2.32.1.If I should first put the GNome upgraded to 3.2.
    I very much look forward to someone can help me,and to express my heartfelt t hanks. 
                                                                                                                                                


--






------=_Part_108709_239286140.1329968194935-- From torriem@gmail.com Thu Feb 23 15:25:06 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7785775007D for ; Thu, 23 Feb 2012 15:25:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.219 X-Spam-Level: X-Spam-Status: No, score=-0.219 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_NEUTRAL=0.779] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fkLhw010f7Vx for ; Thu, 23 Feb 2012 15:25:04 +0000 (UTC) Received: from mail.torriefamily.org (shell.torriefamily.org [74.207.242.26]) by menubar.gnome.org (Postfix) with ESMTP id 528F475001A for ; Thu, 23 Feb 2012 15:24:55 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.torriefamily.org (Postfix) with ESMTP id 721F96DEDD for ; Thu, 23 Feb 2012 08:24:54 -0700 (MST) X-Virus-Scanned: amavisd-new at torriefamily.org Received: from mail.torriefamily.org ([127.0.0.1]) by localhost (mail.torriefamily.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JuanXTVxUNhm for ; Thu, 23 Feb 2012 08:24:54 -0700 (MST) Received: from [192.168.12.100] (unknown [192.168.12.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.torriefamily.org (Postfix) with ESMTP id 8EAA96DE81 for ; Thu, 23 Feb 2012 08:24:53 -0700 (MST) Message-ID: <4F465A3F.2070206@gmail.com> Date: Thu, 23 Feb 2012 08:24:47 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: how to install GTK+3.2.0 correctly References: <4b61999d.9206.135a8482577.Coremail.cc_subhero@163.com> In-Reply-To: <4b61999d.9206.135a8482577.Coremail.cc_subhero@163.com> Content-Type: text/plain; charset=x-gbk Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 15:25:06 -0000 On 02/22/2012 08:36 PM, wrote: > Recently I install GTK+3.2.0 according the GTK+3.2.0 installation > guide in ubuntu 11.04. When I finished the install and reboot the > computer, I found that system interface has changed and file can't > open by mouse. And I think the question is GTK 2.x and GTK+3 in the > same process is not support. When I uninstall GTK 2.x, a new question > is coming.The GNome is can't work normally and I can't enter the > system interface. So how I should do next? Here My GNome version is > 2.32.1.If I should first put the GNome upgraded to 3.2. I very much > look forward to someone can help me,and to express my heartfelt > thanks. Gtk 3.2, if compiled by hand, should install to a non-system location such as /usr/local. If that is the case it will not conflict with the system GTK. I am unfamiliar with the installation guide in Ubuntu 11.04 so I cannot say whether GTK 3.2 interfered with GTK 2. I don't think it should have. Rebooting is entirely unnecessary after an installation, by the way. Curse Microsoft for instilling this urge in all of us. Your mistake was in removing GTK 2. I don't think the package manager should have let you do that, so you probably forced it to uninstall, correct? You _could_ install Gnome 3.2 form source using jhbuild, but I recommend that you re-install GTK 2 anyway. You will have to use the text-mode login to do this with aptitude. If you cannot get that, you will have to re-install Ubuntu. Removing system packages will break a lot of things, as you have learned! Years ago I wanted to get StarOffice running on my linux machine, but it required a newer version of Glibc, which is of course *the* core system library. As you can imagine, trying to upgrade it broke everything. Had to re-install because no commands would work. And I had a friend that removed Python from her gentoo box. Haha that broke everything too. Fun times. From damiannohales@gmail.com Thu Feb 23 23:17:22 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E315E750177 for ; Thu, 23 Feb 2012 23:17:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.7 X-Spam-Level: X-Spam-Status: No, score=-2.7 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OEk7rZ1l03ji for ; Thu, 23 Feb 2012 23:17:20 +0000 (UTC) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by menubar.gnome.org (Postfix) with ESMTP id DC76F75001A for ; Thu, 23 Feb 2012 23:17:11 +0000 (UTC) Received: by bkcjg1 with SMTP id jg1so2730767bkc.27 for ; Thu, 23 Feb 2012 15:17:09 -0800 (PST) Received-SPF: pass (google.com: domain of damiannohales@gmail.com designates 10.204.10.73 as permitted sender) client-ip=10.204.10.73; Authentication-Results: mr.google.com; spf=pass (google.com: domain of damiannohales@gmail.com designates 10.204.10.73 as permitted sender) smtp.mail=damiannohales@gmail.com; dkim=pass header.i=damiannohales@gmail.com Received: from mr.google.com ([10.204.10.73]) by 10.204.10.73 with SMTP id o9mr1631565bko.99.1330039029628 (num_hops = 1); Thu, 23 Feb 2012 15:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=vL/b1+fswVzTn5b0QhQGP1GAw4+fvOlKz/DMaw2VAIo=; b=gJGw8DMTaxkapMubROIStWflta6+jYymFroXqdKom7svDB6t0eFCFcCzYWE7oIsGJ2 35+YFufps7K1/c4fG8OyjmFODQvMmytM9YBN3fVX6fGYMF4VzntXPzyhqAEabHf8AAvY T7ve8Ka5kO/TyZdeIrhcN5gkjZIQT2g2vylNk= MIME-Version: 1.0 Received: by 10.204.10.73 with SMTP id o9mr1348883bko.99.1330039029531; Thu, 23 Feb 2012 15:17:09 -0800 (PST) Received: by 10.205.46.137 with HTTP; Thu, 23 Feb 2012 15:17:09 -0800 (PST) Date: Thu, 23 Feb 2012 20:17:09 -0300 Message-ID: Subject: panel_applet_settings_new not introspectable From: =?ISO-8859-1?Q?Dami=E1n_Nohales?= To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 23:17:22 -0000 Hello there, I'm working on an applet for GNOME 3, that is, for the fallback shell. I'm programming my applet in Python, but when I try to execute *settings_new* method, Python complains telling me that method not exists. Well... trying to research the problem, I open the GIR file for libpanelapplet, PanelApplet-4.0.gir and I find this: Creates a new #GSettings object for the per-instance settings of @applet, with a given schema. a new #GSettings object for the per-instance settings of @applet. the name of the schema. Notice that the "introspectable" attribute is in 0. I can't find the GIR format specs, but, is this attribute value related to my binding problem? Is this a bug in the introspection? Regards! From cc_subhero@163.com Fri Feb 24 01:40:36 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 072EC7500CA for ; Fri, 24 Feb 2012 01:40:36 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.345 X-Spam-Level: X-Spam-Status: No, score=-0.345 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SARE_RECV_IP_220168=1.666, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0iMxG5Hhkh0u for ; Fri, 24 Feb 2012 01:40:32 +0000 (UTC) X-Greylist: delayed 913 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 24 Feb 2012 01:40:32 UTC Received: from m13-75.163.com (m13-75.163.com [220.181.13.75]) by menubar.gnome.org (Postfix) with ESMTP id 3447975005F for ; Fri, 24 Feb 2012 01:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Cc:Message-ID:In-Reply-To: References:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=FosuIJCv1EYfbQww41ygmHgmz48lrOTvTe SI52n8BSI=; b=nkj8IiRGzM2AN5vW4t5lS6tsxF/hnCmPfd4jUpO1fVC6crjGQC KKFImeuKTju/RLq4dki92Oyo3ECxmaQD+LHLC9bSEEu2Fn38UH6ObDLuByg7gOyz WoGt6mVwb3ZSSmwC0AucZZy8emRwWWr/5NAycHYrbMftOGMRAPe/Yb0EQ= Received: from cc_subhero ( [220.168.48.23] ) by ajax-webmail-wmsvr75 (Coremail) ; Fri, 24 Feb 2012 09:25:04 +0800 (CST) Date: Fri, 24 Feb 2012 09:25:04 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: "Michael Torrie" Message-ID: <1227f175.189c9.135acf61a17.Coremail.cc_subhero@163.com> In-Reply-To: <4F465A3F.2070206@gmail.com> References: <4F465A3F.2070206@gmail.com> <4b61999d.9206.135a8482577.Coremail.cc_subhero@163.com> Subject: Re:Re: how to install GTK+3.2.0 correctly MIME-Version: 1.0 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: quoted-printable X-Originating-IP: [220.168.48.23] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-TRANSID: S8GowEDJhkXw5kZPSzYxAA--.13728W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/xtbBzxleM00vKib0BAABsk X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 01:40:36 -0000 I think the question maybe is that I install the GTK in a system location ,= so my gnome is cannot work.Now I will try it again.Thank you! =D4=DA 2012-02-23 23:24:47=A3=AC"Michael Torrie" =D0=B4= =B5=C0=A3=BA >On 02/22/2012 08:36 PM, =D6=DC=C1=FA wrote: >> Recently I install GTK+3.2.0 according the GTK+3.2.0 installation >> guide in ubuntu 11.04. When I finished the install and reboot the >> computer, I found that system interface has changed and file can't >> open by mouse. And I think the question is GTK 2.x and GTK+3 in the >> same process is not support. When I uninstall GTK 2.x, a new question >> is coming.The GNome is can't work normally and I can't enter the >> system interface. So how I should do next? Here My GNome version is >> 2.32.1.If I should first put the GNome upgraded to 3.2. I very much >> look forward to someone can help me,and to express my heartfelt >> thanks. > >Gtk 3.2, if compiled by hand, should install to a non-system location >such as /usr/local. If that is the case it will not conflict with the >system GTK. I am unfamiliar with the installation guide in Ubuntu 11.04 >so I cannot say whether GTK 3.2 interfered with GTK 2. I don't think it >should have. Rebooting is entirely unnecessary after an installation, >by the way. Curse Microsoft for instilling this urge in all of us. > >Your mistake was in removing GTK 2. I don't think the package manager >should have let you do that, so you probably forced it to uninstall, >correct? You _could_ install Gnome 3.2 form source using jhbuild, but I >recommend that you re-install GTK 2 anyway. You will have to use the >text-mode login to do this with aptitude. If you cannot get that, you >will have to re-install Ubuntu. Removing system packages will break a >lot of things, as you have learned! > >Years ago I wanted to get StarOffice running on my linux machine, but it >required a newer version of Glibc, which is of course *the* core system >library. As you can imagine, trying to upgrade it broke everything. >Had to re-install because no commands would work. And I had a friend >that removed Python from her gentoo box. Haha that broke everything >too. Fun times. From agnel.kurian@gmail.com Sat Feb 25 19:33:20 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A29EE75002B for ; Sat, 25 Feb 2012 19:33:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YiTDASnIDpuv for ; Sat, 25 Feb 2012 19:33:06 +0000 (UTC) Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by menubar.gnome.org (Postfix) with ESMTP id 95CAA750021 for ; Sat, 25 Feb 2012 19:32:57 +0000 (UTC) Received: by wgbdt14 with SMTP id dt14so2081926wgb.27 for ; Sat, 25 Feb 2012 11:32:56 -0800 (PST) Received-SPF: pass (google.com: domain of agnel.kurian@gmail.com designates 10.180.97.196 as permitted sender) client-ip=10.180.97.196; Authentication-Results: mr.google.com; spf=pass (google.com: domain of agnel.kurian@gmail.com designates 10.180.97.196 as permitted sender) smtp.mail=agnel.kurian@gmail.com; dkim=pass header.i=agnel.kurian@gmail.com Received: from mr.google.com ([10.180.97.196]) by 10.180.97.196 with SMTP id ec4mr15347708wib.11.1330198376145 (num_hops = 1); Sat, 25 Feb 2012 11:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ym2ICBjXkTY2cuH7wmhvV4Znc9Qyyo3JLWE3wP9UbW4=; b=HzZFFKHkxB/CcueTkGPd1/suby+iBd6qGyvjq1tWD67obJ2dpKYfr9fLTcHgM5jNco pnz8QdWmwJIF5C8ALQnZMIYgwGL/VccvuSZ1BVsRszuuHtO0ZHIXheG2ppDxSP3HWj5z CgLRNUf2ipAL4GLawvBorUXmIMSwNAIKEbTT4= MIME-Version: 1.0 Received: by 10.180.97.196 with SMTP id ec4mr12249846wib.11.1330198376036; Sat, 25 Feb 2012 11:32:56 -0800 (PST) Received: by 10.223.13.14 with HTTP; Sat, 25 Feb 2012 11:32:55 -0800 (PST) Received: by 10.223.13.14 with HTTP; Sat, 25 Feb 2012 11:32:55 -0800 (PST) In-Reply-To: References: Date: Sun, 26 Feb 2012 01:02:55 +0530 Message-ID: Subject: Re: GTK+ Custom Widget - Assign Button Release Handler in Class struct From: Agnel Kurian To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=f46d0443067caf3a5004b9cef1f6 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2012 19:33:20 -0000 --f46d0443067caf3a5004b9cef1f6 Content-Type: text/plain; charset=ISO-8859-1 After a few experiments I observed that GDK_BUTTON_RELEASE_MASK works only if GDK_BUTTON_PRESS_MASK is also turned on. Is there "official" documentation supporting this? On Feb 18, 2012 1:50 PM, "Agnel Kurian" wrote: > > Hello Everyone, > > I have a custom GTK+ widget in which I need to handle the release of a mouse button. I have assigned my handler callback function to the button_release_event member of GtkWidgetClass in the '_class_init' function. I have also set the GDK_BUTTON_RELEASE_MASK flag in the '_realize' function. However, my handler is not being called. Are there any other steps I need to take in order to receive mouse events? > > (I am following the Custom GTK+ widget tutorial at http://zetcode.com/tutorials/gtktutorial/customwidget/ ) > > > > -- Agnel > > --f46d0443067caf3a5004b9cef1f6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

After a few experiments I observed that GDK_BUTTON_RELEASE_MASK works on= ly if GDK_BUTTON_PRESS_MASK is also turned on.

Is there "official" documentation supporting this?

On Feb 18, 2012 1:50 PM, "Agnel Kurian" <agnel.kurian@gmail.com> wrote:
>
> Hello Everyone,
>
> I have a custom GTK+ widget in which I need to handle the release of a= mouse button. I have assigned my handler callback function to the button_r= elease_event member of GtkWidgetClass in the '_class_init' function= . I have also set the GDK_BUTTON_RELEASE_MASK flag in the '_realize'= ; function. However, my handler is not being called. Are there any other st= eps I need to take in order to receive mouse events?
>
> (I am following the Custom GTK+ widget tutorial at http://zetcode.com/tutorial= s/gtktutorial/customwidget/ )
>
>
>
> -- Agnel
>
>

--f46d0443067caf3a5004b9cef1f6-- From kususe@interfree.it Mon Feb 27 08:07:21 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 593047501F4 for ; Mon, 27 Feb 2012 08:07:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.894 X-Spam-Level: * X-Spam-Status: No, score=1.894 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MIMEOLE=1.899, MSGID_FROM_MTA_HEADER=0.001, RDNS_NONE=0.793, SPF_PASS=-0.001] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wc1J7cdTHiwp for ; Mon, 27 Feb 2012 08:07:07 +0000 (UTC) X-Greylist: delayed 396 seconds by postgrey-1.32 at menubar.gnome.org; Mon, 27 Feb 2012 08:07:07 UTC Received: from community23.interfree.it (unknown [213.158.71.7]) by menubar.gnome.org (Postfix) with ESMTP id 44A047501F2 for ; Mon, 27 Feb 2012 08:07:01 +0000 (UTC) Received: (qmail 27904 invoked by uid 320); 27 Feb 2012 08:00:19 -0000 Date: 27 Feb 2012 08:00:19 -0000 Message-ID: <20120227080019.27903.qmail@community23.interfree.it> Received: from 46.227.5.67 (kususe@interfree.it) by mail.interfree.it with HTTP; Mon Feb 27 09:00:19 2012 X-Originating-IP: [46.227.5.67] From: kususe@interfree.it To: gtk-list@gnome.org X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal Subject: Mime-Version: 1.0 Content-Type: text/html; X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: kususe@interfree.it List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 08:07:21 -0000 Hello to everybody.
want to use glib.timeout_add(i,f) in a python script.
I have a code like this:
 
if (condition):
          glib.timeout_add(i,f)
 
def f:

        (...)
        i = (....)
        (condition)
        return True

Even the value of "i" is different each time I call "f", glib.timeout_add(i,f) call "f" always with the same value of "i".


Suggestions?

Thanks in advance,

 

-------------------------------------------------------------------------------
Valore legale alle tue mail
InterfreePEC - la tua Posta Elettronica Certificata
http://pec.interfree.it
-------------------------------------------------------------------------------
From kususe@interfree.it Mon Feb 27 08:12:15 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D6E4C750214 for ; Mon, 27 Feb 2012 08:12:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.971 X-Spam-Level: * X-Spam-Status: No, score=1.971 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.723, MISSING_MIMEOLE=1.899, MSGID_FROM_MTA_HEADER=0.001, RDNS_NONE=0.793, SPF_PASS=-0.001, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7RR90chiK2fY for ; Mon, 27 Feb 2012 08:12:00 +0000 (UTC) Received: from community23.interfree.it (unknown [213.158.71.7]) by menubar.gnome.org (Postfix) with ESMTP id 4FA527501F2 for ; Mon, 27 Feb 2012 08:11:59 +0000 (UTC) Received: (qmail 28959 invoked by uid 320); 27 Feb 2012 08:05:17 -0000 Date: 27 Feb 2012 08:05:17 -0000 Message-ID: <20120227080517.28958.qmail@community23.interfree.it> Received: from 46.227.5.67 (kususe@interfree.it) by mail.interfree.it with HTTP; Mon Feb 27 09:05:17 2012 X-Originating-IP: [46.227.5.67] From: kususe@interfree.it To: gtk-list@gnome.org X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal Subject: glib.timeout_add doesn't works well Mime-Version: 1.0 Content-Type: text/html; X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: kususe@interfree.it List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 08:12:16 -0000  
-----Messaggio originale-----
Da: kususe@interfree.it
Inviato il: 27 Feb 2012 - 09:00
A: gtk-list@gnome.org


Hello to everybody.
want to use glib.timeout_add(i,f) in a python script.
I have a code like this:
 
if (condition):
          glib.timeout_add(i,f)
 
def f:

        (...)
        i = (....)
        (condition)
        return True

Even the value of "i" is different each time I call "f", glib.timeout_add(i,f) call "f" always with the same value of "i".


Suggestions?

Thanks in advance,

 


-------------------------------------------------------------------------------
Valore legale alle tue mail
InterfreePEC - la tua Posta Elettronica Certificata
http://pec.interfree.it
-------------------------------------------------------------------------------
From ian.liu88@gmail.com Mon Feb 27 12:35:34 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 017D0750515 for ; Mon, 27 Feb 2012 12:35:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.449 X-Spam-Level: X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Yo2SCFV2gl1 for ; Mon, 27 Feb 2012 12:35:32 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 1DF96750488 for ; Mon, 27 Feb 2012 12:35:23 +0000 (UTC) Received: by obbwc7 with SMTP id wc7so411850obb.27 for ; Mon, 27 Feb 2012 04:35:22 -0800 (PST) Received-SPF: pass (google.com: domain of ian.liu88@gmail.com designates 10.182.232.101 as permitted sender) client-ip=10.182.232.101; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ian.liu88@gmail.com designates 10.182.232.101 as permitted sender) smtp.mail=ian.liu88@gmail.com; dkim=pass header.i=ian.liu88@gmail.com Received: from mr.google.com ([10.182.232.101]) by 10.182.232.101 with SMTP id tn5mr5049607obc.12.1330346122361 (num_hops = 1); Mon, 27 Feb 2012 04:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=MN9MS9QUiGojqYFqQL5N5G6SKG82XK7sevUfyoqPe0M=; b=LMwI6gSkZQIsnaetBJif97EV85Mljs1cz6MT0wu1VZVBfmk5s+ZZPU2SPDZdtv6JZC YOuI54R8ey/O+n4d3Vs7n7YRDQWsJGwKZCaXgsW3ysNjdFtEiSOIEbNatAWjnxQ453Z6 U0ybLo4IkbwmiO0ibT0uECVoXFuJqXhvCCS/A= Received: by 10.182.232.101 with SMTP id tn5mr4510010obc.12.1330346122305; Mon, 27 Feb 2012 04:35:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.154.39 with HTTP; Mon, 27 Feb 2012 04:34:52 -0800 (PST) In-Reply-To: <20120227080517.28958.qmail@community23.interfree.it> References: <20120227080517.28958.qmail@community23.interfree.it> From: Ian Liu Rodrigues Date: Mon, 27 Feb 2012 09:34:52 -0300 Message-ID: Subject: Re: glib.timeout_add doesn't works well To: kususe@interfree.it Content-Type: multipart/alternative; boundary=f46d044517430c610c04b9f15893 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 12:35:34 -0000 --f46d044517430c610c04b9f15893 Content-Type: text/plain; charset=ISO-8859-1 > > if (condition): > glib.timeout_add(i,f) > > def f: > (...) > i = (....) > (condition) > return True > > Even the value of "i" is different each time I call "f", > glib.timeout_add(i,f) call "f" always with the same value of "i". > Changing the value of "i" will not change the timeout because it was already called and the value of "i" was copied there when passing the parameter. You must call the timeout again like this: if (condition): glib.timeout_add(first_timeout, f) def f: (...) i = (....) if (condition): glib.timeout_add(i, f) # This will start another timeout with the new interval return False # This will end this timeout! Regards, Ian L. Rodrigues --f46d044517430c610c04b9f15893 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
if (condition):
=A0=A0=A0=A0=A0=A0=A0=A0=A0 glib.tim= eout_add(i,f)
=A0
def f:

=A0=A0=A0=A0= =A0=A0=A0 (...)
=A0=A0=A0=A0=A0=A0=A0 i =3D (.= ...)
=A0=A0=A0=A0=A0=A0=A0 (condition)<= /span>
=A0=A0=A0=A0=A0=A0=A0 return True

Even the value of "i" is different each time I call "f", glib.timeout_add(i,f) call "f" alway= s with the same value of "i".

Changing the value of "i" will not change t= he timeout because it was already called and the value of "i" was= copied there when passing the parameter. You must call the timeout again l= ike this:

if (condition):
=A0 glib.ti= meout_add(first_timeout, f)
=A0
def f:
=A0 (...)
=A0 i =3D (= ....)
=A0 if (condition):
=A0 =A0=A0glib.time= out_add(i, f) # This will start another timeout with the new interval
=A0 return False # This will end this timeout!

Regards,=
Ian L. Rodrigues
--f46d044517430c610c04b9f15893-- From snorlaxgb@gmail.com Tue Feb 28 02:54:54 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 78FCB75064C for ; Tue, 28 Feb 2012 02:54:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nz2L+05azHid for ; Tue, 28 Feb 2012 02:54:40 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 0148D750643 for ; Tue, 28 Feb 2012 02:54:31 +0000 (UTC) Received: by iaae16 with SMTP id e16so1854001iaa.27 for ; Mon, 27 Feb 2012 18:54:30 -0800 (PST) Received-SPF: pass (google.com: domain of snorlaxgb@gmail.com designates 10.50.194.233 as permitted sender) client-ip=10.50.194.233; Authentication-Results: mr.google.com; spf=pass (google.com: domain of snorlaxgb@gmail.com designates 10.50.194.233 as permitted sender) smtp.mail=snorlaxgb@gmail.com; dkim=pass header.i=snorlaxgb@gmail.com Received: from mr.google.com ([10.50.194.233]) by 10.50.194.233 with SMTP id hz9mr14716947igc.11.1330397670423 (num_hops = 1); Mon, 27 Feb 2012 18:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=l+0yf+aqmLspeQ9IB7BULpwDHAnJymfgSLFktqpjzkw=; b=nXKIMYaKOMWS7hyK5S4Bu4DcKXkU5iGpN/wAnsGRlOUn3/cv8NPCxlvPsmOaSVXD1k cVmuCnrvN5r/okC9ntcvk5zsGrRMoFD7Py51FWxTEa9zqnnXT25I83x/dwZ1PVdVXcYy RzwCKAxMn8aXEReWQqPHjhRjCpgKOuCSFX4p4= MIME-Version: 1.0 Received: by 10.50.194.233 with SMTP id hz9mr12017130igc.11.1330397670388; Mon, 27 Feb 2012 18:54:30 -0800 (PST) Received: by 10.231.61.9 with HTTP; Mon, 27 Feb 2012 18:54:30 -0800 (PST) Date: Mon, 27 Feb 2012 20:54:30 -0600 Message-ID: Subject: G_mutex_lock/unlock From: ef To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=14dae9340c7d8db30204b9fd5823 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 02:54:54 -0000 --14dae9340c7d8db30204b9fd5823 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am trying to figure out in a program whenever a call to g_mutex_lock/unlock is made. The best way to do this is insert a printf under the g_mutex_lock function. However I can't seem to find this function. I assumed that g_mutex_lock is a wrapper around pthread_mutex_lock.c under glibc/nptl. However when I make my printf there, nothing prints out during run time. Does anyone know where I can mess with g_mutex-Lock/unlock implementation? Thank you in advance! PS. if pthread-mutex-lock.c is the correct spot it may be because I am working in an Alpha configuration. --14dae9340c7d8db30204b9fd5823 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,
I am trying to figure out in a program whenever a call to g_mute= x_lock/unlock is made. The best way to do this is insert a printf under the= g_mutex_lock function. However I can't seem to find this function. I a= ssumed that g_mutex_lock is a wrapper around pthread_mutex_lock.c under gli= bc/nptl. However when I make my printf there, nothing prints out during run= time. Does anyone know where I can mess with g_mutex-Lock/unlock implement= ation?

Thank you in advance!

PS. if p= thread-mutex-lock.c is the correct spot it may be because I am working in a= n Alpha configuration.
--14dae9340c7d8db30204b9fd5823-- From cc_subhero@163.com Tue Feb 28 07:27:14 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 284AB7506BC for ; Tue, 28 Feb 2012 07:27:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.581 X-Spam-Level: X-Spam-Status: No, score=0.581 tagged_above=-999 required=2 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, HTML_FONT_FACE_BAD=0.981, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7hlDH2ZU8a8f for ; Tue, 28 Feb 2012 07:27:11 +0000 (UTC) X-Greylist: delayed 918 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 28 Feb 2012 07:27:11 UTC Received: from m13-44.163.com (m13-44.163.com [220.181.13.44]) by menubar.gnome.org (Postfix) with ESMTP id 4B8C77506BB for ; Tue, 28 Feb 2012 07:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=9253DhMSa6KUOsOdigpBl4iw4zZcKIWEEw Ukcu7goaw=; b=j2hfSY9YYm9dWfmwYp9lgifXEkI737QPuO6CEO0FmcV2nWuW64 DEQBZ7illnNTUDPdAfXIHYuG85pnDo4WhBnHno9Q2z2vZc2UKFUsppTPgCvJnQru LF4a1PhdSYoxii4HNs2ko3IaNIyn6iOHj3daZA2sgNOACZMjLeVqrh5UM= Received: from cc_subhero ( [118.249.45.115] ) by ajax-webmail-wmsvr44 (Coremail) ; Tue, 28 Feb 2012 15:11:40 +0800 (CST) Date: Tue, 28 Feb 2012 15:11:40 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: "gtk-list@gnome.org" Message-ID: <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> Subject: how to run GIMP in firefox 10.0.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_303868_906770000.1330413100544" X-Originating-IP: [118.249.45.115] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: 37ln+WZvb3Rlcl9odG09MTAwNjo4MQ== X-CM-TRANSID: LMGowGBZ_0AtfkxP_AYHAA--.7868W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/1tbiVAhiM0oNp547PwABs2 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 07:27:14 -0000 ------=_Part_303868_906770000.1330413100544 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Recently I install GTK+3.2.3 in my ubuntu 11.04 and I want to run GIMP(its version is 2.6.11) in the firefox. Unfortunately,I cannot implement it. (The GNome version is 2.32.1). I built the GTK+3.2.3 with --enable-x11-backend --enable-broadway-backend and enabled the network.websocket.enabled and network.websocket.override-security-block. When I input GDK_BACKEND=broadway GIMP , the GIMP can work but not in the firefox 10.0.2. I think I must make some mistakes in somewhere ,just I can find it .So I hope someone can help me.Thank you. ------=_Part_303868_906770000.1330413100544 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
  Recently I install GTK+3.2.3 in my ubuntu 11.04 and I want to run GIMP(its version is 2.6.11) in the firefox. Unfortunately,I cannot implement it.  (The GNome version is 2.32.1).
 I built the GTK+3.2.3 with --enable-x11-backend --enable-broadway-backend and enabled the network.websocket.enabled and network.websocket.override-security-block. When I input GDK_BACKEND=broadway  GIMP , the GIMP can work but not in the firefox 10.0.2. 
  I think  I must make some mistakes in somewhere ,just I can find it .So I hope someone can help me.Thank you.


------=_Part_303868_906770000.1330413100544-- From cc_subhero@163.com Tue Feb 28 07:30:55 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D44B97506BC for ; Tue, 28 Feb 2012 07:30:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.819 X-Spam-Level: X-Spam-Status: No, score=-0.819 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, HTML_FONT_FACE_BAD=0.981, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L5oPfSAavLy9 for ; Tue, 28 Feb 2012 07:30:50 +0000 (UTC) Received: from m13-44.163.com (m13-44.163.com [220.181.13.44]) by menubar.gnome.org (Postfix) with ESMTP id 9E53F7506BB for ; Tue, 28 Feb 2012 07:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=BBnzF/4gvtw5vxFYZHQXDrQu7t2C1C3ZoN uMmb4X+jI=; b=JcTYp4/OxzQjtDIS+C7/PhamkOV/9L3vuef2Uf3xFuXJMef7SR 449rBYrvK78Ig0GYllDi8wQwQKkbmtgHje4pkg8MAfAINeZYUtMtvlkFOSYabqSQ 3ZQ5DYl8wnr+hNX0gKpzZBVZ24tenCEU6yU/vtf319kZ1Ho5GI+0hummE= Received: from cc_subhero ( [118.249.45.115] ) by ajax-webmail-wmsvr44 (Coremail) ; Tue, 28 Feb 2012 15:15:11 +0800 (CST) Date: Tue, 28 Feb 2012 15:15:11 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: "gtk-list@gnome.org" Message-ID: <708b0368.1a19d.135c2d014f4.Coremail.cc_subhero@163.com> Subject: how to run GIMP in firefox 10.0.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_304695_317551492.1330413311220" X-Originating-IP: [118.249.45.115] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: 90+8sWZvb3Rlcl9odG09MTE2OTo4MQ== X-CM-TRANSID: LMGowGDJbkD_fkxPqggHAA--.4587W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/xtbBzw1iM00vKlQdXQABsO X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 07:30:56 -0000 ------=_Part_304695_317551492.1330413311220 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Recently I install GTK+3.2.3 in my ubuntu 11.04 and I want to run GIMP(its version is 2.6.11) in the firefox. Unfortunately,I cannot implement it. (The GNome version is 2.32.1). I built the GTK+3.2.3 with --enable-x11-backend --enable-broadway-backend and enabled the network.websocket.enabled and network.websocket.override-security-block. When I input GDK_BACKEND=broadway GIMP , the GIMP can work but not in the firefox 10.0.2. I think I must make some mistakes in somewhere ,just I can find it .So I hope someone can help me.Thank you. ------=_Part_304695_317551492.1330413311220 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
  Recently I install GTK+3.2.3 in my ubuntu 11.04 and I want to run GIMP(its version is 2.6.11) in the firefox. Unfortunately,I cannot implement it.  (The GNome version is 2.32.1).
 I built the GTK+3.2.3 with --enable-x11-backend --enable-broadway-backend and enabled the network.websocket.enabled and network.websocket.override-security-block. When I input GDK_BACKEND=broadway  GIMP , the GIMP can work but not in the firefox 10.0.2. 
  I think  I must make some mistakes in somew here ,just I can find it .So I hope someone can help me.Thank you.




------=_Part_304695_317551492.1330413311220-- From torriem@gmail.com Tue Feb 28 15:05:52 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B087075083A for ; Tue, 28 Feb 2012 15:05:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.219 X-Spam-Level: X-Spam-Status: No, score=-0.219 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_NEUTRAL=0.779] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J5QBuhOnojfB for ; Tue, 28 Feb 2012 15:05:47 +0000 (UTC) Received: from mail.torriefamily.org (shell.torriefamily.org [74.207.242.26]) by menubar.gnome.org (Postfix) with ESMTP id AA7F675082E for ; Tue, 28 Feb 2012 15:05:39 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.torriefamily.org (Postfix) with ESMTP id BB1D36DE88 for ; Tue, 28 Feb 2012 08:05:37 -0700 (MST) X-Virus-Scanned: amavisd-new at torriefamily.org Received: from mail.torriefamily.org ([127.0.0.1]) by localhost (mail.torriefamily.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VYFtH4qsesno for ; Tue, 28 Feb 2012 08:05:36 -0700 (MST) Received: from [192.168.12.100] (unknown [192.168.12.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.torriefamily.org (Postfix) with ESMTP id 1BADE6D61F for ; Tue, 28 Feb 2012 08:05:35 -0700 (MST) Message-ID: <4F4CED3A.2050006@gmail.com> Date: Tue, 28 Feb 2012 08:05:30 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: how to run GIMP in firefox 10.0.2 References: <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> In-Reply-To: <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> Content-Type: text/plain; charset=x-gbk Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 15:05:53 -0000 On 02/28/2012 12:11 AM, wrote: > Recently I install GTK+3.2.3 in my ubuntu 11.04 and I want to run > GIMP(its version is 2.6.11) in the firefox. Unfortunately,I cannot > implement it. (The GNome version is 2.32.1). I built the GTK+3.2.3 > with --enable-x11-backend --enable-broadway-backend and enabled the > network.websocket.enabled and > network.websocket.override-security-block. When I input > GDK_BACKEND=broadway GIMP , the GIMP can work but not in the firefox > 10.0.2. I think I must make some mistakes in somewhere ,just I can > find it .So I hope someone can help me.Thank you. Does Gimp even use GTK 3 or is it still GTK 2? Where did you install your custom GTK 3 libraries to? Are you sure GIMP is using your new libraries? You probably need to use the LD_LIBRARY_PATH environment variable to point gimp at your custom libraries. From torriem@gmail.com Tue Feb 28 16:05:52 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71E32750870 for ; Tue, 28 Feb 2012 16:05:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.219 X-Spam-Level: X-Spam-Status: No, score=-0.219 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_NEUTRAL=0.779] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YQg02qBRouY2 for ; Tue, 28 Feb 2012 16:05:46 +0000 (UTC) Received: from mail.torriefamily.org (shell.torriefamily.org [74.207.242.26]) by menubar.gnome.org (Postfix) with ESMTP id 0EB3E750844 for ; Tue, 28 Feb 2012 16:05:37 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.torriefamily.org (Postfix) with ESMTP id DF5136DE88 for ; Tue, 28 Feb 2012 09:05:35 -0700 (MST) X-Virus-Scanned: amavisd-new at torriefamily.org Received: from mail.torriefamily.org ([127.0.0.1]) by localhost (mail.torriefamily.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4zJ9j2KdJna9 for ; Tue, 28 Feb 2012 09:05:35 -0700 (MST) Received: from [192.168.12.100] (unknown [192.168.12.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.torriefamily.org (Postfix) with ESMTP id 402A76D61F for ; Tue, 28 Feb 2012 09:05:34 -0700 (MST) Message-ID: <4F4CFB46.7050606@gmail.com> Date: Tue, 28 Feb 2012 09:05:26 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16 MIME-Version: 1.0 To: Gnome List Subject: Re: how to run GIMP in firefox 10.0.2 References: <4F4CED3A.2050006@gmail.com> <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> <1f61ab48.2b344.135c489e8fc.Coremail.cc_subhero@163.com> In-Reply-To: <1f61ab48.2b344.135c489e8fc.Coremail.cc_subhero@163.com> Content-Type: text/plain; charset=x-gbk Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 16:05:52 -0000 On 02/28/2012 08:17 AM, wrote: > > I use GTK+3.2.3 and install GTK+ in /opt/gtk and > LD_LIBRARY=/opt/gtk/lib. All variables be setted. Just what I said ,I > feel all works was be done. Whether I need to link browser with apps > by setting some variable No I'm afraid not. Gimp 2.6.11 is not a GTK 3 app. You can verify this with "ldd /usr/bin/gimp" and you'll see that it links against GTK 2 libraries. You can try downloading the 2.7.x edition which I think can use GTK 3 From mitch@gimp.org Tue Feb 28 17:55:52 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45A85750915 for ; Tue, 28 Feb 2012 17:55:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.823 X-Spam-Level: X-Spam-Status: No, score=-1.823 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_GT=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H9rppZVeeLog for ; Tue, 28 Feb 2012 17:55:50 +0000 (UTC) Received: from mail.zonque.de (svenfoo.org [82.94.215.22]) by menubar.gnome.org (Postfix) with ESMTP id BB7A7750900 for ; Tue, 28 Feb 2012 17:55:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.zonque.de (Postfix) with ESMTP id 7D68DB8001; Tue, 28 Feb 2012 18:55:39 +0100 (CET) Received: from mail.zonque.de ([127.0.0.1]) by localhost (rambrand.c2342.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e2PDHpDdzky4; Tue, 28 Feb 2012 18:55:39 +0100 (CET) Received: from [192.168.2.128] (p54AB6FD0.dip.t-dialin.net [84.171.111.208]) (using SSLv3 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.zonque.de (Postfix) with ESMTPSA id 34C1FC01B0; Tue, 28 Feb 2012 18:55:39 +0100 (CET) Message-ID: <1330451739.5279.13.camel@localhost> Subject: Re: how to run GIMP in firefox 10.0.2 From: Michael Natterer To: Michael Torrie Date: Tue, 28 Feb 2012 18:55:39 +0100 In-Reply-To: <4F4CFB46.7050606@gmail.com> References: <4F4CED3A.2050006@gmail.com> <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> <1f61ab48.2b344.135c489e8fc.Coremail.cc_subhero@163.com> <4F4CFB46.7050606@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Cc: Gnome List X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 17:55:52 -0000 On Tue, 2012-02-28 at 09:05 -0700, Michael Torrie wrote: > On 02/28/2012 08:17 AM, wrote: > > > > I use GTK+3.2.3 and install GTK+ in /opt/gtk and > > LD_LIBRARY=/opt/gtk/lib. All variables be setted. Just what I said ,I > > feel all works was be done. Whether I need to link browser with apps > > by setting some variable > > No I'm afraid not. Gimp 2.6.11 is not a GTK 3 app. You can verify > this with "ldd /usr/bin/gimp" and you'll see that it links against GTK 2 > libraries. You can try downloading the 2.7.x edition which I think can > use GTK 3 It doesn't. Try the gtk3-port branch if you insist, but we take no bugs against this branch ;) --Mitch From cc_subhero@163.com Wed Feb 29 01:13:28 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C924750874 for ; Wed, 29 Feb 2012 01:13:28 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.472 X-Spam-Level: X-Spam-Status: No, score=-1.472 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, TW_BD=0.077, TW_BG=0.077, TW_BX=0.077, TW_GD=0.077, TW_GT=0.077, TW_IB=0.077, TW_XC=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dKpdFWbSegmP for ; Wed, 29 Feb 2012 01:13:24 +0000 (UTC) X-Greylist: delayed 910 seconds by postgrey-1.32 at menubar.gnome.org; Wed, 29 Feb 2012 01:13:24 UTC Received: from m13-116.163.com (m13-116.163.com [220.181.13.116]) by menubar.gnome.org (Postfix) with ESMTP id 129E6750816 for ; Wed, 29 Feb 2012 01:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Cc:Message-ID:In-Reply-To: References:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=1Rv7z+2ap2rtoCsc9pUbwskXgJ9mNDDTsf KoZ2DfPhY=; b=ZT9b+0JJOBFwTHpVXeVfqeVcYtpHnB2kyCF+gfnu3xN0mkWujz mAu4YZX4w40fekM0pVyqsEJRy+x8NHKZPyAKSK1bQuJkpuayhfo7bii84APUDlba vJV16VnCzwQbuodrSkg7iaXc0TpFoUnYfEa4kNqL3vlnqcmjQ/3Ylluj0= Received: from cc_subhero ( [118.249.45.115] ) by ajax-webmail-wmsvr116 (Coremail) ; Wed, 29 Feb 2012 08:57:59 +0800 (CST) Date: Wed, 29 Feb 2012 08:57:59 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: "Michael Torrie" Message-ID: <58693754.3d7b.135c69d1ac2.Coremail.cc_subhero@163.com> In-Reply-To: <4F4CFB46.7050606@gmail.com> References: <4F4CFB46.7050606@gmail.com> <4F4CED3A.2050006@gmail.com> <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> <1f61ab48.2b344.135c489e8fc.Coremail.cc_subhero@163.com> Subject: Re:Re: how to run GIMP in firefox 10.0.2 MIME-Version: 1.0 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: quoted-printable X-Originating-IP: [118.249.45.115] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-TRANSID: dMGowEB5OEUXeE1PACw6AA--.1825W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/1tbiQBdjM0fRFD+LhQAAs0 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Cc: Gnome List X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 01:13:28 -0000 I ldd the GIMP 2.6.11,and it linked GTK 3 libraries. Of coure , I will dow= nload the 2.7.x and try it. This is the result I ldd: zhl@zhl-Inspiron-620s:~$ ldd /usr/bin/gimp =09linux-gate.so.1 =3D> (0x00d41000) =09libgimpwidgets-2.0.so.0 =3D> /usr/lib/libgimpwidgets-2.0.so.0 (0x00b3e00= 0) =09libgimpmodule-2.0.so.0 =3D> /usr/lib/libgimpmodule-2.0.so.0 (0x00acb000) =09libgimpcolor-2.0.so.0 =3D> /usr/lib/libgimpcolor-2.0.so.0 (0x00ce4000) =09libgimpthumb-2.0.so.0 =3D> /usr/lib/libgimpthumb-2.0.so.0 (0x005ef000) =09libgimpmath-2.0.so.0 =3D> /usr/lib/libgimpmath-2.0.so.0 (0x00110000) =09libgimpconfig-2.0.so.0 =3D> /usr/lib/libgimpconfig-2.0.so.0 (0x00c59000) =09libgimpbase-2.0.so.0 =3D> /usr/lib/libgimpbase-2.0.so.0 (0x00dd0000) =09libgtk-x11-2.0.so.0 =3D> /usr/lib/libgtk-x11-2.0.so.0 (0x005f8000) =09libgdk-x11-2.0.so.0 =3D> /usr/lib/libgdk-x11-2.0.so.0 (0x00115000) =09libpangocairo-1.0.so.0 =3D> /opt/gtk/lib/libpangocairo-1.0.so.0 (0x001ae= 000) =09libgdk_pixbuf-2.0.so.0 =3D> /opt/gtk/lib/libgdk_pixbuf-2.0.so.0 (0x001ba= 000) =09libcairo.so.2 =3D> /opt/gtk/lib/libcairo.so.2 (0x0021d000) =09libpangoft2-1.0.so.0 =3D> /opt/gtk/lib/libpangoft2-1.0.so.0 (0x001d6000) =09libpango-1.0.so.0 =3D> /opt/gtk/lib/libpango-1.0.so.0 (0x00302000) =09libfontconfig.so.1 =3D> /opt/gtk/lib/libfontconfig.so.1 (0x00343000) =09libfreetype.so.6 =3D> /usr/lib/i386-linux-gnu/libfreetype.so.6 (0x003720= 00) =09libdbus-glib-1.so.2 =3D> /usr/lib/libdbus-glib-1.so.2 (0x00c74000) =09libdbus-1.so.3 =3D> /lib/i386-linux-gnu/libdbus-1.so.3 (0x00433000) =09libpthread.so.0 =3D> /lib/i386-linux-gnu/libpthread.so.0 (0x00f6a000) =09libgegl-0.0.so.0 =3D> /usr/lib/libgegl-0.0.so.0 (0x00470000) =09libgio-2.0.so.0 =3D> /opt/gtk/lib/libgio-2.0.so.0 (0x004b6000) =09libbabl-0.0.so.0 =3D> /usr/lib/libbabl-0.0.so.0 (0x003f8000) =09libm.so.6 =3D> /lib/i386-linux-gnu/libm.so.6 (0x009da000) =09libgobject-2.0.so.0 =3D> /opt/gtk/lib/libgobject-2.0.so.0 (0x00a00000) =09libgthread-2.0.so.0 =3D> /opt/gtk/lib/libgthread-2.0.so.0 (0x00c6b000) =09libglib-2.0.so.0 =3D> /opt/gtk/lib/libglib-2.0.so.0 (0x00de4000) =09libc.so.6 =3D> /lib/i386-linux-gnu/libc.so.6 (0x00f83000) =09libatk-1.0.so.0 =3D> /opt/gtk/lib/libatk-1.0.so.0 (0x005cb000) =09libgmodule-2.0.so.0 =3D> /opt/gtk/lib/libgmodule-2.0.so.0 (0x00426000) =09librt.so.1 =3D> /lib/i386-linux-gnu/librt.so.1 (0x0042a000) =09libX11.so.6 =3D> /usr/lib/i386-linux-gnu/libX11.so.6 (0x0ef17000) =09libXcomposite.so.1 =3D> /usr/lib/i386-linux-gnu/libXcomposite.so.1 (0x00= 5e7000) =09libXdamage.so.1 =3D> /usr/lib/i386-linux-gnu/libXdamage.so.1 (0x005eb000= ) =09libXfixes.so.3 =3D> /usr/lib/i386-linux-gnu/libXfixes.so.3 (0x009d1000) =09libXext.so.6 =3D> /usr/lib/i386-linux-gnu/libXext.so.6 (0x00a45000) =09libXrender.so.1 =3D> /usr/lib/i386-linux-gnu/libXrender.so.1 (0x00a54000= ) =09libXinerama.so.1 =3D> /usr/lib/i386-linux-gnu/libXinerama.so.1 (0x00a5e0= 00) =09libXi.so.6 =3D> /usr/lib/i386-linux-gnu/libXi.so.6 (0x00d4b000) =09libXrandr.so.2 =3D> /usr/lib/i386-linux-gnu/libXrandr.so.2 (0x00a62000) =09libXcursor.so.1 =3D> /usr/lib/i386-linux-gnu/libXcursor.so.1 (0x00a6a000= ) =09libpixman-1.so.0 =3D> /opt/gtk/lib/libpixman-1.so.0 (0x0734e000) =09libpng12.so.0 =3D> /usr/lib/i386-linux-gnu/libpng12.so.0 (0x00a74000) =09libxcb-shm.so.0 =3D> /usr/lib/i386-linux-gnu/libxcb-shm.so.0 (0x00a99000= ) =09libxcb-render.so.0 =3D> /usr/lib/i386-linux-gnu/libxcb-render.so.0 (0x00= a9d000) =09libxcb.so.1 =3D> /usr/lib/i386-linux-gnu/libxcb.so.1 (0x00aa5000) =09libffi.so.5 =3D> /usr/lib/libffi.so.5 (0x00abe000) =09libdl.so.2 =3D> /lib/i386-linux-gnu/libdl.so.2 (0x00d44000) =09libz.so.1 =3D> /lib/i386-linux-gnu/libz.so.1 (0x00ad0000) =09libexpat.so.1 =3D> /lib/i386-linux-gnu/libexpat.so.1 (0x00ae5000) =09libselinux.so.1 =3D> /lib/i386-linux-gnu/libselinux.so.1 (0x00b0f000) =09libresolv.so.2 =3D> /lib/i386-linux-gnu/libresolv.so.2 (0x00c95000) =09/lib/ld-linux.so.2 (0x001ff000) =09libXau.so.6 =3D> /usr/lib/i386-linux-gnu/libXau.so.6 (0x00ac5000) =09libXdmcp.so.6 =3D> /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0x00b2a000) =D4=DA 2012-02-29 00:05:26=A3=AC"Michael Torrie" =D0=B4= =B5=C0=A3=BA >On 02/28/2012 08:17 AM, =D6=DC=C1=FA wrote: >>=20 >> I use GTK+3.2.3 and install GTK+ in /opt/gtk and >> LD_LIBRARY=3D/opt/gtk/lib. All variables be setted. Just what I said ,I >> feel all works was be done. Whether I need to link browser with apps >> by setting some variable=A3=BF > >No I'm afraid not. Gimp 2.6.11 is not a GTK 3 app. You can verify >this with "ldd /usr/bin/gimp" and you'll see that it links against GTK 2 >libraries. You can try downloading the 2.7.x edition which I think can >use GTK 3 From torriem@gmail.com Wed Feb 29 01:58:19 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 47701750871 for ; Wed, 29 Feb 2012 01:58:19 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.033 X-Spam-Level: * X-Spam-Status: No, score=1.033 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, MISSING_HEADERS=1.021, NML_ADSP_CUSTOM_MED=0.9, SPF_NEUTRAL=0.779, TW_BG=0.077, TW_GD=0.077, TW_GT=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wFYg4rzijGud for ; Wed, 29 Feb 2012 01:58:06 +0000 (UTC) Received: from mail.torriefamily.org (shell.torriefamily.org [74.207.242.26]) by menubar.gnome.org (Postfix) with ESMTP id 75845750816 for ; Wed, 29 Feb 2012 01:57:57 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.torriefamily.org (Postfix) with ESMTP id 887306DE88 for ; Tue, 28 Feb 2012 18:57:55 -0700 (MST) X-Virus-Scanned: amavisd-new at torriefamily.org Received: from mail.torriefamily.org ([127.0.0.1]) by localhost (mail.torriefamily.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Yr1or-lqu8S5 for ; Tue, 28 Feb 2012 18:57:55 -0700 (MST) Received: from [192.168.12.100] (unknown [192.168.12.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.torriefamily.org (Postfix) with ESMTP id 55E036D61F for ; Tue, 28 Feb 2012 18:57:54 -0700 (MST) Message-ID: <4F4D861D.5050306@gmail.com> Date: Tue, 28 Feb 2012 18:57:49 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16 MIME-Version: 1.0 CC: Gnome List Subject: Re: how to run GIMP in firefox 10.0.2 References: <4F4CFB46.7050606@gmail.com> <4F4CED3A.2050006@gmail.com> <13c93d68.1a06f.135c2ccde01.Coremail.cc_subhero@163.com> <1f61ab48.2b344.135c489e8fc.Coremail.cc_subhero@163.com> <58693754.3d7b.135c69d1ac2.Coremail.cc_subhero@163.com> In-Reply-To: <58693754.3d7b.135c69d1ac2.Coremail.cc_subhero@163.com> Content-Type: text/plain; charset=x-gbk Content-Transfer-Encoding: 8bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 01:58:19 -0000 On 02/28/2012 05:57 PM, wrote: > I ldd the GIMP 2.6.11,and it linked GTK 3 libraries. Of coure , I will download the 2.7.x and try it. Where do you see GTK 3 libraries? > > This is the result I ldd: > zhl@zhl-Inspiron-620s:~$ ldd /usr/bin/gimp > libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x005f8000) > libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00115000) ^^^^^^^ These shared libraries from from GTK+ 2.x. You need to download the gtk3-port from GIMP's source repository (I think it's git) and give it a shot. As the other poster said, it's buggy and still under development. From mferrero@reer.it Wed Feb 29 15:29:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B50EA7509C6 for ; Wed, 29 Feb 2012 15:29:00 +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] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0+gERnQfIiK6 for ; Wed, 29 Feb 2012 15:28:47 +0000 (UTC) Received: from reer.it (www.reer.it [77.108.48.106]) by menubar.gnome.org (Postfix) with ESMTP id A2545750485 for ; Wed, 29 Feb 2012 15:28:37 +0000 (UTC) X-MDAV-Processed: reer.it, Wed, 29 Feb 2012 16:28:12 +0100 Received: from [192.168.10.189] by reerusa.com (MDaemon PRO v12.5.3) with ESMTP id md50001178918.msg for ; Wed, 29 Feb 2012 16:28:11 +0100 X-Spam-Processed: reer.it, Wed, 29 Feb 2012 16:28:11 +0100 (not processed: message from valid local sender) X-Authenticated-Sender: mferrero@reer.it X-Return-Path: mferrero@reer.it X-Envelope-From: mferrero@reer.it X-MDaemon-Deliver-To: gtk-list@gnome.org Message-ID: <4F4E446F.7060801@reer.it> Date: Wed, 29 Feb 2012 16:29:51 +0100 From: Manuel Ferrero Organization: Reer S.p.A. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Compiling glib on win32 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 15:29:00 -0000 I'm trying to compile glib-2.30.2 on my windows machine because I'd like to use an external dll compiled against a different version of msvcrt.dll. I'd like to compile glib using a mingw environment and so far I was able to succesfully configure it adding the requested dependencies. Now I tried to make it and after a while I got the following error: AttributeError: 'dict' object has no attribute 'has_key' make[6]: *** [gdbus-example-objectmanager-generated.h] Error 1 I'm stuck, any suggestion, please? -- Regards, Manuel Ferrero R&D department Reer SpA Tel. +39 011 2482215 Fax. +39 011 859867 L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato. Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail, ce ne comunicasse l'errata ricezione. The unauthorized use of this e-mail is prohibited and could constitute an offence. If you are not the intended recipient of this message its contents shall be understood as neither given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case. From dieterv@optionexplicit.be Wed Feb 29 19:45:11 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 42AC17509C5 for ; Wed, 29 Feb 2012 19:45: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] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gNjMnlnmn3aW for ; Wed, 29 Feb 2012 19:45:04 +0000 (UTC) Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by menubar.gnome.org (Postfix) with ESMTP id A04757509B9 for ; Wed, 29 Feb 2012 19:44:56 +0000 (UTC) Received: from webmail.webfaction.com (wf2.webfaction.com [174.133.50.206]) by smtp.webfaction.com (Postfix) with ESMTP id 791E959A1EA0; Wed, 29 Feb 2012 13:44:54 -0600 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 29 Feb 2012 20:44:54 +0100 From: Dieter Verfaillie To: Manuel Ferrero Subject: Re: Compiling glib on win32 In-Reply-To: <4F4E446F.7060801@reer.it> References: <4F4E446F.7060801@reer.it> Message-ID: <0ad68db81b23744a9df6aac0a9fff533@mail.webfaction.com> X-Sender: dieterv@optionexplicit.be User-Agent: Roundcube Webmail/0.5.4 Cc: gtk-list@gnome.org X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Feb 2012 19:45:11 -0000 On Wed, 29 Feb 2012 16:29:51 +0100, Manuel Ferrero wrote: > I'm trying to compile glib-2.30.2 on my windows machine because I'd > like to use an external dll compiled against a different version of > msvcrt.dll. > I'd like to compile glib using a mingw environment and so far I was > able to succesfully configure it adding the requested dependencies. > Now I tried to make it and after a while I got the following error: > AttributeError: 'dict' object has no attribute 'has_key' > make[6]: *** [gdbus-example-objectmanager-generated.h] Error 1 Maybe some Python 3.x version is being used to execute gdbus-codegen? Just an idea, as dict.has_key() has been removed from Python 3, so ensure Python 2.6 or 2.7 (consult GLib's configure.ac for a definitive list of supported versions) is picked up and it will probably work. mvg, Dieter For the Pythonistas among us: idiomatic Python code should state "key in dict" instead of "dict.has_key(key)" except when compatibility with pre Python 2.3 is required. From cc_subhero@163.com Thu Feb 23 02:54:13 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 278447500AA for ; Thu, 23 Feb 2012 02:54:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.765 X-Spam-Level: * X-Spam-Status: No, score=1.765 tagged_above=-999 required=2 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, SARE_RECV_IP_220168=1.666, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pw7P8gSL6nDl for ; Thu, 23 Feb 2012 02:54:09 +0000 (UTC) X-Greylist: delayed 916 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 23 Feb 2012 02:54:09 UTC Received: from m13-145.163.com (m13-145.163.com [220.181.13.145]) by menubar.gnome.org (Postfix) with ESMTP id 0603D75006B for ; Thu, 23 Feb 2012 02:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=CdDli5jP03QjwiK8Nh9jYn36n03IUBASOh hjSaTxFqQ=; b=ADO0CvtHEIqc9btJiZhQQG3OqSvDInVjsjCXxiQJez0ThE0+3L nLYPyZ8ex1bk7/fv+PxiEFujQvI3kWqik0HmhxnC7tbjFtM61x9P3bK/pHI5y0Jp mylj3UjxI2tLhkEZMzBILB+hY2DmJkcuOe+5JJ1CN9ovg1aLg3nfYbMkI= Received: from cc_subhero ( [220.168.48.23] ) by ajax-webmail-wmsvr145 (Coremail) ; Thu, 23 Feb 2012 10:38:39 +0800 (CST) Date: Thu, 23 Feb 2012 10:38:39 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: gtk-list@gnome.org Message-ID: <31b9f293.7374.135a8131d5f.Coremail.cc_subhero@163.com> Subject: how to install GTK+3.2.0 correctly MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_87257_1016937226.1329964719455" X-Originating-IP: [220.168.48.23] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: ViWJnmZvb3Rlcl9odG09MTUxOTo4MQ== X-CM-TRANSID: kcGowEAJz0SvpkVPOlE1AA--.3605W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/xtbBzxNdM00vKhv2tgABsg X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Mailman-Approved-At: Sat, 03 Mar 2012 18:09:34 +0000 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 02:54:13 -0000 ------=_Part_87257_1016937226.1329964719455 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Recently I install GTK+3.2.0 according the GTK+3.2.0 installation guide in ubuntu 11.04. When I finished the install and reboot the computer, I found that system interface has changed and file can't open by mouse. And I think the question is GTK 2.x and GTK+3 in the same process is not support. When I uninstall GTK 2.x, a new question is coming.The GNome is can't work normally and I can't enter the system interface. So how I should do next? Here My GNome version is 2.32.1.If I should first put the GNome upgraded to 3.2. I very much look forward to someone can help me,and to express my heartfelt thanks. -- ------=_Part_87257_1016937226.1329964719455 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
   Recently I install GTK+3.2.0 according the GTK+3.2.0 installation guide  in ubuntu 11.04. When I finished the install and reboot the computer,  I found that system interface has changed and file can't open by mouse. And I  think the question is GTK 2.x and GTK+3 in the same process is not support. When I uninstall GTK 2.x, a new question is coming.The GNome is can't work normally and I can't enter the system interface. 
   So how I should do next? Here My GNome version is 2.32.1.If I should first put the GNome upgraded to 3.2.
    I very much look forward to someone can help me,and to express my heartfelt thanks. 
          &n bsp;                                                                                                                                     


--


------=_Part_87257_1016937226.1329964719455-- From cc_subhero@163.com Thu Feb 23 03:32:34 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A2BE75032F for ; Thu, 23 Feb 2012 03:32:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.765 X-Spam-Level: * X-Spam-Status: No, score=1.765 tagged_above=-999 required=2 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, SARE_RECV_IP_220168=1.666, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9icpVqpHYf1H for ; Thu, 23 Feb 2012 03:32:33 +0000 (UTC) Received: from m13-145.163.com (m13-145.163.com [220.181.13.145]) by menubar.gnome.org (Postfix) with ESMTP id 5D3BE7500AA for ; Thu, 23 Feb 2012 03:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=a0yv2ANRtX9g8lPANuSlnhUt2uT7tZSRE9 qM8EUk/Tk=; b=MRU+bPCG+jN61gFVxl4nYFssWx+dLbvKTnppdjKozXKwhpjvpd wU5G50GuArpdxup9KG46upibjYLWxGitgfn+7uCof3WkM9oPWN7F0wQR85Gscqs3 OVuWzsNly0rvHIKvh3/dVR5qJ2tmWbeg+fU/gr5wDmLYUaovET3xGYxe0= Received: from cc_subhero ( [220.168.48.23] ) by ajax-webmail-wmsvr145 (Coremail) ; Thu, 23 Feb 2012 11:32:23 +0800 (CST) Date: Thu, 23 Feb 2012 11:32:23 +0800 (CST) From: =?GBK?B?1tzB+g==?= To: gtk-list@gnome.org Message-ID: <30abd0e1.8fbb.135a8444fa2.Coremail.cc_subhero@163.com> Subject: how to install GTK+3.2.0 correctly MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_107101_990307213.1329967943586" X-Originating-IP: [220.168.48.23] X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 111202(16086.4213.4207) Copyright (c) 2002-2012 www.mailtech.cn 163com X-CM-CTRLDATA: rfqP8mZvb3Rlcl9odG09MTY4Mjo4MQ== X-CM-TRANSID: kcGowEB5R0BHs0VPxHk1AA--.9563W X-CM-SenderInfo: 5ffb23xekh20i6rwjhhfrp/1tbiQBVdM0fRE-7BbgABsu X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Mailman-Approved-At: Sat, 03 Mar 2012 18:09:34 +0000 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 03:32:34 -0000 ------=_Part_107101_990307213.1329967943586 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Recently I install GTK+3.2.0 according the GTK+3.2.0 installation guide in ubuntu 11.04. When I finished the install and reboot the computer, I found that system interface has changed and file can't open by mouse. And I think the question is GTK 2.x and GTK+3 in the same process is not support. When I uninstall GTK 2.x, a new question is coming.The GNome is can't work normally and I can't enter the system interface. So how I should do next? Here My GNome version is 2.32.1.If I should first put the GNome upgraded to 3.2. I very much look forward to someone can help me,and to express my heartfelt thanks. -- ------=_Part_107101_990307213.1329967943586 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
   Recently I install GTK+3.2.0 according the GTK+3.2.0 installation guide  in ubuntu 11.04. When I finished the install and reboot the computer,  I found that system interface has changed and file can't open by mouse. And I  think the question is GTK 2.x and GTK+3 in the same process is not support. When I uninstall GTK 2.x, a new question is coming.The GNome is can't work normally and I can't enter the system interface. 
   So how I should do next? Here My GNome version is 2.32.1.If I should first put the GNome upgraded to 3.2.
    I very much look forward to someone can help me,and to express my heartfelt thanks. 
                                                                                                                                                


--




------=_Part_107101_990307213.1329967943586-- From dlxxko@gmail.com Fri Feb 24 22:25:00 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69DC17501EB for ; Fri, 24 Feb 2012 22:25:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.698 X-Spam-Level: X-Spam-Status: No, score=-1.698 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DT88+3G-rnKa for ; Fri, 24 Feb 2012 22:24:47 +0000 (UTC) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by menubar.gnome.org (Postfix) with ESMTP id 56DF37501B7 for ; Fri, 24 Feb 2012 22:24:38 +0000 (UTC) Received: by eekd17 with SMTP id d17so502007eek.27 for ; Fri, 24 Feb 2012 14:24:37 -0800 (PST) Received-SPF: pass (google.com: domain of dlxxko@gmail.com designates 10.14.28.199 as permitted sender) client-ip=10.14.28.199; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dlxxko@gmail.com designates 10.14.28.199 as permitted sender) smtp.mail=dlxxko@gmail.com; dkim=pass header.i=dlxxko@gmail.com Received: from mr.google.com ([10.14.28.199]) by 10.14.28.199 with SMTP id g47mr2593720eea.16.1330122277379 (num_hops = 1); Fri, 24 Feb 2012 14:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:content-type:x-mailer:message-id:date:to :content-transfer-encoding:mime-version; bh=6e549pld+lcOCqs4SggAPuWIuSmSfs424Jvxp3lOz28=; b=XnZ+1BljgaWFIDuDEu/pgo1hVtIPcwBTIZSbSwM2B/QNpmEl8w0fYPlYVV1zoA1sOc NGwSZ86mO6xTbuvjpb3NoryfqpdBjPzoGgMOxmdNuurK0SeZYm/5u34zdYRcIq2Ed/8y e1Ea1eXcptM2/VMfQhkRsJ85h6uhYYcHnydBs= Received: by 10.14.28.199 with SMTP id g47mr1918299eea.16.1330122277269; Fri, 24 Feb 2012 14:24:37 -0800 (PST) Received: from [192.168.1.122] (ttxd79.ttx-net.sk. [62.197.207.79]) by mx.google.com with ESMTPS id r5sm10866921eef.6.2012.02.24.14.24.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 24 Feb 2012 14:24:35 -0800 (PST) Subject: WSA & GTK From: Martin Pavelka Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (8C148) Message-Id: <9F6E4649-9891-45DA-ADC2-80382734FEBD@gmail.com> Date: Fri, 24 Feb 2012 23:24:27 +0100 To: "gtk-list@gnome.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8C148) X-Mailman-Approved-At: Sat, 03 Mar 2012 18:09:34 +0000 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 22:25:00 -0000 Dear GTK Team I would like to ask just one question... I'm working on WinSock2 project us= ing GTK2 and I would like to make asynchronous sockets using WSAAsyncSelect f= unction... I need it only on client side :) I would like to ask about way have to make program checking arriving connect= ion and reciving bytes with this function without making loop which cause pr= ogram freeze without async and just one check with async... I need to run th= is check during normal program main progress...=20 Is there any possible way how to implement it? How to perform this check? Or= at least to do my WSA loop and run GTK program together? I have googled but= everywhere is only WinApi stupid solution :/ Thank you for your reply :) Martin Pavelka= From eric@yorba.org Mon Feb 27 23:15:37 2012 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC43875064C for ; Mon, 27 Feb 2012 23:15:36 +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 menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FGRku8c1kysn for ; Mon, 27 Feb 2012 23:15:35 +0000 (UTC) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id E6447750643 for ; Mon, 27 Feb 2012 23:15:26 +0000 (UTC) Received: by obbwc7 with SMTP id wc7so1565255obb.27 for ; Mon, 27 Feb 2012 15:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of eric@yorba.org designates 10.60.12.72 as permitted sender) client-ip=10.60.12.72; Authentication-Results: mr.google.com; spf=pass (google.com: domain of eric@yorba.org designates 10.60.12.72 as permitted sender) smtp.mail=eric@yorba.org Received: from mr.google.com ([10.60.12.72]) by 10.60.12.72 with SMTP id w8mr5717826oeb.31.1330384525125 (num_hops = 1); Mon, 27 Feb 2012 15:15:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.12.72 with SMTP id w8mr5083957oeb.31.1330384525034; Mon, 27 Feb 2012 15:15:25 -0800 (PST) Received: by 10.182.53.226 with HTTP; Mon, 27 Feb 2012 15:15:24 -0800 (PST) Date: Mon, 27 Feb 2012 15:15:24 -0800 Message-ID: Subject: GTlsClientConnection and STARTTLS From: Eric Gregory To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary=e89a8fb2041007861704b9fa49fa X-Gm-Message-State: ALoCoQlbsl1Onm0jM9Txgv4vDhnAqF/RKsyjZJDZUHbAgjGNkgXb7aaJg/Y+OXzMYoZMQYzPOtz5 X-Mailman-Approved-At: Sat, 03 Mar 2012 18:09:34 +0000 Cc: jim X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 23:15:37 -0000 --e89a8fb2041007861704b9fa49fa Content-Type: text/plain; charset=ISO-8859-1 I'm running into some trouble trying to add STARTTLS support to an GLib-based SMTP client. (Hopefully I'm sending this to the right place.) According to the docs for g_tls_connection_handshake(), a handshake will occur automatically after STARTTLS is issued. That doesn't make a whole lot of sense to me, since (as far as I can tell) you can't use a GTlsClientConnection for a plain, non-encrypted connection. I would expect that I'd have to connect in the plain with a normal GSocketClient, issue a STARTTLS, and finally wrap the GSocketConnection with a GTlsClientConnection and do a handshake. But that isn't working for me either; according to Wireshark I'm getting an Encrypted Alert with an invalid message. So my question is: is the doc correct? If so, how do I go about using GTlsClientConnection with STARTTLS? If not, is GLib capable of handling STARTTLS, or do I need to use GnuTLS directly? Thanks, - Eric --e89a8fb2041007861704b9fa49fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm running into some trouble trying to add STARTTLS support to an GLib= -based SMTP client.=A0 (Hopefully I'm sending this to the right place.)=

According to the docs for g_tls_connection_handshake(), a handshake= will occur automatically after STARTTLS is issued.=A0 That doesn't mak= e a whole lot of sense to me, since (as far as I can tell) you can't us= e a GTlsClientConnection for a plain, non-encrypted connection.

I would expect that I'd have to connect in the plain with a normal = GSocketClient, issue a STARTTLS, and finally wrap the GSocketConnection wit= h a GTlsClientConnection and do a handshake.=A0 But that isn't working = for me either; according to Wireshark I'm getting an Encrypted Alert wi= th an invalid message.

So my question is: is the doc correct?=A0 If so, how do I go about usin= g GTlsClientConnection with STARTTLS?=A0 If not, is GLib capable of handlin= g STARTTLS, or do I need to use GnuTLS directly?

Thanks,
=A0- Eri= c
--e89a8fb2041007861704b9fa49fa--