From lists@nabble.com Thu Dec 1 02:12:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C418C3B3675 for ; Thu, 1 Dec 2005 02:12:17 -0500 (EST) 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 31161-03 for ; Thu, 1 Dec 2005 02:12:15 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E6D263B0803 for ; Thu, 1 Dec 2005 02:12:14 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Ehic2-0004Eo-IO for gtk-list@gnome.org; Wed, 30 Nov 2005 23:12:14 -0800 Message-ID: <1730004.post@talk.nabble.com> Date: Wed, 30 Nov 2005 23:12:14 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org In-Reply-To: <438DD14A.6030209@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_160_4410427.1133421134563" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 References: <1716370.post@talk.nabble.com> <438DC75A.5000706@gnome.org> <1716709.post@talk.nabble.com> <438DD14A.6030209@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.476 tagged_above=-999 required=2 tests=[BAYES_01, HTML_MESSAGE] X-Spam-Score: 1.476 X-Spam-Level: * Subject: Re: How to add callback to tell owner something X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 07:12:18 -0000 ------=_Part_160_4410427.1133421134563 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit sorry, I can only use glib1.2, so I can't use g_signal_emit(), g_signal_connect(), etc functions. Is there any other way for this problem? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/How-to-add-callback-to-tell-owner-something-t645553.html#a1730004 ------=_Part_160_4410427.1133421134563 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit sorry, I can only use glib1.2, so I can't use g_signal_emit(), g_signal_connect(), etc functions. Is there any other way for this problem?
Thanks

Sent from the Gtk+ - General forum at Nabble.com:
Re: How to add callback to tell owner something ------=_Part_160_4410427.1133421134563-- From kms@passback.co.uk Thu Dec 1 04:32:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ABEBA3B1597 for ; Thu, 1 Dec 2005 04:32:11 -0500 (EST) 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 09460-01 for ; Thu, 1 Dec 2005 04:32:08 -0500 (EST) Received: from gonzo.passback.co.uk (mailgate.passback.co.uk [62.49.46.202]) by menubar.gnome.org (Postfix) with ESMTP id 0CC213B1506 for ; Thu, 1 Dec 2005 04:32:08 -0500 (EST) Received: from animal.passback.co.uk (unknown [10.0.0.3]) by gonzo.passback.co.uk (Postfix) with ESMTP id 4FF1F2B005E for ; Thu, 1 Dec 2005 09:32:06 +0000 (GMT) From: Keith Sharp To: gtk-list@gnome.org In-Reply-To: <438C22CB.9060606@topazelectro.ru> References: <438C22CB.9060606@topazelectro.ru> Content-Type: text/plain Organization: Passback IT Consultancy Date: Thu, 01 Dec 2005 09:32:06 +0000 Message-Id: <1133429526.28075.4.camel@animal.passback.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Re: Icon in a tray - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 09:32:11 -0000 On Tue, 2005-11-29 at 12:43 +0300, Igor Gorbounov wrote: > Tell me, please, what widget (or anything else) can be used to represent > an application > by an icon in the tray (or notification area applet?)? I think you want libegg: http://cvs.gnome.org/viewcvs/libegg/ In particular, EggTrayIcon: http://cvs.gnome.org/viewcvs/libegg/libegg/tray/ Keith. From moodmonger@bk.ru Thu Dec 1 04:56:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3E04D3B14F9 for ; Thu, 1 Dec 2005 04:56:38 -0500 (EST) 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 11435-01 for ; Thu, 1 Dec 2005 04:56:36 -0500 (EST) Received: from mx3.mail.ru (mx3.mail.ru [194.67.23.149]) by menubar.gnome.org (Postfix) with ESMTP id 290D43B13A5 for ; Thu, 1 Dec 2005 04:56:35 -0500 (EST) Received: from [85.21.83.170] (port=18983 helo=[172.17.0.4]) by mx3.mail.ru with esmtp id 1EhlB3-000HK3-00; Thu, 01 Dec 2005 12:56:33 +0300 Message-ID: <438EC921.1060201@bk.ru> Date: Thu, 01 Dec 2005 12:57:53 +0300 From: Dmitry Konyshev User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Sirotkin References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: changing text colors in .gtkrc.mine X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 09:56:38 -0000 Alexander Sirotkin wrote: > Hey. > > Well... I'm going slightly mad after trying to change colors for > gnome-terminal for about 2 weeks or so. > This is unreal... > > The following very simple .gtkrc.mine file > > style "demiurg-test" = "bluecurve-default" > { > bg[NORMAL] = "#000000" > bg[ACTIVE] = "#000000" > fg[NORMAL] = "#ffffff" > text[NORMAL] = "#ffffff" > } > > class "GtkWidget" style "demiurg-test" > > well... I can't even say that it does not work, since it does work, > but for some very selected applications, for instance "winetools", > which I discovered accidentally since for most applications, like > gnome-terminal it does not !!! > > This is driving me crazy... I googled for hours and read every > documentation I could find, but could not resolve this mystery... > Any help would be appriciated. > > P.S. I'm using out of the box CentOS 4.2 distribution. > My understanding of this "mystery" is that style definition works in the most intuitive way: more specific widget selection for a style overrides less specific one. In other words, if you're setting a style for a concrete widget or widget class, this style overrides the style defined for all the widget types. Thus, your style definition for all the widget classes just gets overriden by more specific ones. wbr, Dmitry. From db5@hermes.net.au Fri Dec 2 07:00:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B61C73B3D2C for ; Fri, 2 Dec 2005 07:00:52 -0500 (EST) 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 16276-04 for ; Fri, 2 Dec 2005 07:00:51 -0500 (EST) Received: from blue.hermes.net.au (blue.hermes.net.au [203.35.8.194]) by menubar.gnome.org (Postfix) with ESMTP id 349903B3CF5 for ; Fri, 2 Dec 2005 07:00:50 -0500 (EST) Received: from cor9-ppp2126.hay.dialup.connect.net.au (IDENT:1003@cor9-ppp2126.hay.dialup.connect.net.au [61.68.40.94]) (authenticated bits=0) by blue.hermes.net.au (8.13.4/8.13.4) with ESMTP id jB2C0cdH013620 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 2 Dec 2005 23:00:48 +1100 From: Ian To: gtk-list@gnome.org Content-Type: text/plain Organization: Fog Watch Date: Fri, 02 Dec 2005 22:59:22 +1100 Message-Id: <1133524762.377.20.camel@ns.fogwatch.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.49 on 203.35.8.194 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: gnome-settings-daemon X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: db5@hermes.net.au List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 12:00:57 -0000 Dear GTK people I would like to be able to see me my GTK applications in IceWM using the assigned font properties without having to deliberately invoke gnome-font-properites or gnome-settings-daemon every time I boot. Some questions arise out of this. Presumably I should use gnome-settings-daemon, and not gnome-font-properties? If so, do I need a gnome-settings-daemon per login, or just once? If it is per login then presumably I would use ~/.xinitrc, but where for just once? /etc/X11/xinit/xinitrc.icewm? And ~/.gtkrc-2.0. How on earth does this relate to the settings made by gnome-font-properties? As you can see, I have had trouble with this subject. By all means just head me towards some documentation, I just couldn't find any. Thank you for any assistance you are able to provide. Regards Ian Slackware 10.1 From edward.robbins@tinyworld.co.uk Thu Dec 1 08:57:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 774E33B2383 for ; Thu, 1 Dec 2005 08:57:48 -0500 (EST) 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 04938-08 for ; Thu, 1 Dec 2005 08:57:46 -0500 (EST) Received: from mk-smarthost-2.mail.uk.tiscali.com (mk-smarthost-2.mail.uk.tiscali.com [212.74.114.38]) by menubar.gnome.org (Postfix) with ESMTP id A19C13B235B for ; Thu, 1 Dec 2005 08:57:43 -0500 (EST) Received: from illinois.rdg.ac.uk (HELO mk-cpfrontend.uk.tiscali.com) ([134.225.216.82]) by mk-smarthost-2.mail.uk.tiscali.com with ESMTP; 01 Dec 2005 13:57:42 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AAAAAN6MjkMJhQw Received: from [134.225.216.82] by mk-cpfrontend.uk.tiscali.com with HTTP; Thu, 1 Dec 2005 13:57:40 +0000 Date: Thu, 1 Dec 2005 13:57:40 +0000 Message-ID: <4366F1DA000B27A1@mk-cpfrontend-2.mail.uk.tiscali.com> In-Reply-To: <438DE97D.2090400@kernelconcepts.de> From: edward.robbins@tinyworld.co.uk To: "Florian Boor" , "Li Weichen" MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.751 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, TW_GT] X-Spam-Score: -1.751 X-Spam-Level: X-Mailman-Approved-At: Fri, 02 Dec 2005 11:57:49 -0500 Cc: linux-arm@lists.arm.linux.org.uk, gtk-list@gnome.org Subject: Re: Some basic questions about gtk/gtk+ in embedded system X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 13:57:48 -0000 >> 1. Does the gtk+ can be used as an embedded gui? > >It depends on the complexity of the application and on the amount of sto= rage >space and RAM you have on your device. But basically i'd say yes. There are >some >projects for user interfaces on mobile devices using GTK. (e.g. GPE - >http://gpe.handhelds.org and Maemo - http://maemo.org). > I prefer fltk - it is faster for embedded devices (but if your device is fast enough for gtk then fine). >> 3. Can it be compared to Qt/E or MiniGUI? What are the advantages and= >> disadvantages? > >GTK might be a little bit bigger than these two, but it is very powerful= >and >there are bindings for many languages available. I personally like GTK b= ecause >its native language is C instead of C++ and its good support for powerfu= l >themes. It is easy to develop applications on a desktop PC using the sam= e >API >like on your embedded device and if necessary you can port applications to >run >on that one easily. In addition to this GTK is LGPL licensed which is mu= ch >easier to deal with compared to the dual licensing crap for Qt/E. Agreed regarding licenses, but I much prefer C++ to C for this task... >Yes, mostly - you only need to get used to the constraints you have usin= g >an >object framework in C. It is a very good idea to have an API reference, witout >htis you are lost in a compley toolkit like GTK. Devhelp e.g. is very us= eful. ...because of the confusion this brings up. Although there are c++ bindin= gs for gtk I believe. Its all a matter of choice anyway ;). Have fun, Ed. ___________________________________________________________ Tiscali Broadband from 14.99 with free setup! http://www.tiscali.co.uk/products/broadband/ Christmas gift ideas and festive features - visit the Tiscali Christmas m= icrosite. http://www.tiscali.co.uk/christmas From demiourgos@gmail.com Thu Dec 1 09:45:42 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44A643B08DC for ; Thu, 1 Dec 2005 09:45:42 -0500 (EST) 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 09313-02 for ; Thu, 1 Dec 2005 09:45:40 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id 3AE8D3B16EA for ; Thu, 1 Dec 2005 09:45:40 -0500 (EST) Received: by xproxy.gmail.com with SMTP id s11so335121wxc for ; Thu, 01 Dec 2005 06:45:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=py27X+pHwtL5wXgu/ierOluQxR3IERoWBE0KBwtO/X5gTbvW3syH3/1Kf4pPsDNTGCTBL7cQxXA5gO2e/01Q0LMEbSeHpQcqR5YnX1O2dxeFYqHagUouDdo+80GVinDqlsbVj7J+raO0ux3HkcKS+Q4xDP1CyOtK099lLqGwYGA= Received: by 10.65.11.9 with SMTP id o9mr852671qbi; Thu, 01 Dec 2005 06:45:39 -0800 (PST) Received: by 10.65.72.17 with HTTP; Thu, 1 Dec 2005 06:45:39 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2005 16:45:39 +0200 From: Alexander Sirotkin To: Dmitry Konyshev In-Reply-To: <438EC921.1060201@bk.ru> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46274_20144663.1133448339371" References: <438EC921.1060201@bk.ru> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.112 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, RCVD_IN_SORBS] X-Spam-Score: 1.112 X-Spam-Level: * X-Mailman-Approved-At: Fri, 02 Dec 2005 11:57:49 -0500 Cc: gtk-list@gnome.org Subject: Re: changing text colors in .gtkrc.mine X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 14:45:42 -0000 ------=_Part_46274_20144663.1133448339371 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks. I thought about it too. In that case, the question is - how can I find the appropriate widget class for gnome-terminal, or any other application I would want to modify the theme for ? Thanks a lot. On 12/1/05, Dmitry Konyshev wrote: > > Alexander Sirotkin wrote: > > > Hey. > > > > Well... I'm going slightly mad after trying to change colors for > > gnome-terminal for about 2 weeks or so. > > This is unreal... > > > > The following very simple .gtkrc.mine file > > > > style "demiurg-test" =3D "bluecurve-default" > > { > > bg[NORMAL] =3D "#000000" > > bg[ACTIVE] =3D "#000000" > > fg[NORMAL] =3D "#ffffff" > > text[NORMAL] =3D "#ffffff" > > } > > > > class "GtkWidget" style "demiurg-test" > > > > well... I can't even say that it does not work, since it does work, > > but for some very selected applications, for instance "winetools", > > which I discovered accidentally since for most applications, like > > gnome-terminal it does not !!! > > > > This is driving me crazy... I googled for hours and read every > > documentation I could find, but could not resolve this mystery... > > Any help would be appriciated. > > > > P.S. I'm using out of the box CentOS 4.2 distribution. > > > My understanding of this "mystery" is that style definition works in the > most intuitive way: more specific widget selection for a style overrides > less specific one. In other words, if you're setting a style for a > concrete widget or widget class, this style overrides the style defined > for all the widget types. Thus, your style definition for all the widget > classes just gets overriden by more specific ones. > > wbr, Dmitry. > > -- Alexander Sirotkin ------=_Part_46274_20144663.1133448339371 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks.

I thought about it too. In that case, the question is - how can I find the appropriate widget class for gnome-terminal, or any other application I would want to modify the theme for ?

Thanks a lot.

On 12/1/05, Dmitry Konyshev <moodmonger@bk.ru> wrote:
Alexander Sirotkin wrote:

> Hey.
>
> Well... I'm goin= g slightly mad after trying to change colors for
> gnome-terminal for= about 2 weeks or so.
> This is unreal...
>
> The followi= ng very simple .gtkrc.mine file
>
> style "demiurg-test" =3D "bluecurve-default= "
> {
>         bg= [NORMAL] =3D "#000000"
>      = ;   bg[ACTIVE] =3D "#000000"
>   &= nbsp;     fg[NORMAL] =3D "#ffffff"
>         text[NORMAL] =3D &= quot;#ffffff"
> }
>
> class "GtkWidget" st= yle "demiurg-test"
>
> well... I can't even say that = it does not work, since it does work,
> but for some very selected applications, for instance "winetools&= quot;,
> which I discovered accidentally since for most applications,= like
> gnome-terminal it does not !!!
>
> This is drivin= g me crazy... I googled for hours and read every
> documentation I could find, but could not resolve this mystery...<= br>> Any help would be appriciated.
>
> P.S. I'm using out o= f the box CentOS 4.2 distribution.
>
My understanding of this &quo= t;mystery" is that style definition works in the
most intuitive way: more specific widget selection for a style override= s
less specific one. In other words, if you're setting a style for a
= concrete widget or widget class, this style overrides the style defined
for all the widget types. Thus, your style definition for all the widge= t
classes just gets overriden by more specific ones.

wbr, Dmitry.=




--
Alexander Sirot= kin ------=_Part_46274_20144663.1133448339371-- From atopo@ocv.org Fri Dec 2 16:15:10 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50DE83B111D for ; Fri, 2 Dec 2005 16:15:10 -0500 (EST) 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 31578-02 for ; Fri, 2 Dec 2005 16:15:08 -0500 (EST) Received: from rohrpostfix.ocv.org (62-99-167-52.static.adsl-line.inode.at [62.99.167.52]) by menubar.gnome.org (Postfix) with ESMTP id 504033B25C3 for ; Fri, 2 Dec 2005 16:15:07 -0500 (EST) Received: from shuttle (shuttle.ocv.org [192.168.0.101]) by rohrpostfix.ocv.org (8.13.0/8.12.11) with SMTP id jB2LF6dp017204 for ; Fri, 2 Dec 2005 22:15:06 +0100 (CET) From: "Alexander Topolanek" To: Date: Fri, 2 Dec 2005 22:15:45 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.001 tagged_above=-999 required=2 tests=[BAYES_40] X-Spam-Score: -0.001 X-Spam-Level: Subject: Build problems with gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 21:15:10 -0000 Hi, I'm trying to build gtk+ on my sony vaio N505SN (Mobile Pentium 2 CPU), which fails all the time with an "/bin/sh: line 1: 16977 Illegal instruction" in "/usr/src/gtk+-2.8.8/gtk/stock-icons". I've tried with gtk+ 2.8.8 and older versions. This is my compiler: gcc (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8). Any ideas? best regards Alexander From are.leistad@chello.no Sat Dec 3 11:38:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C5B83B2B29 for ; Sat, 3 Dec 2005 11:38:44 -0500 (EST) 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 08999-05 for ; Sat, 3 Dec 2005 11:38:41 -0500 (EST) Received: from amsfep20-int.chello.nl (amsfep12-int.chello.nl [213.46.243.17]) by menubar.gnome.org (Postfix) with ESMTP id AE9383B2B68 for ; Sat, 3 Dec 2005 11:38:40 -0500 (EST) Received: from aredell ([84.209.254.99]) by amsfep20-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051203163828.ONVU13840.amsfep20-int.chello.nl@aredell> for ; Sat, 3 Dec 2005 17:38:28 +0100 Message-ID: <001901c5f827$f90207c0$0201a8c0@aredell> From: " Are Leistad" To: Date: Sat, 3 Dec 2005 17:38:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Antivirus: avast! (VPS 0544-0, 31.10.2005), Outbound message X-Antivirus-Status: Not-Tested X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: X-Mailman-Approved-At: Sat, 03 Dec 2005 11:40:41 -0500 Subject: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 16:38:44 -0000 Hello GTK list! I'm evaluating GTK+ as the GUI/windowing toolkit for an embedded project. After spending a long time reviewing various toolkits, GTK+ is the one candidate that has bubbled to the top. The other alternative is an existing proprietary toolkit which is quite good, but the effort reequired to maintain it could potentially be quite large. Being able to draw on, and perhaps eventually contribute to, the GTK communitys efforts is the main advantage for me in picking it up. So far the concept and the API seems fine and the fact that it's all in pure C is a big advantage. The one thing that makes me hesitate is the question about stability. By stability I mean lack of (serious) bugs and memory leaks. I've tried to research this on the net, but there's not much to find in the way of comments on, or assessements of, GTK+ stability. Since GTK+ uses a number of 3rd party libraries these must be factored in as well. The application in question is mission critical, and must be able to run for extended periods (weeks or more) without any kind of cumulative degradation of the performance. If GTK+ gets adopted it will preferably run without X, but rather use a framebuffer, so or GTK+ on DirectFB is a possibility. It is noted that GTKfb is no longer maintained. The target platform is a x86 (ITX) with Suse Linux 2.6, but Windows is used for parts of the development cycle and the application must be able to run there. The application is demanding it that it will employ a high number of widgets. Several thousands of GUI objects will be created, and several hundred of these may be exposed at any one time. Responsive interactivity and quick redrawing is important. To get a better handle on the suitability of GTK in this case, I ask the list members for subjective and objective comments on a few issues: - general stability of GTK+ (bugs/leaks)? - suitability of GTK+ for mission critical embedded application? - any hints and tips for this kind of GTK+ usage? - best GTK+ options for use with linux framebuffer? - performance with thousands visible/hidden widgets on a 500MHz system? - to use glade or not... potential problems/instabilities? - is there a minimal HTML rendering widget available (for a help system)? Any comments or pointers to information will be greatly appreciated. AL -- From ibr@radix50.net Sat Dec 3 17:01:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3D593B1A67 for ; Sat, 3 Dec 2005 17:01:40 -0500 (EST) 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 32023-02 for ; Sat, 3 Dec 2005 17:01:38 -0500 (EST) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 84DE33B0960 for ; Sat, 3 Dec 2005 17:01:37 -0500 (EST) Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 3794D8D118 for ; Sat, 3 Dec 2005 23:01:36 +0100 (CET) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id 2C02D15D613 for ; Sat, 3 Dec 2005 23:01:36 +0100 (CET) Received: from alatau.radix50.net (dslb-084-057-003-020.pools.arcor-ip.net [84.57.3.20]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id EDB74C8B8B for ; Sat, 3 Dec 2005 23:01:34 +0100 (CET) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.4/8.13.4/Debian-2) with ESMTP id jB3M1SYq005649 for ; Sat, 3 Dec 2005 23:01:28 +0100 Received: (from ibr@localhost) by alatau.radix50.net (8.13.4/8.13.4/Submit) id jB3M1QFG005648 for gtk-list@gnome.org; Sat, 3 Dec 2005 23:01:26 +0100 Date: Sat, 3 Dec 2005 23:01:26 +0100 From: ibr@ata.cs.hun.edu.tr To: gtk-list@gnome.org Message-ID: <20051203220126.GA4730@radix50.net> References: <001901c5f827$f90207c0$0201a8c0@aredell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.828 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME] X-Spam-Score: -1.828 X-Spam-Level: Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 22:01:40 -0000 Hello Are, On Sat, Dec 03, 2005 at 05:38:17PM +0100, Are Leistad wrote: > - suitability of GTK+ for mission critical embedded application? You might be interested to investigate the behavior in the case of virtual memory exhaustion. As I looked at glib, I couldn't see an elegant way to pass that fact to the caller. E.g., g_list_append returns the new list head; if there is no memory available, the application is supposed to exit (please correct me if I'm wrong), which is not quite nice for an embedded app. A possible workaround could be calling some handler in your code, but I haven't looked at that. If you are interested, we could try to do that together. With kind regards, Baurzhan. From torriem@chem.byu.edu Sat Dec 3 23:08:00 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4156F3B189E for ; Sat, 3 Dec 2005 23:08:00 -0500 (EST) 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 21958-08 for ; Sat, 3 Dec 2005 23:07:58 -0500 (EST) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 783B63B11B5 for ; Sat, 3 Dec 2005 23:07:57 -0500 (EST) Received: from [192.168.108.50] ([192.168.108.50]) (authenticated bits=0) by mail.chem.byu.edu (8.12.10/8.12.10) with ESMTP id jB447r6U016654 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 3 Dec 2005 21:07:54 -0700 From: Michael Torrie To: Are Leistad In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> References: <001901c5f827$f90207c0$0201a8c0@aredell> Content-Type: text/plain Date: Sat, 03 Dec 2005 21:07:52 -0700 Message-Id: <1133669273.13402.115.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.53 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 04:08:00 -0000 On Sat, 2005-12-03 at 17:38 +0100, Are Leistad wrote: > If GTK+ gets adopted it will preferably run without X, but rather > use a framebuffer, so or GTK+ on DirectFB is a possibility. > It is noted that GTKfb is no longer maintained. The target platform > is a x86 (ITX) with Suse Linux 2.6, but Windows is used for parts of > the development cycle and the application must be able to run there. > The application is demanding it that it will employ a high number > of widgets. Several thousands of GUI objects will be created, and > several hundred of these may be exposed at any one time. > Responsive interactivity and quick redrawing is important. Actually I think you'll find that running GTK on an embedded X-server works very well. In fact I think it's a much better idea than the framebuffer, since GTKfb really has to implement GTK plus the stuff X provides. If you check out the kdrive X server from www.freedesktop.org, I think you'll find it can be less than a mb in binary size and run fine on just a few mb of RAM. Not much larger with GTK/X than GTKfb. A tiny window manager, matchbox also works well for an embedded system with a small screen. When you say you are considering GTK for an embedded situation, I take it you're not meaning real-time or microcontroller, but a small, full- blown computer running a full protected-mode, virtual memory OS. If not, GTK simply can't work. GTK must have dynamic memory allocation available from the OS. I'm found based on my experience with GTK and with many GTK apps that the stable GTK libraries have no known memory leaks. In fact the underlying glib libraries are so well-written that I can in one of my app (over the course of months) build and destroy millions of dynamic tree stuctures containing glib objects (lists, strings, etc) and not one leak. It has been a while since a real memory leak has been discovered in the gui stuff in GTK. In fact most of the supposed leaks reported in recent months were really just the programmer not quite understanding how the reference counting and object destruction worked. Michael -- Michael Torrie From jcupitt@gmail.com Sun Dec 4 11:45:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1173B4C84 for ; Sun, 4 Dec 2005 11:45:35 -0500 (EST) 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 26800-07 for ; Sun, 4 Dec 2005 11:45:32 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 0709C3B4CD4 for ; Sun, 4 Dec 2005 04:39:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id o37so731421nzf for ; Sun, 04 Dec 2005 01:39:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TvZs0D9/lWoH6KTHE824DvrR/uuRDozHSOx+VQzRQEMd65dHpnlN5qahZtz9zJrtLvGEKPrODq9GRl+N5Odzp+AWNBef4JXyP+0ociH3BlitfXBCwMKxIlyVNVYO2oXpkQ+FFFqzgq0rZ43Tbu54GiQapxldOSACC1JGvmQB/78= Received: by 10.64.195.11 with SMTP id s11mr2150797qbf; Sun, 04 Dec 2005 01:39:35 -0800 (PST) Received: by 10.65.15.14 with HTTP; Sun, 4 Dec 2005 01:39:35 -0800 (PST) Message-ID: <522c6460512040139u498f1560o848be7d5a4fb8fc0@mail.gmail.com> Date: Sun, 4 Dec 2005 09:39:35 +0000 From: John Cupitt To: Are Leistad In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001901c5f827$f90207c0$0201a8c0@aredell> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 16:45:35 -0000 On 12/3/05, Are Leistad wrote: > The one thing that makes me hesitate is the question about stability. > By stability I mean lack of (serious) bugs and memory leaks. I'm not embedded, but the GTK app I usually work on (medium sized? 250,000 lines) seems leak-free, according to valgrind. I've found three or four GTK crash bugs over the last five years, but they've been easy to patch around. Having the source to the whole GUI is just great. I've posted fixes to bugzilla and they've gone into GTK (and in to the next version) within a few days, usually. Something people have complained about is out of memory handling. GTK does not even attempt to do this: if malloc() fails, your program will promptly abort(). A possible fix is to keep some small-ish amount of RAM in reserve (1MB?) and to start using that when the system malloc() stops. That gives your program a little time to either save state and restart, or perhaps flush some caches or something and keep going. > - performance with thousands visible/hidden widgets on a 500MHz system? GTK used to feel fast on my 450MHz desktop machine 5 years ago. It's become a bit slower since then with the fancy new font system. It should be easy to do some benchmarks I guess. > - is there a minimal HTML rendering widget available (for a help system= )? Yes, there's gtkhtml2, though I've not used it. I think it just does plain HTML (ie. no CSS etc). From are.leistad@chello.no Sun Dec 4 11:08:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DFD43B5B5E for ; Sun, 4 Dec 2005 11:08:21 -0500 (EST) 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 21122-10 for ; Sun, 4 Dec 2005 11:08:19 -0500 (EST) Received: from amsfep19-int.chello.nl (amsfep11-int.chello.nl [213.46.243.19]) by menubar.gnome.org (Postfix) with ESMTP id 592963B5FC7 for ; Sun, 4 Dec 2005 10:45:06 -0500 (EST) Received: from aredell ([84.209.254.99]) by amsfep19-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051204154449.UTLE17379.amsfep19-int.chello.nl@aredell> for ; Sun, 4 Dec 2005 16:44:49 +0100 Message-ID: <002f01c5f8e9$a3b8e8c0$0201a8c0@aredell> From: " Are Leistad" To: Date: Sun, 4 Dec 2005 16:44:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Antivirus: avast! (VPS 0544-0, 31.10.2005), Outbound message X-Antivirus-Status: Not-Tested X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_TK] X-Spam-Score: -1.834 X-Spam-Level: X-Mailman-Approved-At: Sun, 04 Dec 2005 19:16:10 -0500 Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 16:08:22 -0000 Baurzhan wrote: > You might be interested to investigate the behavior in the case of > virtual memory exhaustion. As I looked at glib, I couldn't see an > elegant way to pass that fact to the caller. E.g., g_list_append returns > the new list head; if there is no memory available, the application is > supposed to exit (please correct me if I'm wrong), which is not quite > nice for an embedded app. A possible workaround could be calling some > handler in your code, but I haven't looked at that. If you are > interested, we could try to do that together. This is duly noted - can't have forced exits. This will have to be handled indeed. In this system there will be no VM. It will have a healthy amount of RAM though, probably 256MB of which at least half is available to the application. The memory usage is (must be!) controlled in that it is guaranteed to never exceed a known maximum, and a margin will be set off to allow for fragmentation. Of course getting to know what the usage of GTK is may be a challenge. This reminds me of another question: are there facilities in GTK for monitoring or logging resource usage? Or are there some information on actual usage available (per feature/subsystem/widget)? Our proprietary GUI tracks all malloc/free calls as well as keeping statistics for objects and events. This would be hard to live without. Michael Torrie wrote: > Actually I think you'll find that running GTK on an embedded X-server > works very well. It also looks like it's fastest with X. At least from this somewhat old but still interesting report: http://www.bluemug.com/research/linux_performance/index.shtml > A When you say you are considering GTK for an embedded situation, > I take it you're not meaning real-time or microcontroller Thats right. It's a full x86 ISA on the ITX form factor. There's no harddisks, only a FLASH IDE module. > I'm found based on my experience with GTK and with many GTK apps > that the stable GTK libraries have no known memory leaks. This sounds good. From Baurzhan and Michaels answers it's clear that I shall need to have a good look a glib though. John Cupitt wrote: > I'm not embedded, but the GTK app I usually work on (medium sized? > 250,000 lines) seems leak-free, according to valgrind. I'd say that's a fair sized application :) It's good to hear a report indicating good general integrity. > Something people have complained about is out of memory handling. Right. That seems to be a springning point. I would have though it obviously that graceful handling of memory exhaustion is a must have. > GTK used to feel fast on my 450MHz desktop machine 5 years ago. It's > become a bit slower since then with the fancy new font system. It > should be easy to do some benchmarks I guess. I need a GUI that feels fast on a 500MHZ system 5 years from now :) You're right of course, benchmarking is easy. I'll make a mock up of parts of the interface and see for myself. > Yes, there's gtkhtml2 I'll look that up, although CSS is really needed. I have a nearly completed one in the prorietary bin which will probably be used anyway. Baurzhan, Michael, John - Thank you very much for your responses! It's exacly the stuff I'm after. This matter will take some time to decide upon (there are others who have a say). I'll let you know which way it goes. In the mean time I'll watch for more comments on this. In any case, I need a new toolkit for general C and Ada programming and that is likely going to be GTK+. AL -- From ashley.maher@didymodesigns.com.au Mon Dec 5 00:40:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888FB3B1D1E for ; Mon, 5 Dec 2005 00:40:32 -0500 (EST) 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 29587-10 for ; Mon, 5 Dec 2005 00:40:29 -0500 (EST) Received: from mail.didymodesigns.com.au (unknown [203.132.226.82]) by menubar.gnome.org (Postfix) with SMTP id 55F303B1D62 for ; Mon, 5 Dec 2005 00:40:04 -0500 (EST) Received: (qmail 9705 invoked by alias); 5 Dec 2005 05:39:01 -0000 Received: from unknown (HELO gemini) (61.9.197.223) by ns2.didymodesigns.com.au with SMTP; 5 Dec 2005 05:39:01 -0000 From: ashley maher To: gtk-list@gnome.org Content-Type: text/plain Organization: Didymo Designs Date: Mon, 05 Dec 2005 16:39:52 +1100 Message-Id: <1133761192.9526.10.camel@gemini> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: gtklist pango stipple X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ashley.maher@didymodesigns.com.au List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 05:40:32 -0000 G'day, Using the gtk tree view tutorial I have been able to gain most of the functionality I need. I've been asked to include a stipple behind some cells. So I have attempted to do this. I was confident I could include this using pango markup. Unfortunately the text markup does not include a stipple attribute. There is, however, gdk_pango_renderer_set_stipple, which got me no where. I found teh stipple code in the demos for a text block. That didn't get me far. Is there any way to have a stipple behind text in a cell of a gtk list view? Hints on the direction to take appreciated. Regards, Ashley From fkater@googlemail.com Mon Dec 5 06:56:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A89D83B2D21 for ; Mon, 5 Dec 2005 06:56:17 -0500 (EST) 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 25083-03 for ; Mon, 5 Dec 2005 06:56:15 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by menubar.gnome.org (Postfix) with ESMTP id 18E943B2CFB for ; Mon, 5 Dec 2005 06:56:15 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i24so601413wra for ; Mon, 05 Dec 2005 03:56:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UFcAx2u118vMcHyAp9R0jege2XWZcg7Gibl0bXLYKZcCobP+clwnu8nhYUEHjqBnUrluL8l02dsTiH1PyMZV4PEwSgyfPCkOzbNN6zyDkVseHOBP26fWT724BMUIQ7DCZHHDKYNx4tT6GHESZFnfwnNuHmMB08D2wv9884A1+VE= Received: by 10.65.73.3 with SMTP id a3mr2622273qbl; Mon, 05 Dec 2005 03:56:14 -0800 (PST) Received: by 10.65.44.13 with HTTP; Mon, 5 Dec 2005 03:56:14 -0800 (PST) Message-ID: Date: Mon, 5 Dec 2005 12:56:14 +0100 From: Felix Kater To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: g_get_current_time() / win32: UTC instead of local time? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 11:56:17 -0000 Hi, I get the current hour of the day (0-23) like this: hour_of_the_day=3D my_gtimeval.tv_sec % (3600*24) / 3600 My windows timezone is set to UTC+1 =3D=3D GMT+1 =3D=3D CET, however, this = is not respected. What ever I select as the windows timezone the above formula calculates the same time (I guess UTC). How can I get the local hour? Thanks Felix From adnanx82@gmail.com Mon Dec 5 22:09:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D14CE3B1277 for ; Mon, 5 Dec 2005 22:09:13 -0500 (EST) 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 04343-06 for ; Mon, 5 Dec 2005 22:09:12 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by menubar.gnome.org (Postfix) with ESMTP id E4AC73B0EA6 for ; Mon, 5 Dec 2005 22:09:11 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i6so247917wra for ; Mon, 05 Dec 2005 19:09:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mCMV98HawWsDq9Xk091DVUmUWtjXFI85ao2wcu39yTPZ9iEMZV3jkYtH3V8Bc67MQfEwGAGMUvOF0iMr3b0MrWvDiPgN6ey3WcEhzFErMRrmROsUVrk1G79oTvVbvYfAPKV2GvrdxoX8dYGf2hDC4jkbm7NWI5+atXNU9n4TNzk= Received: by 10.54.136.4 with SMTP id j4mr1237110wrd; Mon, 05 Dec 2005 19:09:11 -0800 (PST) Received: by 10.54.134.1 with HTTP; Mon, 5 Dec 2005 19:09:10 -0800 (PST) Message-ID: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> Date: Mon, 5 Dec 2005 19:09:10 -0800 From: Adnan Dosa To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_201_25851401.1133838550960" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.006 tagged_above=-999 required=2 tests=[BAYES_00, FROM_ENDS_IN_NUMS, HTML_MESSAGE] X-Spam-Score: 2.006 X-Spam-Level: ** X-Spam-Flag: YES Subject: gtk application without x server? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 03:09:14 -0000 ------=_Part_201_25851401.1133838550960 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Is it possible to have a GTK application with windows that are not visible on the screen that can run without an X server? Ie the windows have their content rendered off-screen (in memory) and you can call window functions o= n it. I tried creating a window and called gtk_widget_hide() on it, but it doesn'= t work. Thanks, -Adnan. ------=_Part_201_25851401.1133838550960 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

Is it possible to have a GTK application with windows that are not visible on the screen that can run without an X server? Ie the windows have their content rendered off-screen (in memory) and you can call window functions on it.

I tried creating a window and called gtk_widget_hide() on it, but it doesn'= t work.

Thanks,

-Adnan.
------=_Part_201_25851401.1133838550960-- From jcupitt@gmail.com Wed Dec 7 06:32:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BC163B3670 for ; Wed, 7 Dec 2005 06:32:28 -0500 (EST) 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 25840-01 for ; Wed, 7 Dec 2005 06:32:26 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by menubar.gnome.org (Postfix) with ESMTP id C20583B367E for ; Wed, 7 Dec 2005 06:32:25 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so490343wxc for ; Wed, 07 Dec 2005 03:32:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FIG7FVFMoOWqfYI0ZbYl/9VU8kEeeMEbqJ4/p7Jqg+p5zwW7Ft5m4QSb/mgPbXyFd5NRjGYVHkAdEJlqP0xV0xkVbo1t+j5SUCTq69DrlVGcBle/ACoiPZtRHPTvWyJuFuqlOTRuwmJ3kUaQkKFKjamEGUjl5IIZcrP6gAumbU8= Received: by 10.70.125.10 with SMTP id x10mr1679140wxc; Wed, 07 Dec 2005 03:32:24 -0800 (PST) Received: by 10.70.67.14 with HTTP; Wed, 7 Dec 2005 03:32:24 -0800 (PST) Message-ID: <522c6460512070332k7eba2418o233c76eaf2514277@mail.gmail.com> Date: Wed, 7 Dec 2005 11:32:24 +0000 From: John Cupitt To: Adnan Dosa In-Reply-To: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.757 tagged_above=-999 required=2 tests=[BAYES_00, TW_DK, TW_GD, TW_GT] X-Spam-Score: -1.757 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk application without x server? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 11:32:30 -0000 On 12/6/05, Adnan Dosa wrote: > Is it possible to have a GTK application with windows that are not visib= le > on the screen that can run without an X server? No, GTK needs a display connection to work. You can use some of the lower level libraries like glib, gobject, gdkpixbuf etc without an X connection. From kasoftnew@yahoo.com Wed Dec 7 08:55:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DCD4A3B1402 for ; Wed, 7 Dec 2005 08:55:21 -0500 (EST) 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 05894-05 for ; Wed, 7 Dec 2005 08:55:14 -0500 (EST) Received: from web34603.mail.mud.yahoo.com (web34603.mail.mud.yahoo.com [209.191.68.137]) by menubar.gnome.org (Postfix) with SMTP id 088993B0F8E for ; Wed, 7 Dec 2005 08:55:12 -0500 (EST) Received: (qmail 2724 invoked by uid 60001); 7 Dec 2005 13:55:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=K1DvMazOY2TjYlHuchvCDtX+otSvWlVRtKhRof5GsXfQ6vgCLZYpxtFdhvn685Z5aWa4j8qONscYN2pEV1JMsQEsAA718yGO4IrpkljxNBFNSg9OmZ3dh4ZbCLiscqhAAd91hGSU0tRAINxbyj0nPTLxIYgtsxsK/PVfO4w6HIc= ; Message-ID: <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> Received: from [213.91.219.82] by web34603.mail.mud.yahoo.com via HTTP; Wed, 07 Dec 2005 05:55:11 PST Date: Wed, 7 Dec 2005 05:55:11 -0800 (PST) From: Stoyan karanfilov To: gtk-list@gnome.org In-Reply-To: <20051206170119.E86923B32F8@menubar.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.087 tagged_above=-999 required=2 tests=[BAYES_00, FORGED_YAHOO_RCVD] X-Spam-Score: -1.087 X-Spam-Level: Subject: Problem with compiling on SUSE 10 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 13:55:22 -0000 Hi, I wrote a small program that has been working and compiling on SUSE 9.2 (with gcc 3.x), but now same program does not link well on SUSE 10 (gcc 4). Here is the command line and error: gcc -Wall -g test_window.cpp -o test `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0` /tmp/cc4Mi4UX.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' I will appreciate any help. Sincerely: Stoyan Karanfilov __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From ygupta@gmail.com Wed Dec 7 09:02:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0890F3B0B09 for ; Wed, 7 Dec 2005 09:02:19 -0500 (EST) 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 06565-05 for ; Wed, 7 Dec 2005 09:02:16 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by menubar.gnome.org (Postfix) with ESMTP id C2E803B078C for ; Wed, 7 Dec 2005 09:02:15 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i13so580347wra for ; Wed, 07 Dec 2005 06:02:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=l2mkTykqhKgMQIKUIhUiwXT1bW+XZZ7phffwRYirw10wCTPgxvDVaAxEdVA0UXGmGbb7lH2Rfbz4vx6HUCaQWJf+qIhhtbvQ5rb2M7BzeeYBk9aKw6ebucnWQxGmld5xVMiCiDysPoOwea6UEqn7EgtdgnzTBh1IC0xbzJMCsuM= Received: by 10.65.20.1 with SMTP id x1mr1415848qbi; Wed, 07 Dec 2005 06:02:15 -0800 (PST) Received: by 10.64.10.16 with HTTP; Wed, 7 Dec 2005 06:02:15 -0800 (PST) Message-ID: Date: Wed, 7 Dec 2005 19:32:15 +0530 From: Yash Kumar Gupta To: Stoyan karanfilov In-Reply-To: <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33322_31433362.1133964135043" References: <20051206170119.E86923B32F8@menubar.gnome.org> <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.411 tagged_above=-999 required=2 tests=[BAYES_00, MIME_BASE64_LATIN, TW_GT] X-Spam-Score: -1.411 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Problem with compiling on SUSE 10 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 14:02:19 -0000 ------=_Part_33322_31433362.1133964135043 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline VHJ5IHVzaW5nIGcrKyBpbnN0ZWFkIG9mIGdjYyBhbmQgdGhpbmdzIHdpbGwgYmUgZmluZS4KCkhv cGUgdGhpcyBoZWxwcyEhCllhc2gKCgpPbiAxMi83LzA1LCBTdG95YW4ga2FyYW5maWxvdiA8a2Fz b2Z0bmV3QHlhaG9vLmNvbT4gd3JvdGU6Cj4KPiBIaSwgSSB3cm90ZSBhIHNtYWxsIHByb2dyYW0g dGhhdCBoYXMgYmVlbiB3b3JraW5nIGFuZAo+IGNvbXBpbGluZyBvbiBTVVNFIDkuMiAod2l0aCBn Y2MgMy54KSwgYnV0IG5vdyBzYW1lCj4gcHJvZ3JhbSBkb2VzIG5vdCBsaW5rIHdlbGwgb24gU1VT RSAxMCAoZ2NjIDQpLiBIZXJlIGlzCj4gdGhlIGNvbW1hbmQgbGluZSBhbmQgZXJyb3I6Cj4KPiBn Y2MgLVdhbGwgLWcgdGVzdF93aW5kb3cuY3BwIC1vIHRlc3QgYHBrZy1jb25maWcKPiAtLWNmbGFn cyBndGsrLTIuMCAtLWxpYnMgZ3RrKy0yLjBgCj4KPiAvdG1wL2NjNE1pNFVYLm86KC5laF9mcmFt ZSsweDExKTogdW5kZWZpbmVkIHJlZmVyZW5jZQo+IHRvIGBfX2d4eF9wZXJzb25hbGl0eV92MCcK Pgo+IEkgd2lsbCBhcHByZWNpYXRlIGFueSBoZWxwLgo+Cj4gU2luY2VyZWx5OiBTdG95YW4gS2Fy YW5maWxvdgo+Cj4KPgo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f Xwo+IFlhaG9vISBEU0wgliBTb21ldGhpbmcgdG8gd3JpdGUgaG9tZSBhYm91dC4KPiBKdXN0ICQx Ni45OS9tby4gb3IgbGVzcy4KPiBkc2wueWFob28uY29tCj4KPiBfX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IGd0ay1saXN0IG1haWxpbmcgbGlzdAo+IGd0 ay1saXN0QGdub21lLm9yZwo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZv L2d0ay1saXN0Cj4K ------=_Part_33322_31433362.1133964135043 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline PGRpdj5UcnkgdXNpbmcgZysrIGluc3RlYWQgb2YgZ2NjIGFuZCB0aGluZ3Mgd2lsbCBiZSBmaW5l LjwvZGl2Pgo8ZGl2PiZuYnNwOzwvZGl2Pgo8ZGl2PkhvcGUgdGhpcyBoZWxwcyEhPC9kaXY+Cjxk aXY+WWFzaDxicj48YnI+Jm5ic3A7PC9kaXY+CjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1b3Rl Ij5PbiAxMi83LzA1LCA8YiBjbGFzcz0iZ21haWxfc2VuZGVybmFtZSI+U3RveWFuIGthcmFuZmls b3Y8L2I+ICZsdDs8YSBocmVmPSJtYWlsdG86a2Fzb2Z0bmV3QHlhaG9vLmNvbSI+a2Fzb2Z0bmV3 QHlhaG9vLmNvbTwvYT4mZ3Q7IHdyb3RlOjwvc3Bhbj4KPGJsb2NrcXVvdGUgY2xhc3M9ImdtYWls X3F1b3RlIiBzdHlsZT0iUEFERElORy1MRUZUOiAxZXg7IE1BUkdJTjogMHB4IDBweCAwcHggMC44 ZXg7IEJPUkRFUi1MRUZUOiAjY2NjIDFweCBzb2xpZCI+SGksIEkgd3JvdGUgYSBzbWFsbCBwcm9n cmFtIHRoYXQgaGFzIGJlZW4gd29ya2luZyBhbmQ8YnI+Y29tcGlsaW5nIG9uIFNVU0UgOS4yICh3 aXRoIGdjYyAzLngpLCBidXQgbm93IHNhbWUKPGJyPnByb2dyYW0gZG9lcyBub3QgbGluayB3ZWxs IG9uIFNVU0UgMTAgKGdjYyA0KS4gSGVyZSBpczxicj50aGUgY29tbWFuZCBsaW5lIGFuZCBlcnJv cjo8YnI+PGJyPmdjYyAtV2FsbCAtZyB0ZXN0X3dpbmRvdy5jcHAgLW8gdGVzdCBgcGtnLWNvbmZp Zzxicj4tLWNmbGFncyBndGsrLTIuMCAtLWxpYnMgZ3RrKy0yLjBgPGJyPjxicj4vdG1wL2NjNE1p NFVYLm86KC5laF9mcmFtZSsweDExKTogdW5kZWZpbmVkIHJlZmVyZW5jZQo8YnI+dG8gYF9fZ3h4 X3BlcnNvbmFsaXR5X3YwJzxicj48YnI+SSB3aWxsIGFwcHJlY2lhdGUgYW55IGhlbHAuPGJyPjxi cj5TaW5jZXJlbHk6IFN0b3lhbiBLYXJhbmZpbG92PGJyPjxicj48YnI+PGJyPl9fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXzxicj5ZYWhvbyEgRFNMIJYgU29tZXRoaW5n IHRvIHdyaXRlIGhvbWUgYWJvdXQuPGJyPkp1c3QgJDE2Ljk5L21vLiBvciBsZXNzLgo8YnI+PGEg aHJlZj0iaHR0cDovL2RzbC55YWhvby5jb20iPmRzbC55YWhvby5jb208L2E+PGJyPjxicj5fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXzxicj5ndGstbGlzdCBt YWlsaW5nIGxpc3Q8YnI+PGEgaHJlZj0ibWFpbHRvOmd0ay1saXN0QGdub21lLm9yZyI+Z3RrLWxp c3RAZ25vbWUub3JnPC9hPjxicj48YSBocmVmPSJodHRwOi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1h bi9saXN0aW5mby9ndGstbGlzdCI+Cmh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3Rp bmZvL2d0ay1saXN0PC9hPjxicj48L2Jsb2NrcXVvdGU+PC9kaXY+PGJyPgo= ------=_Part_33322_31433362.1133964135043-- From kitana.ash@gmail.com Wed Dec 7 14:50:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org. Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89E723B3854 for ; Wed, 7 Dec 2005 14:50:54 -0500 (EST) 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 03851-09 for ; Wed, 7 Dec 2005 14:50:50 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id E91273B382C for ; Wed, 7 Dec 2005 14:50:48 -0500 (EST) Received: by zproxy.gmail.com with SMTP id z3so437312nzf for ; Wed, 07 Dec 2005 11:50:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mWgMnyuw9besNhE70aMrGLIyGMP/Bg1PvtsfYXnMxwFOJ8ImFP7GVMeHZ8lCXGN98yK+EeikgFKU/uK9LMrM97IVnHMepAkuJ3bLLxWM+pct1CsMuPZdw5ARb/1V7+cStDc9HK3MiBga40ba7fk8u0nw09xe6VYHlJ/ElUnZOJE= Received: by 10.36.25.18 with SMTP id 18mr1867139nzy; Wed, 07 Dec 2005 11:50:47 -0800 (PST) Received: by 10.36.66.17 with HTTP; Wed, 7 Dec 2005 11:50:47 -0800 (PST) Message-ID: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> Date: Wed, 7 Dec 2005 13:50:47 -0600 From: Susan Jimenez To: gtk-list@gnome.org. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2570_33193076.1133985047902" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.126 tagged_above=-999 required=2 tests=[BAYES_01, HTML_MESSAGE, PLING_PLING] X-Spam-Score: 2.126 X-Spam-Level: ** X-Spam-Flag: YES Cc: Subject: PLEASE HELP ME!!!! X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 19:50:54 -0000 ------=_Part_2570_33193076.1133985047902 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This place.....is so confusing.It started out,my just wanting to install a new GIMP....NOW I have to come to GTK to get a new Runtime Enviornment!But....how do you download it?I keep looking and looking....I know were the downloads are....but they just give me pages!!!!WTF!?!?!?! I'm used to the window popping up asking to "Save" or "Run" but all I get here is some page with all these links and stuff!!!Can someone PLEASE help me!I've never been so confused!!!! -- ~Kitana Ash~ ------=_Part_2570_33193076.1133985047902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
This place.....is so confusing.It started out,my just wanting to insta= ll a new GIMP....NOW I have to come to GTK to get a new Runtime Enviornment= !But....how do you download it?I keep looking and looking....I know were th= e downloads are....but they just give me pages!!!!WTF!?!?!?!
I'm used to the window popping up asking to "Save" or "= Run" but all I get here is some page with all these links and stuff!!!= Can someone PLEASE help me!I've never been so confused!!!!

--
~Kitana Ash~
------=_Part_2570_33193076.1133985047902-- From csaavedra@alumnos.utalca.cl Wed Dec 7 15:05:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EF723B0FE2 for ; Wed, 7 Dec 2005 15:05:35 -0500 (EST) 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 05457-04 for ; Wed, 7 Dec 2005 15:05:34 -0500 (EST) Received: from mail.inf.tu-dresden.de (mail.inf.tu-dresden.de [141.76.2.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CCB43B0F0E for ; Wed, 7 Dec 2005 15:05:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.inf.tu-dresden.de (8.12.10/8.12.10) with ESMTP id jB7K5Uup018762; Wed, 7 Dec 2005 21:05:30 +0100 (CET) Received: from mail.inf.tu-dresden.de ([127.0.0.1]) by localhost (mail.inf.tu-dresden.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18528-01; Wed, 7 Dec 2005 21:05:30 +0100 (CET) Received: from dijkstra.wh8.tu-dresden.de (B202a.WH8.tu-dresden.de [141.30.225.153]) by mail.inf.tu-dresden.de (8.12.10/8.12.10) with ESMTP id jB7K5TnW018750; Wed, 7 Dec 2005 21:05:29 +0100 (CET) From: Claudio Saavedra To: Susan Jimenez In-Reply-To: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> References: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> Content-Type: text/plain Date: Wed, 07 Dec 2005 21:05:27 +0100 Message-Id: <1133985927.19619.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd_new at inf.tu-dresden.de X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.338 tagged_above=-999 required=2 tests=[BAYES_00, PLING_PLING] X-Spam-Score: -1.338 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: PLEASE HELP ME!!!! X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 20:05:35 -0000 On Wed, 2005-12-07 at 13:50 -0600, Susan Jimenez wrote: > This place.....is so confusing.It started out,my just wanting to > install a new GIMP....NOW I have to come to GTK to get a new Runtime > Enviornment!But....how do you download it?I keep looking and > looking....I know were the downloads are....but they just give me > pages!!!!WTF!?!?!?! > I'm used to the window popping up asking to "Save" or "Run" but all I > get here is some page with all these links and stuff!!!Can someone > PLEASE help me!I've never been so confused!!!! Dear Kitana, Please breath, sit, and relax. Then, click the link above, and wait 5 seconds. http://prdownloads.sourceforge.net/gimp-win/gtk% 2B-2.6.9-setup.zip?use_mirror=switch Your "save, run" dialog will appear. Greetings, Claudio -- Claudio Saavedra From jborrone@saa.ars.usda.gov Wed Dec 7 18:08:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE9923B1944 for ; Wed, 7 Dec 2005 18:08:50 -0500 (EST) 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 21339-02 for ; Wed, 7 Dec 2005 18:08:48 -0500 (EST) Received: from saa.ars.usda.gov (saa.ars.usda.gov [199.133.64.246]) by menubar.gnome.org (Postfix) with ESMTP id 1093B3B1984 for ; Wed, 7 Dec 2005 18:08:47 -0500 (EST) Received: from (199.133.64.246) by DA32USMDGW1_AVS01.usda.gov via smtp id 6eed_e967635c_6742_11da_941f_001143d36648; Wed, 07 Dec 2005 17:00:04 +0000 Received: from SAA-GATE-MTA by saa.ars.usda.gov with Novell_GroupWise; Wed, 07 Dec 2005 18:08:44 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Wed, 07 Dec 2005 18:08:10 -0500 From: "James Borrone" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 23:08:51 -0000 I am trying to determine how to find the following files, they are not presently on my machine and ws wondering if they are downloadable. libgdk.a libglib.a libgmodule.a libgtk.a I am not a programmer, and have very limited knowledge of the UNIX/LINUX environment,, so basically if your mom wold not understand what you are writing neither would I. I am just trying to get a program to work, and it needs to find these files. Thanks James Borrone From hdnews@gawab.com Wed Dec 7 18:47:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5784E3B3617 for ; Wed, 7 Dec 2005 18:47:20 -0500 (EST) 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 24766-08 for ; Wed, 7 Dec 2005 18:47:18 -0500 (EST) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by menubar.gnome.org (Postfix) with ESMTP id E13783B2787 for ; Wed, 7 Dec 2005 18:47:17 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr12.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB7NlGJL098795 for ; Thu, 8 Dec 2005 00:47:17 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jB7NlFfo008026 for ; Thu, 8 Dec 2005 00:47:16 +0100 Message-ID: <4397747F.7080403@gawab.com> Date: Thu, 08 Dec 2005 00:47:11 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: reference count of textbuffer increases with each paste? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 23:47:20 -0000 L.S., I'm experiencing the following on WIN32: When I do Copy; Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste From within the same gtktextbuffer, I see a dramatic increase of the reference count of the GtkTextBuffer. If I do analogous: Copy from notepad; Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste I see no increase of the reference count at all. Is this a feature or a bug of GtkTextBuffer? Best whishes, Hans Oesterholt-Dijkema From xyberblue@gmail.com Wed Dec 7 20:51:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9B43B27B6 for ; Wed, 7 Dec 2005 20:51:45 -0500 (EST) 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 32608-06 for ; Wed, 7 Dec 2005 20:51:43 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by menubar.gnome.org (Postfix) with ESMTP id 3D8803B27DE for ; Wed, 7 Dec 2005 20:51:43 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 67so877720wri for ; Wed, 07 Dec 2005 17:51:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=k2H24N/572wmkB+oZDwzGRnJKOpUPaBgLyy7ZpVpbCYk8YMUOFxOaM+Rrp19xOTGisrY/0vyc8jKpg3t7hLQtRm0CqMcIO1ATyac0axFJ/XjA7nrrfbAN8nQy+nbU2Rc9u/s+GnffGmm63yy31T9I0CGL0eDAAgBfA87hIcxeB8= Received: by 10.54.135.3 with SMTP id i3mr1313878wrd; Wed, 07 Dec 2005 17:51:42 -0800 (PST) Received: by 10.54.156.19 with HTTP; Wed, 7 Dec 2005 17:51:42 -0800 (PST) Message-ID: <45ea3f390512071751k2c954d0xf0cf19b377aaeef5@mail.gmail.com> Date: Thu, 8 Dec 2005 09:51:42 +0800 From: Xyber Blue To: James Borrone In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6229_18974535.1134006702458" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 01:51:45 -0000 ------=_Part_6229_18974535.1134006702458 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Those are the static libraries for gtk and glib. You can find these files o= n /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk. You can create these files by downloading the gtk source at www.gtk.org On 12/8/05, James Borrone wrote: > > I am trying to determine how to find the following files, they are not > presently on my machine and ws wondering if they are downloadable. > > libgdk.a > libglib.a > libgmodule.a > libgtk.a > > I am not a programmer, and have very limited knowledge of the UNIX/LINUX > environment,, so basically if your mom wold not understand what you are > writing neither would I. I am just trying to get a program to work, and > it needs to find these files. > > Thanks > > James Borrone > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ------=_Part_6229_18974535.1134006702458 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Those are the static libraries for gtk and glib. You can find these files on /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk.

You can create these files by downloading the gtk source at www.gtk.org

On = 12/8/05, James Borrone < jborrone@saa.ars.usda.gov> wrote:
I am trying to determine how to find the foll= owing files, they are not
presently on my machine and ws wondering if they are downloadable.
<= br>libgdk.a
libglib.a
libgmodule.a
libgtk.a

I am not a prog= rammer, and have very limited knowledge of the UNIX/LINUX
environment,, = so basically if your mom wold not understand what you are
writing neither would I.  I am just trying to get a program t= o work, and
it needs to find these files.

Thanks

James Bor= rone
_______________________________________________
gtk-list mailing= list
gtk-list@gnome.org
http://mail.gnome.org/mail= man/listinfo/gtk-list

------=_Part_6229_18974535.1134006702458-- From igorbounov@topazelectro.ru Thu Dec 8 00:00:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 309CE3B2866 for ; Thu, 8 Dec 2005 00:00:56 -0500 (EST) 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 12529-07 for ; Thu, 8 Dec 2005 00:00:53 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id D61653B2907 for ; Thu, 8 Dec 2005 00:00:16 -0500 (EST) Received: (qmail 5763 invoked by uid 7801); 8 Dec 2005 04:55:33 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.087314 secs); 08 Dec 2005 04:55:33 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.087314 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 8 Dec 2005 04:55:32 -0000 Message-ID: <4397BDF1.6080701@topazelectro.ru> Date: Thu, 08 Dec 2005 08:00:33 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_TK] X-Spam-Score: -1.834 X-Spam-Level: Cc: Subject: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 05:00:56 -0000 Tell me, please, if there is any way to get a Win API application instance handle in a gtkmm application just as it is needed in this function: HWND MCIWndCreate(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPSTR szFile); Igor Gorbounov From sibakhan@gmail.com Thu Dec 8 04:02:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDC5E3B39C9 for ; Thu, 8 Dec 2005 04:02:43 -0500 (EST) 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 28193-02 for ; Thu, 8 Dec 2005 04:02:39 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 12B213B39BB for ; Thu, 8 Dec 2005 04:02:34 -0500 (EST) Received: by xproxy.gmail.com with SMTP id h28so881646wxd for ; Thu, 08 Dec 2005 01:02:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MK4iyhN/0eTD3x7wBboL8iwmqwCSSSGGLGO4MOQg6PcZ5lf54pVw0BbYu/uEDR7rfl4CSiPF2ky6IOncZYsDwkC/3DLqw+te5uFDCUBK56CWJuMVJcdpMbNnG26T9PW8DIEjProATN0mkYJEYwjEzztgIOhn2NMKE/eOdlJmAgM= Received: by 10.70.11.15 with SMTP id 15mr3482303wxk; Thu, 08 Dec 2005 01:02:33 -0800 (PST) Received: by 10.70.10.13 with HTTP; Thu, 8 Dec 2005 01:02:33 -0800 (PST) Message-ID: Date: Thu, 8 Dec 2005 09:02:33 +0000 From: ibrar ahmed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Question X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 09:02:44 -0000 hello all, I have problem to load a pixmap with text in combobox. i have done like this but there is warning which is write down. store =3D gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING); =09=09icon =3D gdk_pixbuf_new_from_file("Compression_Settings16.ico", &erro= r); =09=09=09gtk_list_store_append (store, &iter); =09 =09gtk_list_store_set (store, &iter, =09=09=09 PIXBUF_COL, icon, =09=09=09 TEXT_COL, "C:/", =09=09=09 -1); GLib-GObject-WARNING **: unable to set property `text' of type `gchararray' from value of type `GdkPixbuf' Output is display center of the combobox, how i can control it also. thanx for any query! Ahmed From gnome-gtk-list@m.gmane.org Thu Dec 8 07:42:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB2063B3A9F for ; Thu, 8 Dec 2005 07:42:16 -0500 (EST) 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 11951-04 for ; Thu, 8 Dec 2005 07:42:14 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 14F693B3AA3 for ; Thu, 8 Dec 2005 07:42:14 -0500 (EST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1EkL51-0001ZI-Uv for gtk-list@gnome.org; Thu, 08 Dec 2005 13:40:59 +0100 Received: from oasis.sbet.com ([193.111.204.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2005 13:40:59 +0100 Received: from met by oasis.sbet.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2005 13:40:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dmitry Met Date: Thu, 08 Dec 2005 14:09:39 +0200 Lines: 10 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: oasis.sbet.com User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: gtk and image and memory leak X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 12:42:17 -0000 Hello. I am trying to write simle gtk apllication like screensaver. I have an animated gif of size 3.8 megs with 140 frames. I need simple show this animationa in one window. After application starts, program gets all free memory (300 megs) and runs slowly. I was read all posts contain word "image", "animation" and understand that i need big amount of memory and good CPU. But what is the basic configuration of computer? I need to show in cycle 8-10 animations (animated gifs or jpegs in cycle). And maybe matter is that i am use python gtk? Thanks for any response. From emeyer@eskimo.com Wed Dec 7 14:12:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D45D3B37DC for ; Wed, 7 Dec 2005 14:12:45 -0500 (EST) 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 00798-08 for ; Wed, 7 Dec 2005 14:12:42 -0500 (EST) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.62]) by menubar.gnome.org (Postfix) with ESMTP id 835843B2942 for ; Wed, 7 Dec 2005 14:12:42 -0500 (EST) Received: from 24-136-4-5.demp-bsr1.chi-demp.il.cable.rcn.com (HELO [192.168.1.101]) ([24.136.4.5]) by smtp02.mrf.mail.rcn.net with ESMTP; 07 Dec 2005 14:12:39 -0500 X-IronPort-AV: i="3.99,226,1131339600"; d="scan'208"; a="181197978:sNHT30223896" Message-ID: <43973428.30106@eskimo.com> Date: Wed, 07 Dec 2005 13:12:40 -0600 From: Eddie Meyer User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: X-Mailman-Approved-At: Thu, 08 Dec 2005 08:34:55 -0500 Subject: Announcement: Building new C resource - There is a forum to discuss GTK+ programming X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 19:12:45 -0000 Hi all, First, a little background -- I am in the process of teaching myself how to program in C. While doing this, I decided that I would try and give back to the Internet community by building some C resources on my homepage. Note: My homepage is only a couple of months old, so don't expect too much from it at this point. I came across GTK+ as a great library to use while programming in C. I intend to add a link to the GTK+ website from my 'C Programming Page'. My website also includes a forum area (which is only one week old) -- It already had a forum dedicated to C program, but I thought you guys might like to know that I just created a dedicated forum for discussions related to GTK+ programming. Please feel free to check it out. I thought you might like to know that this resource was available. To the GTK+ team, thanks for all your hard work on this library. Thanks Eddie -- Eddie Meyer Homepage: http://www.eskimo.com/~emeyer From jborrone@saa.ars.usda.gov Thu Dec 8 12:34:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB2AB3B2A07 for ; Thu, 8 Dec 2005 12:34:58 -0500 (EST) 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 03416-09 for ; Thu, 8 Dec 2005 12:34:57 -0500 (EST) Received: from saa.ars.usda.gov (saa.ars.usda.gov [199.133.64.246]) by menubar.gnome.org (Postfix) with ESMTP id 5D83B3B2258 for ; Thu, 8 Dec 2005 12:34:56 -0500 (EST) Received: from (199.133.64.246) by DA32USMDGW1_AVS01.usda.gov via smtp id 6b22_6f8be49a_67dd_11da_9eba_001143d36648; Thu, 08 Dec 2005 11:26:12 +0000 Received: from SAA-GATE-MTA by saa.ars.usda.gov with Novell_GroupWise; Thu, 08 Dec 2005 12:34:54 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Thu, 08 Dec 2005 12:34:37 -0500 From: "James Borrone" To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part6042B6BD.0__=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: Fwd: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 17:34:59 -0000 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part6042B6BD.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --=__Part6042B6BD.0__= Content-Type: message/rfc822 Date: Thu, 08 Dec 2005 12:32:08 -0500 From: "James Borrone" To: Cc: Subject: Re: lost files Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I tried that. After installing GTK, I tried launching the program, and it came up with the same error message, that it could not find those files. I looked for the files in the installed GTK program, and could not locate them james >>> Xyber Blue 12/07/05 8:51 PM >>> Those are the static libraries for gtk and glib. You can find these files on /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk. You can create these files by downloading the gtk source at www.gtk.org On 12/8/05, James Borrone wrote: > > I am trying to determine how to find the following files, they are not > presently on my machine and ws wondering if they are downloadable. > > libgdk.a > libglib.a > libgmodule.a > libgtk.a > > I am not a programmer, and have very limited knowledge of the UNIX/LINUX > environment,, so basically if your mom wold not understand what you are > writing neither would I. I am just trying to get a program to work, and > it needs to find these files. > > Thanks > > James Borrone > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=__Part6042B6BD.0__=-- From ragnacruxer@gmail.com Thu Dec 8 17:37:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 801D43B1A8C for ; Thu, 8 Dec 2005 17:37:54 -0500 (EST) 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 24759-04 for ; Thu, 8 Dec 2005 17:37:46 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by menubar.gnome.org (Postfix) with ESMTP id 9D4FC3B1C07 for ; Thu, 8 Dec 2005 17:37:26 -0500 (EST) Received: by nproxy.gmail.com with SMTP id h2so246289nfe for ; Thu, 08 Dec 2005 14:37:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:organization:x-mailer:mime-version:content-type; b=UXX9aZr4efZWFRNJSTOxQnFyfwtmdRKFlW7FJy5AgKbVI8xSlto38qXkkXbIVSW/GBJb/3v2yNTK7XQSTDRXG6LhXyx8Hpfn6jRm6x0CBJIkbkfxpQ555kliFTlK5w+KI+fQamI9K2kWw2QmYqUoLZqSYMUYzodVg803BXzrgHU= Received: by 10.48.219.16 with SMTP id r16mr359075nfg; Thu, 08 Dec 2005 14:37:25 -0800 (PST) Received: from eleclipse ( [87.7.22.158]) by mx.gmail.com with ESMTP id r34sm740423nfc.2005.12.08.14.37.24; Thu, 08 Dec 2005 14:37:25 -0800 (PST) Date: Thu, 8 Dec 2005 23:37:24 +0100 From: Stefano Esposito To: gtk-app-devel-list@gnome.org Message-Id: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> Organization: - X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 22:37:55 -0000 --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, in my app i need to implement a spreedsheet-like widget (i.e. a GtkTreeView= with a GtkListStore which shows a number of empty lines to be filled by th= e user). Any hints? --=20 "Solo due cose sono infinite: l'universo e la stupidit=E0 umana... e per qu= anto riguarda l'universo non sono sicuro" Albert Einstein # GnuPG/PGP Key Id: 0x5646B7D4 --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmLWq2LRRrlZGt9QRAqi+AJ9aSbIIwThOQXhulkWQ6p+DiFDiSQCeLktb pquGnFCtBn/bJBAwa/qdq18= =dOzH -----END PGP SIGNATURE----- --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH-- From ragnacruxer@gmail.com Thu Dec 8 19:43:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 505B83B16F3 for ; Thu, 8 Dec 2005 19:43:40 -0500 (EST) 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 01547-04 for ; Thu, 8 Dec 2005 19:43:37 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 280FF3B1463 for ; Thu, 8 Dec 2005 19:43:36 -0500 (EST) Received: by zproxy.gmail.com with SMTP id l1so788567nzf for ; Thu, 08 Dec 2005 16:43:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:organization:x-mailer:mime-version:content-type; b=o8emjuIaLu8y53rNMJdqxDCI5fNSfV33jTNAM9O4q93zASjd59Wfz24W4lfhmmdrBoCje6JwklcCBaVPCGZ8TwU3Qtb41HpJYn+OaBEOqEbBEC9iNRcZUcHu5vGATKjcUjbzb5dYR1qJapckJTtulxi8GfwO6cjuwCqrdAH31KU= Received: by 10.64.203.5 with SMTP id a5mr3394104qbg; Thu, 08 Dec 2005 16:43:35 -0800 (PST) Received: from eleclipse ( [87.7.22.158]) by mx.gmail.com with ESMTP id o32sm723772qbe.2005.12.08.16.43.06; Thu, 08 Dec 2005 16:43:32 -0800 (PST) Date: Fri, 9 Dec 2005 01:42:55 +0100 From: Stefano Esposito To: Adrian Feiguin Message-Id: <20051209014255.7bd92b52.ragnacruxer@gmail.com> In-Reply-To: <4398C3E8.5090806@kitp.ucsb.edu> References: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> <4398C3E8.5090806@kitp.ucsb.edu> Organization: - X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 00:43:40 -0000 --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 08 Dec 2005 15:38:16 -0800 Adrian Feiguin wrote: > Check out gtksheet. It's part of gtkextra : http://gtkextra.sourceforge.n= et > Enjoy, > That's excatly what I was looking for. Thanks for the tip :) Bye Stefano --=20 "Solo due cose sono infinite: l'universo e la stupidit=E0 umana... e per qu= anto riguarda l'universo non sono sicuro" Albert Einstein # GnuPG/PGP Key Id: 0x5646B7D4 --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmNMY2LRRrlZGt9QRAnfHAKCB7PcP5fjl/fZAY7wclyjRi1hcAgCdGr5M +HKLHU/Pwai9kgvw+E0ogUA= =h04G -----END PGP SIGNATURE----- --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I-- From xyberblue@gmail.com Thu Dec 8 21:04:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6E3B0841 for ; Thu, 8 Dec 2005 21:04:16 -0500 (EST) 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 06702-10 for ; Thu, 8 Dec 2005 21:04:14 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id E29943B0A16 for ; Thu, 8 Dec 2005 21:04:13 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 67so1146548wri for ; Thu, 08 Dec 2005 18:04:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nZQKtc3AKTlDUR4TuZcy5SuDAiiXLRT4082VHQqyVy1iaMUre2pfbXMaortTZ+4IQ/VUdjHboClxiZU3byDyrehdre74GJg2305wBxq0KDgwqsEC6LR1VjjKen3IJyNMnH3+GK9wSJ8CxbzQGLA+KLrioiQ+D5pZnFWGVQEElS8= Received: by 10.54.80.1 with SMTP id d1mr3970705wrb; Thu, 08 Dec 2005 18:04:12 -0800 (PST) Received: by 10.54.156.19 with HTTP; Thu, 8 Dec 2005 18:04:12 -0800 (PST) Message-ID: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> Date: Fri, 9 Dec 2005 10:04:12 +0800 From: Xyber Blue To: James Borrone In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17764_32144746.1134093852604" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 02:04:17 -0000 ------=_Part_17764_32144746.1134093852604 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you post how you install gtk into your linux??? usually, the default is to the /usr/local/lib... Try this export LD_LIBRARY_PATH=3D{path_to_gtk_prefix}/lib On 12/9/05, James Borrone wrote: > > > > > ---------- Forwarded message ---------- > From: "James Borrone" > To: > Date: Thu, 08 Dec 2005 12:32:08 -0500 > Subject: Re: lost files > I tried that. After installing GTK, I tried launching the program, and > it came up with the same error message, that it could not find those > files. I looked for the files in the installed GTK program, and could > not locate them > > james > > >>> Xyber Blue 12/07/05 8:51 PM >>> > Those are the static libraries for gtk and glib. You can find these > files on > /usr/lib directory since linux distros bundled already these packages > and > that if you installed the gtk. > > You can create these files by downloading the gtk source at www.gtk.org > > On 12/8/05, James Borrone wrote: > > > > I am trying to determine how to find the following files, they are not > > presently on my machine and ws wondering if they are downloadable. > > > > libgdk.a > > libglib.a > > libgmodule.a > > libgtk.a > > > > I am not a programmer, and have very limited knowledge of the > UNIX/LINUX > > environment,, so basically if your mom wold not understand what you > are > > writing neither would I. I am just trying to get a program to work, > and > > it needs to find these files. > > > > Thanks > > > > James Borrone > > _______________________________________________ > > 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 > > > ------=_Part_17764_32144746.1134093852604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you post how you install gtk into your linux???

usually, the default is to the /usr/local/lib...
Try this

export LD_LIBRARY_PATH=3D{path_to_gtk_prefix}/lib
On 12/9/05, James Borrone <= jborrone@saa.ars.usda.gov&= gt; wrote:


---------- Forwarded message ----------
From: "James Borrone"= ; < jborrone@saa.ars.usda.gov&= gt;
To: <xyberblue@gmail.com>
Date: Thu, 08 Dec 2005 12:32:08 -0500
Subject: Re: lost files<= br> I tried that.  After installing GTK, I tried launching the progra= m, and
it came up with the same error message, that it could not find th= ose
files.  I looked for the files in the installed GTK progra= m, and could
not locate them

james

>>> Xyber Blue <
xyberblue@gmail.com> 12/07/05 8:51 PM &g= t;>>
Those are the static libraries for gtk and glib. You can find= these
files on
/usr/lib directory since linux distros bundled already thes= e packages
and
that if you installed the gtk.

You can create t= hese files by downloading the gtk source at www.gtk.org

On 12/8/05, James Borrone <jborrone@saa.ars.usda.gov> wrote:
>
= > I am trying to determine how to find the following files, they are not
> presently on my machine and ws wondering if they are downloadable.=
>
> libgdk.a
> libglib.a
> libgmodule.a
> li= bgtk.a
>
> I am not a programmer, and have very limited knowled= ge of the
UNIX/LINUX
> environment,, so basically if your mom wold not unde= rstand what you
are
> writing neither would I.  I am jus= t trying to get a program to work,
and
> it needs to find these fi= les.
>
> Thanks
>
> James Borrone
> _________________= ______________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>



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



------=_Part_17764_32144746.1134093852604-- From igorbounov@topazelectro.ru Fri Dec 9 00:01:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D89CC3B11A1 for ; Fri, 9 Dec 2005 00:01:44 -0500 (EST) 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 17598-03 for ; Fri, 9 Dec 2005 00:01:41 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 2B5053B10CA for ; Fri, 9 Dec 2005 00:01:40 -0500 (EST) Received: (qmail 21215 invoked by uid 7801); 9 Dec 2005 04:56:55 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.096261 secs); 09 Dec 2005 04:56:55 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.096261 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 04:56:54 -0000 Message-ID: <43990FC4.1030408@topazelectro.ru> Date: Fri, 09 Dec 2005 08:01:56 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: Subject: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 05:01:45 -0000 Hi, All! I need to implement some kind of movie player in my gtk+ win32 app. Any hints, please? Igor Gorbounov From jean.brefort@normalesup.org Fri Dec 9 02:30:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3942C3B3CA7 for ; Fri, 9 Dec 2005 02:30:17 -0500 (EST) 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 26372-01 for ; Fri, 9 Dec 2005 02:30:15 -0500 (EST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id ABF523B3CA2 for ; Fri, 9 Dec 2005 02:30:14 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id C15134AB4F; Fri, 9 Dec 2005 08:30:13 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: Xyber Blue In-Reply-To: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> References: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 09 Dec 2005 08:26:22 +0100 Message-Id: <1134113183.8441.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 07:30:17 -0000 lib*.a are static libraries which are useful when building a statistically linked executable. They are not used at run time. Many distribs ship them in dev packages. Le vendredi 09 décembre 2005 à 10:04 +0800, Xyber Blue a écrit : > Can you post how you install gtk into your linux??? > > usually, the default is to the /usr/local/lib... > Try this > > export LD_LIBRARY_PATH={path_to_gtk_prefix}/lib > On 12/9/05, James Borrone wrote: > > > > ---------- Forwarded message ---------- > From: "James Borrone" < jborrone@saa.ars.usda.gov> > To: > Date: Thu, 08 Dec 2005 12:32:08 -0500 > Subject: Re: lost files > I tried that. After installing GTK, I tried launching the > program, and > it came up with the same error message, that it could not find > those > files. I looked for the files in the installed GTK program, > and could > not locate them > > james > > >>> Xyber Blue 12/07/05 8:51 PM >>> > Those are the static libraries for gtk and glib. You can find > these > files on > /usr/lib directory since linux distros bundled already these > packages > and > that if you installed the gtk. > > You can create these files by downloading the gtk source at > www.gtk.org > > On 12/8/05, James Borrone wrote: > > > > I am trying to determine how to find the following files, > they are not > > presently on my machine and ws wondering if they are > downloadable. > > > > libgdk.a > > libglib.a > > libgmodule.a > > libgtk.a > > > > I am not a programmer, and have very limited knowledge of > the > UNIX/LINUX > > environment,, so basically if your mom wold not understand > what you > are > > writing neither would I. I am just trying to get a program > to work, > and > > it needs to find these files. > > > > Thanks > > > > James Borrone > > _______________________________________________ > > 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 > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From murrayc@murrayc.com Fri Dec 9 03:13:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 245C73B1908; Fri, 9 Dec 2005 03:13:13 -0500 (EST) 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 29441-05; Fri, 9 Dec 2005 03:13:10 -0500 (EST) Received: from webmail3.sd.dreamhost.com (webmail3.sd.dreamhost.com [64.111.100.15]) by menubar.gnome.org (Postfix) with ESMTP id 13B683B0F4F; Fri, 9 Dec 2005 03:13:10 -0500 (EST) Received: from webmail.murrayc.com (localhost [127.0.0.1]) by webmail3.sd.dreamhost.com (Postfix) with ESMTP id 0CE1C140EB; Fri, 9 Dec 2005 00:13:07 -0800 (PST) Received: from 217.72.192.194 (SquirrelMail authenticated user murrayc@murrayc.com) by webmail.murrayc.com with HTTP; Fri, 9 Dec 2005 09:13:07 +0100 (CET) Message-ID: <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> In-Reply-To: <43990FC4.1030408@topazelectro.ru> References: <43990FC4.1030408@topazelectro.ru> Date: Fri, 9 Dec 2005 09:13:07 +0100 (CET) From: "Murray Cumming" To: "Igor Gorbounov" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 08:13:13 -0000 > Hi, All! > I need to implement some kind of movie player in my gtk+ win32 app. Any > hints, please? > Igor Gorbounov You could see Totem's source code. Really, someone should work on the gstreamer C++ bindings. Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From igorbounov@topazelectro.ru Fri Dec 9 04:13:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6DB73B140B for ; Fri, 9 Dec 2005 04:13:16 -0500 (EST) 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 02016-05 for ; Fri, 9 Dec 2005 04:13:11 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 1783B3B0B51 for ; Fri, 9 Dec 2005 04:13:10 -0500 (EST) Received: (qmail 12632 invoked by uid 7801); 9 Dec 2005 09:08:25 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.090423 secs); 09 Dec 2005 09:08:25 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.090423 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 09:08:24 -0000 Message-ID: <43994AB6.2090705@topazelectro.ru> Date: Fri, 09 Dec 2005 12:13:26 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Murray Cumming References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> In-Reply-To: <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:13:16 -0000 Murray Cumming wrote: > [...] > >You could see Totem's source code. > > Thanks, i've almost forgotten about this player. >Really, someone should work on the gstreamer C++ bindings. > > > I've read recently that Arpad Gereoffy, the author of Mplayer, intended to propose the mplayer's API as a standard for movie player API in Linuxes. I've tried hard but haven't found any glimpse of documentation for mplayer API. But mplayer is a great application. What about totem - it seems to me very weak as compared with mplayer. Perhaps it just cannot implement most of gstreamer's movie features. Igor Gorbounov From igorbounov@topazelectro.ru Fri Dec 9 04:18:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3EA7E3B3CD1 for ; Fri, 9 Dec 2005 04:18:32 -0500 (EST) 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 02433-08 for ; Fri, 9 Dec 2005 04:18:28 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 110543B08EC for ; Fri, 9 Dec 2005 04:18:20 -0500 (EST) Received: (qmail 13431 invoked by uid 7801); 9 Dec 2005 09:13:36 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.087315 secs); 09 Dec 2005 09:13:36 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.087315 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 09:13:34 -0000 Message-ID: <43994BED.7080204@topazelectro.ru> Date: Fri, 09 Dec 2005 12:18:37 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> <43994AB6.2090705@topazelectro.ru> In-Reply-To: <43994AB6.2090705@topazelectro.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:18:32 -0000 Igor Gorbounov wrote: > [...] > What about totem - it seems to me very weak as compared with mplayer. > Perhaps it just > cannot implement most of gstreamer's movie features. > Sorry, it is based on xine. Igor Gorbounov From zboszor@freemail.hu Fri Dec 9 08:22:26 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 360D83B3EEA for ; Fri, 9 Dec 2005 08:22:26 -0500 (EST) 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 23980-10 for ; Fri, 9 Dec 2005 08:22:22 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id DF1D33B3E71 for ; Fri, 9 Dec 2005 08:22:21 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id E3CB5891753 for ; Fri, 9 Dec 2005 15:24:45 +0100 (CET) Message-ID: <43998C8A.3080404@freemail.hu> Date: Fri, 09 Dec 2005 14:54:18 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 13:22:26 -0000 Hi, I need to find out whether an instance of a program is already running and possibly unminimize it or bring it above any other windows, so I can prevent an application started again. Is is possible using GTK-1.2, or GTK-2.x, and how? Thanks in advance, Zoltán Böszörményi From mpsuzuki@hiroshima-u.ac.jp Fri Dec 9 09:37:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 528D23B4B22 for ; Fri, 9 Dec 2005 09:37:14 -0500 (EST) 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 31846-08 for ; Fri, 9 Dec 2005 09:37:12 -0500 (EST) Received: from localhost.localnet (P061198174230.ppp.prin.ne.jp [61.198.174.230]) by menubar.gnome.org (Postfix) with SMTP id B5D173B3F74 for ; Fri, 9 Dec 2005 09:37:08 -0500 (EST) Received: (qmail 11585 invoked by alias); 9 Dec 2005 14:36:30 -0000 Received: (qmail 11573 invoked by uid 7791); 9 Dec 2005 14:36:25 -0000 Received: from unknown (HELO centri) (127.0.0.1) by 0 with SMTP; 9 Dec 2005 14:36:25 -0000 Date: Fri, 9 Dec 2005 23:36:25 +0900 From: mpsuzuki@hiroshima-u.ac.jp To: Zoltan Boszormenyi Message-Id: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> In-Reply-To: <43998C8A.3080404@freemail.hu> References: <43998C8A.3080404@freemail.hu> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.948 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, RCVD_IN_DYNABLOCK, RCVD_IN_SORBS, TW_GT] X-Spam-Score: 0.948 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:37:16 -0000 Hi On Fri, 09 Dec 2005 14:54:18 +0100 Zoltan Boszormenyi wrote: >I need to find out whether an instance of a program is already running >and possibly unminimize it or bring it above any other windows, so >I can prevent an application started again. >Is is possible using GTK-1.2, or GTK-2.x, and how? I'm afraid gtk does not have support for that. I think it's role of task manager for desktop (possibly you want to know whether the program is running on same desktop - not on same computer, and reordering of window is the role of desktop manager, not GUI toolkit like GTK). Thus, there might be something helpful in GNOME. However, I don't know you want to use GNOME or anything else. Regards, mpsuzuki From ygupta@gmail.com Fri Dec 9 09:52:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 199BA3B4000 for ; Fri, 9 Dec 2005 09:52:28 -0500 (EST) 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 00977-05 for ; Fri, 9 Dec 2005 09:52:26 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by menubar.gnome.org (Postfix) with ESMTP id 21F803B3FC8 for ; Fri, 9 Dec 2005 09:52:26 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 58so1504587wri for ; Fri, 09 Dec 2005 06:52:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RfetHiOKs2vHO9JrkmLgkATokfbWMNcmssD9dwHDIKY0V8gA3buTs/4I4+q7G+U5AY7HhIyQgWiTxjRpw5m+dT6w/iOlI50MKgS/4FqBJyVFTLG+qAnxCa+bg7ks0d1YIPpKZAbATkQ1poiUdY7nAvxz46u+Rvl9lhkj8QECK+U= Received: by 10.64.184.10 with SMTP id h10mr3936472qbf; Fri, 09 Dec 2005 06:52:25 -0800 (PST) Received: by 10.64.10.16 with HTTP; Fri, 9 Dec 2005 06:52:25 -0800 (PST) Message-ID: Date: Fri, 9 Dec 2005 20:22:25 +0530 From: Yash Kumar Gupta To: Zoltan Boszormenyi In-Reply-To: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5074_28041844.1134139945341" References: <43998C8A.3080404@freemail.hu> <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:52:28 -0000 ------=_Part_5074_28041844.1134139945341 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is possible using the Xlibrary , that is to say, we need to get the registered handle of any application (if already running) from the X server and if it is not available, we need to register the same so that future instances can find it out by querying X server. Most of the GUI applications on linux use this mechanism to get the already running instance of the same application so that any future instance can connect to it and present the window again to the user. -Yash On 12/9/05, mpsuzuki@hiroshima-u.ac.jp wrote: > > Hi > > On Fri, 09 Dec 2005 14:54:18 +0100 > Zoltan Boszormenyi wrote: > >I need to find out whether an instance of a program is already running > >and possibly unminimize it or bring it above any other windows, so > >I can prevent an application started again. > >Is is possible using GTK-1.2, or GTK-2.x, and how? > > I'm afraid gtk does not have support for that. > I think it's role of task manager for desktop > (possibly you want to know whether the program > is running on same desktop - not on same computer, > and reordering of window is the role of desktop > manager, not GUI toolkit like GTK). > Thus, there might be something helpful in GNOME. > However, I don't know you want to use GNOME or > anything else. > > Regards, > mpsuzuki > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ------=_Part_5074_28041844.1134139945341 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
This is possible using the Xlibrary , that is to say, we need to get t= he registered handle of any application (if already running) from the X ser= ver and if it is not available, we need to register the same so that future= instances can find it out by querying X server.
Most of the GUI applications on linux use this mechanism to get the al= ready running instance of the same application so that any future instance = can connect to it and present the window again to the user.
 
-Yash

 
On 12/9/05, = mpsuzuki@hiroshima-u.ac.jp <mpsuzuki@hiroshima-= u.ac.jp > wrote:
Hi

On Fri, 09 Dec 2005 14= :54:18 +0100
Zoltan Boszormenyi < zboszor@freemail.hu> wrote:
>I need to find out whether an ins= tance of a program is already running
>and possibly unminimize it or = bring it above any other windows, so
>I can prevent an application st= arted again.
>Is is possible using GTK-1.2, or GTK-2.x, and how?

I'm afrai= d gtk does not have support for that.
I think it's role of task manager = for desktop
(possibly you want to know whether the program
is running= on same desktop - not on same computer,
and reordering of window is the role of desktop
manager, not GUI too= lkit like GTK).
Thus, there might be something helpful in GNOME.
Howe= ver, I don't know you want to use GNOME or
anything else.

Regards= ,
mpsuzuki
_______________________________________________
gtk-list= mailing list
gtk-list@gnome.org
http://ma= il.gnome.org/mailman/listinfo/gtk-list

------=_Part_5074_28041844.1134139945341-- From zboszor@freemail.hu Fri Dec 9 10:21:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1036D3B4BDA for ; Fri, 9 Dec 2005 10:21:15 -0500 (EST) 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 03556-10 for ; Fri, 9 Dec 2005 10:21:13 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id 8A4AA3B3FE8 for ; Fri, 9 Dec 2005 10:21:12 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id 439F78913D8; Fri, 9 Dec 2005 17:23:45 +0100 (CET) Message-ID: <4399A86B.6020101@freemail.hu> Date: Fri, 09 Dec 2005 16:53:15 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: mpsuzuki@hiroshima-u.ac.jp References: <43998C8A.3080404@freemail.hu> <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> In-Reply-To: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 15:21:15 -0000 Hi, mpsuzuki@hiroshima-u.ac.jp írta: >Hi > >On Fri, 09 Dec 2005 14:54:18 +0100 >Zoltan Boszormenyi wrote: > > >>I need to find out whether an instance of a program is already running >>and possibly unminimize it or bring it above any other windows, so >>I can prevent an application started again. >>Is is possible using GTK-1.2, or GTK-2.x, and how? >> >> > >I'm afraid gtk does not have support for that. >I think it's role of task manager for desktop >(possibly you want to know whether the program > is running on same desktop - not on same computer, > and reordering of window is the role of desktop > manager, not GUI toolkit like GTK). > > Yes, I would like to know whether a program is started on the same X display. >Thus, there might be something helpful in GNOME. >However, I don't know you want to use GNOME or >anything else. > > And yes again, the program I would like to modify uses the gnome 1.x libraries and was created with Glade 0.6.x. The program's main window is a GnomeApp, and there are two properties (WM Class and WM Name) that I can set in Glade. I guess these could be used to find out whether a window is registered (still running) on the X display I try to run the second instance. The question is how? Best regards, Zoltán Böszörményi From yinglcs@aim.com Fri Dec 9 12:05:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CAD243B4D37 for ; Fri, 9 Dec 2005 12:05:17 -0500 (EST) 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 13471-04 for ; Fri, 9 Dec 2005 12:05:15 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id B82BE3B4D51 for ; Fri, 9 Dec 2005 12:02:26 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.111.58452867 (57870) for ; Fri, 9 Dec 2005 12:02:22 -0500 (EST) Received: from MBLK-M17 (mblk-m17.mblk.aol.com [64.12.136.50]) by air-ia01.mail.aol.com (v108.32) with ESMTP id MAILINIA14-e20e4399b89b16f; Fri, 09 Dec 2005 12:02:22 -0500 Date: Fri, 09 Dec 2005 12:02:19 -0500 From: yinglcs@aim.com Message-Id: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by MBLK-M17.sysops.aol.com (64.12.136.50) with HTTP (WebMailUI); Fri, 09 Dec 2005 12:02:19 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 64.12.136.50 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_01, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -0.659 X-Spam-Level: Subject: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:05:18 -0000 Hi, Can someone please tell me how t reparent a widget from a GdkWindow to a GdkDrawable? Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mleisher@crl.NMSU.Edu Fri Dec 9 12:07:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 832113B4D6C for ; Fri, 9 Dec 2005 12:07:59 -0500 (EST) 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 13917-03 for ; Fri, 9 Dec 2005 12:07:57 -0500 (EST) Received: from crl.NMSU.Edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id 39E333B4DA2 for ; Fri, 9 Dec 2005 12:06:30 -0500 (EST) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.NMSU.Edu (8.13.4/8.13.4) with ESMTP id jB9H67Y4027972; Fri, 9 Dec 2005 10:06:08 -0700 (MST) Message-ID: <4399BA00.9080405@crl.nmsu.edu> Date: Fri, 09 Dec 2005 10:08:16 -0700 From: Mark Leisher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zoltan Boszormenyi References: <43998C8A.3080404@freemail.hu> In-Reply-To: <43998C8A.3080404@freemail.hu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1206/Thu Dec 8 12:56:45 2005 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:07:59 -0000 Zoltan Boszormenyi wrote: > Hi, > > I need to find out whether an instance of a program is already running > and possibly unminimize it or bring it above any other windows, so > I can prevent an application started again. > Is is possible using GTK-1.2, or GTK-2.x, and how? > The following procedure is an old X11 trick. It will not work on Windows. 0. Add code to your program to handle GDK_SELECTION_CLEAR events. See 5 below for what this code should do. 1. At startup of the program, create an atom with gdk_intern_atom(). 2. Use gdk_selection_owner_get() on the atom. 3. If the selection owner is NULL, then call gdk_selection_owner_set() with the time_ parameter set to GDK_CURRENT_TIME and the send_event parameter set to FALSE. 4. Else, there is a valid owner of the atom, so the program is already running. Assert ownership of the selection with gdk_selection_owner_set() again. This causes the running application to lose ownership and call the code to handle GDK_SELECTION_CLEAR events. Then exit. 5. The code to handle GDK_SELECTION_CLEAR events should do 2 things: A. If minimized, unminimize. B. Assert ownership of the selection again. This doesn't work on Windows because the GDK selection API apparently only works within applications and not globally like they do in X11. -- --------------------------------------------------------------------------- Mark Leisher Computing Research Lab A sneer is the weapon of the weak. New Mexico State University -- James Russell Lowell (1819-1891) Box 30001, MSC 3CRL Las Cruces, NM 88003 From tristan.van.berkom@gmail.com Fri Dec 9 12:23:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30D1A3B4CD1 for ; Fri, 9 Dec 2005 12:23:21 -0500 (EST) 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 15323-09 for ; Fri, 9 Dec 2005 12:23:16 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by menubar.gnome.org (Postfix) with ESMTP id 8728A3B1EF4 for ; Fri, 9 Dec 2005 12:23:11 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 69so1309032wri for ; Fri, 09 Dec 2005 09:23:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=oNvEpTDc/HribKaRHC28vvb2UQlwyodLIMgrB5nG6OIjptMRb8H/ckOoxFSRyJd3eLycOHdXFhy1/1O5IUMq3EGOuKXt/XWYyLXGLSU/KWIkFw7mKhEnIQ00Oc6vyxJKKOdu0yR7IMZBHbSvAE76FB5JokufLCgf6EHnjE809Y0= Received: by 10.64.184.10 with SMTP id h10mr4087608qbf; Fri, 09 Dec 2005 09:23:10 -0800 (PST) Received: from ?70.48.173.143? ( [70.48.173.143]) by mx.gmail.com with ESMTP id m3sm164948qbe.2005.12.09.09.23.02; Fri, 09 Dec 2005 09:23:05 -0800 (PST) Message-ID: <4399BEBD.6040009@gnome.org> Date: Fri, 09 Dec 2005 12:28:29 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> In-Reply-To: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:23:22 -0000 yinglcs@aim.com wrote: > Hi, > > Can someone please tell me how t reparent a widget from a GdkWindow to a > GdkDrawable? You cant, a GdkWindow & GdkDrawable can not be parents of any objects since they are not GtkContainers. What exactly do you want to do ? Cheers, -Tristan From flaviothunder@terra.com.br Fri Dec 9 12:29:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59ACB3B070F for ; Fri, 9 Dec 2005 12:29:11 -0500 (EST) 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 16167-09 for ; Fri, 9 Dec 2005 12:29:09 -0500 (EST) Received: from loncoche.terra.com.br (loncoche.terra.com.br [200.176.10.196]) by menubar.gnome.org (Postfix) with ESMTP id A84BA3B0E11 for ; Fri, 9 Dec 2005 12:29:08 -0500 (EST) Received: from mubende.terra.com.br (mubende.terra.com.br [200.176.10.8]) by loncoche.terra.com.br (Postfix) with ESMTP id 3430AD503E9; Fri, 9 Dec 2005 15:29:07 -0200 (BRST) X-Terra-Karma: -2% X-Terra-Hash: 6bb09e581ba1b1ffe7d6b79c61089ecf Received-SPF: pass (mubende.terra.com.br: domain of terra.com.br designates 200.176.10.8 as permitted sender) client-ip=200.176.10.8; envelope-from=flaviothunder@terra.com.br; helo=[192.168.1.133]; Received: from [192.168.1.133] (unknown [200.196.242.80]) (authenticated user flaviothunder) by mubende.terra.com.br (Postfix) with ESMTP id D531B2480FA; Fri, 9 Dec 2005 15:29:06 -0200 (BRST) Message-ID: <4399BEE1.7060206@terra.com.br> Date: Fri, 09 Dec 2005 15:29:05 -0200 From: =?ISO-8859-1?Q?Fl=E1vio_Alberto_Lopes_Soares?= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> In-Reply-To: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:29:11 -0000 In GTK FAQ theres an explanation about this look at : http://www.gtk.org/faq/#AEN636 Good luck Flavio Alberto Lopes Soares flaviothunder@terra.com.br yinglcs@aim.com escreveu: > Hi, > > Can someone please tell me how t reparent a widget from a GdkWindow to > a GdkDrawable? > > Thank you. > ________________________________________________________________________ > Check Out the new free AIM(R) Mail -- 2 GB of storage and > industry-leading spam and email virus protection. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From yinglcs@aim.com Fri Dec 9 16:59:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79B8A3B0F4E for ; Fri, 9 Dec 2005 16:59:23 -0500 (EST) 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 05890-10 for ; Fri, 9 Dec 2005 16:59:17 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id 730953B0F6C for ; Fri, 9 Dec 2005 16:59:16 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.bf.65e569ed (57873) for ; Fri, 9 Dec 2005 16:59:09 -0500 (EST) Received: from mblk-r33 (mblk-r33.mblk.aol.com [152.163.179.23]) by air-ia02.mx.aol.com (v108.32) with ESMTP id MAILINIA23-e2114399fe2dba; Fri, 09 Dec 2005 16:59:09 -0500 Date: Fri, 09 Dec 2005 16:59:09 -0500 From: yinglcs@aim.com Message-Id: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by mblk-r33.sysops.aol.com (152.163.179.23) with HTTP (WebMailUI); Fri, 09 Dec 2005 16:59:09 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 152.163.179.23 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.123 tagged_above=-999 required=2 tests=[BAYES_00, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -1.123 X-Spam-Level: Subject: How can I save the pixel of a GdkWindow/GdkWidget to a file? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 21:59:23 -0000 Hi, Can someone please tell me can I save the pixel of a GdkWindow/GdkWidget to a file? The only think I find is saving from a GdkDrawable (the 2 functions below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow? GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL, gd, NULL, 0, 0, 0, 0, w, h); gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL); Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mclasen@redhat.com Fri Dec 9 19:09:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 18D8A3B0836; Fri, 9 Dec 2005 19:09:10 -0500 (EST) 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 16308-03; Fri, 9 Dec 2005 19:09:08 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 617263B095C; Fri, 9 Dec 2005 19:09:07 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBA097AS009625; Fri, 9 Dec 2005 19:09:07 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA091V31551; Fri, 9 Dec 2005 19:09:01 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA091428721; Fri, 9 Dec 2005 19:09:01 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Dec 2005 19:09:00 -0500 Message-Id: <1134173340.3214.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_XD] X-Spam-Score: -1.834 X-Spam-Level: Cc: Subject: GTK+ 2.8.9 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 00:09:13 -0000 GTK+ 2.8.9 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.9.tar.bz2 md5sum: e7a94132ae6353106c80cd4a1106a368 gtk+-2.8.9.tar.gz md5sum: 3f89f4f32d60d39e8d1d0fde241d629c This is a bugfix release in the 2.8.x series. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.8 to GTK+ 2.8.9 ================================================= * Bugs fixed: 321560 File chooser filter behaves weird [Bogdan Nicula, Federico Mena Quintero] 317999 2.8.4 to 2.8.6: sound-juicer crash, fileselector assertions [Sebastian Bacher] 322569 On unsetting the Model, GtkTreeView does not clear it's associated TreeSelection [Milosz Derezynski] 322998 Crash on selecting a file of null mime-type [Sadrul Habib Chowdhury] 323024 gtktoolbutton leaks a pixbuf [Paolo Borelli] 323209 GdkEvent leaked in gtktreeview.c / gtk_tree_view_key_press [Crispin Flowerday] 323073 Typo in trap_activate_cb() [Sadrul Habib Chowdhury] 323045 gtkcalendar.c: The identifier is already declared. [Kazuki Iwamoto] 323386 gtk_menu_attach_to_widget() does not take NULL detacher [Jorn Baayen] 307196 Unhinted fonts are measured incorrectly and drawing problems occur as a result [Alex Jones, Behdad Esfahbod] 316310 unwanted scrolling in recent gtk [Paolo Borelli] 322019 Toolbars without icons are invisible in icon-only mode [Ross Burton] 323077 Search-entry in the TreeView not working properly [Sadrul Habib Chowdhury] 323475 gtktoolbutton.c:562: warning: 'image' is used uninitialized in this function [Ross Burton] 323577 reference count of textbuffer increases with each paste 323629 gtk_selection_data_get_uris leaks memory [Markku Vire] * Other changes - Remove GMemChunk from public header files to support building against GLib 2.10 [Matthias Clasen] - Report errors in option parsing [Matthias] - Merge upstream xdgmime changes to handle duplicate glob patterns [Matthias] Matthias Clasen From mclasen@redhat.com Fri Dec 9 19:17:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82BFC3B11D0; Fri, 9 Dec 2005 19:17:09 -0500 (EST) 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 17382-03; Fri, 9 Dec 2005 19:17:06 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 10E473B102C; Fri, 9 Dec 2005 19:17:04 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBA0H3hV011399; Fri, 9 Dec 2005 19:17:03 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA0H3V00433; Fri, 9 Dec 2005 19:17:03 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA0H3429253; Fri, 9 Dec 2005 19:17:03 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Dec 2005 19:17:02 -0500 Message-Id: <1134173822.3214.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: GLib 2.9.1 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 00:17:09 -0000 GLib 2.9.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.9/ glib-2.9.1.tar.bz2 md5sum: f4817f7e0546f8d4b37c20b6ceca69ad glib-2.9.1.tar.gz md5sum: 2f214411d591a1ba910fb3acc356903c This is the second development release leading up to GLib 2.10. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.8. If you have problems, you'll need to reinstall GLib 2.8.4. * GLib 2.10 will be source and binary compatible with the GLib 2.8.x series; however, the new API additions in GLib 2.9.1 are not yet finalized, so there may be incompatibities between this release and the final 2.10 release. * Remaining issues for GLib 2.10 can be found with the following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=glib&target_milestone=2.10 +API+Freeze&&target_milestone=2.10 +Freeze&bug_status=NEW&bug_status=UNCONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.9.0 to GLib 2.9.1 ================================================= * Memory management - The slice allocator is implemented [Tim Janik] - g_slice_free_chain() has been renamed to g_slice_free_chain_with_offset() [Tim, Behdad Esfahbod] - Mem chunks are deprecated [Matthias Clasen] * Data structures - Hash tables are refcounted, and have a boxed type [Tim] * Thread support - Support for Solaris threads has been removed [Sebastian Wilhelmi, Andrew Paprocki] - g_async_queue_sort(), g_async_queue_push_sorted() have been added to allow GAsyncQueue to be used as a priority queue, together with the corresponding _unlocked variants [Martyn Russell] * GObject: - The concept of a floating initial reference has been moved from GtkObject to GObject [Tim] * Win32 changes: - Make g_rename() replace existing files [Tor Lillqvist] * Misc new API: - G_GUINT64_CONSTANT macro to define guint64 constants [Andrew Paprocki] - G_GNUC_WARN_UNUSED_RESULT macro to instruct the compiler to emit a warning if the value returned by a function is ignored. [Arjan van de Ven, Alex Larsson] - GList and GSList now have sort functions which take an extra user data argument [Martyn Russell] - g_param_spec_ref_sink() has been added for consistency [Tim] * $LOGNAME is respected when determining user data. [Laszlo Peter] * Other changes and bug fixes [Tim, Matthias, Behdad, Christian Persch, Benedikt Meurer, Andrew Paprocki, Kazuki Iwamoto, Alexis S. L. Carvalho, Stanislav Brabec, Andreas Schwab, Kalle Vahlman] * Documentation - Deprecation warnings carry version information [Matthias] - The slice allocator has been documented [Matthias, Tim] - Other improvements [Morten Welinder] Matthias Clasen From aolexiy@gmail.com Sat Dec 10 05:45:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 594A43B131E for ; Sat, 10 Dec 2005 05:45:54 -0500 (EST) 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 26544-04 for ; Sat, 10 Dec 2005 05:45:52 -0500 (EST) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.203]) by menubar.gnome.org (Postfix) with ESMTP id 86BC43B0937 for ; Sat, 10 Dec 2005 05:45:51 -0500 (EST) Received: by uproxy.gmail.com with SMTP id a2so75503ugf for ; Sat, 10 Dec 2005 02:45:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ucCXue9gyoWUB9LItJYUSjcc1oDkcAsZpZIbHR6Ui17h9/g1S5bR7e4uBMpIQYMDdMRcaL8aOBJmVNCvburDnVjKhRw/CJJh2R5EOYV5C3N8T/xGIf0VOpMKPKRI1DfkUc9dcs9B90JgrJeKhv/53Qs2mbz8lbbidGQ9O4dkDIU= Received: by 10.66.184.5 with SMTP id h5mr271928ugf; Sat, 10 Dec 2005 02:45:50 -0800 (PST) Received: from ?82.207.125.179? ( [82.207.125.179]) by mx.gmail.com with ESMTP id j3sm1046882ugd.2005.12.10.02.45.49; Sat, 10 Dec 2005 02:45:50 -0800 (PST) Message-ID: <439AB2D9.5040301@gmail.com> Date: Sat, 10 Dec 2005 12:50:01 +0200 From: Olexiy Avramchenko User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> In-Reply-To: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_XI] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: How can I save the pixel of a GdkWindow/GdkWidget to a file? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 10:45:54 -0000 yinglcs@aim.com wrote: > Hi, > > Can someone please tell me can I save the pixel of a > GdkWindow/GdkWidget to a file? > > The only think I find is saving from a GdkDrawable (the 2 functions > below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow? There's no GdkWidget. GtkWidget has a pointer to corresponding drawable: GTK_WIDGET(widget)->window It can be NULL, however. > GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL, > gd, NULL, 0, 0, 0, 0, w, h); > > gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL); I'd do the following: gboolean save_pixels (GtkWidget *widget, const gchar *fname) { GdkPixbuf *pixbuf; g_return_val_if_fail (GTK_IS_WIDGET (widget) && fname != NULL, FALSE); if (widget->window != NULL) { gboolean res; /* it's typical for the widget to have no its own window, so you must specify the region it covers in the parent's window such an information is stored in GtkWidget::allocation */ pixbuf = gdk_pixbuf_get_from_drawable ( NULL, widget->window, NULL, widget->allocation.x, widget->allocation.y, 0, 0, widget->allocation.width, widget->allocation.height, ); g_return_val_if_fail (pixbuf != NULL, FALSE); res = gdk_pixbuf_save (pixbuf, fname, "png", NULL); g_object_unref (pixbuf); return res; } return FALSE; } PS: I've typed the code just in mail client, some typos are possible ;) Olexiy From afeiguin@kitp.ucsb.edu Thu Dec 8 18:39:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45E403B06D4; Thu, 8 Dec 2005 18:39:55 -0500 (EST) 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 29286-01; Thu, 8 Dec 2005 18:39:52 -0500 (EST) Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by menubar.gnome.org (Postfix) with ESMTP id 0356A3B1834; Thu, 8 Dec 2005 18:39:52 -0500 (EST) Received: from [192.168.2.2] (really [68.227.87.239]) by fed1rmmtao02.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051208233709.RKKL17006.fed1rmmtao02.cox.net@[192.168.2.2]>; Thu, 8 Dec 2005 18:37:09 -0500 Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.13.13/195]); Thu, 08 Dec 2005 15:38:17 -0800 Message-ID: <4398C3E8.5090806@kitp.ucsb.edu> Date: Thu, 08 Dec 2005 15:38:16 -0800 From: Adrian Feiguin User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en To: Stefano Esposito References: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> In-Reply-To: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Dec 2005 14:07:34 -0500 Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 23:39:55 -0000 Check out gtksheet. It's part of gtkextra : http://gtkextra.sourceforge.net Enjoy, Stefano Esposito wrote: >Hi all, > >in my app i need to implement a spreedsheet-like widget (i.e. a GtkTreeView with a GtkListStore which shows a number of empty lines to be filled by the user). Any hints? > > > >------------------------------------------------------------------------ > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/195 - Release Date: 12/8/2005 From murrayc@murrayc.com Sat Dec 10 15:13:57 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1B5183B2CD8; Sat, 10 Dec 2005 15:13:57 -0500 (EST) 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 09070-04; Sat, 10 Dec 2005 15:13:54 -0500 (EST) Received: from jareth.dreamhost.com (jareth.dreamhost.com [66.33.198.201]) by menubar.gnome.org (Postfix) with ESMTP id 037BB3B1EAA; Sat, 10 Dec 2005 15:13:54 -0500 (EST) Received: from [192.168.1.101] (p5498DE13.dip.t-dialin.net [84.152.222.19]) by jareth.dreamhost.com (Postfix) with ESMTP id 3FDDA78090; Sat, 10 Dec 2005 12:12:06 -0800 (PST) From: Murray Cumming To: Igor Gorbounov In-Reply-To: <43994BED.7080204@topazelectro.ru> References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> <43994AB6.2090705@topazelectro.ru> <43994BED.7080204@topazelectro.ru> Content-Type: text/plain Date: Sat, 10 Dec 2005 21:11:49 +0100 Message-Id: <1134245509.8150.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 20:13:57 -0000 On Fri, 2005-12-09 at 12:18 +0300, Igor Gorbounov wrote: > Igor Gorbounov wrote: > > > [...] > > What about totem - it seems to me very weak as compared with mplayer. > > Perhaps it just > > cannot implement most of gstreamer's movie features. > > > Sorry, it is based on xine. No, it uses gstreamer by default. For questions about gstreamer, there is a gstreamer mailing list. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From raphtee@gmail.com Sat Dec 10 20:43:30 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBE353B525C for ; Sat, 10 Dec 2005 20:43:29 -0500 (EST) 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 01916-01 for ; Sat, 10 Dec 2005 20:43:27 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id F09373B2EAE for ; Sat, 10 Dec 2005 20:43:26 -0500 (EST) Received: by xproxy.gmail.com with SMTP id t5so826696wxc for ; Sat, 10 Dec 2005 17:43:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=QHE9mfh9JyN3bJ8nvQwRg2YafbtZDNN6imZU7uwXy5DpBg9Kx6pv982ik9Uw01Lkw8AQz+NE90rzxpqbTAjaq9XQhw4wcL9CmW3spsbfeR/ynv5HlJqOwQpEAh25i/+x30hfAb9am2sipKe1sHxm3sAHFhwuGNpCRn1ALQUAP44= Received: by 10.70.100.17 with SMTP id x17mr6527762wxb; Sat, 10 Dec 2005 17:43:26 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id i39sm6290765wxd.2005.12.10.17.43.25; Sat, 10 Dec 2005 17:43:25 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Dec 2005 20:43:21 -0500 Message-Id: <1134265401.3160.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: GIOChannel issues X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 01:43:30 -0000 Hello, I am trying to use GIOChannel in order to use sockets in a simple way (I am trying to get notification on events like read and disconnect). Anyway, here is the code that creates the GIOCHannel void on_ListenButton_clicked (GtkButton *button, gpointer user_data) { GtkWidget *text = lookup_widget(GTK_WIDGET(button), "StatusText"); // create the listening socket int sockfd, new_fd; struct sockaddr_in my_addr; struct sockaddr_in their_addr; int sin_size; if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); exit(1); } my_addr.sin_family = AF_INET; my_addr.sin_port = htons(1352); my_addr.sin_addr.s_addr = INADDR_ANY; bzero(&(my_addr.sin_zero), 8); if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) == -1) { perror("bind"); exit(1); } if (listen(sockfd, 5) == -1) { perror("listen"); exit(1); } gtk_entry_set_text(GTK_ENTRY(text), "Listening"); sin_size = sizeof(struct sockaddr_in); if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size)) == -1) { perror("accept"); } // we got a socket so set text box gtk_entry_set_text(GTK_ENTRY(text), "Connection accepted"); // now create GIOChannel from connection GIOChannel *iochannel = g_io_channel_unix_new(new_fd); // now add to main event loop GtkWidget *window = lookup_widget(GTK_WIDGET(button), "MainWindow"); g_io_add_watch(iochannel, G_IO_IN, (GIOFunc *) &ReceiveData, (gpointer) window); // now close the listener close(sockfd); } The function g_io_watch() ties to the G_IO_IN (there is data to read on the socket) event to the function ReceiveData that is defined as gboolean ReceiveData(GIOChannel *source, GIOCondition condition, gpointer data) { gchar buf[500]; int bytes_read; GtkWidget *text = NULL; GQuark quark; GError *error = NULL; gint sd; g_print("data received\n"); text = lookup_widget(GTK_WIDGET(data), "StatusText"); gtk_entry_set_text(GTK_ENTRY(text), "received data"); sd = g_io_channel_unix_get_fd(source); bytes_read = recv(sd, buf, 500, 0); if(bytes_read == -1) { g_print("error\n"); } else { buf[bytes_read] = '\0'; g_print("buf = %s\n", buf); text = lookup_widget(GTK_WIDGET(data), "ReceivedText"); gtk_entry_set_text(GTK_ENTRY(text), buf); } return TRUE; } The problem is this. If the client closes the connection then I get a flood of empty buffers and the ReceiveData() function is repeatedly called. What could cause this weird behavior? Travis Miller From zboszor@freemail.hu Sun Dec 11 12:05:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 653013B168F for ; Sun, 11 Dec 2005 12:05:55 -0500 (EST) 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 14045-06 for ; Sun, 11 Dec 2005 12:05:52 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id 748F33B12B8 for ; Sun, 11 Dec 2005 12:05:33 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id C66BA8918B6; Sun, 11 Dec 2005 19:08:12 +0100 (CET) Message-ID: <439C63EF.2050402@freemail.hu> Date: Sun, 11 Dec 2005 18:37:51 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: Mark Leisher References: <43998C8A.3080404@freemail.hu> <4399BA00.9080405@crl.nmsu.edu> In-Reply-To: <4399BA00.9080405@crl.nmsu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 17:05:55 -0000 Thanks for the answer, although I still have problems with this. Mark Leisher írta: > Zoltan Boszormenyi wrote: > >> Hi, >> >> I need to find out whether an instance of a program is already running >> and possibly unminimize it or bring it above any other windows, so >> I can prevent an application started again. >> Is is possible using GTK-1.2, or GTK-2.x, and how? >> > > The following procedure is an old X11 trick. It will not work on Windows. > > 0. Add code to your program to handle GDK_SELECTION_CLEAR events. See > 5 below for what this code should do. > > 1. At startup of the program, create an atom with gdk_intern_atom(). > > 2. Use gdk_selection_owner_get() on the atom. > > 3. If the selection owner is NULL, then call gdk_selection_owner_set() > with the time_ parameter set to GDK_CURRENT_TIME and the send_event > parameter set to FALSE. My problem is, the owner this call returns is always NULL. This has something to do with the fact that the actual owner is a window in another process. There is this call: GdkWindow *gdk_window_foreign_new(GdkNativeWindow anid) This GdkNativeWindow is a native X Window ID or HWND on Windows. I seem to have to call this, wrap a foreign window into a GdkWindow before gdk_selection_owner_set() can give me sensible return value. But how can I tell the XID of a window created from another process? Sorry, I don't know too much about low level Xlib programming... > 4. Else, there is a valid owner of the atom, so the program is already > running. Assert ownership of the selection with > gdk_selection_owner_set() again. This causes the running application > to lose ownership and call the code to handle GDK_SELECTION_CLEAR > events. Then exit. > > 5. The code to handle GDK_SELECTION_CLEAR events should do 2 things: > A. If minimized, unminimize. > B. Assert ownership of the selection again. > > This doesn't work on Windows because the GDK selection API apparently > only works within applications and not globally like they do in X11. From chris@cvine.freeserve.co.uk Sun Dec 11 14:25:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AF6043B1505 for ; Sun, 11 Dec 2005 14:25:40 -0500 (EST) 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 29280-01 for ; Sun, 11 Dec 2005 14:25:38 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id 9DE183B0A28 for ; Sun, 11 Dec 2005 14:25:37 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3207.me.freeserve.com (SMTP Server) with ESMTP id 5F36B9000088; Sun, 11 Dec 2005 20:25:34 +0100 (CET) Received: from boulder.homenet (user-2208.lns2-c7.dsl.pol.co.uk [84.65.168.160]) by mwinf3207.me.freeserve.com (SMTP Server) with ESMTP id 21D759000087; Sun, 11 Dec 2005 20:25:34 +0100 (CET) X-ME-UUID: 20051211192534138.21D759000087@mwinf3207.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id jBBJPSSY001382; Sun, 11 Dec 2005 19:25:28 GMT From: Chris Vine To: gtk-list@gnome.org, raphtee@gmail.com Date: Sun, 11 Dec 2005 19:25:28 +0000 User-Agent: KMail/1.9 References: <1134265401.3160.7.camel@localhost.localdomain> In-Reply-To: <1134265401.3160.7.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512111925.28518.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: Re: GIOChannel issues X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 19:25:40 -0000 On Sunday 11 December 2005 01:43, Travis Miller wrote: > Hello, > > I am trying to use GIOChannel in order to use sockets in a simple way (I > am trying to get notification on events like read and disconnect). > Anyway, here is the code that creates the GIOCHannel > > void > on_ListenButton_clicked (GtkButton *button, > gpointer user_data) > { > GtkWidget *text = lookup_widget(GTK_WIDGET(button), > "StatusText"); > > // create the listening socket > int sockfd, new_fd; > struct sockaddr_in my_addr; > struct sockaddr_in their_addr; > int sin_size; > > if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { > perror("socket"); > exit(1); > } > > my_addr.sin_family = AF_INET; > my_addr.sin_port = htons(1352); > my_addr.sin_addr.s_addr = INADDR_ANY; > bzero(&(my_addr.sin_zero), 8); > > if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct > sockaddr)) == -1) { > perror("bind"); > exit(1); > } > > > if (listen(sockfd, 5) == -1) { > perror("listen"); > exit(1); > } > gtk_entry_set_text(GTK_ENTRY(text), "Listening"); > > sin_size = sizeof(struct sockaddr_in); > if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, > &sin_size)) == -1) { > perror("accept"); > } > > // we got a socket so set text box > gtk_entry_set_text(GTK_ENTRY(text), "Connection accepted"); > > // now create GIOChannel from connection > GIOChannel *iochannel = g_io_channel_unix_new(new_fd); > > // now add to main event loop > GtkWidget *window = lookup_widget(GTK_WIDGET(button), > "MainWindow"); > g_io_add_watch(iochannel, G_IO_IN, (GIOFunc *) &ReceiveData, > (gpointer) window); > > > // now close the listener > close(sockfd); > > } > > The function g_io_watch() ties to the G_IO_IN (there is data to read on > the socket) event to the function ReceiveData that is defined as > > gboolean ReceiveData(GIOChannel *source, GIOCondition condition, > gpointer data) > { > gchar buf[500]; > int bytes_read; > GtkWidget *text = NULL; > GQuark quark; > GError *error = NULL; > gint sd; > > > > g_print("data received\n"); > text = lookup_widget(GTK_WIDGET(data), "StatusText"); > gtk_entry_set_text(GTK_ENTRY(text), "received data"); > > sd = g_io_channel_unix_get_fd(source); > > bytes_read = recv(sd, buf, 500, 0); > > if(bytes_read == -1) { > g_print("error\n"); > } > else { > buf[bytes_read] = '\0'; > g_print("buf = %s\n", buf); > text = lookup_widget(GTK_WIDGET(data), "ReceivedText"); > gtk_entry_set_text(GTK_ENTRY(text), buf); > } > > return TRUE; > } > > The problem is this. If the client closes the connection then I get a > flood of empty buffers and the ReceiveData() function is repeatedly > called. What could cause this weird behavior? I cannot see where you disconnect the callback. The easiest way to do that is to call g_io_channel_unref() on the iochannel pointer immediately after you have called g_io_add_watch() on it. g_io_channel_unix_new() returns a GIOChannel object with a reference count of one. g_io_add_watch() adds a further reference count - if you decrement it by 1, the callback will be disconnected and the relevant GSource object removed as soon either the callback returns FALSE or you call g_source_remove() on the return value of g_io_add_watch() - so detect the closing of the socket by the peer in the callback (read()/recv() returning 0 and/or the G_IO_HUP condition arising in your 'condition' variable) and return FALSE upon that occurring, or store the return value of g_io_add_watch() and call g_source_remove() on it. For the result you mention to occur, it appears therefore that specifying the G_IO_IN condition flag in g_io_add_watch() will cause the callback to be called even if the the socket is in error condition or the socket is closed, without actually specifying the G_IO_HUP or G_IO_ERR flags. Chris From wtallman@olypen.com Sun Dec 11 19:41:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8710F3B27D3 for ; Sun, 11 Dec 2005 19:41:22 -0500 (EST) 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 23131-04 for ; Sun, 11 Dec 2005 19:41:19 -0500 (EST) Received: from olypen1.olypen.com (olypen1.olypen.com [208.200.248.250]) by menubar.gnome.org (Postfix) with ESMTP id 9E7163B2625 for ; Sun, 11 Dec 2005 19:41:12 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen1.olypen.com with esmtp() (Exim 4.43) id 1Elbk8-0000QD-JM for gtk-list@gnome.org; Sun, 11 Dec 2005 16:40:40 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBC0ejha031930 for gtk-list@gnome.org; Sun, 11 Dec 2005 16:40:45 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Sun, 11 Dec 2005 16:40:45 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051212004045.GA31796@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Gtk marshallers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 00:41:22 -0000 This is a plea for someone to do a bit of mentoring. Here's the situation: I've got a fairly good-sized C application that I've developed for a specific purpose, and now it looks like it could easily be extended to a class of such purposes. This application works, as do many, on the CLI with a boat-load of applicable arguments. It produces textual output that can be used in a variety of ways. I can cobble up code in gtk to present nice GUI interfaces that will create an argument string to send to the C code. I can write gtk code that can present the output in a suitable variety of ways. What I cannot seem to do is wrap my head around how to get the gtk code to communicate with the C code. I've read the gtk docs on signal marshallers, and it's just not making sense to me. I'm still using gtk-1.2, with the notion that I probably should get that up and running, and then rewrite however necessary for each newer edition of gtk until I've got code for the latest. Would someone who really knows this stuff be so kind as to mentor me off list on this. I figure off list is better, as I would guess that 1.2 is no longer relevant to the readers of this list. Thanks all for reading, Bill Tallman From raphtee@gmail.com Sun Dec 11 19:53:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88D803B1EA9 for ; Sun, 11 Dec 2005 19:53:38 -0500 (EST) 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 24121-02 for ; Sun, 11 Dec 2005 19:53:36 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by menubar.gnome.org (Postfix) with ESMTP id 1B1663B1264 for ; Sun, 11 Dec 2005 19:53:36 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i23so1269950wra for ; Sun, 11 Dec 2005 16:53:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=kBFUObki7ywPcdFlpibskeHbfUN4vyfrlh6/AgZyuAUNlLJbXMEr3rtaK41lFjtXuzVQ+K2ZnTnUehq+/wSzMjAWkipN4Jqd/Qaci6JS7Tw8EwO2aQsGlsRIc6id8f0faFUlcA83vPItHd6jAW1wDPdmFe7cFCkPJ4yE5xXp4pQ= Received: by 10.54.86.4 with SMTP id j4mr120069wrb; Sun, 11 Dec 2005 16:52:40 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id 29sm7702726wrl.2005.12.11.16.53.34; Sun, 11 Dec 2005 16:53:34 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Dec 2005 19:53:22 -0500 Message-Id: <1134348802.24814.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 00:53:38 -0000 I have another GLib question. Currently I am writing some code that needs to perform some calculations every second. SO I want the function called every second. So rather than using setitimer to create a SIGALRM event that registering a function with sigaction() would catch, I thought I could use the g_timeout_add() function in GLib. However I found after playing with it that if I set it to 1 second then after 1 second it calls the function. At the end of the function (if I return TRUE from the function) it then sets up to call the function again in second. So for a function that takes say 100 - 200 milliseconds to complete, I find that I get the behavior that my function is not called every second but more like every 1.1 - 1.2 seconds. I undertsnad that gtk_timeout_add() is deprecated so is there another option (or should I just use the standard setitimer() function)? Travis Miller From ben@benjohnson.net Sun Dec 11 20:51:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628623B0757 for ; Sun, 11 Dec 2005 20:51:32 -0500 (EST) 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 29086-04 for ; Sun, 11 Dec 2005 20:51:29 -0500 (EST) Received: from server017.dfw.nationwide.net (server017.dfw.nationwide.net [206.123.129.80]) by menubar.gnome.org (Postfix) with SMTP id 5AB5F3B155D for ; Sun, 11 Dec 2005 20:51:29 -0500 (EST) Received: (qmail 7179 invoked from network); 12 Dec 2005 01:51:28 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Mon, 12 Dec 2005 01:51:28 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 53826E4072 for ; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15257-08 for ; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Received: by rose (Postfix, from userid 1000) id 1EDF5E4074; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Date: Sun, 11 Dec 2005 17:51:26 -0800 From: Ben Johnson To: gtk-list Message-ID: <20051212015126.GB2576@rose.benjohnson.net> Mail-Followup-To: Ben Johnson , gtk-list References: <1134348802.24814.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134348802.24814.4.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Re: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 01:51:32 -0000 On Sun, Dec 11, 2005 at 07:53:22PM -0500, Travis Miller wrote: > I have another GLib question. Currently I am writing some code that > needs to perform some calculations every second. SO I want the function > called every second. So rather than using setitimer to create a SIGALRM > event that registering a function with sigaction() would catch, I > thought I could use the g_timeout_add() function in GLib. However I > found after playing with it that if I set it to 1 second then after 1 > second it calls the function. At the end of the function (if I return > TRUE from the function) it then sets up to call the function again in > second. So for a function that takes say 100 - 200 milliseconds to > complete, I find that I get the behavior that my function is not called > every second but more like every 1.1 - 1.2 seconds. I undertsnad that > gtk_timeout_add() is deprecated so is there another option (or should I > just use the standard setitimer() function)? is g_timeout_add() deprecated? I don't see anything about that in my documentation. I've used both POSIX signals and the g_timeout stuff to run "timers". Regular POSIX signals are nice because they're more truly asynchronous. They're bad because you can't manipulate any gtk widgets (the gtk state) from a POSIX signal callback, because you're likely to receive the interrupt during a non-thread-safe section. This is the reason I stick with the g_timeout stuff. I think the best way to deal with your issue is to NOT use the automatic restart feature you're using (return TRUE from the callback). Instead, look to see how much time has passed since the last time the callback ran and use gtk_timeout_add() with an adjusted timeout value. keep in mind that there is no guarantee that that the timer will fire "on time". it will fire as soon as possible, and only during main loop. So, if one of your functions takes several seconds to complete a task and doesn't allow gtk events to be processed, your g_timeout callback will not be called for those several seconds. I think this is similar to how POSIX signals work, but they're a little more reliable. :) - Ben From tml@iki.fi Mon Dec 12 04:34:29 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AEE543B0CDB; Mon, 12 Dec 2005 04:34:29 -0500 (EST) 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 29020-03; Mon, 12 Dec 2005 04:34:27 -0500 (EST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id BA0153B09E6; Mon, 12 Dec 2005 04:34:26 -0500 (EST) Received: from pettson.tml.iki.fi (MMMDXXVI.tun.saunalahti.fi [213.169.5.226]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id D8652103D3A; Mon, 12 Dec 2005 11:34:22 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17309.17444.383000.400602@gargle.gargle.HOWL> Date: Mon, 12 Dec 2005 11:34:28 +0200 To: Igor Gorbounov In-Reply-To: <4397BDF1.6080701@topazelectro.ru> References: <4397BDF1.6080701@topazelectro.ru> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 09:34:29 -0000 Igor Gorbounov writes: > Tell me, please, if there is any way to get a Win API application > instance handle in a gtkmm application GetModuleHandle(NULL) ? (I think "application instance" is Windows 3.x terminology, but the MCIWndCreate() docs say "handle to the module", to presumably GetModuleHandle() is what you want. --tml From ztuylek@inonu.edu.tr Mon Dec 12 04:54:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D977B3B3475 for ; Mon, 12 Dec 2005 04:54:54 -0500 (EST) 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 30784-10 for ; Mon, 12 Dec 2005 04:54:42 -0500 (EST) Received: from inonu.edu.tr (unknown [193.140.142.6]) by menubar.gnome.org (Postfix) with ESMTP id 3E6963B2611 for ; Mon, 12 Dec 2005 04:53:49 -0500 (EST) Received: from inonu.edu.tr (localhost [127.0.0.1]) by inonu.edu.tr (Postfix) with ESMTP id 08B40EC109 for ; Mon, 12 Dec 2005 11:53:19 +0200 (EET) Received: from [193.140.142.252] (unknown [193.140.142.252]) by inonu.edu.tr (Postfix) with ESMTP id E4694EC102 for ; Mon, 12 Dec 2005 11:53:18 +0200 (EET) Message-ID: <439D48AA.2000602@inonu.edu.tr> Date: Mon, 12 Dec 2005 11:53:46 +0200 From: ztuylek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 09:54:55 -0000 From florian.boor@kernelconcepts.de Mon Dec 12 05:52:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 48F4D3B2FBD for ; Mon, 12 Dec 2005 05:52:18 -0500 (EST) 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 03179-09 for ; Mon, 12 Dec 2005 05:52:15 -0500 (EST) Received: from gateway.kernelconcepts.de (dns.kernelconcepts.de [212.60.202.194]) by menubar.gnome.org (Postfix) with ESMTP id 1CB723B3442 for ; Mon, 12 Dec 2005 05:52:15 -0500 (EST) Received: from thunder.kc.de ([192.168.2.128] ident=fuchs) by gateway.kernelconcepts.de with asmtp (Exim 3.35 #1 (Debian)) id 1Ell7R-0006k4-00; Mon, 12 Dec 2005 11:41:21 +0100 Message-ID: <439D5654.20701@kernelconcepts.de> Date: Mon, 12 Dec 2005 11:52:04 +0100 From: Florian Boor User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zoltan Boszormenyi References: <43998C8A.3080404@freemail.hu> In-Reply-To: <43998C8A.3080404@freemail.hu> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 10:52:18 -0000 Hi, Zoltan Boszormenyi wrote: > I need to find out whether an instance of a program is already running > and possibly unminimize it or bring it above any other windows, so > I can prevent an application started again. > Is is possible using GTK-1.2, or GTK-2.x, and how? as long as you are using X11 you can use libstartup-notification. Greetings Florian -- The dream of yesterday Florian Boor is the hope of today Tel: 0271-771091-14 and the reality of tomorrow. Fax: 0271-771091-19 [Robert Hutchings Goddard, 1904] florian.boor@kernelconcepts.de 6C 44 30 4C 43 20 6B 61 16 07 0F AA E6 97 70 A8 From yinglcs@aim.com Mon Dec 12 10:59:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D4593B53E9 for ; Mon, 12 Dec 2005 10:59:24 -0500 (EST) 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 02840-06 for ; Mon, 12 Dec 2005 10:59:16 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id 760F23B53E0 for ; Mon, 12 Dec 2005 10:59:01 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.29a.199f50c (57870) for ; Mon, 12 Dec 2005 10:58:57 -0500 (EST) Received: from FWM-M09 (fwm-m09.webmail.aol.com [64.12.168.73]) by air-ia01.mail.aol.com (v108.32) with ESMTP id MAILINIA14-e20e439d9e4117d; Mon, 12 Dec 2005 10:58:57 -0500 Date: Mon, 12 Dec 2005 10:58:57 -0500 From: yinglcs@aim.com Message-Id: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 24.13.168.31 by FWM-M09.sysops.aol.com (64.12.168.73) with HTTP (WebMailUI); Mon, 12 Dec 2005 10:58:57 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 64.12.168.73 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.123 tagged_above=-999 required=2 tests=[BAYES_00, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -1.123 X-Spam-Level: Subject: How can I find out the text of an entry in a ComboBox X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 15:59:24 -0000 Hi, How can I find out the text of an entry in a ComboBox if I only know the index of that entry? Regards, ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From martyn@imendio.com Mon Dec 12 13:07:39 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D71B3B2747 for ; Mon, 12 Dec 2005 13:07:39 -0500 (EST) 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 17047-10 for ; Mon, 12 Dec 2005 13:07:37 -0500 (EST) Received: from holken.mikan.net (holken.mikan.net [195.43.255.228]) by menubar.gnome.org (Postfix) with ESMTP id 74B163B13ED for ; Mon, 12 Dec 2005 13:07:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by holken.mikan.net (Postfix) with ESMTP id B307D12C01 for ; Mon, 12 Dec 2005 19:07:32 +0100 (CET) Received: from holken.mikan.net ([127.0.0.1]) by localhost (holken.mikan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32418-09 for ; Mon, 12 Dec 2005 19:07:29 +0100 (CET) Received: from nemesis (host81-159-197-244.range81-159.btcentralplus.com [81.159.197.244]) by holken.mikan.net (Postfix) with ESMTP id DD12612C17 for ; Mon, 12 Dec 2005 19:07:28 +0100 (CET) From: Martyn Russell To: gtk-list@gnome.org In-Reply-To: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> References: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> Content-Type: text/plain Organization: Imendio AB Date: Mon, 12 Dec 2005 18:15:45 +0000 Message-Id: <1134411345.2716.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at holken.mikan.net X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: Re: How can I find out the text of an entry in a ComboBox X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: martyn@imendio.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 18:07:39 -0000 On Mon, 2005-12-12 at 10:58 -0500, yinglcs@aim.com wrote: > How can I find out the text of an entry in a ComboBox if I only know > the index of that entry? Try: gtk_combo_box_get_active_text (); Or something like: model = gtk_combo_box_get_model (combobox); path = gtk_tree_path_new_from_indices (0, -1); gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get (model, &iter, 0, &str, -1); gtk_tree_path_free (path); g_free (str); -- Regards, Martyn From Robert.Thorpe@antenova.com Mon Dec 12 14:04:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D9FE3B2727 for ; Mon, 12 Dec 2005 14:04:53 -0500 (EST) 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 22988-03 for ; Mon, 12 Dec 2005 14:04:51 -0500 (EST) Received: from lhuumrelay3.mail.eu.uu.net (lhuumrelay3.lnd.ops.eu.uu.net [62.189.58.19]) by menubar.gnome.org (Postfix) with ESMTP id 4D4723B09B3 for ; Mon, 12 Dec 2005 14:04:49 -0500 (EST) Received: from antenova.com ([193.128.174.131]) by lhuumrelay3.mail.eu.uu.net (8.13.3/8.13.3) with ESMTP id jBCJ4l8e026962 for ; Mon, 12 Dec 2005 19:04:47 GMT X-Authenticated-As: none Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Mon, 12 Dec 2005 19:05:22 -0000 Message-ID: <062347F5EA06184999273868C1B4FD7F84231C@server.Antenova.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Win32 API HInstance and gtk+ - how? Thread-Index: AcX+/3Oc91rAz0BiRW+r28gipi0CQQATiU8g From: "Robert Thorpe" To: "gtk-list" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: RE: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 19:04:54 -0000 The normal way to get the app instance is to do GetWindowLong (hwnd, GWL_HINSTANCE) But hInstance and prevInstance aren't very useful these days, they cannot be used to check if a program is already running as it could be on Win-16. The normal way is to do that is to use FindWindow with the window class and Window name as NULL. > -----Original Message----- > From: gtk-list-bounces@gnome.org=20 > [mailto:gtk-list-bounces@gnome.org] On Behalf Of Tor Lillqvist > Sent: 12 December 2005 09:34 > To: Igor Gorbounov > Cc: gtk-list; GTKMM Lists > Subject: Win32 API HInstance and gtk+ - how? >=20 > Igor Gorbounov writes: > > Tell me, please, if there is any way to get a Win API=20 > application > instance handle in a gtkmm application >=20 > GetModuleHandle(NULL) ?=20 >=20 > (I think "application instance" is Windows 3.x terminology, but the > MCIWndCreate() docs say "handle to the module", to presumably > GetModuleHandle() is what you want. >=20 > --tml >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 From mleisher@crl.NMSU.Edu Mon Dec 12 17:00:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 84F1A3B0DE1 for ; Mon, 12 Dec 2005 17:00:38 -0500 (EST) 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 07901-08 for ; Mon, 12 Dec 2005 17:00:36 -0500 (EST) Received: from crl.NMSU.Edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id 585BB3B06BD for ; Mon, 12 Dec 2005 17:00:34 -0500 (EST) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.NMSU.Edu (8.13.4/8.13.4) with ESMTP id jBCM0GZA007980 for ; Mon, 12 Dec 2005 15:00:16 -0700 (MST) Message-ID: <439DF391.5040406@crl.nmsu.edu> Date: Mon, 12 Dec 2005 15:02:57 -0700 From: Mark Leisher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: multipart/mixed; boundary="------------000901020002000703030603" X-Virus-Scanned: ClamAV 0.87.1/1209/Mon Dec 12 08:48:01 2005 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Possible problem with gdk_selection_get_owner() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 22:00:38 -0000 This is a multi-part message in MIME format. --------------000901020002000703030603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Attached are two small programs, gtk.c and x11.c. Both are meant to demonstrate how to use a GdkAtom/Atom to determine if an instance of a program is already running (Linux/Unix). The x11.c code works fine. The gtk.c code always returns NULL when gdk_selection_get_owner() is called, but the SelectionClear event is actually dispatched when gdk_selection_owner_set() is called the second time the program is run. Am I missing something or is this expected behavior? How the programs are supposed to be run: 1. Run the first one in the background: % ./x11 & 2. When the program is run again, it is supposed to print something about another copy already running and exit: % ./x11 -- --------------------------------------------------------------------------- Mark Leisher Computing Research Lab A sneer is the weapon of the weak. New Mexico State University -- James Russell Lowell (1819-1891) Box 30001, MSC 3CRL Las Cruces, NM 88003 --------------000901020002000703030603 Content-Type: text/plain; name="gtk.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="gtk.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPGd0ay9n dGsuaD4KCnN0YXRpYyBHZGtBdG9tIHJ1bm5pbmcgPSAwOwoKc3RhdGljIGdib29sZWFuCnNl bGNsZWFyKEd0a1dpZGdldCAqdywgR2RrRXZlbnRTZWxlY3Rpb24gKmV2LCBncG9pbnRlciBk YXRhKQp7CiAgICBnZGtfc2VsZWN0aW9uX293bmVyX3NldCh3LT53aW5kb3csIGV2LT5zZWxl Y3Rpb24sIEdES19DVVJSRU5UX1RJTUUsIEZBTFNFKTsKCiAgICByZXR1cm4gVFJVRTsKfQoK c3RhdGljIHZvaWQKZG9uZShHdGtXaWRnZXQgKndpZGdldCwgZ3BvaW50ZXIgZGF0YSkKewog ICAgZ2RrX3NlbGVjdGlvbl9vd25lcl9zZXQoMCwgcnVubmluZywgR0RLX0NVUlJFTlRfVElN RSwgRkFMU0UpOwogICAgZ3RrX21haW5fcXVpdCgpOwogICAgZXhpdCgwKTsKfQoKaW50Cm1h aW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICp3LCAqYjsKCiAg ICBndGtfaW5pdCgmYXJnYywgJmFyZ3YpOwoKICAgIHJ1bm5pbmcgPSBnZGtfYXRvbV9pbnRl cm4oIlBST0dfUlVOTklORyIsIFRSVUUpOwoKICAgIGlmIChnZGtfc2VsZWN0aW9uX293bmVy X2dldChydW5uaW5nKSAhPSAwKSB7CiAgICAgICAgcHJpbnRmKCIlczogYWxyZWFkeSBydW5u aW5nLlxuIiwgZ19nZXRfcHJnbmFtZSgpKTsKICAgICAgICBnZGtfc2VsZWN0aW9uX293bmVy X3NldCgwLCBydW5uaW5nLCBHREtfQ1VSUkVOVF9USU1FLCBUUlVFKTsKICAgICAgICByZXR1 cm4gMTsKICAgIH0KCiAgICB3ID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZF TCk7CiAgICBnX3NpZ25hbF9jb25uZWN0KEdfT0JKRUNUKHcpLCAic2VsZWN0aW9uLWNsZWFy LWV2ZW50IiwKICAgICAgICAgICAgICAgICAgICAgR19DQUxMQkFDSyhzZWxjbGVhciksIDAp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1codyksICJBbSBJIEFscmVh ZHkgUnVubmluZz8iKTsKICAgIGdfc2lnbmFsX2Nvbm5lY3QoR19PQkpFQ1QodyksICJkZXN0 cm95IiwgR19DQUxMQkFDSyhndGtfbWFpbl9xdWl0KSwgMCk7CiAgICBnX3NpZ25hbF9jb25u ZWN0KEdfT0JKRUNUKHcpLCAiZGVsZXRlX2V2ZW50IiwgR19DQUxMQkFDSyhndGtfbWFpbl9x dWl0KSwwKTsKCiAgICBiID0gZ3RrX2J1dHRvbl9uZXdfd2l0aF9sYWJlbCgiRXhpdCIpOwog ICAgZ3RrX3dpZGdldF9zZXRfc2l6ZV9yZXF1ZXN0KGIsIDEwMCwgMTAwKTsKICAgIGdfc2ln bmFsX2Nvbm5lY3QoR19PQkpFQ1QoYiksICJjbGlja2VkIiwgR19DQUxMQkFDSyhkb25lKSwg MCk7CiAgICBndGtfY29udGFpbmVyX2FkZChHVEtfQ09OVEFJTkVSKHcpLCBiKTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKHcpOwoKICAgIC8qCiAgICAgKiBPd24gdGhlIHNlbGVjdGlv bi4KICAgICAqLwogICAgZ2RrX3NlbGVjdGlvbl9vd25lcl9zZXQody0+d2luZG93LCBydW5u aW5nLCBHREtfQ1VSUkVOVF9USU1FLCBUUlVFKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJl dHVybiAwOwp9Cg== --------------000901020002000703030603 Content-Type: text/plain; name="x11.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="x11.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxYMTEvWGxpYi5oPgoKI2RlZmluZSBBTExF VkVOVE1BU0tTIChLZXlQcmVzc01hc2t8S2V5UmVsZWFzZU1hc2t8QnV0dG9uUHJlc3NNYXNr fFwKICAgICAgICAgICAgICAgICAgICAgICBCdXR0b25SZWxlYXNlTWFza3xFbnRlcldpbmRv d01hc2t8TGVhdmVXaW5kb3dNYXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBQb2ludGVy TW90aW9uTWFza3xQb2ludGVyTW90aW9uSGludE1hc2t8XAogICAgICAgICAgICAgICAgICAg ICAgIEJ1dHRvbjFNb3Rpb25NYXNrfEJ1dHRvbjJNb3Rpb25NYXNrfEJ1dHRvbjNNb3Rpb25N YXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBCdXR0b240TW90aW9uTWFza3xCdXR0b241 TW90aW9uTWFza3xCdXR0b25Nb3Rpb25NYXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBL ZXltYXBTdGF0ZU1hc2t8RXhwb3N1cmVNYXNrfFZpc2liaWxpdHlDaGFuZ2VNYXNrfFwKICAg ICAgICAgICAgICAgICAgICAgICBTdHJ1Y3R1cmVOb3RpZnlNYXNrfFJlc2l6ZVJlZGlyZWN0 TWFza3xcCiAgICAgICAgICAgICAgICAgICAgICAgU3Vic3RydWN0dXJlTm90aWZ5TWFza3xT dWJzdHJ1Y3R1cmVSZWRpcmVjdE1hc2t8XAogICAgICAgICAgICAgICAgICAgICAgIEZvY3Vz Q2hhbmdlTWFza3xQcm9wZXJ0eUNoYW5nZU1hc2t8Q29sb3JtYXBDaGFuZ2VNYXNrfFwKICAg ICAgICAgICAgICAgICAgICAgICBPd25lckdyYWJCdXR0b25NYXNrKQoKaW50Cm1haW4odm9p ZCkKewogICAgaW50IGRvbmU7CiAgICBEaXNwbGF5ICpkOwogICAgQXRvbSBydW5uaW5nOwog ICAgV2luZG93IHdpbiwgcm9vdDsKICAgIFhFdmVudCBldjsKCiAgICBkID0gWE9wZW5EaXNw bGF5KCIiKTsKCiAgICByb290ID0gRGVmYXVsdFJvb3RXaW5kb3coZCk7CgogICAgd2luID0g WENyZWF0ZVdpbmRvdyhkLCByb290LCAxMCwgMTAsIDEwMCwgMTAwLCAyLAogICAgICAgICAg ICAgICAgICAgICAgICBDb3B5RnJvbVBhcmVudCwgSW5wdXRPdXRwdXQsIENvcHlGcm9tUGFy ZW50LAogICAgICAgICAgICAgICAgICAgICAgICAwLCAwKTsKICAgIFhTZWxlY3RJbnB1dChk LCB3aW4sIEFMTEVWRU5UTUFTS1MpOwogICAgWE1hcFdpbmRvdyhkLCB3aW4pOwoKICAgIHJ1 bm5pbmcgPSBYSW50ZXJuQXRvbShkLCAiUFJPR19SVU5OSU5HIiwgVHJ1ZSk7CgogICAgaWYg KFhHZXRTZWxlY3Rpb25Pd25lcihkLCBydW5uaW5nKSA9PSAwKSB7CiAgICAgICAgcHJpbnRm KCJPd25pbmcgcHJvcGVydHkuXG4iKTsKICAgICAgICBYU2V0U2VsZWN0aW9uT3duZXIoZCwg cnVubmluZywgd2luLCBDdXJyZW50VGltZSk7CiAgICB9IGVsc2UgewogICAgICAgIFhTZXRT ZWxlY3Rpb25Pd25lcihkLCBydW5uaW5nLCAwLCBDdXJyZW50VGltZSk7CiAgICAgICAgWERl c3Ryb3lXaW5kb3coZCwgd2luKTsKICAgICAgICBYQ2xvc2VEaXNwbGF5KGQpOwogICAgICAg IHByaW50ZigiQW5vdGhlciBpbnN0YW5jZSBpcyBydW5uaW5nLlxuIik7CiAgICAgICAgcmV0 dXJuIDA7CiAgICB9CgogICAgZG9uZSA9IDA7CiAgICB3aGlsZSAoIWRvbmUpIHsKICAgICAg ICBYTmV4dEV2ZW50KGQsICZldik7CiAgICAgICAgc3dpdGNoIChldi50eXBlKSB7CiAgICAg ICAgICBjYXNlIFNlbGVjdGlvbkNsZWFyOgogICAgICAgICAgICBYU2V0U2VsZWN0aW9uT3du ZXIoZCwgcnVubmluZywgd2luLCBDdXJyZW50VGltZSk7CiAgICAgICAgICAgIGJyZWFrOwog ICAgICAgICAgY2FzZSBLZXlSZWxlYXNlTWFzazoKICAgICAgICAgICAgZG9uZSA9IDE7CiAg ICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgIH0KCiAgICBYU2V0U2VsZWN0aW9uT3du ZXIoZCwgcnVubmluZywgMCwgQ3VycmVudFRpbWUpOwogICAgWENsb3NlRGlzcGxheShkKTsK ICAgIHJldHVybiAwOwp9Cg== --------------000901020002000703030603-- From shafer@realmsys.com Mon Dec 12 20:23:51 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 074293B555D for ; Mon, 12 Dec 2005 20:23:51 -0500 (EST) 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 24128-06 for ; Mon, 12 Dec 2005 20:23:49 -0500 (EST) Received: from ba.realmsys.com (207.88.121.47.ptr.us.xo.net [207.88.121.47]) by menubar.gnome.org (Postfix) with ESMTP id A618B3B1905 for ; Mon, 12 Dec 2005 20:23:48 -0500 (EST) Received: from [10.100.6.214] (unknown [66.239.3.2]) by ba.realmsys.com (Spam Firewall) with ESMTP id AB6843014F for ; Mon, 12 Dec 2005 18:23:47 -0700 (MST) From: Andrew Shafer To: gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Dec 2005 18:22:00 -0700 Message-Id: <1134436920.7358.12.camel@baraka.inrealm.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Barracuda Spam Firewall at realmsys.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Double buffering while moving in a 'fixed' X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 01:23:51 -0000 I know what I'm doing is against all things holy, but maybe someone else thought about this before. I have a GtkFixed container that I'm using to do little layout. Inside the fixed I have components. Components can be any widget and they are also associated with a shape mask. I collect all the widgets and masks, then draw them into the fixed and mask them to get a shaped window. (the components make use of 'normal' layout tools, like V/Hbox etc.) Now I want to move pieces around in an animated fashion cause I'm crazy like that. It all works, but I get a little flicker as you would expect if you aren't double buffering. Is there some strategy that would allow me to smooth out the drawing while still retaining the individual GdkWindows on my components and children so they can catch events? Any ideas? Anyone ever played with anything like this using gtk? Regards Andrew Shafer From lists@nabble.com Mon Dec 12 21:30:29 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D8B243B0E44 for ; Mon, 12 Dec 2005 21:30:29 -0500 (EST) 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 28512-01 for ; Mon, 12 Dec 2005 21:30:28 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 576B93B5856 for ; Mon, 12 Dec 2005 21:30:21 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Elzvo-0004Gr-Mp for gtk-list@gnome.org; Mon, 12 Dec 2005 18:30:20 -0800 Message-ID: <1916845.post@talk.nabble.com> Date: Mon, 12 Dec 2005 18:30:20 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_542_16328830.1134441020703" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_30, HTML_MESSAGE] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES Subject: how to add an icon to the item in my list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 02:30:30 -0000 ------=_Part_542_16328830.1134441020703 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I use gtk+1.2; the list as the following: GtkWidget* list = gtk_list_new(); GList* viewList = ...; gtk_list_append_items(GTK_LIST(list), viewList); my question is: how to add an icon(.png, .xpm, etc) to the current selected item in the list? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/how-to-add-an-icon-to-the-item-in-my-list-t731785.html#a1916845 ------=_Part_542_16328830.1134441020703 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit I use gtk+1.2;
the list as the following:
    GtkWidget* list = gtk_list_new();
    GList* viewList = ...;
    gtk_list_append_items(GTK_LIST(list), viewList);

my question is:
    how to add an icon(.png, .xpm, etc) to the current selected item in the list?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
how to add an icon to the item in my list ------=_Part_542_16328830.1134441020703-- From ramachandracs@rediffmail.com Mon Dec 12 22:58:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FCD63B2725 for ; Mon, 12 Dec 2005 22:58:23 -0500 (EST) 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 01591-02 for ; Mon, 12 Dec 2005 22:58:21 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.136]) by menubar.gnome.org (Postfix) with SMTP id 3467D3B1864 for ; Mon, 12 Dec 2005 22:58:19 -0500 (EST) Received: (qmail 10266 invoked by uid 510); 13 Dec 2005 03:58:08 -0000 Date: 13 Dec 2005 03:58:08 -0000 Message-ID: <20051213035808.10265.qmail@webmail62.rediffmail.com> Received: from unknown (59.92.135.217) by rediffmail.com via HTTP; 13 dec 2005 03:58:08 -0000 MIME-Version: 1.0 From: "Ramachandra CS" To: gtk-list@gnome.org Content-type: multipart/alternative; boundary="Next_1134446288---0-203.199.83.136-10251" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.277 tagged_above=-999 required=2 tests=[BAYES_20, HTML_MESSAGE, MSGID_FROM_MTA_HEADER] X-Spam-Score: 2.277 X-Spam-Level: ** X-Spam-Flag: YES Subject: Warning :*****: When I run GTK Application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ramachandra CS List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 03:58:23 -0000 This is a multipart mime message --Next_1134446288---0-203.199.83.136-10251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0A=A0 I am facing some problems when i run my GTK Applications. = And also when i click on any widget, it display the Gdk-WARNING, but the ap= plication works fine some times. =0A =0A So Can u suggest me some i= deas to correct these problems. And the following are the Gdk-WARNINGS.....= .........................=0A=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-885= 9-1': No such file or directory=0A=0A(tcsetup:903): Gdk-WARNING **: Error c= onverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'I= SO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conve= rting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8= 859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error convertin= g from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-= 1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fr= om UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' i= s not supported=0AEXEC FAILED!=0A=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fro= m UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is= not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UT= F-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not= supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 = to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not sup= ported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to S= TRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not support= ed=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRIN= G: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0AEXEC FAILED!=0A= =0A=0A=0A=0ARegards,=0A-r=0A --Next_1134446288---0-203.199.83.136-10251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A Hi,
=0A
=0A    I am facing some problems when i run= my GTK Applications. And also when i click on any widget, it display the G= dk-WARNING, but the application works fine some times.
=0A   =
=0A    So Can u suggest me some ideas to correct these pro= blems. And the following are the Gdk-WARNINGS..............................=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1': No such fil= e or directory
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Erro= r converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to= 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A(tcsetup:903= ): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from c= haracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup= :903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fr= om character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcs= etup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversio= n from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A= (tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conve= rsion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: C= onversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
= =0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING= : Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to ST= RING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supporte= d
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 t= o STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supp= orted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF= -8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not = supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from= UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is = not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting = from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1'= is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-885= 9-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error con= verting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO= -8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error= converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to = 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A
=0A
= =0A
=0ARegards,
=0A-r
=0A=0A

=0A

=0A=0A --Next_1134446288---0-203.199.83.136-10251-- From mclasen@redhat.com Mon Dec 12 23:23:27 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 858613B0986; Mon, 12 Dec 2005 23:23:27 -0500 (EST) 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 03391-08; Mon, 12 Dec 2005 23:23:25 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id C184E3B230F; Mon, 12 Dec 2005 23:23:22 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBD4NMXo029797; Mon, 12 Dec 2005 23:23:22 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBD4NH109250; Mon, 12 Dec 2005 23:23:17 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBD4NGc27296; Mon, 12 Dec 2005 23:23:16 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Dec 2005 23:23:15 -0500 Message-Id: <1134447796.2597.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: Pango 1.11.1 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 04:23:28 -0000 Behdad stayed up all night to finish Pango 1.11.1 before leaving for the holidays. Thanks, Behdad ! Pango 1.11.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9 http://ftp.gnome.org/pub/GNOME/sources/pango/1.11 pango-1.11.1.tar.bz2 c6255bba9bb738a564716fd57b7cc546 pango-1.11.1.tar.gz af6d609510fe5c0d35a3f8f863135b7c This is the second development release leading up to 1.12. Overview of changes between 1.11.0 and 1.11.1 ============================================= * ATSUI support for the cairo backend. [Anders Carlsson] * Fixed a couple of regressions with font size and scaling. * Draw a dashed empty box on missing glyphs for cairo-fc backend. * Support OpenType features for basic (Latin/Greek/...) module. * Support swash feature in Arabic module. * Misc bug fixes. * Misc documentation improvements. Optimizations: * Cache GObject private data in PangoFcFont.priv [Federico Mena Quintero] * Add a constant-sized light-weight cache for glyph extents. * Use g_slice_* instead of GMemChunk in mini-fribidi. December 12, 2005 Matthias From igorbounov@topazelectro.ru Tue Dec 13 00:23:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 037923B5940 for ; Tue, 13 Dec 2005 00:23:44 -0500 (EST) 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 08391-10 for ; Tue, 13 Dec 2005 00:23:42 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id ABD3E3B5943 for ; Tue, 13 Dec 2005 00:23:40 -0500 (EST) Received: (qmail 28165 invoked by uid 7801); 13 Dec 2005 05:18:48 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.086862 secs); 13 Dec 2005 05:18:48 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.086862 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 13 Dec 2005 05:18:47 -0000 Message-ID: <439E5AEE.3060700@topazelectro.ru> Date: Tue, 13 Dec 2005 08:23:58 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tor Lillqvist References: <4397BDF1.6080701@topazelectro.ru> <17309.17444.383000.400602@gargle.gargle.HOWL> In-Reply-To: <17309.17444.383000.400602@gargle.gargle.HOWL> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.757 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_LQ, TW_TK] X-Spam-Score: -1.757 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 05:23:44 -0000 Tor Lillqvist wrote: >Igor Gorbounov writes: > > Tell me, please, if there is any way to get a Win API application > > instance handle in a gtkmm application > >GetModuleHandle(NULL) ? > > > Yes, Vinzenz Feenstra has suggested this function last week and it helped. Thanks to all, who answered my question. Igor Gorbounov > > > From slackcub@gmail.com Tue Dec 13 02:37:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6AFCE3B0DD1 for ; Tue, 13 Dec 2005 02:37:07 -0500 (EST) 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 27110-07 for ; Tue, 13 Dec 2005 02:37:05 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id AE2E63B27B3 for ; Tue, 13 Dec 2005 02:37:03 -0500 (EST) Received: by zproxy.gmail.com with SMTP id i28so1669756nzi for ; Mon, 12 Dec 2005 23:37:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:mime-version:content-disposition:content-type:content-transfer-encoding:message-id:from; b=n+GgVx9KTsfO8G4Z/TAOSEJFfQAgvbL0/4fUW9nbQC9QwcRgrWg44EJTuIjkOm1FHNfzp9gB/PM+SdvMWgnBrtHQud/myX2WoMPZ4GkMInOvk6YhNULJVPHlZwgQ4RUw/LE1i+fEoDW9cily12EHz7Yjji7p/Y16U/3tMg3oRgg= Received: by 10.36.148.15 with SMTP id v15mr6987751nzd; Mon, 12 Dec 2005 23:37:02 -0800 (PST) Received: from pitr.largegeek.com ( [68.252.72.79]) by mx.gmail.com with ESMTP id 23sm3974370nzn.2005.12.12.23.37.02; Mon, 12 Dec 2005 23:37:02 -0800 (PST) To: gtk-list@gnome.org Date: Tue, 13 Dec 2005 01:40:38 -0600 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200512130140.38985.largegeek@largegeek.com> From: Largegeek X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_KG] X-Spam-Score: -1.811 X-Spam-Level: Subject: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: largegeek@largegeek.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 07:37:07 -0000 I am trying to upgrade my version of gtk+ because I want to upgrade gimp. At least, that was the original version but now it has become an all consuming mission because I have been trying on and off for a couple weeks now with no success. I just installed the following libraries: atk 1.10.1 cairo 1.0.2 glib 2.8.4 pango 1.10.1 originally I had needed to keep my old version of glib on here because I was having other programs break with version 2.8.4 of glib. Mainly unresolved symbol issues. but whenever I would try to run configure on gtk+ it would say that pkgconfig reported v2.8.4 of glib, but it found my old one. After unsuccessfully trying to figure that problem out, I gave up and decided that I would just rebuild the programs that didn't work with the new glib version Now I'm getting an error said that configure can't link to the pango libraries, when I know I have them installed in /usr/local. Any help would be greatly appreciated! David largegeek@largegeek.com From diego@otello.alma.unibo.it Tue Dec 13 05:10:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C845C3B1A82 for ; Tue, 13 Dec 2005 05:10:17 -0500 (EST) 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 07471-07 for ; Tue, 13 Dec 2005 05:10:15 -0500 (EST) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 5864F3B1B3F for ; Tue, 13 Dec 2005 05:10:12 -0500 (EST) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 269E4DCAA1 for ; Tue, 13 Dec 2005 06:33:34 -0500 (EST) Message-ID: <439E9780.1010706@otello.alma.unibo.it> Date: Tue, 13 Dec 2005 10:42:24 +0100 From: Diego Zuccato User-Agent: Mozilla Thunderbird 1.0.7-3mdk (X11/20051015) X-Accept-Language: it, en MIME-Version: 1.0 Cc: gtk-list References: <1134348802.24814.4.camel@localhost.localdomain> <20051212015126.GB2576@rose.benjohnson.net> In-Reply-To: <20051212015126.GB2576@rose.benjohnson.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Subject: Re: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 10:10:17 -0000 Ben Johnson wrote: > keep in mind that there is no guarantee that that the timer will fire > "on time". it will fire as soon as possible, and only during main loop. > So, if one of your functions takes several seconds to complete a task > and doesn't allow gtk events to be processed, your g_timeout callback > will not be called for those several seconds. I think this is similar > to how POSIX signals work, but they're a little more reliable. :) If this behaviour is not what he wants, he should fallback to multithreading (w/ all the gdk_threads_enter/leave stuff). BYtE, Diego. From DANIELLLANO@terra.es Tue Dec 13 06:53:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45EC3B1965 for ; Tue, 13 Dec 2005 06:53:47 -0500 (EST) 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 16686-01 for ; Tue, 13 Dec 2005 06:53:45 -0500 (EST) Received: from csmtpout3.frontal.correo (webmail.terra.es [213.4.149.12]) by menubar.gnome.org (Postfix) with ESMTP id 8DFDA3B5B59 for ; Tue, 13 Dec 2005 06:51:26 -0500 (EST) Received: from cps2 (213.4.149.20) by csmtpout3.frontal.correo (7.2.056.2) id 42D549260045D8C3 for gtk-list@gnome.org; Tue, 13 Dec 2005 12:50:30 +0100 Received: from [213.4.149.67] by correo2.terra.es with HTTP (authenticated as danielllano@terra.es); Tue, 13 Dec 2005 12:51:25 +0100 Message-ID: <33365135.1134474685252.JavaMail.root@cps2> Date: Tue, 13 Dec 2005 12:51:25 +0100 (MET) From: "DANIELLLANO@terra.es" To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.48 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_KG=0.077] X-Spam-Score: -0.48 X-Spam-Level: Subject: Re: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: DANIELLLANO@terra.es List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 11:53:48 -0000 Largegeek wrote: > I am trying to upgrade my version of gtk+ because I want to upgrade gimp.= At=20 > least, that was the original version but now it has become an all consumi= ng=20 > mission because I have been trying on and off for a couple weeks now with= no=20 > success. >=20 > I just installed the following libraries: > atk 1.10.1 > cairo 1.0.2 > glib 2.8.4 > pango 1.10.1 >=20 > originally I had needed to keep my old version of glib on here because I = was=20 > having other programs break with version 2.8.4 of glib. Mainly unresolved= =20 > symbol issues. but whenever I would try to run configure on gtk+ it=20 would say=20 > that pkgconfig reported v2.8.4 of glib, but it found my old one. After=20 > unsuccessfully trying to figure that problem out, I gave up and decided t= hat=20 > I would just rebuild the programs that didn't work with the new glib vers= ion > Now I'm getting an error said that configure can't link to the pango=20 > libraries, when I know I have them installed in /usr/local.=20 What version of gimp are you trying to install? Debian already has gimp-2.2.9 (and updated versions of the needed libraries= ) so you may want to stick to Debian testing or unstable if you are not doing hardcore=20 development. http://packages.debian.org/gimp Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. From flaviothunder@terra.com.br Tue Dec 13 08:09:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 587493B3A6B for ; Tue, 13 Dec 2005 08:09:43 -0500 (EST) 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 23700-05 for ; Tue, 13 Dec 2005 08:09:41 -0500 (EST) Received: from birao.terra.com.br (birao.terra.com.br [200.176.10.197]) by menubar.gnome.org (Postfix) with ESMTP id 6A49D3B5BEF for ; Tue, 13 Dec 2005 08:02:52 -0500 (EST) Received: from bucavu.terra.com.br (bucavu.terra.com.br [200.176.10.6]) by birao.terra.com.br (Postfix) with ESMTP id 8939C108C1F6 for ; Tue, 13 Dec 2005 11:02:50 -0200 (BRST) X-Terra-Karma: -2% X-Terra-Hash: 465a2d885378875f40a9d804dad371cf Received-SPF: pass (bucavu.terra.com.br: domain of terra.com.br designates 200.176.10.6 as permitted sender) client-ip=200.176.10.6; envelope-from=flaviothunder@terra.com.br; helo=[192.168.1.133]; Received: from [192.168.1.133] (unknown [200.196.242.80]) (authenticated user flaviothunder) by bucavu.terra.com.br (Postfix) with ESMTP id 6B8A0153C125 for ; Tue, 13 Dec 2005 11:02:50 -0200 (BRST) Message-ID: <439EC679.4050600@terra.com.br> Date: Tue, 13 Dec 2005 11:02:49 -0200 From: =?ISO-8859-1?Q?Fl=E1vio_Alberto_Lopes_Soares?= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.692 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_PASS=-0.001] X-Spam-Score: -0.692 X-Spam-Level: Subject: configure_event not sended X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 13:09:44 -0000 Hello all, I'm developing an application using GTK2 + libglade for use in a x86 embedded system, I'm compiled the gtk2, libglade2, pango, xft2, fontconfig, freetype, glib2 X 4.5.99.8 and kdrive small X (I will choose what X I will use) without problems to install in my target system. In my Debian Sarge system with the default libraries the application runs OK, but when I run my program in target system (Geode 300MHz Processor, chipset NSC5330) with the compiled libs it not calls the callback function connected to "configure_event" signal for the main window, but other signals as "pressed" signal for the buttons works OK. What can be the problem ? What are the libraries that "handle" the "configure_event" signal ? Thanks for any help Flavio Alberto Lopes Soares flaviothunder@terra.com.br From jcupitt@gmail.com Tue Dec 13 08:49:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57CB83B39BA for ; Tue, 13 Dec 2005 08:49:01 -0500 (EST) 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 27838-02 for ; Tue, 13 Dec 2005 08:48:58 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id 0AB6C3B2500 for ; Tue, 13 Dec 2005 08:48:57 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so2027279wxc for ; Tue, 13 Dec 2005 05:48:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sZTTlEoutfyzHiKfHj3VVb/8dmzOwNm22uTuR4pe9VqnahQt3C4THVwO/QAxaUl118dVNErtsOzvD/9K04zxv98KjCt9SiYolgn23+iUOW1zhlA/TB+kUXtUpzJo7XoOs+gk6/mnTLqOmY4cSSibLKO+ixgS2aaHZcW6D4egewc= Received: by 10.70.59.15 with SMTP id h15mr204537wxa; Tue, 13 Dec 2005 05:48:56 -0800 (PST) Received: by 10.70.67.14 with HTTP; Tue, 13 Dec 2005 05:48:56 -0800 (PST) Message-ID: <522c6460512130548q289ece64g670fef61d91f54e1@mail.gmail.com> Date: Tue, 13 Dec 2005 13:48:56 +0000 From: John Cupitt To: Andrew Shafer In-Reply-To: <1134436920.7358.12.camel@baraka.inrealm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134436920.7358.12.camel@baraka.inrealm.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Double buffering while moving in a 'fixed' X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 13:49:01 -0000 On 12/13/05, Andrew Shafer wrote: > Inside the fixed I have components. Components can be any widget and > they are also associated with a shape mask. I collect all the widgets > and masks, then draw them into the fixed and mask them to get a shaped > window. (the components make use of 'normal' layout tools, like V/Hbox > etc.) > > It all works, but I get a little flicker as you would expect if you > aren't double buffering. I do something like this in my app, except without the shaped windows. I have a fixed containing a lot of eventboxes, then each eventbox containing a vbox with my contents. I don't animate programatically much, but I do have the eventboxes draggable with the mouse. It seems to work OK (even on win32!) and there's no visible flicker. Some screenshots here: http://www.vips.ecs.soton.ac.uk/screenshots.php?page=3DVersion+7-10 John From diego@otello.alma.unibo.it Tue Dec 13 09:46:21 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D201C3B0F25 for ; Tue, 13 Dec 2005 09:46:20 -0500 (EST) 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 02345-05 for ; Tue, 13 Dec 2005 09:46:17 -0500 (EST) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id C73D23B3A74 for ; Tue, 13 Dec 2005 09:44:38 -0500 (EST) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id B0FE712218B for ; Tue, 13 Dec 2005 11:35:58 -0500 (EST) Message-ID: <439EDE63.60806@otello.alma.unibo.it> Date: Tue, 13 Dec 2005 15:44:51 +0100 From: Diego Zuccato User-Agent: Mozilla Thunderbird 1.0.7-3mdk (X11/20051015) X-Accept-Language: it, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Subject: Can't handle events from combobox? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 14:46:21 -0000 Hello all. I'm having troubles trying to catch keyboard events from a combobox. What I'm doing is a simple g_signal_connect(G_OBJECT(combo), "key_press_event", G_CALLBACK(reset_combo), NULL); just after setting the model and before selecting (eventually) a default for that combo. reset_combo() just prints an asterisk and returns. But I can't get that damned asterisk printed :( "Standard" controls work as expected, but my callback is never called. Can't see the difference between my grabbing and the grab done by Gtk+ internally in the GtkComboBox source. Any hint? Something obvious I couldn't see? Tks, Diego. From slackcub@gmail.com Tue Dec 13 10:36:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AD56D3B3B32 for ; Tue, 13 Dec 2005 10:36:43 -0500 (EST) 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 08592-10 for ; Tue, 13 Dec 2005 10:36:41 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by menubar.gnome.org (Postfix) with ESMTP id EF7643B3B3D for ; Tue, 13 Dec 2005 10:36:04 -0500 (EST) Received: by zproxy.gmail.com with SMTP id l1so1772309nzf for ; Tue, 13 Dec 2005 07:36:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-disposition:content-type:content-transfer-encoding:message-id:from; b=NbQevIUltPbbdWSPCpXz76u85jeMtddWMZX6ObRcMASTUPeiWFpL6kWvG8B+r+LQI6arysfi2BsltUvCif6bbA3cVkC/i83XtQi5MkSwN4OLR1QEPlDKcLYNnAu3CakFb13FdlonKAOmYh1FEw9N7qybluPH10yYRywnofdtqGg= Received: by 10.36.20.6 with SMTP id 6mr7416282nzt; Tue, 13 Dec 2005 07:36:03 -0800 (PST) Received: from pitr.largegeek.com ( [68.252.72.79]) by mx.gmail.com with ESMTP id 22sm3190108nzn.2005.12.13.07.35.59; Tue, 13 Dec 2005 07:36:00 -0800 (PST) To: gtk-list@gnome.org Date: Tue, 13 Dec 2005 09:39:38 -0600 User-Agent: KMail/1.6.2 References: <33365135.1134474685252.JavaMail.root@cps2> In-Reply-To: <33365135.1134474685252.JavaMail.root@cps2> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200512130939.39260.largegeek@largegeek.com> From: Largegeek X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_KG=0.077] X-Spam-Score: -2.446 X-Spam-Level: Subject: Re: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: largegeek@largegeek.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 15:36:43 -0000 I'm trying to install gimp 2.2.9 I am not running Debian, I have Slackware 9.1. I know it's an old version,= I=20 just really don't feel like doing a complete upgrade of it right now. On Tuesday 13 December 2005 05:51, DANIELLLANO@terra.es wrote: > Largegeek wrote: > > I am trying to upgrade my version of gtk+ because I want to upgrade gim= p. > > At least, that was the original version but now it has become an all > > consuming mission because I have been trying on and off for a couple > > weeks now with no success. > > > > I just installed the following libraries: > > atk 1.10.1 > > cairo 1.0.2 > > glib 2.8.4 > > pango 1.10.1 > > > > originally I had needed to keep my old version of glib on here because I > > was having other programs break with version 2.8.4 of glib. Mainly > > unresolved symbol issues. but whenever I would try to run configure on > > gtk+ it > > would say > > > that pkgconfig reported v2.8.4 of glib, but it found my old one. After > > unsuccessfully trying to figure that problem out, I gave up and decided > > that I would just rebuild the programs that didn't work with the new gl= ib > > version Now I'm getting an error said that configure can't link to the > > pango libraries, when I know I have them installed in /usr/local. > > What version of gimp are you trying to install? > > Debian already has gimp-2.2.9 (and updated versions of the needed > libraries) so you may want to stick to Debian testing or unstable if you > are not doing hardcore > development. > http://packages.debian.org/gimp > > > > Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yinglcs@aim.com Tue Dec 13 11:44:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A19F3B0A24 for ; Tue, 13 Dec 2005 11:44:04 -0500 (EST) 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 15888-02 for ; Tue, 13 Dec 2005 11:43:57 -0500 (EST) Received: from imo-m19.mx.aol.com (imo-m19.mx.aol.com [64.12.137.11]) by menubar.gnome.org (Postfix) with ESMTP id 82B223B0917 for ; Tue, 13 Dec 2005 11:43:56 -0500 (EST) Received: from yinglcs@aim.com by imo-m19.mx.aol.com (mail_out_v38_r6.3.) id h.1f0.48eb5bd5 (57874) for ; Tue, 13 Dec 2005 11:43:49 -0500 (EST) Received: from FWM-R06 (fwm-r06.webmail.aol.com [152.163.211.134]) by air-ia02.mx.aol.com (v108.32) with ESMTP id MAILINIA24-e212439efa4410; Tue, 13 Dec 2005 11:43:49 -0500 Date: Tue, 13 Dec 2005 11:43:48 -0500 From: yinglcs@aim.com Message-Id: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by FWM-R06.sysops.aol.com (152.163.211.134) with HTTP (WebMailUI); Tue, 13 Dec 2005 11:43:48 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 152.163.211.134 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.637 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0, NO_REAL_NAME=0.961, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -1.637 X-Spam-Level: Subject: Find the font of a Widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 16:44:04 -0000 Hi, Can you please tell me how can I which font a widget is using programmically? I can only find this funtion, which just modify the font: gtk_widget_modify_font. Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From paul@linuxaudiosystems.com Tue Dec 13 15:20:30 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F3353B3A93 for ; Tue, 13 Dec 2005 15:20:30 -0500 (EST) 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 04174-03 for ; Tue, 13 Dec 2005 15:20:24 -0500 (EST) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id D86A43B2A7A for ; Tue, 13 Dec 2005 15:19:53 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRG0063PDT4LE26@vms040.mailsrvcs.net> for gtk-list@gnome.org; Tue, 13 Dec 2005 14:19:53 -0600 (CST) Date: Tue, 13 Dec 2005 15:22:29 -0500 From: Paul Davis In-reply-to: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> To: yinglcs@aim.com Message-id: <1134505349.13653.103.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.467 tagged_above=-999 required=2 tests=[AWL=-0.022, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.467 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Find the font of a Widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:20:30 -0000 GtkStyle* style = gtk_widget_get_style(widget); PangoFontDescription* font = style->font; or something like that. i use gtkmm (C++) note that styles are not necessarily set up until after a widget has been realized, because they can be affected by the screen the widget is displayed on. --p From inittab@sdf.lonestar.org Tue Dec 13 15:39:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AE2753B2B57 for ; Tue, 13 Dec 2005 15:39:37 -0500 (EST) 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 05895-06 for ; Tue, 13 Dec 2005 15:39:35 -0500 (EST) Received: from sdf.lonestar.org (ol.freeshell.ORG [192.94.73.20]) by menubar.gnome.org (Postfix) with ESMTP id 5CF743B29CD for ; Tue, 13 Dec 2005 15:39:27 -0500 (EST) Received: from sdf.lonestar.org (IDENT:inittab@freeshell.ORG [192.94.73.30]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id jBDKdHW6011219 for ; Tue, 13 Dec 2005 20:39:17 GMT Received: (from inittab@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id jBDKdHnA019848 for gtk-list@gnome.org; Tue, 13 Dec 2005 20:39:17 GMT Date: Tue, 13 Dec 2005 20:39:17 +0000 From: Greg Schenzel To: gtk-list@gnome.org Message-ID: <20051213203917.GA16628@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-Mailman-Approved-At: Wed, 14 Dec 2005 08:50:02 -0500 Subject: ComboBoxText set_editable equivalent X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: inittab@unixdev.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:39:37 -0000 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable To Whom It May Concern, I'm using gtkmm to build a C++ video stream converter. There are several fields which only need be edited under certain format profiles. Most of these fields are Gtk::ComboBoxText widgets. I need an equivalent for set_editable to prevent the user from selecting a nonsensical combination, but I am unable to find it. In short, what is the best practice to grey-out a ComboBoxText widget? Thanks in Advance, - Greg S. P.S. Please CC me at inittab AT unixdev.net. --=20 Greg Schenzel: inittab@unixdev.net UNIX Administrator, IP Networking Specialist WWW: inittab.netizenweb.com, www.unixdev.net ICQ: 57800324, Yahoo: idle_resonance, AIM: Idle Resonance --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (NetBSD) iD8DBQFDnzF12ua/BJvbazcRAuStAKCf2H6lfne1GxmLmPObSVT9mHPWiwCdFUsl V8s15+jUJcWl1OfOp1W3pE8= =EEM9 -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq-- From zvi.sebrow@verizon.net Wed Dec 14 10:27:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3878D3B3E94; Wed, 14 Dec 2005 10:27:49 -0500 (EST) 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 31045-10; Wed, 14 Dec 2005 10:27:47 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id 51B193B3E24; Wed, 14 Dec 2005 10:27:19 -0500 (EST) Received: from OFFICEPC1 ([151.205.166.142]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRH003S8UWCQCM1@vms048.mailsrvcs.net>; Wed, 14 Dec 2005 09:26:38 -0600 (CST) Date: Wed, 14 Dec 2005 10:26:37 -0500 From: "Zvi Sebrow" To: , Message-id: <00cb01c600c2$c6b53e60$4000a8c0@OFFICEPC1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_00C8_01C60098.DD718070" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.909 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: 1.909 X-Spam-Level: * Cc: Subject: GtkComboEntryBox, tabs and focus X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 15:27:50 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00C8_01C60098.DD718070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there a way to set up a GtkComboEntryBox so that if the user hits the TAB key (while editing text in the EntryBox), the focus would not be grabbed by the down-arrow-box of=20 the ComboBox but rather the next Widget in the window?=20 Zvi ------=_NextPart_000_00C8_01C60098.DD718070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there a way to set up a GtkComboEntryBox so that = if=20 the
user hits the TAB key (while editing text=20 in the EntryBox),
 the focus would not be = grabbed by=20 the down-arrow-box of
the ComboBox but rather the next Widget in = the window? 
 
Zvi
------=_NextPart_000_00C8_01C60098.DD718070-- From napoleone1981@gmail.com Wed Dec 14 17:29:41 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A775B3B127E for ; Wed, 14 Dec 2005 17:29:41 -0500 (EST) 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 07676-04 for ; Wed, 14 Dec 2005 17:29:38 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by menubar.gnome.org (Postfix) with ESMTP id 556463B0D69 for ; Wed, 14 Dec 2005 17:29:38 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 13so223373nzp for ; Wed, 14 Dec 2005 14:29:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oUAtw54RXcNUcE7FujNvn5xGZHbwmwfeypesvM7k/4jzUlZrA6+GAaWbOG4ILxatkK9BB/kdNPOJs99Vgemd2F/jxKK1xusuBJCVlBxhhJ5FUoYtCNNo4oc1QkDnfETBiiyCHQU9b5pg9UMOKiCi7v8oSZOfmhFNE36wRgt/4hw= Received: by 10.65.139.11 with SMTP id r11mr811945qbn; Wed, 14 Dec 2005 14:29:37 -0800 (PST) Received: by 10.65.252.20 with HTTP; Wed, 14 Dec 2005 14:29:37 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 23:29:37 +0100 From: "N@poleone" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.532 tagged_above=-999 required=2 tests=[AWL=0.068, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.532 X-Spam-Level: Subject: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 22:29:41 -0000 Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()= ': error: argument of type `gint (dialogAcquisizione::)(void*)' does not match `gboolean (*)(void*)' The code is (all in the same class): #include gint dialogAcquisizione::acquisisci(gpointer data) { std::cout << "Sto acquisendo...\n"; return (TRUE); } void dialogAcquisizione::on_okbutton2_clicked() { std::cout << "Intercettato l'evento di ok\n" << "Inzializzo il timer\n"; guint timer_id; timer_id =3D gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); //this.hide(); } Why??? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Wed Dec 14 22:38:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBC1A3B0E7D for ; Wed, 14 Dec 2005 22:38:06 -0500 (EST) 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 29657-06 for ; Wed, 14 Dec 2005 22:38:02 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id 09E973B0BBB for ; Wed, 14 Dec 2005 22:38:02 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRI00KJVSRBT1O4@vms048.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Dec 2005 21:38:01 -0600 (CST) Date: Wed, 14 Dec 2005 22:40:39 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134618039.7539.9.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 03:38:07 -0000 On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > Hi, > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > is the same...). I'm using C++... > The error is: > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > match `gboolean (*)(void*)' > > The code is (all in the same class): > > #include > > gint dialogAcquisizione::acquisisci(gpointer data) this should return gboolean. > { > std::cout << "Sto acquisendo...\n"; > return (TRUE); > } > > void dialogAcquisizione::on_okbutton2_clicked() > { > std::cout << "Intercettato l'evento di ok\n" > << "Inzializzo il timer\n"; > guint timer_id; > timer_id = > gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); > //this.hide(); > } > > Why??? > -- > Ciao da > N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) > "Le battaglie si vincono con gli uomini che si hanno, non con quelli che > si vorrebbero" (Napoleone Bonaparte) > "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) > "Le donne possono avere bambini...gli uomini computers" (Anonimo) > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From ramachandracs@rediffmail.com Wed Dec 14 23:09:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BE6173B0011 for ; Wed, 14 Dec 2005 23:09:37 -0500 (EST) 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 32121-07 for ; Wed, 14 Dec 2005 23:09:35 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.147]) by menubar.gnome.org (Postfix) with SMTP id 4F09C3B07C0 for ; Wed, 14 Dec 2005 23:09:32 -0500 (EST) Received: (qmail 15283 invoked by uid 510); 15 Dec 2005 04:08:57 -0000 Date: 15 Dec 2005 04:08:57 -0000 Message-ID: <20051215040857.15281.qmail@webmail25.rediffmail.com> Received: from unknown (59.92.155.231) by rediffmail.com via HTTP; 15 dec 2005 04:08:57 -0000 MIME-Version: 1.0 From: "Ramachandra CS" To: "gtk_list" Content-type: multipart/mixed; boundary="Next_1134619737---0-203.199.83.147-15278" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.97 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0, TW_GT=0.077] X-Spam-Score: -0.97 X-Spam-Level: Subject: Fwd: Warning :*****: When I run GTK Application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ramachandra CS List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 04:09:37 -0000 This is a multipart mime message --Next_1134619737---0-203.199.83.147-15278 Content-type: multipart/alternative; boundary="Next_1134619737---1-203.199.83.147-15278" This is a multipart mime message --Next_1134619737---1-203.199.83.147-15278 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0A=0A=0ANote: Forwarded message attached=0A=0A-- Original Message --= =0A=0AFrom: "Ramachandra CS" =0ATo: gtk-list@= gnome.org=0ASubject: Warning :*****: When I run GTK Application=0A --Next_1134619737---1-203.199.83.147-15278 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0A
=0A
=0ANote: Forwarded message attached
=0A=0A-- Original Message --
=0A
=0AFrom: "Ramachandra CS" &= lt;ramachandracs@rediffmail.com>
=0ATo: gtk-list@gnome.org
=0ASubj= ect: Warning :*****: When I run GTK Application
=0A=0A

=0A

=0A=
=0A --Next_1134619737---1-203.199.83.147-15278-- --Next_1134619737---0-203.199.83.147-15278 Content-type: message/rfc822 MIME-Version: 1.0 Message-ID: <20051213035808.10265.qmail@webmail62.rediffmail.com> From: "Ramachandra CS" To: gtk-list@gnome.org Subject: Warning :*****: When I run GTK Application Content-Type: multipart/mixed; boundary="===============1428433415==" This is a multipart mime message --===============1428433415== Content-type: multipart/alternative; boundary="Next_1134446288---0-203.199.83.136-10251" This is a multipart mime message --Next_1134446288---0-203.199.83.136-10251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0A=A0 I am facing some problems when i run my GTK Applications. = And also when i click on any widget, it display the Gdk-WARNING, but the ap= plication works fine some times. =0A =0A So Can u suggest me some i= deas to correct these problems. And the following are the Gdk-WARNINGS.....= .........................=0A=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-885= 9-1': No such file or directory=0A=0A(tcsetup:903): Gdk-WARNING **: Error c= onverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'I= SO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conve= rting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8= 859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error convertin= g from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-= 1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fr= om UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' i= s not supported=0AEXEC FAILED!=0A=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fro= m UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is= not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UT= F-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not= supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 = to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not sup= ported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to S= TRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not support= ed=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRIN= G: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0AEXEC FAILED!=0A= =0A=0A=0A=0ARegards,=0A-r=0A --Next_1134446288---0-203.199.83.136-10251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A Hi,
=0A
=0A    I am facing some problems when i run= my GTK Applications. And also when i click on any widget, it display the G= dk-WARNING, but the application works fine some times.
=0A   =
=0A    So Can u suggest me some ideas to correct these pro= blems. And the following are the Gdk-WARNINGS..............................=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1': No such fil= e or directory
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Erro= r converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to= 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A(tcsetup:903= ): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from c= haracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup= :903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fr= om character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcs= etup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversio= n from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A= (tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conve= rsion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: C= onversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
= =0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING= : Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to ST= RING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supporte= d
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 t= o STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supp= orted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF= -8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not = supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from= UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is = not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting = from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1'= is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-885= 9-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error con= verting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO= -8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error= converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to = 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A
=0A
= =0A
=0ARegards,
=0A-r
=0A=0A

=0A

=0A=0A --Next_1134446288---0-203.199.83.136-10251-- --===============1428433415== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list --===============1428433415==-- --Next_1134619737---0-203.199.83.147-15278-- From napoleone1981@gmail.com Thu Dec 15 03:24:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 053953B09DE for ; Thu, 15 Dec 2005 03:24:43 -0500 (EST) 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 16480-05 for ; Thu, 15 Dec 2005 03:24:40 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 2AE3B3B12AB for ; Thu, 15 Dec 2005 03:24:36 -0500 (EST) Received: by zproxy.gmail.com with SMTP id x7so324686nzc for ; Thu, 15 Dec 2005 00:24:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VarLhpl1OBxpO1q2ihoRGM4MpUPJZUQes57n5Mw8A6P8b0kjizTb9V9dGwVsOjePYT7jsLU1qwnk2raAjY8pH91MTVExO/yEyFn/ujKi19tUsLgX7Ks0Sv0JgpFoZq6D+GBgTc1UC7+o6JVQXvIWzThyceay6Z4NnOlHPyLEzEY= Received: by 10.65.75.3 with SMTP id c3mr302974qbl; Thu, 15 Dec 2005 00:24:35 -0800 (PST) Received: by 10.65.252.20 with HTTP; Thu, 15 Dec 2005 00:24:35 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 09:24:35 +0100 From: "N@poleone" To: paul@linuxaudiosystems.com In-Reply-To: <1134618039.7539.9.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134618039.7539.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.542 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.542 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 08:24:43 -0000 2005/12/15, Paul Davis : > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > > Hi, > > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > > is the same...). I'm using C++... > > The error is: > > > > In member function `virtual void dialogAcquisizione::on_okbutton2_click= ed()': > > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > > match `gboolean (*)(void*)' > > > > The code is (all in the same class): > > > > #include > > > > gint dialogAcquisizione::acquisisci(gpointer data) > > this should return gboolean. > I resolved defining the function as static... -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From napoleone1981@gmail.com Wed Dec 14 09:39:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6C493B07BB for ; Wed, 14 Dec 2005 09:39:56 -0500 (EST) 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 26251-03 for ; Wed, 14 Dec 2005 09:39:54 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by menubar.gnome.org (Postfix) with ESMTP id C69D73B3D3D for ; Wed, 14 Dec 2005 09:39:27 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i12so401477wra for ; Wed, 14 Dec 2005 06:39:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=L++9lHaIlew3AxXuWEMYxz5pRxhlje9E+04MsVQgSPikCyWsFCTPYAAtHQ/ELBxKeeRLYMr0B2MLI9Rwa0E2iMsEI8UkSJjh4pSiqelYdM+f0lF9fEx1xRQ6oueHuA5sObEIsY4XzoA0UQOGSk0Cv3db7Da5GoORa0Dq+NZGPi4= Received: by 10.64.91.18 with SMTP id o18mr441810qbb; Wed, 14 Dec 2005 06:39:25 -0800 (PST) Received: by 10.65.252.20 with HTTP; Wed, 14 Dec 2005 06:39:25 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 15:39:25 +0100 From: "N@poleone" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Thu, 15 Dec 2005 09:03:02 -0500 Subject: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 14:39:57 -0000 Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()= ': error: argument of type `gint (dialogAcquisizione::)(void*)' does not match `gboolean (*)(void*)' The code is (all in the same class): #include gint dialogAcquisizione::acquisisci(gpointer data) { =09std::cout << "Sto acquisendo...\n"; =09return (TRUE); } void dialogAcquisizione::on_okbutton2_clicked() { =09std::cout << "Intercettato l'evento di ok\n" =09=09=09<< "Inzializzo il timer\n"; =09guint timer_id; =09timer_id =3D gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acqui= sisci,NULL); =09//this.hide(); } Why??? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Thu Dec 15 09:27:31 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 386FD3B1DD3 for ; Thu, 15 Dec 2005 09:27:31 -0500 (EST) 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 20405-01 for ; Thu, 15 Dec 2005 09:27:29 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 44BAF3B1D03 for ; Thu, 15 Dec 2005 09:27:29 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRJ00GAVMTMH9S5@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Dec 2005 08:27:26 -0600 (CST) Date: Thu, 15 Dec 2005 09:30:02 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134657002.7539.28.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1134618039.7539.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 14:27:31 -0000 On Thu, 2005-12-15 at 09:24 +0100, N@poleone wrote: > 2005/12/15, Paul Davis : > > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > > > Hi, > > > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > > > is the same...). I'm using C++... > > > The error is: > > > > > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > > > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > > > match `gboolean (*)(void*)' > > > > > > The code is (all in the same class): > > > > > > #include > > > > > > gint dialogAcquisizione::acquisisci(gpointer data) > > > > this should return gboolean. > > > > I resolved defining the function as static... wow, somehow i completely missed out on the C++ part. amazing. why are you not using gtkmm ? this allows you to use a fully C++ idiom (or several of them) with GTK. its very, very, very nice. and where its not nice, that's GTK's fault :) --p From jean.brefort@normalesup.org Thu Dec 15 11:16:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 944413B27AF for ; Thu, 15 Dec 2005 11:16:38 -0500 (EST) 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 30293-04 for ; Thu, 15 Dec 2005 11:16:33 -0500 (EST) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 561593B27BE for ; Thu, 15 Dec 2005 11:16:22 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id 7C0AD6CC06; Thu, 15 Dec 2005 17:16:21 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: "N@poleone" In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Thu, 15 Dec 2005 17:12:11 +0100 Message-Id: <1134663131.9201.9.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.909 tagged_above=-999 required=2 tests=[AWL=-0.379, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.909 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 16:16:43 -0000 Le mercredi 14 décembre 2005 à 15:39 +0100, N@poleone a écrit : > Hi, > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > is the same...). I'm using C++... > The error is: > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > match `gboolean (*)(void*)' > > The code is (all in the same class): > > #include > > gint dialogAcquisizione::acquisisci(gpointer data) > { > std::cout << "Sto acquisendo...\n"; > return (TRUE); > } > > void dialogAcquisizione::on_okbutton2_clicked() > { > std::cout << "Intercettato l'evento di ok\n" > << "Inzializzo il timer\n"; > guint timer_id; > timer_id = gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); > //this.hide(); > } > > Why??? You cannot use a C++ class method directly in gtk_timeout_add. One way to do that is: void cb_timeout (dialogAcquisizione *dialog) { dialog->acquisici(NULL); // do you really need an argument? } ... timer_id = gtk_timeout_add(5000,G_CALLBACK (cb_timeout), this); From napoleone1981@gmail.com Thu Dec 15 11:58:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6BD593B2642 for ; Thu, 15 Dec 2005 11:58:15 -0500 (EST) 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 01705-04 for ; Thu, 15 Dec 2005 11:58:13 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by menubar.gnome.org (Postfix) with ESMTP id 3CA3C3B2813 for ; Thu, 15 Dec 2005 11:57:54 -0500 (EST) Received: by zproxy.gmail.com with SMTP id z31so419070nzd for ; Thu, 15 Dec 2005 08:57:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R5ns24oNzpmd7Viml1PKNEazTKkWtq4XCc/PbSfgUtetnk84QTpviZajdxQhFCNWSFO/TJ1dpRTatm09ZiKZSlY5IgfZ/Hdpb+i5hCtX0mJvIdIMtLW2KNKlcBIO4znFxIIkvrf4W8gKpIoa2WqDVErt/tD4sP07qNZbgEor8gg= Received: by 10.65.160.11 with SMTP id m11mr1153352qbo; Thu, 15 Dec 2005 08:57:53 -0800 (PST) Received: by 10.65.252.20 with HTTP; Thu, 15 Dec 2005 08:57:53 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 17:57:53 +0100 From: "N@poleone" To: paul@linuxaudiosystems.com In-Reply-To: <1134657002.7539.28.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134618039.7539.9.camel@localhost.localdomain> <1134657002.7539.28.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 16:58:15 -0000 2005/12/15, Paul Davis : > On Thu, 2005-12-15 at 09:24 +0100, N@poleone wrote: > > 2005/12/15, Paul Davis : > > > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: [CUT] > > > > I resolved defining the function as static... > > > wow, somehow i completely missed out on the C++ part. amazing. > > why are you not using gtkmm ? this allows you to use a fully C++ idiom > (or several of them) with GTK. its very, very, very nice. and where its > not nice, that's GTK's fault :) > > --p I'm using gtkmm, but I couldn't find the same function in gtkmm, so I found that in gtk. Theres is a g_timeout_add function also for gtkmm?? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Thu Dec 15 12:19:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87FB63B2C76 for ; Thu, 15 Dec 2005 12:19:54 -0500 (EST) 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 04002-06 for ; Thu, 15 Dec 2005 12:19:52 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id CD70A3B2A41 for ; Thu, 15 Dec 2005 12:12:27 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRJ00EGAUGP6KW5@vms048.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Dec 2005 11:12:27 -0600 (CST) Date: Thu, 15 Dec 2005 12:15:05 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134666905.7539.40.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1134618039.7539.9.camel@localhost.localdomain> <1134657002.7539.28.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 17:19:54 -0000 > > why are you not using gtkmm ? this allows you to use a fully C++ idiom > > (or several of them) with GTK. its very, very, very nice. and where its > > not nice, that's GTK's fault :) > > > > --p > > I'm using gtkmm, but I couldn't find the same function in gtkmm, so I > found that in gtk. > Theres is a g_timeout_add function also for gtkmm?? Glib::signal_timeout().connect (mem_fun (object, &SomeObject::method), msecs); From control.h@gmail.com Thu Dec 15 14:47:34 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EEEC73B2AD7 for ; Thu, 15 Dec 2005 14:47:33 -0500 (EST) 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 17591-01 for ; Thu, 15 Dec 2005 14:47:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 8B53E3B2CE2 for ; Thu, 15 Dec 2005 14:47:30 -0500 (EST) Received: by zproxy.gmail.com with SMTP id x7so463784nzc for ; Thu, 15 Dec 2005 11:47:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KOS4o0Mkx7tm1uwYAmoDdS+PvxrDvqKJ0ATgdoBgsUXundksjyB31ldhf4SkEKfFMVrwCyqs8vAy5Gg3gxikiqDv2dd8gBakKkbwhM6YE4pXBxGSJxiCwhcbjl8qgFyOTxmyP0lURfdoZyBkGKl9oYYmSPBMwkfv5uhYtk/QOnA= Received: by 10.64.242.4 with SMTP id p4mr409845qbh; Thu, 15 Dec 2005 11:47:28 -0800 (PST) Received: by 10.64.204.13 with HTTP; Thu, 15 Dec 2005 11:47:26 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 20:47:26 +0100 From: control H To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: force configure-event X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 19:47:34 -0000 Hi all, in my app I connect an "event" callback to a button. From within this callback I try to force a "configure-event" for a gtdrawingarea by calling gtk_widget_queue_draw(drawing_area). However, this signal is never emitted, therefore the drawingarea never gets redrawn. Any ideas why? From riboaz@xs4all.nl Thu Dec 15 16:18:25 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A1E33B2131 for ; Thu, 15 Dec 2005 16:18:25 -0500 (EST) 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 26131-08 for ; Thu, 15 Dec 2005 16:18:21 -0500 (EST) Received: from smtp-vbr8.xs4all.nl (smtp-vbr8.xs4all.nl [194.109.24.28]) by menubar.gnome.org (Postfix) with ESMTP id 9F3983B20D8 for ; Thu, 15 Dec 2005 16:18:20 -0500 (EST) Received: from webmail.xs4all.nl (dovemail1.xs4all.nl [194.109.26.3]) by smtp-vbr8.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBFLICL7050685 for ; Thu, 15 Dec 2005 22:18:16 +0100 (CET) (envelope-from riboaz@xs4all.nl) Received: from 80.126.242.36 (SquirrelMail authenticated user riboaz) by webmail.xs4all.nl with HTTP; Thu, 15 Dec 2005 22:18:16 +0100 (CET) Message-ID: <22449.80.126.242.36.1134681496.squirrel@webmail.xs4all.nl> In-Reply-To: References: Date: Thu, 15 Dec 2005 22:18:16 +0100 (CET) From: "Richard Boaz" To: gtk-list@gnome.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Re: force configure-event X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 21:18:25 -0000 > Hi all, > > in my app I connect an "event" callback to a button. From within this > callback I try to force a "configure-event" for a gtdrawingarea by calling > gtk_widget_queue_draw(drawing_area). However, this signal is never > emitted, therefore the drawingarea never gets redrawn. > > Any ideas why? hi, configure-event is called upon initial exposure of the drawing area and changes in dimension (and probably more). gtk_widget_queue_draw() will invoke the expose-event callback you have defined for the drawing area. one paradigm for managing this type of situation: - in the configure event, call the routine responsible for making the drawing - in the drawing routine, draw everything to a pixmap. last line of code is gtk_widget_queue_draw() on the drawing area the pixmap should be rendered to. - in the expose event, do nothing (in terms of drawing) except draw the pixmap to the drawing area following this allows you to call your drawing routines from within the program itself, always resulting in a refresh of the drawing area. ciao, richard From zboszor@freemail.hu Thu Dec 15 20:19:46 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E4BE3B2D14 for ; Thu, 15 Dec 2005 20:19:46 -0500 (EST) 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 12416-10 for ; Thu, 15 Dec 2005 20:19:41 -0500 (EST) Received: from linux.dunaweb.hu (linux.dunaweb.hu [62.77.196.1]) by menubar.gnome.org (Postfix) with ESMTP id 5B6FB3B1384 for ; Thu, 15 Dec 2005 20:19:41 -0500 (EST) Received: from localhost (linux.dunaweb.hu [127.0.0.1]) by linux.dunaweb.hu (Postfix) with ESMTP id E033F8E057F for ; Fri, 16 Dec 2005 02:19:39 +0100 (CET) Received: from linux.dunaweb.hu ([127.0.0.1]) by localhost (linux.dunaweb.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-02 for ; Fri, 16 Dec 2005 02:19:34 +0100 (CET) Received: from szolnok.dunaweb.hu (unknown [192.168.3.154]) by linux.dunaweb.hu (Postfix) with ESMTP id 61AD88E0539 for ; Fri, 16 Dec 2005 02:19:33 +0100 (CET) Received: from [81.17.177.202] (host-81-17-177-202.dunaweb.hu [81.17.177.202]) by szolnok.dunaweb.hu (Postfix) with ESMTP id 9F3B78913CC for ; Fri, 16 Dec 2005 02:19:25 +0100 (CET) Message-ID: <43A21DBA.6060405@freemail.hu> Date: Fri, 16 Dec 2005 02:51:54 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at dunaweb.hu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: Linking both GTK-1.2 and GTK-2.x libs X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 01:19:46 -0000 Hi, I have a GTK-1.2 application and I would like to use the RLIB reporting engine. Problem is, RLIB uses GLIB-2.x internally. Is it possible to link together both GTK/GLIB versions together and have it working? What I have done is that I wrapped all RLIB calls into an own library, so my reporting library can include different set of include headers ( and ) as the main application and it compiles nicely. However, RLIB opens it's lower level DBMS accessor modules with e.g. g_module_open("libr-odbc", 2). It seems that it finds the wrong version of the function, strace shows it tries to dlopen /usr/lib64/libr-odbc instead of /usr/lib64/libr-odbc.so. The whole stuff works nicely in another fully GTK-2.x application, g_module_open() in GLIB-2.x finds the correct shared library name even on Windows. I "fixed" it with creating a symlink but then it crashes elsewhere, I guess it comes from the same problem. If linking together GTK-1.2 and GTK-2.x can be done, how? Best regards, Zoltán Böszörményi From raphtee@gmail.com Thu Dec 15 21:14:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BBA583B0D53 for ; Thu, 15 Dec 2005 21:14:04 -0500 (EST) 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 16008-09 for ; Thu, 15 Dec 2005 21:14:02 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by menubar.gnome.org (Postfix) with ESMTP id C8EB83B0C62 for ; Thu, 15 Dec 2005 21:14:01 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so694213wxc for ; Thu, 15 Dec 2005 18:14:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=XPkOt0MwaPEu8C7ponuKXIP6Poq0MeKH9ImEPasckqnrCFrRj8dm+OIw6Q4Mbqj5KwmYz9jjUlUMBKJbZyeuajSBYWzzllwuJkwAwECVwshmS/xLZZLyU7xSDaNN+YxXUwqB2JgBVtBtBpVYIIToJ6J2TMuB+ccgMIurlqrZhCI= Received: by 10.70.74.20 with SMTP id w20mr224557wxa; Thu, 15 Dec 2005 18:13:58 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id i20sm3764426wxd.2005.12.15.18.13.58; Thu, 15 Dec 2005 18:13:58 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 15 Dec 2005 21:13:56 -0500 Message-Id: <1134699236.1450.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: To kill a GThread X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:14:04 -0000 Hi, I am trying to figure out how to kill a GThread that I created using g_thread_create(). I couldn't find anything in DevHelp that would indicate a way to kill a thread. It seems the only way is to signal the thread and have the thread call g_thread_exit() itself. Is there a way to kill a thread from another thread directly? Travis Miller From chris@cvine.freeserve.co.uk Fri Dec 16 04:43:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2B5093B115E for ; Fri, 16 Dec 2005 04:43:09 -0500 (EST) 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 15009-04 for ; Fri, 16 Dec 2005 04:43:05 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id ECAFD3B0D40 for ; Fri, 16 Dec 2005 04:43:00 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3213.me.freeserve.com (SMTP Server) with ESMTP id B8837B000084; Fri, 16 Dec 2005 10:42:59 +0100 (CET) Received: from boulder.homenet (user-865.l5.c1.dsl.pol.co.uk [84.66.3.97]) by mwinf3213.me.freeserve.com (SMTP Server) with ESMTP id 92730B000086; Fri, 16 Dec 2005 10:42:59 +0100 (CET) X-ME-UUID: 20051216094259599.92730B000086@mwinf3213.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id jBG9gxAN000792; Fri, 16 Dec 2005 09:42:59 GMT From: Chris Vine To: gtk-list@gnome.org, raphtee@gmail.com Date: Fri, 16 Dec 2005 09:42:59 +0000 User-Agent: KMail/1.9 References: <1134699236.1450.6.camel@localhost.localdomain> In-Reply-To: <1134699236.1450.6.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512160942.59380.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.264 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.264 X-Spam-Level: Cc: Subject: Re: To kill a GThread X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 09:43:09 -0000 On Friday 16 December 2005 02:13, Travis Miller wrote: > Hi, > > I am trying to figure out how to kill a GThread that I created using > g_thread_create(). I couldn't find anything in DevHelp that would > indicate a way to kill a thread. It seems the only way is to signal the > thread and have the thread call g_thread_exit() itself. Is there a way > to kill a thread from another thread directly? You would have to write some implementation-specific code. If you know that the underlying implementation is pthreads, you could get the thread id of the thread you want to cancel and call pthread_cancel() on it, after calling pthread_cleanup_push() or pthread_cleanup_pop() as necessary to ensure the cancelled thread cleans up its resources (such as memory allocated on the heap). I believe Windows has a similar call, but I do not know its name, nor whether it chooses a similar set of cancellation points. Chris From ztuylek@inonu.edu.tr Fri Dec 16 05:51:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CC3B006B for ; Fri, 16 Dec 2005 05:51:48 -0500 (EST) 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 20532-05 for ; Fri, 16 Dec 2005 05:51:46 -0500 (EST) Received: from inonu.edu.tr (unknown [193.140.142.6]) by menubar.gnome.org (Postfix) with ESMTP id 40DCF3B0C38 for ; Fri, 16 Dec 2005 05:51:37 -0500 (EST) Received: from inonu.edu.tr (localhost [127.0.0.1]) by inonu.edu.tr (Postfix) with ESMTP id DFD9EEC229 for ; Fri, 16 Dec 2005 12:51:23 +0200 (EET) Received: from [193.140.142.252] (unknown [193.140.142.252]) by inonu.edu.tr (Postfix) with ESMTP id C91ABEC225 for ; Fri, 16 Dec 2005 12:51:23 +0200 (EET) Message-ID: <43A29C22.5050005@inonu.edu.tr> Date: Fri, 16 Dec 2005 12:51:14 +0200 From: ztuylek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.124 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: 1.124 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 10:51:48 -0000 From lists@nabble.com Thu Dec 15 21:22:47 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A322F3B144F for ; Thu, 15 Dec 2005 21:22:47 -0500 (EST) 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 16739-07 for ; Thu, 15 Dec 2005 21:22:45 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 56A8E3B0A13 for ; Thu, 15 Dec 2005 21:22:44 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1En5F5-0001C3-V1 for gtk-list@gnome.org; Thu, 15 Dec 2005 18:22:44 -0800 Message-ID: <1968302.post@talk.nabble.com> Date: Thu, 15 Dec 2005 18:22:43 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org In-Reply-To: <1916845.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_417_6830323.1134699763957" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 References: <1916845.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-Mailman-Approved-At: Fri, 16 Dec 2005 08:14:29 -0500 Subject: Re: how to add an icon to the item in my list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:22:47 -0000 ------=_Part_417_6830323.1134699763957 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit help -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/how-to-add-an-icon-to-the-item-in-my-list-t731785.html#a1968302 ------=_Part_417_6830323.1134699763957 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit help

Sent from the
Gtk+ - General forum at Nabble.com:
Re: how to add an icon to the item in my list ------=_Part_417_6830323.1134699763957-- From yeajchao@yahoo.com.cn Sat Dec 17 23:28:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 132343B19AB for ; Sat, 17 Dec 2005 23:28:12 -0500 (EST) 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 11230-01 for ; Sat, 17 Dec 2005 23:28:07 -0500 (EST) Received: from web15108.mail.cnb.yahoo.com (web15108.mail.cnb.yahoo.com [202.165.103.77]) by menubar.gnome.org (Postfix) with SMTP id 1BB053B0C13 for ; Sat, 17 Dec 2005 23:28:06 -0500 (EST) Received: (qmail 82543 invoked by uid 60001); 18 Dec 2005 04:28:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JCKDec8fdb08yTXoGqD7YkdldKF1JfsMDsP1GgySZhjDIep6euwm9h72DCOhG03k1EK3Wcqs011kzmgdCrYu34EUhaD5dCUaYjPGah82FLEfeG2YQVQwgHXzyWLFbenep9ndB6ReWaPRhVk+hnZIyCWXTKZ69laEfxEPcmshXHE= ; Message-ID: <20051218042803.82541.qmail@web15108.mail.cnb.yahoo.com> Received: from [159.226.165.155] by web15108.mail.cnb.yahoo.com via HTTP; Sun, 18 Dec 2005 12:28:03 CST Date: Sun, 18 Dec 2005 12:28:03 +0800 (CST) From: yeajchao To: gtk-app , gtk-list MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.909 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: 1.909 X-Spam-Level: * Cc: Subject: question about combo X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:28:12 -0000 hello all In my application,i use combo in somewhere the problem is when i click on it he popup a list when i move mouse on the list the selected highligth don't move accordingly what can i do ? any help would be much appreciate __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com From yeajchao@yahoo.com.cn Sat Dec 17 23:49:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 559393B1989 for ; Sat, 17 Dec 2005 23:49:12 -0500 (EST) 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 12804-06 for ; Sat, 17 Dec 2005 23:49:08 -0500 (EST) Received: from web15102.mail.cnb.yahoo.com (web15102.mail.cnb.yahoo.com [202.165.103.71]) by menubar.gnome.org (Postfix) with SMTP id 18B553B161A for ; Sat, 17 Dec 2005 23:49:07 -0500 (EST) Received: (qmail 621 invoked by uid 60001); 18 Dec 2005 04:49:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X5Qn5T1sSyQv0Ja9Vgzvw9BNqLBxfgmf0dWHXpyFQF6dkikX8f8N9djdlfumCkkENs8HlajtQnTw2NsFPbYBd8I/D8D4YBPRYih6EC+bpl3V4O+9UUkEntPZUhrbP1ljHEezHnAi2Rp46926gwy1Bhy+vgVPMUi4BXD5VjrM69Q= ; Message-ID: <20051218044905.619.qmail@web15102.mail.cnb.yahoo.com> Received: from [159.226.165.155] by web15102.mail.cnb.yahoo.com via HTTP; Sun, 18 Dec 2005 12:49:05 CST Date: Sun, 18 Dec 2005 12:49:05 +0800 (CST) From: yeajchao To: gtk-app , gtk-list MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.782 tagged_above=-999 required=2 tests=[AWL=-1.127, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: 0.782 X-Spam-Level: Cc: Subject: about draw color line or polygon X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:49:12 -0000 kello all i want draw line or my own widget with color how can i draw a polygon with color ,and in the polygon, the color are not the same ,the coloe in the polygon have setp change from red to green any help would be much appreciate __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com From meyerro3@msu.edu Sun Dec 18 14:00:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC4CE3B2887 for ; Sun, 18 Dec 2005 14:00:22 -0500 (EST) 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 19539-05 for ; Sun, 18 Dec 2005 14:00:19 -0500 (EST) Received: from sys22.mail.msu.edu (sys22.mail.msu.edu [35.9.75.122]) by menubar.gnome.org (Postfix) with ESMTP id 783F63B2814 for ; Sun, 18 Dec 2005 14:00:12 -0500 (EST) Received: from meyerro3 by sys22.mail.msu.edu with local (Exim 4.52 #1) id 1Eo3lT-00010H-JW for gtk-list@gnome.org; Sun, 18 Dec 2005 14:00:11 -0500 From: "Robert Steven Meyer" To: gtk-list@gnome.org Date: Sun, 18 Dec 2005 14:00:11 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: Errors on first compile -- base.c X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 19:00:23 -0000 I've been following the tutorial and ran into a ton of errors on my first compile. I'm assuming since i made it this far, that I didn't screw up the install but this is the first time i've ever messed around with GTK and I am without a doubt new to all of this. Here is what terminal spit out at me... $ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33, from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33, from /usr/include/gtk-2.0/gdk/gdkcairo.h:24, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from base.c:1: /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: warning: data definition has no type or storage class /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: warning: data definition has no type or storage class /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33, from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkobject.h:207: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkobject.h:207: warning: data definition has no type o r storage class /usr/include/gtk-2.0/gtk/gtkobject.h:210: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkobject.h:210: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33, from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkwidget.h:447: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkwidget.h:447: warning: data definition has no type o r storage class /usr/include/gtk-2.0/gtk/gtkwidget.h:719: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkwidget.h:719: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkcontainer.h:174: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:174: warning: data definition has no typ e or storage class /usr/include/gtk-2.0/gtk/gtkcontainer.h:178: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:178: warning: data definition has no typ e or storage class /usr/include/gtk-2.0/gtk/gtkcontainer.h:182: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:182: warning: data definition has no typ e or storage class In file included from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkdialog.h:141: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkdialog.h:141: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: warning: data definition has no ty pe or storage class In file included from /usr/include/gtk-2.0/gtk/gtkcelllayout.h:26, from /usr/include/gtk-2.0/gtk/gtk.h:49, from base.c:1: /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: error: syntax error before ‘G_ GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: warning: data definition has n o type or storage class /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: error: syntax error before ‘G_ GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: warning: data definition has n o type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:49, from base.c:1: /usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: warning: data definition has no typ e or storage class In file included from /usr/include/gtk-2.0/gtk/gtkcombobox.h:25, from /usr/include/gtk-2.0/gtk/gtk.h:65, from base.c:1: /usr/include/gtk-2.0/gtk/gtktreeview.h:170: error: syntax error before ‘G_GNUC_N ULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeview.h:170: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:82, from base.c:1: /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: error: syntax error before ‘ G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: warning: data definition has no type or storage class /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: error: syntax error before ‘ G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:158, from base.c:1: /usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: warning: data definition has no ty pe or storage class /usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: warning: data definition has no ty pe or storage class From dbasald@libero.it Mon Dec 19 06:13:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A3B23B077A for ; Mon, 19 Dec 2005 06:13:01 -0500 (EST) 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 29197-05 for ; Mon, 19 Dec 2005 06:12:58 -0500 (EST) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by menubar.gnome.org (Postfix) with ESMTP id B81A03B0971 for ; Mon, 19 Dec 2005 06:12:57 -0500 (EST) Received: from localhost (172.16.1.79) by smtp1.libero.it (7.0.027-DD01) id 439D8FC3009FE6D4 for gtk-list@gnome.org; Mon, 19 Dec 2005 12:12:57 +0100 Received: from smtp2.libero.it ([172.16.1.97]) by localhost (asav1.libero.it [193.70.192.150]) (amavisd-new, port 10024) with ESMTP id 10316-03 for ; Mon, 19 Dec 2005 12:12:56 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp2.libero.it (7.0.027-DD01) id 431C3B20011A7DF9 for gtk-list@gnome.org; Mon, 19 Dec 2005 12:12:56 +0100 Date: Mon, 19 Dec 2005 12:12:56 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "dbasald@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 82.48.216.104 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.576 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_PG=0.077] X-Spam-Score: -0.576 X-Spam-Level: Subject: gtk_object bad signal X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 11:13:01 -0000 hi all I'm new of GTK+ pogramming. I'm tring to develp an application in linux w= ritten in C with GTK 2.8 libraries. This app is interfaced with a database, reads data from it and create a G= UI. I made a GTK object for detection of database UPDATEs, I mean: when the D= Bmanager receives an UPDATE command from a connection it starts a RULE th= at emits a signal. My object has a p_thread looping over a SELECT that checks for DBmanager signals. After detection of DB signal emission my ob= ject emits an own gtk-signal (named disp-signal). This last gtk-signal is connected to a function for GUI updating by a g_s= ignal_connect(). Same function is also called by one other g_signal_connect() activted by = a button_press_event. This two connections are because the user can change values shown in GUI = but s/he is allowed to comeback to batabase settings. If the user saves some new values all other clients pr= ograms have to update their GUI. The problem is here: if I click te button the GUI is updated correctly bu= t when the "updateGUIfunction" is called by my object signal the program crashes after a few updates. The c= rash comes with an Xlib error shown into stderr. After that the program objects not updated appears to = work fine but all the widget areas destroyed and newed comes hidden. Sometimes I get a GTK_DRAWABLE failed e= rror like following: (prova_gnome2:10237): Gdk-CRITICAL **: gdk_drawable_get_size: assertion `= GDK_IS_DRAWABLE (drawable)' failed (prova_gnome2:10237): Gdk-CRITICAL **: gdk_window_invalidate_rect: assert= ion `window !=3D NULL' failed It could be due to my signal interface not well initialized: it don't ret= urn user_data like a gtk-button (I don't know why, I followed on-line gtk examples) but I tried to use th= e gtk button signal included in child field of my object with same result= s. Please help me! thanks, Daniele B. The following code is my object for database signal detection and usage i= nto the program: /************************************************************************= *** * pgmonitorr.h ************************************************************************= ****/ #ifdef HAVE_CONFIG_H # include #endif #ifndef __PGMONITORR_H__ #define __PGMONITORR_H__ #include #include "libpq-fe.h" G_BEGIN_DECLS #define PGMONITORR_TYPE (pgmonitorr_get_type ()) #define PGMONITORR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PG= MONITORR_TYPE, Pgmonitorr)) #define PGMONITORR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PGM= ONITORR_TYPE, PgmonitorrClass)) #define IS_PGMONITORR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PG= MONITORR_TYPE)) #define IS_PGMONITORR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PGM= ONITORR_TYPE)) #define PGMONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PGM= ONITORR, PgmonitorrClass)) typedef struct _Pgmonitorr Pgmonitorr; typedef struct _PgmonitorrClass PgmonitorrClass; struct _Pgmonitorr { GtkBin parent; GtkWidget *child; gchar conninfo[500]; gchar segnale[50]; PGconn *async_conn; pthread_t monitor_t; //GThread *monitor_t; }; struct _PgmonitorrClass { GtkBinClass parent_class; void (* pgmonitorr) (Pgmonitorr *pgm); }; GType pgmonitorr_get_type (void); GtkWidget* pgmonitorr_new (char * conninfo, char * segnal= e); void pgmonitorr_clear (Pgmonitorr *pgm); G_END_DECLS #endif /* __PGMONITORR_H__ */ /************************************************************************= *** * pgmonitorr.c ************************************************************************= ****/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include "pgmonitorr.h" #include "libpq-fe.h" // libreria di intergaccia col postgres enum { DISP_SIGNAL, LAST_SIGNAL }; static guint pgmonitorr_signals[LAST_SIGNAL] =3D { 0 }; static void pgmonitorr_class_init (PgmonitorrClass *klass); static void pgmonitorr_init (Pgmonitorr *pgm); static void enable_pgmonitor (Pgmonitorr *pgm); GType pgmonitorr_get_type (void) { static GtkType pgm_type =3D 0; if (!pgm_type) { static const GtkTypeInfo pgm_info =3D { "PGmonitorr", sizeof (Pgmonitorr), sizeof (PgmonitorrClass), (GtkClassInitFunc) pgmonitorr_class_init, (GtkObjectInitFunc) pgmonitorr_init, /* reserved_1 */ NULL, /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, }; pgm_type =3D gtk_type_unique (GTK_TYPE_BIN, &pgm_info); } fprintf (stderr,"pgmonitorr: gettype\n"); return pgm_type; } static void pgmonitorr_class_init (PgmonitorrClass *class) { GtkObjectClass *object_class; object_class =3D (GtkObjectClass*) class; pgmonitorr_signals[DISP_SIGNAL] =3D g_signal_new ("disp_signal", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_FIRST | G_SIGNAL_AC= TION, G_STRUCT_OFFSET (PgmonitorrClass= , pgmonitorr), NULL, NULL, g_cclosure_marshal_VOID__VOID, /*gtk_signal_default_marshaller,*/ GTK_TYPE_NONE, 0); fprintf (stderr,"pgmonitorr: class_init\n"); } static void pgmonitorr_init (Pgmonitorr *pgm) { pgm->child =3D NULL; g_snprintf (pgm->conninfo,500, "%s",""); g_snprintf (pgm->segnale,50, "%s",""); fprintf (stderr, "pgmonitorr: init\n"); } GtkWidget* pgmonitorr_new (char * rconninfo, char * rsegnale) { Pgmonitorr * pgm =3D g_object_new (pgmonitorr_get_type (), NULL); pgm->child =3D GTK_WIDGET(gtk_button_new()); gtk_container_add(GTK_CONTAINER(pgm),GTK_WIDGET(pgm->child)); g_snprintf (pgm->conninfo, 500, "%s",rconninfo); g_snprintf (pgm->segnale, 50, "%s",rsegnale); pthread_create (&(pgm->monitor_t), NULL, (gpointer)enable_pgmonitor, (gp= ointer)pgm); fprintf (stderr,"pgmonitorr: new OK!\n"); return GTK_WIDGET (pgm); } void pgmonitorr_clear (Pgmonitorr *pgm) { printf ("eseguo chiudi_conn Pgmonitor2\n"); pthread_cancel(pgm->monitor_t); pthread_join (pgm->monitor_t,0); PQfinish(pgm->async_conn); } static void enable_pgmonitor(Pgmonitorr *pgm) { int sock; fd_set input_mask; gchar nome[30]; PGresult *res; PGnotify *notify; gchar comando[50]; fprintf (stderr, "pgmonitorr: pthread 1 \n"); pgm->async_conn =3D PQconnectdb(pgm->conninfo); g_snprintf (comando,50, "LISTEN %s;", pgm->segnale); res =3D PQexec(pgm->async_conn, comando); if (PQresultStatus(res) !=3D PGRES_COMMAND_OK) { fprintf(stderr, "LISTEN command failed: %s", PQerrorMessa= ge(pgm->async_conn)); PQclear(res); PQfinish (pgm->async_conn); exit (1); } PQclear(res); fprintf (stderr, "pgmonitorr: pthread 2 \n"); sock =3D PQsocket(pgm->async_conn); for (;;) { fprintf (stderr,"for pgmonitor enable\n"); FD_ZERO(&input_mask); FD_SET(sock, &input_mask); if (sock < 0) { fprintf (stderr, "socket error\n"); break; // shouldn't happen } if (select(sock + 1, &input_mask, NULL, NULL, NULL) < 0) { fprintf(stderr, "select() failed: %s\n", strerror(errno)); PQfinish (pgm->async_conn); } // Now check for input PQconsumeInput(pgm->async_conn); while ((notify =3D PQnotifies(pgm->async_conn)) !=3D NULL) { g_snprintf (nome,30, "%s", notify->relname); fprintf(stderr,"ASYNC NOTIFY of '%s' received from backend pid %d\n",n= ome, notify->be_pid); PQfreemem(notify); g_signal_emit (pgm,pgmonitorr_signals[DISP_SIGNAL], 0); } } fprintf (stderr, "errore pgmonitorr\n"); pgmonitorr_clear (pgm); } /************************************************ *callback.c ***********************/ GtkWidget *monitor_disp=3DNULL; monitor_disp =3D pgmonitorr_new(conninfo->str, "disponibile"); gtk_widget_set_name(monitor_disp,"monitor_disp"); gtk_box_pack_start(GTK_BOX (hbox_generale1),monitor_disp,FALSE,FALSE,0);= g_signal_connect(G_OBJECT(annulla_button),"button_press_event", G_CALLBACK(ins_piatti_modifica_listino), (int*)id_rep); g_signal_connect(G_OBJECT(monitor_disp), "disp_signal", G_CALLBACK(aux_ins_piatti_modifica_listino), id_rep); void aux_ins_piatti_modifica_listino (GtkWidget *elemento, int id_rep) { ins_piatti_modifica_listino(elemento,NULL,id_rep); } void ins_piatti_modifica_listino executes some lookups, destroy a part of= gui and remake it (gtk_vbox_new() ... gtk_spinbutton_new ... gtk_entry_n= ew ...) From mistrial@libero.it Mon Dec 19 15:11:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 849673B2C86 for ; Mon, 19 Dec 2005 15:11:55 -0500 (EST) 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 14308-02 for ; Mon, 19 Dec 2005 15:11:52 -0500 (EST) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id AE0D33B2F1C for ; Mon, 19 Dec 2005 15:09:02 -0500 (EST) Received: from localhost (172.16.1.75) by smtp6.libero.it (7.0.027-DD01) id 439D919300A8B054 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:54 +0100 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav17.libero.it [193.70.193.4]) (amavisd-new, port 10024) with ESMTP id 08822-08 for ; Mon, 19 Dec 2005 21:08:53 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp3.libero.it (7.0.027-DD01) id 431C39E0011B2506 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:53 +0100 Date: Mon, 19 Dec 2005 21:08:53 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.202 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MISSING_SUBJECT=1.816, TW_GT=0.077] X-Spam-Score: 1.202 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:11:55 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:14:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8FAB43B2EE1 for ; Mon, 19 Dec 2005 15:14:23 -0500 (EST) 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 14566-06 for ; Mon, 19 Dec 2005 15:14:21 -0500 (EST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by menubar.gnome.org (Postfix) with ESMTP id 1BC873B2E80 for ; Mon, 19 Dec 2005 15:11:33 -0500 (EST) Received: from localhost (172.16.1.48) by smtp3.libero.it (7.0.027-DD01) id 439D911000A21016 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:40 +0100 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav8.libero.it [193.70.193.94]) (amavisd-new, port 10024) with ESMTP id 06212-08-6 for ; Mon, 19 Dec 2005 21:08:39 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp3.libero.it (7.0.027-DD01) id 431C39E0011B24E2 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:39 +0100 Date: Mon, 19 Dec 2005 21:08:39 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.202 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MISSING_SUBJECT=1.816, TW_GT=0.077] X-Spam-Score: 1.202 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:14:23 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:15:00 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88A493B2EF1 for ; Mon, 19 Dec 2005 15:15:00 -0500 (EST) 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 14673-08 for ; Mon, 19 Dec 2005 15:14:57 -0500 (EST) Received: from smtp5.libero.it (smtp5.libero.it [193.70.192.55]) by menubar.gnome.org (Postfix) with ESMTP id D85E53B2EF3 for ; Mon, 19 Dec 2005 15:12:18 -0500 (EST) Received: from localhost (172.16.1.8) by smtp5.libero.it (7.0.027-DD01) id 439D918400A89E5C for gtk-list@gnome.org; Mon, 19 Dec 2005 21:12:17 +0100 Received: from smtp1.libero.it ([172.16.1.97]) by localhost (asav9.libero.it [193.70.192.87]) (amavisd-new, port 10024) with ESMTP id 13776-04-2 for ; Mon, 19 Dec 2005 21:12:17 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp1.libero.it (7.0.027-DD01) id 431C3A42011BF9A2 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:12:17 +0100 Date: Mon, 19 Dec 2005 21:12:16 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.036 tagged_above=-999 required=2 tests=[AWL=-0.422, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.036 X-Spam-Level: Subject: Forgotten graphic with gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:15:00 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:16:06 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE8043B2E48 for ; Mon, 19 Dec 2005 15:16:06 -0500 (EST) 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 14815-07 for ; Mon, 19 Dec 2005 15:16:04 -0500 (EST) Received: from smtp5.libero.it (smtp5.libero.it [193.70.192.55]) by menubar.gnome.org (Postfix) with ESMTP id 4A94C3B2DFD for ; Mon, 19 Dec 2005 15:13:57 -0500 (EST) Received: from localhost (172.16.1.81) by smtp5.libero.it (7.0.027-DD01) id 439D918400A8A70E for gtk-list@gnome.org; Mon, 19 Dec 2005 21:13:56 +0100 Received: from smtp20.libero.it ([172.16.1.77]) by localhost (asav22.libero.it [193.70.193.9]) (amavisd-new, port 10024) with ESMTP id 25919-12-20 for ; Mon, 19 Dec 2005 21:13:55 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp20.libero.it (7.0.027-DD01) id 431C3BFF0116942B for gtk-list@gnome.org; Mon, 19 Dec 2005 21:13:55 +0100 Date: Mon, 19 Dec 2005 21:13:55 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.983 tagged_above=-999 required=2 tests=[AWL=-0.369, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.983 X-Spam-Level: Subject: Forgotten graphic with gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:16:07 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:21:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 527683B08DD for ; Mon, 19 Dec 2005 15:21:30 -0500 (EST) 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 15372-06 for ; Mon, 19 Dec 2005 15:21:27 -0500 (EST) Received: from smtp4.libero.it (smtp4.libero.it [193.70.192.54]) by menubar.gnome.org (Postfix) with ESMTP id 3F7F83B2EBD for ; Mon, 19 Dec 2005 15:16:26 -0500 (EST) Received: from localhost (172.16.1.75) by smtp4.libero.it (7.0.027-DD01) id 439D910600A944A3 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:16:25 +0100 Received: from smtp0.libero.it ([172.16.1.76]) by localhost (asav17.libero.it [193.70.193.4]) (amavisd-new, port 10024) with ESMTP id 14572-01-2 for ; Mon, 19 Dec 2005 21:16:24 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp0.libero.it (7.0.027-DD01) id 439064B400299DFE for gtk-list@gnome.org; Mon, 19 Dec 2005 21:16:24 +0100 Date: Mon, 19 Dec 2005 21:16:24 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: multipart/mixed; boundary="_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835" From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.333 tagged_above=-999 required=2 tests=[AWL=-0.719, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.333 X-Spam-Level: Subject: Forgotten graphic with a gtk program X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:21:32 -0000 --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. In order to see something i enclose a little png that it must be include = in the program folder. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835 Content-Type: image/png; name="=?iso-8859-1?Q?ring.png?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?iso-8859-1?Q?ring.png?=" iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAIAAABwJOjsAAAACXBIWXMAAAsTAAALEwEAmpwY AAAAB3RJTUUH1QsZCjcMQMBn8QAAAB10RVh0Q29tbWVudABDcmVhdGVkIHdpdGggVGhlIEdJ TVDvZCVuAAABvUlEQVRIx7WV74oTQRDEf90zmzN/1AjnF303wSf3BaJylzuSTWa6/LCzG05F JWYHFmahqOouumvs86cvZuTMesP2rZkzxzkc2O91PlEKEhG4hBlmuDGT6nQUl3t2B3AnJfwX 4aGsP3H9G8CnxgLAjDz4nDMpW0qYEYE7ZqMnfmEfLlcAUsYdd5ITIoI8qHYdXcfd3YXCnYjG NTkhXQlYLOg6agWg4kZeLkmJxcI2G7bvLAIfrRMYhHBDNIuuA+Ss08mEcqUWQuTXbyxnVivu 39uHj5iBGgtgw6dGIa4EfP9mkhYLO5+oQVTyakXXsV6z3XJ/b3PNs/T8bBHqE7USwcwLNPVt RLxYAZ/GQZp1hXFr8k14KKHW3yzxTXVHvVHFBwc8zdzxqHqxuv3Mryqazy2hWyE+b8c26kW0 KXMgAsVfIvf/p9pGt9vrMLU/8z5d0nuwNp96SiGCV0u+7nSTnHoBgFp5eGC3035P3xNVtZIf 93Ln1Bsoqt0kmSeARC1yt8NBjw88PaucKQUgHw94Aill6zrd5C0aAFKLhwjVyuGovqeciUqI XApJnJ1y5ni8zev7UxQOFZRCLU01gh8mL2LUToM1CgAAAABJRU5ErkJggg== --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835-- From tvb@gnome.org Mon Dec 19 15:32:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 27E103B0A90 for ; Mon, 19 Dec 2005 15:32:48 -0500 (EST) 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 16759-02 for ; Mon, 19 Dec 2005 15:32:42 -0500 (EST) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 903E83B1E27 for ; Mon, 19 Dec 2005 15:30:29 -0500 (EST) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 3A74A15983; Mon, 19 Dec 2005 15:26:08 -0500 (EST) Message-ID: <43A728B4.5070701@gnome.org> Date: Mon, 19 Dec 2005 16:40:04 -0500 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "mistrial@libero.it" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599] X-Spam-Score: -2.541 X-Spam-Level: Cc: gtk-list Subject: Re: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:32:48 -0000 mistrial@libero.it wrote: > ciao > First of all I make excuses myself for my English not too much corrected. I write in order to speak you to you about a problem that I have found with my first program written in C with gtk. > I have written the algorithm in order to resolve the puzzle and have set up all the graphical interface but when start the simulation does not visualize me in real Time the graphic regarding the algorithm that is under. > I enclose the code of my program with the hope that someone can gives some council to me. You need to read this: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html [...] > void dohanoi(gint N, gint da, gint a, gint usando){ > int i,j,h,parz; > > if (N > 0){ > > dohanoi(N-1,da,usando,a); > g_print("\n\nmuovo da %d --> a %d\n",da,a); > sleep(1); > for(i=disk-1;i>=0;i--){ > if(asta[i][da]==0){ > parz=i+1; > //salvo in h la posizione dell'anello da rimuovere(il valore contenuto nell'array riflette l'indice del vettore che contiene gli anelli) > h=asta[parz][da]; > //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nella sezione DROP > valoreAnelloDrag=h; > rigaAnelloDrag=parz; > //setto a 0 l'elemento trovato > asta[parz][da]=0; > //rimuovo l'anello dal container > gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); > break; > }; > }; > //se non trova niente nel for vuol dire che sto togliendo il primo anello di un asta > if(asta[0][da]!=0){ > h=asta[0][da]; > valoreAnelloDrag=asta[0][da]; > asta[0][da]=0; > //ora rimuovo il widget anello dall'event box > gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); > }; > for(i=disk-1;i>=0;i--){ > if(asta[i][a]==0){ > > asta[i][a]=valoreAnelloDrag; > //aggiungo l'anello al container > gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnelloDrag]); > break; > }; > }; > for (i=0;i<=disk-1;i++){ > g_print("\n"); > for (j=0;j<=2;j++){ > g_print("%4d",asta[i][j]); > }; > }; > dohanoi(N-1,usando,a,da); > }; > }; What you need to do, is remove "sleep (1)" and replace it with "return", and then deal with the catastrophy that follows :) i.e. You need to break down your algorythm into itterations and return to the event loop so that GTK+ can process events. You can use something like g_timeout_add() to do this. Cheers, -Tristan From post@talura.dk Tue Dec 20 09:42:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BDACC3B1D5C for ; Tue, 20 Dec 2005 09:42:44 -0500 (EST) 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 06348-08 for ; Tue, 20 Dec 2005 09:42:42 -0500 (EST) Received: from talura.dk (unknown [62.61.141.145]) by menubar.gnome.org (Postfix) with ESMTP id 69FF03B1D63 for ; Tue, 20 Dec 2005 09:42:41 -0500 (EST) Received: from [62.61.141.145] (unknown [62.61.141.145]) by talura.dk (Postfix) with ESMTP id 24C2429D648 for ; Tue, 20 Dec 2005 15:42:40 +0100 (CET) Message-ID: <43A8185F.4090207@talura.dk> Date: Tue, 20 Dec 2005 15:42:39 +0100 From: Egon Andersen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 14:42:44 -0000 Hi, I've just downloaded and installed the pre-build GTK+ for windows Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ Now I experienced that I get a border on my window, eventhough I've set gtk_window_set_decorated(x, FALSE) for the window. I also experienced that the transparent image that I had before, now got a black background. In the previous 2.6.x that I used, the window had no border and the background was transparent as expected. I've read the API document and I don't se that anything should have changed in this area from 2.6.x to 2.8.8 I've also searched the bug-tracker for bug-reports on 'decorated', but none seems to relate to this problem. My program looks like this: gtk_window_set_decorated(GTK_WINDOW (splash_screen), FALSE); /* Get the transparent image shape the window accordingly */ visual = gdk_visual_get_system (); colormap = gdk_colormap_new(visual, TRUE); pixmap = gdk_pixmap_colormap_create_from_xpm(NULL, colormap, &mask, NULL, file); /* Shape the window according to image */ gtk_widget_shape_combine_mask(splash_screen, mask, 0, 0); image = gtk_image_new_from_pixmap (pixmap, NULL); gtk_widget_show (image); gtk_container_add (GTK_CONTAINER (splash_screen), image); Is it only me that has experienced this problem? Or have I missed something in my code that has now been working without problems for 2-3 years now. Best regards Egon Andersen From tml@iki.fi Tue Dec 20 09:55:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A12643B1DBE for ; Tue, 20 Dec 2005 09:55:01 -0500 (EST) 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 07708-01 for ; Tue, 20 Dec 2005 09:54:59 -0500 (EST) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 930943B069A for ; Tue, 20 Dec 2005 09:54:56 -0500 (EST) Received: from pettson.tml.iki.fi (MMDLXXIX.tun.saunalahti.fi [213.169.2.179]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 653F7DC621; Tue, 20 Dec 2005 16:54:53 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17320.6971.560000.721289@gargle.gargle.HOWL> Date: Tue, 20 Dec 2005 16:54:51 +0200 To: Egon Andersen In-Reply-To: <43A8185F.4090207@talura.dk> References: <43A8185F.4090207@talura.dk> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=-0.046, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.356 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 14:55:01 -0000 Egon Andersen writes: > I've just downloaded and installed the pre-build GTK+ for windows > Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ Try GTK+ 2.8.9 from ftp.gtk.org. I don't know what 2.8.8-rc2 is. Ask the gladewin32 people about that. > I've read the API document and I don't se that anything should have > changed in this area from 2.6.x to 2.8.8 Read the ChangeLog. 2005-11-27 Tor Lillqvist Once again rework Win32 window decoration code. Doesn't break #104514. The dialogs in gtk-demo now have the same decorations and behaviour as on X11. Tried to fix #322516 but it seems very hard to make the trivial sample program there behave as expected. --tml From post@talura.dk Tue Dec 20 11:18:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7E6C53B1AF7 for ; Tue, 20 Dec 2005 11:18:07 -0500 (EST) 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 16157-10 for ; Tue, 20 Dec 2005 11:18:05 -0500 (EST) Received: from talura.dk (unknown [62.61.141.145]) by menubar.gnome.org (Postfix) with ESMTP id BBB813B1AB9 for ; Tue, 20 Dec 2005 11:17:50 -0500 (EST) Received: from [62.61.141.145] (unknown [62.61.141.145]) by talura.dk (Postfix) with ESMTP id 91D5029D648 for ; Tue, 20 Dec 2005 17:17:48 +0100 (CET) Message-ID: <43A82EAC.1020506@talura.dk> Date: Tue, 20 Dec 2005 17:17:48 +0100 From: Egon Andersen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <43A8185F.4090207@talura.dk> <17320.6971.560000.721289@gargle.gargle.HOWL> In-Reply-To: <17320.6971.560000.721289@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.488 tagged_above=-999 required=2 tests=[AWL=-0.043, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.488 X-Spam-Level: Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 16:18:07 -0000 Tor Lillqvist wrote: > Egon Andersen writes: > > I've just downloaded and installed the pre-build GTK+ for windows > > Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ > > Try GTK+ 2.8.9 from ftp.gtk.org. I don't know what 2.8.8-rc2 is. Ask > the gladewin32 people about that. > > > I've read the API document and I don't se that anything should have > > changed in this area from 2.6.x to 2.8.8 > > Read the ChangeLog. > > 2005-11-27 Tor Lillqvist > > Once again rework Win32 window decoration code. Doesn't break > #104514. The dialogs in gtk-demo now have the same decorations and > behaviour as on X11. Tried to fix #322516 but it seems very hard > to make the trivial sample program there behave as expected. Where do I find the ChangeLog? Do you have a url for the ChangeLog you refer to? I've only been able to find the reference to #322516 in the GTK+ 2.8.8 release announcement (I would have thought that I could have found #322516 in the bug-tracker by searching for decorated or decoration, but apparently not...) And it seems that #322516 is closed by WONTFIX, so I don't see why it should be any better to use GTK+ 2.8.9 instead of GTK+ 2.8.8 in relation to this problem? BTW The reason I use the pre-build from http://gladewin32.sourceforge.net/ is that it is a "all in one" package and simple to install for others. Best regards Egon Andersen From tml@iki.fi Tue Dec 20 11:33:05 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 04C0E3B1DA7 for ; Tue, 20 Dec 2005 11:33:05 -0500 (EST) 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 17668-06 for ; Tue, 20 Dec 2005 11:33:00 -0500 (EST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 71C593B08F7 for ; Tue, 20 Dec 2005 11:32:10 -0500 (EST) Received: from pettson.tml.iki.fi (MMDLXXIX.tun.saunalahti.fi [213.169.2.179]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 4D3FC104579; Tue, 20 Dec 2005 18:32:07 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17320.12805.529000.547351@gargle.gargle.HOWL> Date: Tue, 20 Dec 2005 18:32:05 +0200 To: Egon Andersen In-Reply-To: <43A82EAC.1020506@talura.dk> References: <43A8185F.4090207@talura.dk> <17320.6971.560000.721289@gargle.gargle.HOWL> <43A82EAC.1020506@talura.dk> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.419 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.419 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 16:33:05 -0000 Egon Andersen writes: > Where do I find the ChangeLog? In the source code. > And it seems that #322516 is closed by WONTFIX, so I don't see why > it should be any better to use GTK+ 2.8.9 instead of GTK+ 2.8.8 in > relation to this problem? Did you try? It's not particularily useful to use something else than the latest version when reporting bugs. --tml From leadbala@rediffmail.com Wed Dec 21 02:49:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89EBC3B2C19 for ; Wed, 21 Dec 2005 02:49:01 -0500 (EST) 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 27233-06 for ; Wed, 21 Dec 2005 02:48:58 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.42]) by menubar.gnome.org (Postfix) with SMTP id 2D35F3B2BBA for ; Wed, 21 Dec 2005 02:45:54 -0500 (EST) Received: (qmail 28255 invoked by uid 510); 21 Dec 2005 07:45:37 -0000 Date: 21 Dec 2005 07:45:37 -0000 Message-ID: <20051221074537.28254.qmail@webmail55.rediffmail.com> Received: from unknown (220.225.137.242) by rediffmail.com via HTTP; 21 dec 2005 07:45:37 -0000 MIME-Version: 1.0 From: "Bala Murugan" To: gtk-list@gnome.org Content-type: multipart/alternative; boundary="Next_1135151137---0-203.199.83.42-28251" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.993 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, DNS_FROM_RFC_ABUSE=0.2, HTML_IMAGE_ONLY_28=1.9, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0, TW_GT=0.077] X-Spam-Score: 1.993 X-Spam-Level: * Subject: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bala Murugan List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 07:49:01 -0000 This is a multipart mime message --Next_1135151137---0-203.199.83.42-28251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0AHi gtk users developpers,=0AIam new to LINUX and I am using suse 10 = in my intel based box. I wish to install a molecular dynamics program ghemi= ca (from open source community) I got the following error:=0A bio-42:/home/= bala/2downloads/ghemical-gms-1.01.07 # ./configure=0Achecking build system = type... i686-pc-linux-gnu=0Achecking host system type... i686-pc-linux-gnu= =0Achecking for gcc... gcc=0Achecking for C compiler default output file na= me... a.out=0Achecking whether the C compiler works... yes=0Achecking wheth= er we are cross compiling... no=0Achecking for suffix of executables...=0Ac= hecking for suffix of object files... o=0Achecking whether we are using the= GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Achecking = for gcc option to accept ANSI C... none needed=0Achecking for g++... g++=0A= checking whether we are using the GNU C++ compiler... yes=0Achecking whethe= r g++ accepts -g... yes=0Achecking how to run the C preprocessor... gcc -E= =0Achecking how to run the C++ preprocessor... g++ -E=0Achecking for a BSD-= compatible install... /usr/bin/install -c=0Achecking for ranlib... ranlib= =0Achecking for ar... /usr/bin/ar=0Achecking for sh... /bin/sh=0Achecking w= hether make sets $(MAKE)... yes=0Achecking whether build environment is san= e... yes=0Achecking for gtk-config... no=0Achecking for GTK - version >=3D = 0.99.7... no=0A*** The gtk-config script installed by GTK could not be foun= d=0A*** If GTK was installed in PREFIX, make sure PREFIX/bin is in=0A*** yo= ur path, or set the GTK_CONFIG environment variable to the=0A*** full path = to gtk-config.=0Aconfigure: error: Cannot find proper gtk version=0Abio-42:= /home/bala/2downloads/ghemical-gms-1.01.07 #=0Awhen I issued rpm -qa gtk I = have recieved the following;=0Agtk-1.2.10-888=0AI have installed developer = packages too to the system.=0ACould anybody guide me from this point.=0ATha= nks in advance.=0A=0A=0A=0AYours truly,=0D=0AP.BalaMurugan.=0D=0A=0D=0A----= ----------------------------------------------=0D=0A"Science is built up of= facts, as a house is built up of stones,but an accumulation of facts is no= more a science than a heap of stones is a house"-Henri Poincare --Next_1135151137---0-203.199.83.42-28251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0AHi gtk users developpers,
=0AIam new to LINUX and I = am using suse 10 in my intel based box. I wish to install a molecular dynam= ics program ghemica (from open source community) I got the following error:=
=0A bio-42:/home/bala/2downloads/ghemical-gms-1.01.07 # ./configure
= =0Achecking build system type... i686-pc-linux-gnu
=0Achecking host syst= em type... i686-pc-linux-gnu
=0Achecking for gcc... gcc
=0Achecking f= or C compiler default output file name... a.out
=0Achecking whether the = C compiler works... yes
=0Achecking whether we are cross compiling... no=
=0Achecking for suffix of executables...
=0Achecking for suffix of o= bject files... o
=0Achecking whether we are using the GNU C compiler... = yes
=0Achecking whether gcc accepts -g... yes
=0Achecking for gcc opt= ion to accept ANSI C... none needed
=0Achecking for g++... g++
=0Ache= cking whether we are using the GNU C++ compiler... yes
=0Achecking wheth= er g++ accepts -g... yes
=0Achecking how to run the C preprocessor... gc= c -E
=0Achecking how to run the C++ preprocessor... g++ -E
=0Acheckin= g for a BSD-compatible install... /usr/bin/install -c
=0Achecking for ra= nlib... ranlib
=0Achecking for ar... /usr/bin/ar
=0Achecking for sh..= . /bin/sh
=0Achecking whether make sets $(MAKE)... yes
=0Achecking wh= ether build environment is sane... yes
=0Achecking for gtk-config... no<= BR>=0Achecking for GTK - version >=3D 0.99.7... no
=0A*** The gtk-con= fig script installed by GTK could not be found
=0A*** If GTK was install= ed in PREFIX, make sure PREFIX/bin is in
=0A*** your path, or set the GT= K_CONFIG environment variable to the
=0A*** full path to gtk-config.
= =0Aconfigure: error: Cannot find proper gtk version
=0Abio-42:/home/bala= /2downloads/ghemical-gms-1.01.07 #
=0Awhen I issued rpm -qa gtk I have r= ecieved the following;
=0Agtk-1.2.10-888
=0AI have installed develope= r packages too to the system.
=0ACould anybody guide me from this point.=
=0AThanks in advance.
=0A
=0A=0A

=0A=0A=0AYours truly,=0D
= =0AP.BalaMurugan.=0D
=0A=0D
=0A--------------------------------------= ------------=0D
=0A"Science is built up of facts, as a&nb= sp;house is built up of stones,but an accumulation of f= acts is no more a science than a heap of stones is=  a house"-Henri Poincare

=0A=0A --Next_1135151137---0-203.199.83.42-28251-- From wtallman@olypen.com Wed Dec 21 03:35:51 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34DCD3B2CAA for ; Wed, 21 Dec 2005 03:35:51 -0500 (EST) 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 00511-03 for ; Wed, 21 Dec 2005 03:35:47 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id 67AA23B2C56 for ; Wed, 21 Dec 2005 03:35:42 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1EozRk-0004G1-9o for gtk-list@gnome.org; Wed, 21 Dec 2005 00:35:40 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBL8ZbCf016524 for gtk-list@gnome.org; Wed, 21 Dec 2005 00:35:37 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 21 Dec 2005 00:35:37 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051221083537.GA16245@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <20051221074537.28254.qmail@webmail55.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051221074537.28254.qmail@webmail55.rediffmail.com> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.388 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.388 X-Spam-Level: Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 08:35:51 -0000 On Wed, Dec 21, 2005 at 07:45:37AM -0000, Bala Murugan wrote: > checking for GTK - version >= 0.99.7... no > *** The gtk-config script installed by GTK could not be found > *** If GTK was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the GTK_CONFIG environment variable to the > *** full path to gtk-config. The part you should read. Find out where gtk-config is on your installation. Make a symlink from there to where the application needs it to be. Recompile. Eventually, one discovers that these guys who roll up these tarballs are pretty sharp, and what they tell you to do is most often exactly what you need to do. Notice the asterisks preceeding the explanation. They are there to call your attention to what you need to read. Now, how do you know what $PREFIX is? What you do is 'grep -n PREFIX configure', and then go to the line numbers and see what PREFIX is. Most often it's /usr/local. So what are you looking for? It's listed in the first line: gtk-config, and it's called a script. So where is it on your system? Do 'slocate gtk-config', and you'll probably find it somewhere like /usr/bin. So you do 'file /usr/bin/gtk-config', and you find out that gtk-config is a Bourne shell script text executable. That's what you're looking for. Problem is, your configure file doubtless already knows to look in /usr/bin, and hasn't found it. What happens when 'slocate gtk-config' turns up empty? That's when you ask rpm to list the files, and it will tell you where it is, if indeed you have it. Hint: learn the shell commands. Using them will tell you everything you need to know, and will allow you to perform most, if not all, tasks your system will ever require. ---------------- You're new to Linux, and it can be a bit daunting. The key is to read what the system tells you word for word and make sure you actually understand what it's telling you. Most folk reread this stuff three or four times to make sure they actually see what is there. It gets easier once you get used to it, and when you've run one of these systems for a while, you'll wonder how you ever managed to use anything else. Oh, and the convention is that you install all compiled applications at the local level. That's /usr/local, which mirrors /usr in most particulars. Make symlinks as necessary and it'll "just work". Good luck, Bill Tallman From odysseus.lost@gmail.com Wed Dec 21 11:16:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AB0A23B2283 for ; Wed, 21 Dec 2005 11:16:55 -0500 (EST) 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 19918-07 for ; Wed, 21 Dec 2005 11:16:52 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by menubar.gnome.org (Postfix) with ESMTP id CA2453B2231 for ; Wed, 21 Dec 2005 11:16:50 -0500 (EST) Received: by nproxy.gmail.com with SMTP id l36so65487nfa for ; Wed, 21 Dec 2005 08:16:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=R9blqin9fFiDhqBbmC7+JD/dlPVhTwHcAvMhY95qjHPNnmoql15hukct7nXpnWeaOims8O9ch3iNDwD9BDkT4VuxUm7aagZ3HwsoJ6YlSeCkJ7CZuFX4BW//r3yu+jvO5npgX+kwj+71IhrDocayUWZILwc7IGBxwxIonQZ2ahQ= Received: by 10.48.250.8 with SMTP id x8mr41202nfh; Wed, 21 Dec 2005 08:16:47 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 21 Dec 2005 08:16:47 -0800 (PST) Message-ID: <5c71e1440512210816se307023r@mail.gmail.com> Date: Wed, 21 Dec 2005 16:16:47 +0000 From: Yiannis To: Bala Murugan In-Reply-To: <20051221074537.28254.qmail@webmail55.rediffmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6371_4022306.1135181807935" References: <20051221074537.28254.qmail@webmail55.rediffmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 16:16:56 -0000 ------=_Part_6371_4022306.1135181807935 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On 21 Dec 2005 07:45:37 -0000, Bala Murugan wrote= : > > > Hi gtk users developpers, > Iam new to LINUX and I am using suse 10 in my intel based box. I wish to > install a molecular dynamics program ghemica (from open source community)= I > got the following error: > *** The gtk-config script installed by GTK could not be found > *** If GTK was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the GTK_CONFIG environment variable to the > *** full path to gtk-config. > configure: error: Cannot find proper gtk version > first of all this is not a question regarding Gtk... You better ask such a question on a linux forum.... simply because you will get much more help an= d much faster.... In a few words if you are coming from windows.... then you would have probably heard about the registry.... Well, let's say for a minute that Linux has such a registry as well, but has nothing to do with the windows one.... This is simply a file that tells your system where to find some things.... This registry depends on your shell (yes that thing that looks like a dos command line). Let's say for a min that you are using a bash shell... Then you should have a .bashrc file, .bash_history, maybe a .bash_profile, etc... Have a look at them and probably you want to edit the .bashrc. You need to set some environment variables. So for example the warning saying to add PREFIX/bin would be and assume tha= t your prefix (ie the path you installed gtk) is: /home/foo/gtk/bin. You shoudl add to your "registry" file the following: PATH=3D$PATH:/home/foo/gtk/bin and then either "resource" the file $ source or close down the shell and open a new one.... Similary you need to setup the other environment variables such as the CPAT= H and C_INCLUDE_PATH, LIBRARY_PATH and LIBRARY, and maybe some others needed by your program. Better if you post your questions to a linux forum (eg. www.linuxquestions.org OR www.linuxforum.com OR www.linuxforums.org just to name a few) -- -- Yiannis ------=_Part_6371_4022306.1135181807935 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
On 21 Dec 2005 07:45:37 -0000, Bala Murugan <leadbala@rediffmail.com> wrote:

 
Hi gtk users developpers,
Iam new to LINUX and I am using suse 10 in my intel based box. I wish to install a molecular dynamics program ghemica (from open source community) I got the following error:
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find proper gtk version


first of all this is not a question regarding Gtk... You better ask such a question on a linux forum.... simply because you will get much more help and much faster.... In a few words if you are coming from windows.... then you would have probably heard about the registry.... Well, let's say for a minute that Linux has such  a registry as well, but has nothing to do with the windows one.... This is simply a file that tells your system where to find some things.... This registry depends on your shell (yes that thing that looks like a dos command line). Let's say for a min that you are using a bash shell... Then you should have a .bashrc file, .bash_history, maybe a .bash_profile, etc... Have a look at them and probably you want to edit the .bashrc. You need to set some environment variables.
So for example the warning saying to add PREFIX/bin would be and assume that your prefix (ie the path you installed gtk) is: /home/foo/gtk/bin. You shoudl add to your "registry" file the following:
PATH=3D$PATH:/home/foo/gtk/bin

and then either "resource" the file
$ source <filename>
or close down the shell and open a new one....
Similary you need to setup the other environment variables such as the CPATH and C_INCLUDE_PATH, LIBRARY_PATH and LIBRARY, and maybe some others needed by your program. Better if you post your questions to a linux forum (eg. www.linuxquestio= ns.org OR www.linuxforum.com = OR www.linuxforums.org just to name= a few)
 



--
-- Yiannis ------=_Part_6371_4022306.1135181807935-- From tvb@gnome.org Wed Dec 21 11:31:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E35CD3B1F98 for ; Wed, 21 Dec 2005 11:31:51 -0500 (EST) 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 21802-02 for ; Wed, 21 Dec 2005 11:31:49 -0500 (EST) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 725DB3B301D for ; Wed, 21 Dec 2005 11:30:29 -0500 (EST) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 432B515A49; Wed, 21 Dec 2005 11:25:52 -0500 (EST) Message-ID: <43A99376.1090300@gnome.org> Date: Wed, 21 Dec 2005 12:40:06 -0500 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <20051221074537.28254.qmail@webmail55.rediffmail.com> <5c71e1440512210816se307023r@mail.gmail.com> In-Reply-To: <5c71e1440512210816se307023r@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.52 tagged_above=-999 required=2 tests=[AWL=0.002, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.52 X-Spam-Level: Cc: Bala Murugan , gtk-list@gnome.org Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 16:31:52 -0000 Yiannis wrote: > Hi, > On 21 Dec 2005 07:45:37 -0000, Bala Murugan wrote: > >> >>Hi gtk users developpers, >>Iam new to LINUX and I am using suse 10 in my intel based box. I wish to >>install a molecular dynamics program ghemica (from open source community) I >>got the following error: >>*** The gtk-config script installed by GTK could not be found >>*** If GTK was installed in PREFIX, make sure PREFIX/bin is in >>*** your path, or set the GTK_CONFIG environment variable to the >>*** full path to gtk-config. >>configure: error: Cannot find proper gtk version >> I dont know how suse works, but with redhat (or systems that use rpm), you usually have a "package.rpm" and a "package-devel.rpm". The typical user isnt going to compile stuff on his/her machine, so they dont need gtk+ header files etc (i.e. the -devel.rpm package). The program you want to install needs to have the old GTK+-1.2 libraries, the devel package of GTK+-1.2 will have the gtk-config program which will report the current version etc... installing GTK+-1.2 (development files) will fix your problem Just remember, if you dont have GTK+-1.2 devel files, you probably dont have the header files etc for any other libraries that your program requires, so you'll need header files etc for every library that your program depends on. Cheers, -Tristan From rajesh.banginwar@intel.com Wed Dec 21 13:26:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D24403B0A6F for ; Wed, 21 Dec 2005 13:26:52 -0500 (EST) 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 01486-01 for ; Wed, 21 Dec 2005 13:26:48 -0500 (EST) Received: from orsfmr003.jf.intel.com (fmr18.intel.com [134.134.136.17]) by menubar.gnome.org (Postfix) with ESMTP id C65693B1099 for ; Wed, 21 Dec 2005 13:26:35 -0500 (EST) Received: from orsfmr100.jf.intel.com (orsfmr100.jf.intel.com [10.7.209.16]) by orsfmr003.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc, v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id jBLIQZ6u023777 for ; Wed, 21 Dec 2005 18:26:35 GMT Received: from orsmsxvs040.jf.intel.com (orsmsxvs040.jf.intel.com [192.168.65.206]) by orsfmr100.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc, v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id jBLIOmVr015440 for ; Wed, 21 Dec 2005 18:26:35 GMT Received: from orsmsx332.amr.corp.intel.com ([192.168.65.60]) by orsmsxvs040.jf.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005122110263416134 for ; Wed, 21 Dec 2005 10:26:34 -0800 Received: from orsmsx402.amr.corp.intel.com ([192.168.65.208]) by orsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 21 Dec 2005 10:26:34 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Dec 2005 10:26:34 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Announcing LSB Desktop specifications preview release Thread-Index: AcYGXBKoG+GvkVl/TmqdZKZPpqsMww== From: "Banginwar, Rajesh" To: X-OriginalArrivalTime: 21 Dec 2005 18:26:34.0948 (UTC) FILETIME=[12D71040:01C6065C] X-Scanned-By: MIMEDefang 2.52 on 10.7.209.16 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.583 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, TW_BJ=0.077, TW_BP=0.077, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -0.583 X-Spam-Level: Subject: Announcing LSB Desktop specifications preview release X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 18:26:53 -0000 Hello,=09 Today we are announcing the preview release of LSB desktop 3.1 specifications. This is a fairly complete version of LSB desktop specification for wider review. We are targeting the first release candidate for the same in the middle of next month.=20 The complete specification is available at: http://www.linuxbase.org/spec/booksets/LSB-Desktop/LSB-Desktop.html This specification is based on the following libraries and versions. 1. GTK toolkit module: The module only specification for GTK is available at: http://www.linuxbase.org/spec/book/Toolkit_Gtk/Toolkit_Gtk.html It is based on the following libraries and versions. a. Glib version 2.6.6 b. ATK version 1.9.0 c. Pango version 1.8.2 d. GTK version 2.6.10 We will really appreciate feedback from GTK developers and users at least on this part of the spec.=20 2. XML module: The module only specification is available at http://www.linuxbase.org/spec/book/XML/XML.html a. libxml2 version 2.6.22 3. Graphics-Ext module: The module only specification is available at http://www.linuxbase.org/spec/book/Graphics-Ext/Graphics-Ext.html a. libpng12 library version 1.2.8 b. libjpeg library version 6b Please note that if a distro has an older version of library, it may not be able to pass LSB desktop certification. E.g. libxml2 2.6.20 does not have certain symbols that 2.6.22 provides. Please note some of the specification work currently in-progress (E.g. PNG and JPEG).=20 Kindly review the specification and submit your feedback. The preferred method is LSB bugzilla at http://bugs.linuxbase.org/ What may be added before official release-candidate: 1. libQt: Currently Trolltech is working on creating the specification for this toolkit. As they complete the required technical work, decision will be made regarding including libQt in LSB desktop specification. This decision relies on timely completion of libQt specs work and licensing criteria resolution. 2. fontconfig and libfontconfig: Currently the technical work is ongoing and based on when it is finished, LSB desktop specification (specifically Graphics-Ext module) will be updated. Thanks, -Rajesh Banginwar LSB desktop lead. From hdnews@gawab.com Wed Dec 21 17:30:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A1383B09E0 for ; Wed, 21 Dec 2005 17:30:52 -0500 (EST) 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 23531-03 for ; Wed, 21 Dec 2005 17:30:49 -0500 (EST) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by menubar.gnome.org (Postfix) with ESMTP id 9A7EF3B30F3 for ; Wed, 21 Dec 2005 17:29:58 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBLMTvA5069279 for ; Wed, 21 Dec 2005 23:29:57 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBLMTufo026298 for ; Wed, 21 Dec 2005 23:29:56 +0100 Message-ID: <43A9D761.2070400@gawab.com> Date: Wed, 21 Dec 2005 23:29:53 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.714 tagged_above=-999 required=2 tests=[AWL=-1.312, BAYES_05=-1.11, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -0.714 X-Spam-Level: Subject: cairo drawing and fonts X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:30:52 -0000 Hello there, Just wondering. Is there a way use pango font descriptions, etc for cairo contexts to draw text? Thanks in advance for your answers, -- Hans From andrew@openldev.org Wed Dec 21 17:39:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98FA23B197F for ; Wed, 21 Dec 2005 17:39:43 -0500 (EST) 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 24244-03 for ; Wed, 21 Dec 2005 17:39:41 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id 27AB13B07BD for ; Wed, 21 Dec 2005 17:39:41 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 14:39:25 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: andrew@openldev.org To: Cc: Message-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.64 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.64 X-Spam-Level: Subject: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:39:43 -0000 Recently I have been working on dynamically loading libraries for my applic= ation=0D=0Awith GModule. I have a source file that contains this function:= =0D=0A=0D=0AG_MODULE_EXPORT PluginState init (Plugin *p)=0D=0A{=0D=0A /* D= o something */=0D=0A}=0D=0A=0D=0AA library is created with libtool with the= parameters '-module' and '-avoid-version'=0D=0Apassed to it in the Makefil= e.am. I then try to access it with this code:=0D=0A=0D=0AGModule *module;= =0D=0Amodule =3D g_module_open (library, G_MODULE_BIND_LAZY);=0D=0Aif (!mod= ule)=0D=0A error (g_module_error());=0D=0Aelse=0D=0A if (!g_module_symbol= (module, "init", (gpointer*)&init)=0D=0A error (g_module_error());=0D= =0A=0D=0AI've gone through the API docs a few times as well as some code fr= om=0D=0Avarious other open source projects, but cannot figure out what I am= =0D=0Ascrewing up. I know it is probably something stupid, but any help wou= ld =0D=0Abe much appreciated. Thanks!=0D=0A=0D=0A---=0D=0AAndrew Krause From andrew@openldev.org Wed Dec 21 17:42:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 238A83B1F29 for ; Wed, 21 Dec 2005 17:42:59 -0500 (EST) 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 24681-02 for ; Wed, 21 Dec 2005 17:42:57 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id 49EAF3B1A11 for ; Wed, 21 Dec 2005 17:42:41 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 14:42:22 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: andrew@openldev.org To: Cc: Message-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.608 tagged_above=-999 required=2 tests=[AWL=0.032, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.608 X-Spam-Level: Subject: re: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:42:59 -0000 > Recently I have been working on dynamically loading libraries for my appl= ication=0D=0A> with GModule. I have a source file that contains this functi= on:=0D=0A> =0D=0A> G_MODULE_EXPORT PluginState init (Plugin *p)=0D=0A> {=0D= =0A> /* Do something */=0D=0A> }=0D=0A> =0D=0A> A library is created with= libtool with the parameters '-module' and '-avoid-version'=0D=0A> passed t= o it in the Makefile.am. I then try to access it with this code:=0D=0A> =0D= =0A> GModule *module;=0D=0A> module =3D g_module_open (library, G_MODULE_BI= ND_LAZY);=0D=0A> if (!module)=0D=0A> error (g_module_error());=0D=0A> els= e=0D=0A> if (!g_module_symbol (module, "init", (gpointer*)&init)=0D=0A> = error (g_module_error());=0D=0A> =0D=0A> I've gone through the API docs = a few times as well as some code from=0D=0A> various other open source proj= ects, but cannot figure out what I am=0D=0A> screwing up. I know it is prob= ably something stupid, but any help would =0D=0A> be much appreciated. Than= ks!=0D=0A=0D=0AOh crap! I forgot to put the error I'm getting. In any case,= I'm getting this=0D=0Aerror from the second g_module_error() call:=0D=0A= =0D=0A`init': /usr/lib/libplugin.so: undefined symbol: init=0D=0A=0D=0ASorr= y about that!=0D=0A=0D=0A---=0D=0AAndrew Krause From andrew@openldev.org Wed Dec 21 18:20:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 268433B16B4 for ; Wed, 21 Dec 2005 18:20:44 -0500 (EST) 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 28372-08 for ; Wed, 21 Dec 2005 18:20:41 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id A81933B066A for ; Wed, 21 Dec 2005 18:20:40 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 15:20:25 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "Andrew Krause" To: Cc: Message-ID: <08cd7f3797224d6caf40b1e9834474ca@openldev.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.088 tagged_above=-999 required=2 tests=[AWL=0.513, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.088 X-Spam-Level: Subject: re: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 23:20:44 -0000 Nevermind. I just forgot to use extern "C" ... I knew it was something stup= id.=0D=0A=0D=0A---=0D=0AAndrew Krause From igorbounov@topazelectro.ru Thu Dec 22 00:04:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8296F3B324A for ; Thu, 22 Dec 2005 00:04:40 -0500 (EST) 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 19044-07 for ; Thu, 22 Dec 2005 00:04:37 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 824AE3B3257 for ; Thu, 22 Dec 2005 00:04:35 -0500 (EST) Received: (qmail 6007 invoked by uid 7801); 22 Dec 2005 04:59:30 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.084827 secs); 22 Dec 2005 04:59:30 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.084827 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 22 Dec 2005 04:59:29 -0000 Message-ID: <43AA33F7.4050302@topazelectro.ru> Date: Thu, 22 Dec 2005 08:04:55 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtkmm-list@gnome.org, gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=0.075, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.525 X-Spam-Level: Cc: Subject: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:04:40 -0000 Hi, All! I need any hints about using Gdk::Window::add_filter(GdkFilterFunc function, gpointer data) or gdk_window_add_filter(...), in particular what this filter function looks like and how those gpointer data are made. Igor Gorbounov From lists@nabble.com Thu Dec 22 00:28:26 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 175D13B324A for ; Thu, 22 Dec 2005 00:28:26 -0500 (EST) 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 20776-05 for ; Thu, 22 Dec 2005 00:28:23 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 07A023B12C9 for ; Thu, 22 Dec 2005 00:28:22 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1EpJ01-0000iS-2T for gtk-list@gnome.org; Wed, 21 Dec 2005 21:28:21 -0800 Message-ID: <2055454.post@talk.nabble.com> Date: Wed, 21 Dec 2005 21:28:21 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_836_20938963.1135229301072" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.295 tagged_above=-999 required=2 tests=[AWL=-0.190, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.295 X-Spam-Level: Subject: How to select an list item without focus X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:28:26 -0000 ------=_Part_836_20938963.1135229301072 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following: gtk_list_select_item(GTK_LIST(MyList), ItemIndex); //select this item gtk_list_scroll_vertical(GTK_LIST(MyList), GTK_SCROLL_STEP_FORWARD, 0); // scroll the vertical bar after this, the focus moves from the button to the item which is selected now. and How to select an list item without focus? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/How-to-select-an-list-item-without-focus-t789612.html#a2055454 ------=_Part_836_20938963.1135229301072 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following:
    gtk_list_select_item(GTK_LIST(MyList), ItemIndex);  //select this item
    gtk_list_scroll_vertical(GTK_LIST(MyList),
                               GTK_SCROLL_STEP_FORWARD,
                               0);  // scroll the vertical bar

after this, the focus moves from the button to the item which is selected now.

and How to select an list item without focus?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
How to select an list item without focus ------=_Part_836_20938963.1135229301072-- From wtallman@olypen.com Thu Dec 22 01:31:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1B6023B136C for ; Thu, 22 Dec 2005 01:31:19 -0500 (EST) 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 25030-02 for ; Thu, 22 Dec 2005 01:31:16 -0500 (EST) Received: from olypen2.olypen.com (olypen2.olypen.com [208.200.248.249]) by menubar.gnome.org (Postfix) with ESMTP id EB7CE3B3286 for ; Thu, 22 Dec 2005 01:31:10 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen2.olypen.com with esmtp() (Exim 4.43) id 1EpJyo-00049i-QF for gtk-list@gnome.org; Wed, 21 Dec 2005 22:31:11 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBM6V8nE001949 for gtk-list@gnome.org; Wed, 21 Dec 2005 22:31:08 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 21 Dec 2005 22:31:08 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051222063108.GA887@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <2055454.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2055454.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.426 X-Spam-Level: Subject: List procedure question. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 06:31:19 -0000 A question, please, from a coding newbie. I'm building a front end for an ephemeris engine, and I've begun with a simple entry window for terrestrial data to obtain a position listing. Some while back I asked for some mentoring on connecting Gtk to C code; I've resolved that issue by planning the communication via structs and temp files. So I'm off and crawling, only to fetch aground in the midst of this first file. It's several hundred lines of code now, and so would be a bit much to post here. Is it acceptable to post a URL instead? Thanks, Bill Tallman From murrayc@murrayc.com Thu Dec 22 03:37:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23FD63B3300; Thu, 22 Dec 2005 03:37:24 -0500 (EST) 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 00834-01; Thu, 22 Dec 2005 03:37:18 -0500 (EST) Received: from toby.dreamhost.com (toby.dreamhost.com [66.33.193.58]) by menubar.gnome.org (Postfix) with ESMTP id 2D3A73B32F2; Thu, 22 Dec 2005 03:37:01 -0500 (EST) Received: from [10.1.9.84] (grossetto.webde.de [217.72.192.194]) by toby.dreamhost.com (Postfix) with ESMTP id DB33A15E655; Thu, 22 Dec 2005 00:36:59 -0800 (PST) From: Murray Cumming To: Igor Gorbounov In-Reply-To: <43AA33F7.4050302@topazelectro.ru> References: <43AA33F7.4050302@topazelectro.ru> Content-Type: text/plain Date: Thu, 22 Dec 2005 09:36:57 +0100 Message-Id: <1135240617.23355.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.57 tagged_above=-999 required=2 tests=[AWL=0.029, BAYES_00=-2.599] X-Spam-Score: -2.57 X-Spam-Level: Cc: gtk-list , gtkmm-list@gnome.org Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 08:37:24 -0000 On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote: > Hi, All! > I need any hints about using Gdk::Window::add_filter(GdkFilterFunc > function, gpointer data) or > gdk_window_add_filter(...), in particular what this filter function > looks like and how those > gpointer data are made. > Igor Gorbounov The data is some "state" information (such as a pointer to a C++ class instance) that will be passed to the callback function. This hasn't been wrapped as a sigc::slot<>, probably because I couldn't see when it would be useful. The documentation says "This is a low-level operation and makes it easy to break GDK and/or GTK+, so you have to know what you're doing" and that scares me a bit. This would be easy for someone to wrap properly. See the other SignalProxy_* classes in the .ccg files. A patch would be welcome. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From igorbounov@topazelectro.ru Thu Dec 22 04:09:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 579963B332E for ; Thu, 22 Dec 2005 04:09:53 -0500 (EST) 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 03753-08 for ; Thu, 22 Dec 2005 04:09:51 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 86EE63B3310 for ; Thu, 22 Dec 2005 04:09:15 -0500 (EST) Received: (qmail 28562 invoked by uid 7801); 22 Dec 2005 09:04:10 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.095872 secs); 22 Dec 2005 09:04:10 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.095872 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 22 Dec 2005 09:04:09 -0000 Message-ID: <43AA6D50.6070404@topazelectro.ru> Date: Thu, 22 Dec 2005 12:09:36 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Murray Cumming References: <43AA33F7.4050302@topazelectro.ru> <1135240617.23355.18.camel@localhost.localdomain> In-Reply-To: <1135240617.23355.18.camel@localhost.localdomain> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.493 tagged_above=-999 required=2 tests=[AWL=0.030, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.493 X-Spam-Level: Cc: gtk-list , gtkmm-list@gnome.org Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 09:09:53 -0000 Murray Cumming wrote: >On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote: > > >>Hi, All! >>I need any hints about using Gdk::Window::add_filter(GdkFilterFunc >>function, gpointer data) or >>gdk_window_add_filter(...), in particular what this filter function >>looks like and how those >>gpointer data are made. >> Igor Gorbounov >> >> > >The data is some "state" information (such as a pointer to a C++ class >instance) that will be passed to the callback function. > >This hasn't been wrapped as a sigc::slot<>, probably because I couldn't >see when it would be useful. [...] > The situation is such that I use a winapi mplayer and pass to it a gdk_window handle, and next, when that player stops it sends an awfull winapi message in some crazy winapi way, and I've almost broke my brains in an effort to get this message. This add_filter method was designed to catch those messages, but how - no one has wrote an example. As far as I could find in Google, Tor Lillquist had added this filter in about gtk+ 2.2.x. Igor Gorbounov From Alessandro.Abrami@elettra.trieste.it Thu Dec 22 04:44:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 799953B33B4 for ; Thu, 22 Dec 2005 04:44:09 -0500 (EST) 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 06668-01 for ; Thu, 22 Dec 2005 04:44:06 -0500 (EST) Received: from elettra.trieste.it (mail1.elettra.trieste.it [140.105.4.201]) by menubar.gnome.org (Postfix) with ESMTP id AD6163B1F72 for ; Thu, 22 Dec 2005 04:43:31 -0500 (EST) Received: from [140.105.3.173] (account alessandro.abrami HELO [127.0.0.1]) by elettra.trieste.it (CommuniGate Pro SMTP 4.3.8) with ESMTPA id 10429035; Thu, 22 Dec 2005 10:44:38 +0100 Message-ID: <43AA7539.8040901@elettra.trieste.it> Date: Thu, 22 Dec 2005 10:43:21 +0100 From: Alessandro Abrami User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en, it MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-Mailman-Approved-At: Thu, 22 Dec 2005 09:05:05 -0500 Subject: Notebook and Scrolled windows: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 09:44:09 -0000 Hi, I'm been working on scrolled windows within a notebook and just like Bob McCallister, see his mail: Notebook and Scrolled windows: bug? * /From/: Bob McCallister * /To/: gtk-list gnome org * /Subject/: Notebook and Scrolled windows: bug? * /Date/: Tue, 01 Jun 2004 15:24:11 -0400 I have the same problem: only the scrolled window onto the first notebook page has the scroolbar functioning, while the scrolled window onto the second page doesn't. I compiled his code on my debian machine, and, again, the same problem. I saw the answer of Russell Shaw in this mail-list, but I currently have: ||/ Name Version Description +++-=========================-=========================-================================================================== ii libgtk2.0-0 2.6.4-3 The GTK+ graphical user interface library ii libgtk2.0-bin 2.6.4-3 The programs for the GTK+ graphical user interface library ii libgtk2.0-common 2.6.4-3 Common files for the GTK+ graphical user interface library ii libgtk2.0-dev 2.6.4-3 Development files for the GTK+ library May someone give me help? Thanks, Alessandro From corey.burger@gmail.com Thu Dec 22 14:10:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 314083B25B8 for ; Thu, 22 Dec 2005 14:10:04 -0500 (EST) 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 26787-02 for ; Thu, 22 Dec 2005 14:10:00 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by menubar.gnome.org (Postfix) with ESMTP id CDB283B0CC3 for ; Thu, 22 Dec 2005 14:09:50 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so172187nfc for ; Thu, 22 Dec 2005 11:09:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=kNldlZVoMP2m5QEcWj/fgn4jNFmc07hxCTmyuAknY64aoFUwaBdXOH9QZIbhvsVJHAncG6DxGyUBkIL/9wXCYlHvhebm5KlBwqqUf6t5K9+Hc7nxvsii/vDJ1ODTGxpzVyhywn5HXwRETLbhXpS/a6efxiJQayP2BXOilWKkiog= Received: by 10.48.4.9 with SMTP id 9mr105619nfd; Thu, 22 Dec 2005 11:09:49 -0800 (PST) Received: by 10.48.233.11 with HTTP; Thu, 22 Dec 2005 11:09:49 -0800 (PST) Message-ID: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> Date: Thu, 22 Dec 2005 11:09:49 -0800 From: Corey Burger To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: chipx86@chipx86.com, David Trowbridge Subject: A new spelling world order X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:10:04 -0000 Hey all, I was speaking with the maintainers of libsexy about the possiblity of moving the libsexy spelling widget into gtk+. IMHO, the UI for libsexy is probably the best one I have seen yet, allowing nearly seamless spell checking. However, I am not a technical pserson and thus am not familiar with what is needed to get this stuff into gtk+. Here is the conversation with David Trowbridge, "Well, opening up a dialogue with the gtk+ developers about it would be a good first step. While I've certainly caught everything obvious, I'd be pretty surprised if SexySpellEntry was 100% bug free right now, so lots of testing would be good; I'm not sure about the actual requirements and procedures for getting a widget into gtk+, but quality is obviously paramount. Beyond that, I don't have any other ideas at the moment." Cheers, Corey From andrew@openldev.org Thu Dec 22 14:45:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 189D83B263A for ; Thu, 22 Dec 2005 14:45:45 -0500 (EST) 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 29292-10 for ; Thu, 22 Dec 2005 14:45:32 -0500 (EST) Received: from f05n15.cac.psu.edu (unknown [128.118.141.100]) by menubar.gnome.org (Postfix) with ESMTP id 27C573B244A for ; Thu, 22 Dec 2005 14:45:32 -0500 (EST) Received: from [207.255.12.78] (207-255-12-078-dhcp.jst.pa.atlanticbb.net [207.255.12.78]) by f05n15.cac.psu.edu (8.13.2/8.13.2) with ESMTP id jBMJirbg147658; Thu, 22 Dec 2005 14:44:54 -0500 Message-ID: <43AB0254.2060802@openldev.org> Date: Thu, 22 Dec 2005 14:45:24 -0500 From: Andrew Krause User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Corey Burger References: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> In-Reply-To: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: chipx86@chipx86.com, David Trowbridge , gtk-list@gnome.org Subject: Re: A new spelling world order X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:45:45 -0000 Corey Burger wrote: >Hey all, > >I was speaking with the maintainers of libsexy about the possiblity of >moving the libsexy spelling widget into gtk+. IMHO, the UI for libsexy >is probably the best one I have seen yet, allowing nearly seamless >spell checking. However, I am not a technical pserson and thus am not >familiar with what is needed to get this stuff into gtk+. > I would be all for this! It would be a wonderful thing to be able to have spellchecking provided universally to any widget that we use. It would help the user because it would become consistent across all of Gnome. --- Andrew Krause andrew@openldev.org www.openldev.org From dkasak@nusconsulting.com.au Thu Dec 22 17:38:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F2CB3B171F for ; Thu, 22 Dec 2005 17:38:38 -0500 (EST) 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 09726-05 for ; Thu, 22 Dec 2005 17:38:36 -0500 (EST) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 6A3A43B1648 for ; Thu, 22 Dec 2005 17:38:34 -0500 (EST) Received: from [10.146.1.180] (ayahuasca.nusconsulting.com.au [10.146.1.180]) by screamer.nusconsulting.com.au (8.13.4/8.13.4) with ESMTP id jBMMcqUL002301 for ; Fri, 23 Dec 2005 09:38:52 +1100 Message-ID: <43AB2955.2080100@nusconsulting.com.au> Date: Fri, 23 Dec 2005 09:31:49 +1100 From: Daniel Kasak User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051029) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 357512 - fec4e925678e X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=357512&m=fec4e925678e X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=357512&m=fec4e925678e X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=357512&m=fec4e925678e X-Scanned-By: CanIt (www . canit . ca) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.572 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.572 X-Spam-Level: Subject: Performance under Citrix & WAN? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 22:38:38 -0000 Greetings. I'm beginning on a project that I would like to do in GTK ( Perl GTK, actually ). The app will be running on 50 different sites, on a WAN over DSL, and inside Citrix :) We're mainly considering the Citrix option for ease of installation / maintenance. It's not a particularly graphically intensive app - it will mainly be a single form ( large though ) for entering stuff into a database. Has anyone used a GTK application under the above setup? What is performance like? I'm not all that familiar with Citrix, so I'm not exactly sure what it will run like. I assume that it does some intelligent compression of standard Windows widgets for performance over a network. Can I expect decent performance for GTK? Thanks :) Dan From david@avoncliff.com Thu Dec 22 18:42:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 415793B0BA7 for ; Thu, 22 Dec 2005 18:42:18 -0500 (EST) 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 13171-08 for ; Thu, 22 Dec 2005 18:42:15 -0500 (EST) Received: from trajan.ag-netcom.net (www.ag-netcom.net [212.58.137.10]) by menubar.gnome.org (Postfix) with ESMTP id 60C4A3B0BE1 for ; Thu, 22 Dec 2005 18:42:15 -0500 (EST) Received: from [192.168.0.2] (dsl-217-155-44-202.zen.co.uk [217.155.44.202]) by trajan.ag-netcom.net (8.12.8p1/8.12.8) with ESMTP id jBMNgEpl044030 for ; Thu, 22 Dec 2005 23:42:14 GMT (envelope-from david@avoncliff.com) Message-ID: <43AB37EA.3090100@avoncliff.com> Date: Thu, 22 Dec 2005 23:34:02 +0000 From: David Stevenson User-Agent: Mozilla Thunderbird 1.0 (X11/20050219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Subject: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 23:42:18 -0000 Hi I have a problem, and am not sure where to ask, so if this is the wrong place please advise. I am using tiff files that are 9000x6000 pixels black and white. ( they are schematic drawings intended to print A0 size ) I calculate this as just under 8meg at 1 bit per pixel, however when I open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which pushes my 256meg Macmini into swapping and makes the files unusable. I thought the problem could be with the files claiming to be 24bit colour although only using mono, but from a quick look at the headers I think they are 1 bit / pixel. Can anyone confirm the memory use for black and white tiffs. David From jcupitt@gmail.com Fri Dec 23 05:23:42 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E0AB3B0A93 for ; Fri, 23 Dec 2005 05:23:42 -0500 (EST) 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 21886-10 for ; Fri, 23 Dec 2005 05:23:37 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by menubar.gnome.org (Postfix) with ESMTP id 680343B09D9 for ; Fri, 23 Dec 2005 05:23:37 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so600038wxc for ; Fri, 23 Dec 2005 02:23:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gfHCBamJJJ2NrIB4XzgFBfiwMV+AoyLrqrHWDoeymltyzaqGydK72InEsHClAPp6Q+VdOVuR0BDJ7XlUlEbrQsPsR6cXcEOxskas6xp0JX4N0W4PX4B9oKD1F5cnhRgLtSN7McffJNkYicYCVhIyQXb/4KF1HsmtB8j2eC/wuSY= Received: by 10.70.94.5 with SMTP id r5mr3108341wxb; Fri, 23 Dec 2005 02:23:36 -0800 (PST) Received: by 10.70.67.14 with HTTP; Fri, 23 Dec 2005 02:23:36 -0800 (PST) Message-ID: <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> Date: Fri, 23 Dec 2005 10:23:36 +0000 From: John Cupitt To: David Stevenson In-Reply-To: <43AB37EA.3090100@avoncliff.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43AB37EA.3090100@avoncliff.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.567 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.567 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 10:23:42 -0000 On 12/22/05, David Stevenson wrote: > I am using tiff files that are 9000x6000 pixels black and white. > ( they are schematic drawings intended to print A0 size ) > I calculate this as just under 8meg at 1 bit per pixel, however when I > open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which > pushes my 256meg Macmini into swapping and makes the files unusable. I did some tests with a 10k x 10k pixel 1 bit image on my laptop. gimp needs just over 200MB of RAM, so I guess they represent the image as 8 bits per pixel plus a bit. eog needs about 350MB, so they might be using RGBA. I maintain an image processing package called nip and it needs just over 30MB to view and manipulate the image. But it's not a paint program and can be tricky to use :-( if you're curious, you can download from: http://www.vips.ecs.soton.ac.uk/ John From hdnews@gawab.com Fri Dec 23 06:07:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3D3F03B1FC2 for ; Fri, 23 Dec 2005 06:07:24 -0500 (EST) 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 25221-05 for ; Fri, 23 Dec 2005 06:07:22 -0500 (EST) Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by menubar.gnome.org (Postfix) with ESMTP id B28B03B1B29 for ; Fri, 23 Dec 2005 06:06:35 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr17.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBNB6XF1041560 for ; Fri, 23 Dec 2005 12:06:34 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBNB6Wfo030182 for ; Fri, 23 Dec 2005 12:06:32 +0100 Message-ID: <43ABDA35.5010008@gawab.com> Date: Fri, 23 Dec 2005 12:06:29 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.469 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.469 X-Spam-Level: Subject: cairo support for Postscript/PDF X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 11:07:24 -0000 L.S., Am I right if I conclude that cairo support for postscript is not included with Gtk? Or is this just a glade-win32.sf.net omission? Thanks in advance for your answers, -- Hans Oesterholt From david@avoncliff.com Fri Dec 23 08:41:41 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 153D43B095B for ; Fri, 23 Dec 2005 08:41:41 -0500 (EST) 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 04071-07 for ; Fri, 23 Dec 2005 08:41:38 -0500 (EST) Received: from trajan.ag-netcom.net (www.ag-netcom.net [212.58.137.10]) by menubar.gnome.org (Postfix) with ESMTP id 196383B10C2 for ; Fri, 23 Dec 2005 08:41:38 -0500 (EST) Received: from [192.168.0.2] (dsl-217-155-44-202.zen.co.uk [217.155.44.202]) by trajan.ag-netcom.net (8.12.8p1/8.12.8) with ESMTP id jBNDfapl052387; Fri, 23 Dec 2005 13:41:36 GMT (envelope-from david@avoncliff.com) Message-ID: <43ABFC0C.5050706@avoncliff.com> Date: Fri, 23 Dec 2005 13:30:52 +0000 From: David Stevenson User-Agent: Mozilla Thunderbird 1.0 (X11/20050219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Cupitt References: <43AB37EA.3090100@avoncliff.com> <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> In-Reply-To: <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599] X-Spam-Score: -2.565 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 13:41:41 -0000 John Cupitt wrote: > On 12/22/05, David Stevenson wrote: > >>I am using tiff files that are 9000x6000 pixels black and white. >>( they are schematic drawings intended to print A0 size ) >>I calculate this as just under 8meg at 1 bit per pixel, however when I >>open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which >>pushes my 256meg Macmini into swapping and makes the files unusable. > > > I did some tests with a 10k x 10k pixel 1 bit image on my laptop. gimp > needs just over 200MB of RAM, so I guess they represent the image as 8 > bits per pixel plus a bit. eog needs about 350MB, so they might be > using RGBA. > > I maintain an image processing package called nip and it needs just > over 30MB to view and manipulate the image. But it's not a paint > program and can be tricky to use :-( if you're curious, you can > download from: > > http://www.vips.ecs.soton.ac.uk/ > > John > Thanks John, I have emerged nip2 and now I can view my drawings no problem. David From riboaz@xs4all.nl Fri Dec 23 10:29:10 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 097193B0F66 for ; Fri, 23 Dec 2005 10:29:10 -0500 (EST) 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 12805-10 for ; Fri, 23 Dec 2005 10:29:07 -0500 (EST) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by menubar.gnome.org (Postfix) with ESMTP id B4A433B0820 for ; Fri, 23 Dec 2005 10:29:06 -0500 (EST) Received: from webmail.xs4all.nl (dovemail7.xs4all.nl [194.109.26.9]) by smtp-vbr9.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBNFT5f0038870; Fri, 23 Dec 2005 16:29:05 +0100 (CET) (envelope-from riboaz@xs4all.nl) Received: from 80.127.22.34 (SquirrelMail authenticated user riboaz) by webmail.xs4all.nl with HTTP; Fri, 23 Dec 2005 16:29:05 +0100 (CET) Message-ID: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> Date: Fri, 23 Dec 2005 16:29:05 +0100 (CET) From: "Richard Boaz" To: gtk-list@gnome.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.43 X-Spam-Level: Subject: gtk_window_set_focus() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 15:29:10 -0000 hi, I have an app to draw seismograms on the screen. When the user hits the "Next" button, the app goes away and reads the next batch of traces for display, does various statistics, plots the output to an internal pixmap and then renders this to the screen; depending on the number of files to be read, this could take a fair amount of time (up to a minute). no problems there. One issue that came up over time (when actually unleashed to the end users...) was that when the program was away reading the files, user events (e.g., mouse click) would get caught and (maybe) cause problems since the program was not in the proper state to process this event properly. I got around this by introducing an invisible widget used to grab focus while the program is off reading and processing files, and then ungrabbing this focus once the program's processing is complete, thus disallowing any user events to be propogated to the widget receiving the user event. This also works just fine. However, this has now introduced a new problem. If the user has the mouse over the Next button (to read traces), clicks this button (thus invoking the file processing described above), and doesn't move the mouse off this button, when the program returns (ungrabbing focus of my invisible widget), focus is not reset to this button. (Clicking this button again has no effect; focussing somewhere else and returning to this button results in a working button.) To get around this, then, I tried to use gtk_window_get_focus() to save the widget having focus at the moment my internal processing is invoked, and then returning this focus to this saved widget when the process is complete, via the following function: void focusLock(int lockCmd) { static GtkWidget *oldFocus; switch(lockCmd) { case LOCK: oldFocus = gtk_window_get_focus(topWindow); gtk_grab_add(invisible); break; case UNLOCK: gtk_grab_remove(invisible); gtk_window_set_focus(topWindow, oldFocus); // tried also gtk_widget_grab_focus(): also no effect break; } } However, using this code, the focus is not reset back to the oldFocus widget; there is no change in the problem behaviour. In order to be able to press the button a second time, I must still move the mouse away from the button and back over it. So, I'm wondering, first, is there a way to achieve my above-stated goals some other (better) way? Second, if the above methodology is okay, why does the gtk_window_set_focus() call above not result in the focus being returned to the widget having focus before my program stole it with gtk_grab_add()? Thanks for any ideas in advance, I'm finding myself in a loop of solve one problem and I simply make another needing solving. cheers, richard boaz From jcupitt@gmail.com Fri Dec 23 10:37:31 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23A6A3B1070 for ; Fri, 23 Dec 2005 10:37:31 -0500 (EST) 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 13753-01 for ; Fri, 23 Dec 2005 10:37:28 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by menubar.gnome.org (Postfix) with ESMTP id D5E4D3B1B7B for ; Fri, 23 Dec 2005 10:37:22 -0500 (EST) Received: by xproxy.gmail.com with SMTP id h29so433815wxd for ; Fri, 23 Dec 2005 07:37:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WxcqcfSnfd+5TjXmBQsZE+xZYW79ZenXmVTgV+bF8sTcygZH5aYn2QUMheMdlaqd+VVGciZUZSVeRquQ/IFoGuBu0fuK1B8DNp57zxPHwtPYiO6jfkUScxByya293l938Fb8Bpyzxix+91PIwy9Vn1FHmmU0/O56vy58ujNlKzs= Received: by 10.70.53.1 with SMTP id b1mr3379721wxa; Fri, 23 Dec 2005 07:37:22 -0800 (PST) Received: by 10.70.67.14 with HTTP; Fri, 23 Dec 2005 07:37:22 -0800 (PST) Message-ID: <522c6460512230737s65f41743r9da9604706535654@mail.gmail.com> Date: Fri, 23 Dec 2005 15:37:22 +0000 From: John Cupitt To: Richard Boaz In-Reply-To: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.567 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.567 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_focus() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 15:37:31 -0000 Hi, On 12/23/05, Richard Boaz wrote: > One issue that came up over time (when actually unleashed to the end > users...) was that when the program was away reading the files, user > events (e.g., mouse click) would get caught and (maybe) cause problems > since the program was not in the proper state to process this event > properly. > > I got around this by introducing an invisible widget used to grab focus > while the program is off reading and processing files, and then ungrabbin= g > this focus once the program's processing is complete, thus disallowing an= y > user events to be propogated to the widget receiving the user event. Thi= s > also works just fine. How about popping up a modal dialog saying "Procesing, please wait ...". The dialog will receive all mouse and keyboard events and they won't get queued on your main window. When processing finishes, pop down the dialog and your app will still be as it was. I guess a better solution would be to thread your program and display a %complete bar, but I imagine that would be more work. John From zvi.sebrow@verizon.net Fri Dec 23 13:54:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2938F3B2774 for ; Fri, 23 Dec 2005 13:54:59 -0500 (EST) 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 28538-03 for ; Fri, 23 Dec 2005 13:54:56 -0500 (EST) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 9EC1B3B2735 for ; Fri, 23 Dec 2005 13:54:54 -0500 (EST) Received: from OFFICEPC1 ([151.205.177.118]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRY002F7SJGSLR7@vms044.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 12:54:54 -0600 (CST) Date: Fri, 23 Dec 2005 13:55:00 -0500 From: "Zvi Sebrow" To: Message-id: <019301c607f2$605b3cf0$4000a8c0@OFFICEPC1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_0190_01C607C8.771ED200" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.082 tagged_above=-999 required=2 tests=[AWL=-1.991, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.082 X-Spam-Level: Subject: changing the width of Frames X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 18:54:59 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0190_01C607C8.771ED200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How does one go about changing the width and/or the color of the frame drawn width a GtkFrame? TIA Zvi ------=_NextPart_000_0190_01C607C8.771ED200 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How does one go about changing the width and/or the = color of=20 the frame
drawn width a GtkFrame?
 
TIA
Zvi
------=_NextPart_000_0190_01C607C8.771ED200-- From junshen2004@gmail.com Fri Dec 23 18:02:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E834E3B289C for ; Fri, 23 Dec 2005 18:02:19 -0500 (EST) 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 12971-01 for ; Fri, 23 Dec 2005 18:02:17 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 385133B2610 for ; Fri, 23 Dec 2005 18:02:17 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 16so727038nzp for ; Fri, 23 Dec 2005 15:02:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=E/WpHmU2yclycSiVaTuDbhlFgfkvMaVLU1SIvA8LmSix7wA84F3B3LyXPpuw6GP5vTzLcsW35bDPVpvozgy+KSAZN4qGj3BJHFbIOzw1mXpfoglaxgqPZvCdCy9KzdEeArtMEht3eRdKYdMxClbxi9qQetCtjXqEVtDIKWbh5jo= Received: by 10.64.149.14 with SMTP id w14mr1893732qbd; Fri, 23 Dec 2005 15:02:16 -0800 (PST) Received: by 10.64.210.4 with HTTP; Fri, 23 Dec 2005 15:02:16 -0800 (PST) Message-ID: <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> Date: Fri, 23 Dec 2005 18:02:16 -0500 From: Jun Shen To: gtk-list@gnome.org In-Reply-To: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22881_30597531.1135378936561" References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.481 X-Spam-Level: Subject: New to GTK+, please help X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 23:02:20 -0000 ------=_Part_22881_30597531.1135378936561 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am new to GTK+. I am trying to run the Hello World program from GTK+ 2.0Tutorial in Visual C++ 6.0. But I am getting the following error. Please help. Thank you very much. Jun ** (gtk.exe): WARNING **: The specified module could not be found. Failed to load Pango module for id: 'BasicScriptEngineWin32' (gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): a ssertion `G_IS_OBJECT (object)' failed ** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_shape_sha pe): assertion `PANGO_IS_FONT (font)' failed ------=_Part_22881_30597531.1135378936561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
 
I am new to GTK+. I am trying to run the Hello World program= from GTK+ 2.0 Tutorial in Visual C++ 6.0. But I am getting the following e= rror. Please help.
 
Thank you very much.
 
Jun

** (gtk.exe): WARNING **: The specified module could not be found.=
Failed to load Pango module for id: 'BasicScriptEngineWin32'

(gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_= object_ref): a
ssertion `G_IS_OBJECT (object)' failed

** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_s= hape_sha
pe): assertion `PANGO_IS_FONT (font)' failed

 

 
------=_Part_22881_30597531.1135378936561-- From paul@linuxaudiosystems.com Fri Dec 23 19:51:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0DA383B3229 for ; Fri, 23 Dec 2005 19:51:35 -0500 (EST) 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 19183-02 for ; Fri, 23 Dec 2005 19:51:32 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 43FFC3B2D15 for ; Fri, 23 Dec 2005 19:51:32 -0500 (EST) Received: from dhin ([151.197.42.141]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRZ00K0B91VWOA0@vms046.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 18:51:31 -0600 (CST) Date: Fri, 23 Dec 2005 19:54:21 -0500 From: Paul Davis To: gtk-list@gnome.org Message-id: <1135385661.6838.32.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.572 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.572 X-Spam-Level: Subject: the container/table/scrollbar/adjustment problem to end all such problems X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 00:51:35 -0000 OK, I've had enough of trying to fix this problem over the years. Its time to ask the rest of the experts how they would solve this. The problem at hand is layed out like this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +--------------------------------+-----------------------------+ | | | | | | | | | | A | B | | | | | | | | | | +--------------------------------+-----------------------------+X | | |X | | |X | | |X | C | D |X | | |X | | |X +--------------------------------+-----------------------------+X the exact and relative dimensions don't matter at all. the rules are that: * A never scrolls at all * B scrolls horizontally in step with D, but never vertically * C scrolls vertically in step with D, but never horizontally * (by implication) D scrolls vertically and horizontally the area marked "XXXXXXXX" indicates the desired location of the scrollbar to control scrolling in the appropriate direction. how to do this with GTK? i know the basics so please don't tell me about using a table, etc. my existing (non)solution is: overall layout is a 3x3 table C is a layout containing an eventbox D is canvas widget (i.e. a layout, since canvas IS-A layout) B is a vbox containing several custom rulers and a canvas A is a vbox containing text labels stacked XXXXXX is a scrollbar of the appropriate orientation this is *very* close to working, but not close enough. I cannot get the layout in C to scroll properly. it has its own adjustments, but anytime the adjustment associated with vertical scrollbar is changed, we set the layout adjustment to the same value. horizontal scrolling works fine. the C layout will scroll, but any part of the event box that was not visible when the top level window was mapped will never be drawn. suggestions? new approaches? before you ask "why not use a scrolled window?", been there, done that. GTK's scrolled windows do not support the idea of being limited in display size but having no visible scrollbars. this means that C cannot be a scrolled window because it will either (a) expand to the full size of its child widget or (b) have to have at least 1 visible scrollbar. --p From paul@linuxaudiosystems.com Fri Dec 23 20:31:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A853E3B230F for ; Fri, 23 Dec 2005 20:31:15 -0500 (EST) 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 21547-09 for ; Fri, 23 Dec 2005 20:31:12 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id AD7413B1943 for ; Fri, 23 Dec 2005 20:31:12 -0500 (EST) Received: from dhin ([151.197.42.141]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRZ00HVVAVKJBW1@vms046.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 19:30:57 -0600 (CST) Date: Fri, 23 Dec 2005 20:33:47 -0500 From: Paul Davis In-reply-to: <1135385661.6838.32.camel@localhost.localdomain> To: gtk-list@gnome.org Message-id: <1135388027.6838.34.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1135385661.6838.32.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.571 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.571 X-Spam-Level: Subject: Re: the container/table/scrollbar/adjustment problem to end all such problems X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 01:31:15 -0000 On Fri, 2005-12-23 at 19:54 -0500, Paul Davis wrote: > OK, I've had enough of trying to fix this problem over the years. Its > time to ask the rest of the experts how they would solve this. i also know that an excellent way to solve problems is to draft an exasperated email to this list and wait for about 10 minutes, at which point the problem will become utterly self-evident. thanks for listening in. --p From email@micahcarrick.com Fri Dec 23 21:04:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 620FE3B0D4E for ; Fri, 23 Dec 2005 21:04:19 -0500 (EST) 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 23404-09 for ; Fri, 23 Dec 2005 21:04:17 -0500 (EST) Received: from meteor.lunarpages.com (meteor.lunarpages.com [216.193.217.213]) by menubar.gnome.org (Postfix) with ESMTP id D283F3B08A5 for ; Fri, 23 Dec 2005 21:04:16 -0500 (EST) Received: from c-24-21-141-194.hsd1.or.comcast.net ([24.21.141.194] helo=[192.168.0.100]) by meteor.lunarpages.com with esmtpa (Exim 4.52) id 1Epylb-0005yQ-8C for gtk-list@gnome.org; Fri, 23 Dec 2005 18:04:15 -0800 Message-ID: <43ACACCA.70309@micahcarrick.com> Date: Fri, 23 Dec 2005 18:04:58 -0800 From: Micah Carrick User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - meteor.lunarpages.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - micahcarrick.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.398 X-Spam-Level: Subject: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: email@micahcarrick.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 02:04:19 -0000 Hi. I have a GtkImage in my glade file which I am trying to get to display image data that I have in memory. The data is in raw format, 3 bytes per pixel RGB. So, this is sort of what I'm trying to do now (v->image_data is a struct member with the array of guchar containing my image data)... GdkPixbuf *pixbuf = gdk_pixbuf_new_from_data( v->image_data, GDK_COLORSPACE_RGB, FALSE, 8, 320, 240, 960, NULL, NULL ); GtkWidget *image1 = glade_xml_get_widget (gxml, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(image1), pixbuf); gtk_widget_show(image1); Any pointers as to what I might be doing wrong? Thanks, Micah From duckwing@duckwing.ca Fri Dec 23 22:30:46 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50AFD3B3454 for ; Fri, 23 Dec 2005 22:30:46 -0500 (EST) 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 27803-10 for ; Fri, 23 Dec 2005 22:30:43 -0500 (EST) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by menubar.gnome.org (Postfix) with ESMTP id 723763B2EFA for ; Fri, 23 Dec 2005 22:30:43 -0500 (EST) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ007ICGF62OC0@l-daemon> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd2mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ00I0VGF6OKC0@pd2mr8so.prod.shaw.ca> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: from localhost ([24.69.162.251]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ00AJWGF6XLI1@l-daemon> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: by localhost (Postfix, from userid 1000) id C0AAB1B70B; Fri, 23 Dec 2005 19:30:43 -0800 (PST) Date: Fri, 23 Dec 2005 19:30:43 -0800 From: "Carl B. Constantine" In-reply-to: <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> To: gtk-list@gnome.org Mail-Followup-To: gtk-list@gnome.org Message-id: <20051224033043.GB5518@Mallard> X-Info: http://www.duckwing.ca MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-2-k7-smp (i686) X-Uptime: 19:29:21 up 10:21, 4 users, load average: 0.07, 0.02, 0.00 References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Re: New to GTK+, please help X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 03:30:46 -0000 * Jun Shen (junshen2004@gmail.com) wrote: > Hi, > > I am new to GTK+. I am trying to run the Hello World program from GTK+ > 2.0Tutorial in Visual C++ > 6.0. But I am getting the following error. Please help. > > Thank you very much. > > Jun > > ** (gtk.exe): WARNING **: The specified module could not be found. > Failed to load Pango module for id: 'BasicScriptEngineWin32' > > (gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 > (g_object_ref): a > ssertion `G_IS_OBJECT (object)' failed > > ** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 > (_pango_engine_shape_sha > pe): assertion `PANGO_IS_FONT (font)' failed Do you have the Pango Libraries specified in your VC++ project? I'm not up on Visual C but check to make sure everything is linked in correctly. -- .''`. Carl B. Constantine : :' : duckwing@duckwing.ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom "Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world." From hdnews@gawab.com Sat Dec 24 05:55:49 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 819F33B0A38 for ; Sat, 24 Dec 2005 05:55:49 -0500 (EST) 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 19359-07 for ; Sat, 24 Dec 2005 05:55:47 -0500 (EST) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by menubar.gnome.org (Postfix) with ESMTP id 186023B06A8 for ; Sat, 24 Dec 2005 05:55:47 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr3.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBOAtjtR080824 for ; Sat, 24 Dec 2005 11:55:46 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBOAtifo032675 for ; Sat, 24 Dec 2005 11:55:45 +0100 Message-ID: <43ABD9D2.3000101@gawab.com> Date: Fri, 23 Dec 2005 12:04:50 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.059 tagged_above=-999 required=2 tests=[AWL=-2.058, BAYES_05=-1.11, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_POST=1.708, TW_CV=0.077, TW_VX=0.077] X-Spam-Score: -0.059 X-Spam-Level: Subject: cairo support, Postscript? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 10:55:49 -0000 Hello, On WIN32, I cvxz From everaldo.canuto@gmail.com Sat Dec 24 08:39:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 565F13B11B1 for ; Sat, 24 Dec 2005 08:39:10 -0500 (EST) 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 31554-07 for ; Sat, 24 Dec 2005 08:39:07 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id A4D5D3B1B88 for ; Sat, 24 Dec 2005 08:37:59 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 68so720981wra for ; Sat, 24 Dec 2005 05:37:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=E6Ggjfi54G7to9WhxUMeaMCMH1iTu5zzDtZUMmMu4Q3NSXvU+ql+lLNyOFlM4sJsLM3mQIKF2VQhZbqhkP7ClZCyr7izNYFsmuG1CfZFI9HqwhYCLYyA52/yYW8Mn1ASziqxlIoCVMq9y+xoaYUWWrEAP9NUxq3e3vQxp9iRb5E= Received: by 10.54.135.7 with SMTP id i7mr3745811wrd; Sat, 24 Dec 2005 05:37:58 -0800 (PST) Received: from ?172.31.0.45? ( [200.164.80.130]) by mx.gmail.com with ESMTP id 13sm8093462wrl.2005.12.24.05.37.55; Sat, 24 Dec 2005 05:37:57 -0800 (PST) From: Everaldo Canuto To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 24 Dec 2005 10:37:47 -0300 Message-Id: <1135431467.27692.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: Mary Christimas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 13:39:17 -0000 Hi all, I know that this is a international list and not all people have same religion or calendar but... Mary Christimas, a happy new year and a big success in 2006!! Everaldo. From duckwing@duckwing.ca Sat Dec 24 13:11:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB87E3B2612 for ; Sat, 24 Dec 2005 13:11:07 -0500 (EST) 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 17085-06 for ; Sat, 24 Dec 2005 13:11:04 -0500 (EST) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by menubar.gnome.org (Postfix) with ESMTP id 892B63B0A23 for ; Sat, 24 Dec 2005 13:11:04 -0500 (EST) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS00016TL6G7DD0@l-daemon> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:04 -0700 (MST) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd4mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS000JB3L6GOCE0@pd4mr1so.prod.shaw.ca> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:04 -0700 (MST) Received: from localhost ([24.69.162.251]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS0008ZEL6F4M90@l-daemon> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:03 -0700 (MST) Received: by localhost (Postfix, from userid 1000) id 97C161B6F0; Sat, 24 Dec 2005 10:11:07 -0800 (PST) Date: Sat, 24 Dec 2005 10:11:07 -0800 From: "Carl B. Constantine" In-reply-to: <1135431467.27692.7.camel@localhost.localdomain> To: Everaldo Canuto Mail-Followup-To: Everaldo Canuto , gtk-list@gnome.org Message-id: <20051224181107.GB7468@Mallard> X-Info: http://www.duckwing.ca MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-2-k7-smp (i686) X-Uptime: 10:10:47 up 1 day, 1:02, 4 users, load average: 0.11, 0.11, 0.04 References: <1135431467.27692.7.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.433 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.433 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Mary Christimas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 18:11:07 -0000 * Everaldo Canuto (everaldo.canuto@gmail.com) wrote: > Hi all, > > I know that this is a international list and not all people have same > religion or calendar but... > > Mary Christimas, a happy new year and a big success in 2006!! > > Everaldo. Thank you. To you and yours too. -- .''`. Carl B. Constantine : :' : duckwing@duckwing.ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom "Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world." From michael@zolnott.de Sun Dec 25 03:23:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45483B079C for ; Sun, 25 Dec 2005 03:23:12 -0500 (EST) 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 28573-08 for ; Sun, 25 Dec 2005 03:23:09 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id 4F9E43B0B0F for ; Sun, 25 Dec 2005 03:22:43 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3203.me.freeserve.com (SMTP Server) with ESMTP id 23BDD1C00085 for ; Sun, 25 Dec 2005 09:22:42 +0100 (CET) Received: from www.zolnott.de (user-7071.l6.c5.dsl.pol.co.uk [84.65.123.159]) by mwinf3203.me.freeserve.com (SMTP Server) with ESMTP id BFF5E1C00083 for ; Sun, 25 Dec 2005 09:22:41 +0100 (CET) X-ME-UUID: 20051225082241786.BFF5E1C00083@mwinf3203.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 928804B943; Sun, 25 Dec 2005 08:22:39 +0000 (GMT) Date: Sun, 25 Dec 2005 08:22:37 +0000 From: Michael Ott To: gtk mailing list Message-ID: <20051225082232.GA19389@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.14 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r655 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Printing in win32 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 08:23:13 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! I want to port an small linux application to windows. This application have a printing function using gnome functions. Can i port this printing function to windows without using gnome libs? CU =20 =20 Michael =20 =20 -- =20 Michael Ott, e-mail: michael@zolnott.de, www.zolnott.de = =20 I am registered as user #275453 with the Linux Counter, http://counter.li.o= rg. --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDrlbIXDV4oK/n3xIRAgSTAKDFSdlsyUNaMpjJka0xInMkWGjxbgCdGR7N EcIyTX1K6tNhSOU6e7cGcjo= =mdbf -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From gnome@coyotegulch.com Tue Dec 27 02:51:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 535523B4BA5 for ; Tue, 27 Dec 2005 02:51:50 -0500 (EST) 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 28738-04 for ; Tue, 27 Dec 2005 02:51:47 -0500 (EST) Received: from smtpout02-04.prod.mesa1.secureserver.net (smtpout02-04.prod.mesa1.secureserver.net [64.202.165.194]) by menubar.gnome.org (Postfix) with SMTP id 3C85D3B6327 for ; Mon, 26 Dec 2005 19:21:46 -0500 (EST) Received: (qmail 30466 invoked from network); 27 Dec 2005 00:21:45 -0000 Received: from unknown (24.96.113.5) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 27 Dec 2005 00:21:45 -0000 Message-ID: <43B0891C.302@coyotegulch.com> Date: Mon, 26 Dec 2005 19:21:48 -0500 From: Scott Robert Ladd User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: RFC: Program for Possible Tutorial X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 07:51:53 -0000 I'm may write a Cairo tutorial, based on what I learned while writing the program found here: http://www.coyotegulch.com/distfiles/unit_circle-1.0.0.tar.gz The program isn't rocket science; one of my home-schooled kids had trouble understanding the relationship of angles and trig functions, and I needed a small project for getting better acquainted with Cairo. If anyone on the GTK or Cairo teams has comments about the code or improvements thereto, I'm open to suggestions. -- Scott Robert Ladd Coyote Gulch Productions http://www.coyotegulch.com From staniszewskip@imperial.pl Tue Dec 27 10:34:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 469013B2E72; Tue, 27 Dec 2005 10:34:20 -0500 (EST) 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 20783-06; Tue, 27 Dec 2005 10:34:18 -0500 (EST) Received: from av4-vega.dc.sint.pl (av4-vega.dc.sint.pl [213.241.70.183]) by menubar.gnome.org (Postfix) with ESMTP id 95D8B3B3649; Tue, 27 Dec 2005 02:17:29 -0500 (EST) Received: from ewg145.neoplus.adsl.tpnet.pl ([83.20.230.145]:3725 helo=[192.168.1.251]) by av4-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1Er95L-0002nq-Dd; Tue, 27 Dec 2005 08:17:27 +0100 Message-ID: <43B00567.5010807@imperial.pl> Date: Mon, 26 Dec 2005 15:59:51 +0100 From: =?ISO-8859-2?Q?Przemys=B3aw_Staniszewski?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------010908070702010405030709" X-Exiscan-AV-Host: av4-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.198 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.198 X-Spam-Level: X-Mailman-Approved-At: Tue, 27 Dec 2005 11:01:02 -0500 Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 15:34:20 -0000 This is a multi-part message in MIME format. --------------010908070702010405030709 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------010908070702010405030709 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------010908070702010405030709 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------010908070702010405030709-- From wtallman@olypen.com Tue Dec 27 11:35:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7AEC3B2F91 for ; Tue, 27 Dec 2005 11:35:37 -0500 (EST) 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 28571-05 for ; Tue, 27 Dec 2005 11:35:34 -0500 (EST) Received: from olypen3.olypen.com (olypen3.olypen.com [208.200.248.248]) by menubar.gnome.org (Postfix) with ESMTP id 4D8ED3B2151 for ; Tue, 27 Dec 2005 03:10:36 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen3.olypen.com with esmtp() (Exim 4.43) id 1Er9ui-0007Wt-3L for gtk-list@gnome.org; Tue, 27 Dec 2005 00:10:32 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBR8AXTX003225 for gtk-list@gnome.org; Tue, 27 Dec 2005 00:10:33 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Tue, 27 Dec 2005 00:10:33 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051227081033.GA3037@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.429 X-Spam-Level: Subject: Yet another question X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:35:37 -0000 This will be my third post here. Perhaps I'll get an answer this time. I'm still struggling along trying to learn Gtk+ and using 1.2. What I'd like to know is how to kill a child window without killing the parent. Or at least I think that's what I need to know. I have a main panel with buttons to launch some number of different satellite windows, like a file selecter, and such. I've gotten each of these to work as a stand-alone, and then dropped the main function to make a call-back. Works like a charm. What happens, though, is when I go to close the call-back, it takes the entire application. The delete_event function calls gtk_main_quit() and that works for the prototype, but now I'd like to replace that with something that just closes the call-back and leaves the main window intact. In one window I crafted myself (lotsa fields and buttons and spinners and such), I simply commented out the delete-event call from gtk_signal_connect, and though I couldn't close it from a button within the window, when I clicked off the desktop frame, it went away without killing the main panel. The file selector is straight from the tutorial, however, and I don't know how to change that... clicking off the desktop frame kills everything. I'm seeing things like gtk_widget_destroy, but I can't figure out how to apply them. I've got both Harlow and Pennington, as well as all the html docs I can find, and I'm still lost. Would someone point me in the right direction here, please? Thanks, Bill Tallman From wtallman@olypen.com Tue Dec 27 11:47:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2F7D93B1B49 for ; Tue, 27 Dec 2005 11:47:44 -0500 (EST) 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 30030-01 for ; Tue, 27 Dec 2005 11:47:40 -0500 (EST) Received: from olypen1.olypen.com (olypen1.olypen.com [208.200.248.250]) by menubar.gnome.org (Postfix) with ESMTP id 1940B3B3980 for ; Tue, 27 Dec 2005 03:21:56 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen1.olypen.com with esmtp() (Exim 4.43) id 1ErA5e-0003lx-Lr for gtk-list@gnome.org; Tue, 27 Dec 2005 00:21:50 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBR8LrUP003384 for gtk-list@gnome.org; Tue, 27 Dec 2005 00:21:53 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Tue, 27 Dec 2005 00:21:53 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051227082153.GA3358@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.431 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.431 X-Spam-Level: Subject: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:47:44 -0000 Wouldn't you know it. After all this time, I just happened to notice the solution in the back of Pennington. Run nested instances of gtk_main(). Thanks anyway, Bill Tallman From gnome@coyotegulch.com Tue Dec 27 11:55:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A2333B2515 for ; Tue, 27 Dec 2005 11:55:45 -0500 (EST) 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 30976-06 for ; Tue, 27 Dec 2005 11:55:43 -0500 (EST) Received: from smtpout02-04.prod.mesa1.secureserver.net (smtpout02-04.prod.mesa1.secureserver.net [64.202.165.194]) by menubar.gnome.org (Postfix) with SMTP id BFF1E3B7CBE for ; Mon, 26 Dec 2005 00:30:35 -0500 (EST) Received: (qmail 19212 invoked from network); 26 Dec 2005 05:30:33 -0000 Received: from unknown (24.96.113.5) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 26 Dec 2005 05:30:33 -0000 Message-ID: <43AF7FFB.1090201@coyotegulch.com> Date: Mon, 26 Dec 2005 00:30:35 -0500 From: Scott Robert Ladd User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Subject: Rich text on a GnomeCanvas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:55:45 -0000 I'm working on an application using GTK+ 2.8.9, and I need to display high-quality text on an anti-aliased GnomeCanvas. Since GnomeCanvasRichText does work on an AA canvas, what are my options? Essentially, I'm annotating a graphic image with labels. I'd like some of these labels to be in color, and others in italic or bold. Any suggestions? ..Scott From ihi.marzyciel@wp.pl Tue Dec 27 14:42:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B7BCE3B1F2C; Tue, 27 Dec 2005 14:42:50 -0500 (EST) 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 19432-09; Tue, 27 Dec 2005 14:42:38 -0500 (EST) Received: from av2-vega.dc.sint.pl (av2-vega.dc.sint.pl [213.241.70.181]) by menubar.gnome.org (Postfix) with ESMTP id EC3B83B3222; Tue, 27 Dec 2005 07:52:00 -0500 (EST) Received: from ewg145.neoplus.adsl.tpnet.pl ([83.20.230.145]:4109 helo=[192.168.1.251]) by av2-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1ErEJ1-0000LG-UQ; Tue, 27 Dec 2005 13:51:56 +0100 Message-ID: <43B13901.8040009@wp.pl> Date: Tue, 27 Dec 2005 13:52:17 +0100 From: =?ISO-8859-2?Q?Przemys=B3aw_Staniszewski?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------090305050504000903090101" X-Exiscan-AV-Host: av2-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.955 tagged_above=-999 required=2 tests=[AWL=0.490, BAYES_00=-2.599, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.955 X-Spam-Level: Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 19:42:50 -0000 This is a multi-part message in MIME format. --------------090305050504000903090101 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------090305050504000903090101 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------090305050504000903090101 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------090305050504000903090101-- From odysseus.lost@gmail.com Tue Dec 27 18:43:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F68B3B0A83 for ; Tue, 27 Dec 2005 18:43:04 -0500 (EST) 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 16420-05 for ; Tue, 27 Dec 2005 18:43:02 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by menubar.gnome.org (Postfix) with ESMTP id 38A5F3B0E4F for ; Tue, 27 Dec 2005 13:46:51 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so463280nfc for ; Tue, 27 Dec 2005 10:46:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=IZ98AdFmhr1qPqb0JsrxbJ6JhnYUXVSk66U9SN/dyYKvM86uaLnZ4vL/QdcD4ZRIYEEp3ULlGLC0wR/1mpP/xTtF1Nzk2d4Uqx4iTXBI40GqzKbkFxqm27oD7QFwjOLa6RlxQc9xonH7V4Gds43h80fS3uYJhBSpLFn2S9Wbvoc= Received: by 10.48.12.14 with SMTP id 14mr286522nfl; Tue, 27 Dec 2005 10:46:49 -0800 (PST) Received: by 10.48.144.13 with HTTP; Tue, 27 Dec 2005 10:46:49 -0800 (PST) Message-ID: <5c71e1440512271046v1de46d58n@mail.gmail.com> Date: Tue, 27 Dec 2005 20:46:49 +0200 From: Yiannis To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14579_31684690.1135709209755" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.632 tagged_above=-999 required=2 tests=[AWL=-1.798, BAYES_40=-0.185, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.632 X-Spam-Level: Cc: Subject: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 23:43:04 -0000 ------=_Part_14579_31684690.1135709209755 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, is it possible to have a widget (a toggle button in particular) act as insensitive but look as it is sensitive. More specific is it possible to have a toggle button act as insensitive once activated but look sensitive, ie without the grey shade? Cheers. -- -- Yiannis ------=_Part_14579_31684690.1135709209755 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

is it possible to have a widget (a toggle button in particular) act as insensitive but look as it is sensitive. More specific is it possible to have a toggle button act as insensitive once activated but look sensitive, ie without the grey shade?

Cheers.

--
-- Yiannis ------=_Part_14579_31684690.1135709209755-- From shafer@realmsys.com Tue Dec 27 20:20:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C940B3B06DA for ; Tue, 27 Dec 2005 20:20:24 -0500 (EST) 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 28602-09 for ; Tue, 27 Dec 2005 20:20:22 -0500 (EST) Received: from ba.realmsys.com (207.88.121.47.ptr.us.xo.net [207.88.121.47]) by menubar.gnome.org (Postfix) with ESMTP id B538E3B2111 for ; Tue, 27 Dec 2005 16:57:53 -0500 (EST) Received: from [10.100.5.218] (unknown [66.239.3.2]) by ba.realmsys.com (Spam Firewall) with ESMTP id AB0B139741 for ; Tue, 27 Dec 2005 14:57:52 -0700 (MST) From: Andrew Shafer To: gtk-list@gnome.org Content-Type: text/plain Date: Tue, 27 Dec 2005 14:55:59 -0700 Message-Id: <1135720559.30765.5.camel@baraka.inrealm.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Barracuda Spam Firewall at realmsys.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.12 tagged_above=-999 required=2 tests=[AWL=-2.430, BAYES_40=-0.185, FORGED_RCVD_HELO=0.135, RCVD_IN_DSBL=2.6] X-Spam-Score: 0.12 X-Spam-Level: Subject: Testing your GUI X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:20:25 -0000 This list seems like an appropriate place to ask this question. I've been using GTK for a few months now and I'm interested in some testing strategies. Does any one have a favorite method for testing your GTK applications? Any programs that you use to automate a series of X Events for the purpose of testing? Thanks, Andrew Shafer From sfgm@verizon.net Tue Dec 27 20:26:14 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8A3603B0AE6 for ; Tue, 27 Dec 2005 20:26:14 -0500 (EST) 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 29521-02 for ; Tue, 27 Dec 2005 20:26:12 -0500 (EST) Received: from mta8.srv.hcvlny.cv.net (mta8.srv.hcvlny.cv.net [167.206.4.203]) by menubar.gnome.org (Postfix) with ESMTP id 0B09B3B1653 for ; Tue, 27 Dec 2005 17:10:42 -0500 (EST) Received: from RUBYPC (ool-457407c4.dyn.optonline.net [69.116.7.196]) by mta8.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with SMTP id <0IS600HOEG9GHSDK@mta8.srv.hcvlny.cv.net> for gtk-list@gnome.org; Tue, 27 Dec 2005 17:10:31 -0500 (EST) Date: Tue, 27 Dec 2005 17:10:13 -0500 From: Jay Kessel To: gtk-list@gnome.org Message-id: <006601c60b32$4f8e8b50$6601a8c0@RUBYPC> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Mailer: Microsoft Outlook Express 6.00.2900.2527 Content-type: multipart/alternative; boundary="Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g)" X-Priority: 3 X-MSMail-priority: Normal References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.979 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_NEUTRAL=1.069] X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Flag: YES Subject: New to GTK+, have a few questions X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:26:14 -0000 This is a multi-part message in MIME format. --Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Hi, I am relatively new to GTK+. If I want to draw a rectangle around a widget, such an a GtkEntry or a GtkLabel, how do I go about doing that? I need to be able to change the color of the box and the thickness of the lines, depending on some other data. Can I do that with a GtkFrame? Thanks, Jay --Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Hi,
 
I am relatively new to GTK+.   If I want to draw a rectangle around a widget, such an a GtkEntry or a GtkLabel,
how do I go about doing that?  I need to be able to change the color of the box and the thickness of the lines,
depending on some other data.  Can I do that with a GtkFrame?
 
Thanks,
Jay
--Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g)-- From hdnews@gawab.com Tue Dec 27 20:33:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D738F3B0E7C for ; Tue, 27 Dec 2005 20:33:56 -0500 (EST) 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 30473-06 for ; Tue, 27 Dec 2005 20:33:55 -0500 (EST) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by menubar.gnome.org (Postfix) with ESMTP id F0DF63B22B0 for ; Tue, 27 Dec 2005 17:25:55 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr6.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBRMPrk5085429; Tue, 27 Dec 2005 23:25:54 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBRMPrfo014724; Tue, 27 Dec 2005 23:25:53 +0100 Message-ID: <43B1BF6B.4050700@gawab.com> Date: Tue, 27 Dec 2005 23:25:47 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: Hans Oesterholt-Dijkema References: <43ABDA35.5010008@gawab.com> In-Reply-To: <43ABDA35.5010008@gawab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.204 tagged_above=-999 required=2 tests=[AWL=-0.390, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.204 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: cairo support for Postscript/PDF X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:33:57 -0000 Ok, they are stil experimental. However, how does one compile cairo using MinGW32 or MSVC? Anyone? Hans Oesterholt-Dijkema schreef: > L.S., > > Am I right if I conclude that cairo support for postscript > is not included with Gtk? Or is this just a glade-win32.sf.net > omission? > > Thanks in advance for your answers, > > -- > Hans Oesterholt > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeti@physics.muni.cz Tue Dec 27 20:47:36 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3B0A3B1294 for ; Tue, 27 Dec 2005 20:47:36 -0500 (EST) 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 32099-04 for ; Tue, 27 Dec 2005 20:47:34 -0500 (EST) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 2BCFD3B06B9 for ; Tue, 27 Dec 2005 17:49:43 -0500 (EST) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBRMnWJv004300; Tue, 27 Dec 2005 23:49:33 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 06F9023E0D; Tue, 27 Dec 2005 23:49:32 +0100 (CET) Date: Tue, 27 Dec 2005 23:49:31 +0100 From: "David Necas (Yeti)" To: "William D. Tallman" Message-ID: <20051227224931.GG29084@potato> References: <20051227082153.GA3358@olypen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051227082153.GA3358@olypen.com> User-Agent: Mutt/1.4.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:47:36 -0000 Please use better subjects than `Yet another question' and `Last post'. On Tue, Dec 27, 2005 at 12:21:53AM -0800, William D. Tallman wrote: > Wouldn't you know it. After all this time, I just happened to notice > the solution in the back of Pennington. Run nested instances of > gtk_main(). Running nested instances of gtk_main() is rarely needed. If I understand your problem, just construct your auxiliary windows and show them with gtk_widget_show[_all](). That's all. Delete everything main-loop related (except from main app code). By default, windows are automatically destroyed by Gtk+ on delete event. You can connect your own callback to perform additional actions, but if you only need them destroyed that Just Works. If your auxiliary windows are dialogs and you want to run them modally, use gtk_dialog_run() (this in fact involves a nested main loop, but it's hidden and you do not need to care about it). Yeti -- That's enough. From tristan.van.berkom@gmail.com Tue Dec 27 22:46:36 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF5033B0803 for ; Tue, 27 Dec 2005 22:46:36 -0500 (EST) 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 14190-03 for ; Tue, 27 Dec 2005 22:46:34 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by menubar.gnome.org (Postfix) with ESMTP id D9EC23B1129 for ; Tue, 27 Dec 2005 21:39:19 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 8so1455215nzo for ; Tue, 27 Dec 2005 18:39:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=GNf8uCpCSF8RGq7u/DySFMGobGuoaGZWnRA5OWeB26vfDbprcg4w9ZqMPDpWTEjfw4TDwDHovkTjNCNLj7i+QoAMghv45gKnJ3i4sAOCWhqMtLpBRFt1IvdW30x6pWMtL8igJESy/gzWFLTwoW/SAvz1rQF1Dpq32ZfUDfc32UE= Received: by 10.64.180.14 with SMTP id c14mr2049987qbf; Tue, 27 Dec 2005 18:39:18 -0800 (PST) Received: from ?67.71.79.200? ( [67.71.79.200]) by mx.gmail.com with ESMTP id e13sm258415qba.2005.12.27.18.39.18; Tue, 27 Dec 2005 18:39:18 -0800 (PST) Message-ID: <43B1FC52.2070307@gnome.org> Date: Tue, 27 Dec 2005 21:45:38 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> In-Reply-To: <5c71e1440512271046v1de46d58n@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.574 tagged_above=-999 required=2 tests=[AWL=0.026, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.574 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 03:46:37 -0000 Yiannis wrote: > Hi, > > is it possible to have a widget (a toggle button in particular) act as > insensitive but look as it is sensitive. More specific is it possible to > have a toggle button act as insensitive once activated but look > sensitive, ie without the grey shade? Whatever you're doing, you're cheating ;-) you can: o Create a sample GtkToggleButton o Make copies of the GdkColor structs on widget->style.bg[GTK_STATE_NORMAL] (or is it ACTIVE ?), you might also want the .fg, .base & .text members. you'd want to do this post gtk_rc_parse(). o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg) (and friends) to set the sensitive graphic state onto the insensitive state. o gtk_widget_set_sensitive (widget, FASLE); Cheers, -Tristan From ihi.marzyciel@wp.pl Wed Dec 28 02:24:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 652803B097D; Wed, 28 Dec 2005 02:24:11 -0500 (EST) 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 01407-06; Wed, 28 Dec 2005 02:24:08 -0500 (EST) Received: from av4-vega.dc.sint.pl (av4-vega.dc.sint.pl [213.241.70.183]) by menubar.gnome.org (Postfix) with ESMTP id A07C73B093C; Wed, 28 Dec 2005 02:24:06 -0500 (EST) Received: from exb158.neoplus.adsl.tpnet.pl ([83.20.251.158]:3860 helo=[192.168.1.251]) by av4-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1ErVfH-0002Xx-5g; Wed, 28 Dec 2005 08:24:04 +0100 Message-ID: <43B23DA6.2060808@wp.pl> Date: Wed, 28 Dec 2005 08:24:22 +0100 From: =?UTF-8?B?UHJ6ZW15c8WCYXcgU3RhbmlzemV3c2tp?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------080704020609020802080005" X-Exiscan-AV-Host: av4-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.722 tagged_above=-999 required=2 tests=[AWL=-0.419, BAYES_00=-2.599, SPF_FAIL=1.142, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.722 X-Spam-Level: Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 07:24:11 -0000 This is a multi-part message in MIME format. --------------080704020609020802080005 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------080704020609020802080005 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------080704020609020802080005 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------080704020609020802080005-- From wtallman@olypen.com Wed Dec 28 03:01:06 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8BE003B0A45 for ; Wed, 28 Dec 2005 03:01:05 -0500 (EST) 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 04120-05 for ; Wed, 28 Dec 2005 03:00:59 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id 4EC893B0A3E for ; Wed, 28 Dec 2005 03:00:59 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1ErWF1-0000sR-A2 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:00:59 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBS80ubE022494 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:00:56 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 28 Dec 2005 00:00:56 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051228080056.GD19427@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <20051227082153.GA3358@olypen.com> <23025.80.126.242.36.1135753664.squirrel@webmail.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23025.80.126.242.36.1135753664.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.43 X-Spam-Level: Subject: Re: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:01:06 -0000 On Wed, Dec 28, 2005 at 08:07:44AM +0100, Richard Boaz wrote: > hi, > > there's another method you can employ to deal with these situations. > don't know all your gritty details, but perhaps it's relevant for you. > when i have dialogs and popups and such, i don't employ another > gtk_main(), rather, i make the dailog modal so that focus is fixed on the > dialog. once they user hits the enter/cancel key, i hide the dialog/popup > insteal of destroying it. that way, if the user needs to see it again, > you only need to show the widget instead of making it from scratch every > time. Considered that, thanks. These aren't informative, they're dialogue widgets of one or another kind, and I hadn't gotten the connection. They need to pass their information, do their thing, and then go away, as a new instance will be needed each time. I think. Also, I think they need not to be modal, because the user may want to consult other stuff in the process, and hanging things up would be a real Bad Idea. Finally got some response here, and its valuable! Thanks all, Bill Tallman From wtallman@olypen.com Wed Dec 28 03:03:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 632103B085A for ; Wed, 28 Dec 2005 03:03:32 -0500 (EST) 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 04529-02 for ; Wed, 28 Dec 2005 03:03:30 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id D20E93B07ED for ; Wed, 28 Dec 2005 03:03:29 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1ErWHS-0001xB-49 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:03:30 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBS83RBY022527 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:03:27 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 28 Dec 2005 00:03:27 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051228080327.GE19427@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <43B23DA6.2060808@wp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B23DA6.2060808@wp.pl> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.43 X-Spam-Level: Subject: Re: Last Post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:03:32 -0000 That response should have been private, sorry. Bill Tallman From odysseus.lost@gmail.com Wed Dec 28 09:21:58 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CB8F3B105D for ; Wed, 28 Dec 2005 09:21:58 -0500 (EST) 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 03014-06 for ; Wed, 28 Dec 2005 09:21:38 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by menubar.gnome.org (Postfix) with ESMTP id BB9CE3B0B52 for ; Wed, 28 Dec 2005 09:21:34 -0500 (EST) Received: by nproxy.gmail.com with SMTP id c2so507254nfe for ; Wed, 28 Dec 2005 06:21:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=U75Xp+LDkNCfX0l3oP7s9MBtBlliLov9slLrZB8Fw8OQc2mX3/vbkRKS4PBJYrUzqKZCsF04b8EvByS6HZTxKjLrWF600RyXO2/9GBs7TFnhCo3lCrz977WjONmofvdDn9HkuWQuBmhc3o+8j5h/7a83AaD+wWy70OoGu+US+pQ= Received: by 10.49.51.10 with SMTP id d10mr266777nfk; Wed, 28 Dec 2005 06:21:33 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 28 Dec 2005 06:21:33 -0800 (PST) Message-ID: <5c71e1440512280621w37c6e890i@mail.gmail.com> Date: Wed, 28 Dec 2005 16:21:33 +0200 From: Yiannis To: Tristan Van Berkom In-Reply-To: <43B1FC52.2070307@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16771_16989183.1135779693728" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.162 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 14:21:58 -0000 ------=_Part_16771_16989183.1135779693728 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28/12/05, Tristan Van Berkom wrote: > > Yiannis wrote: > > Hi, > > > > is it possible to have a widget (a toggle button in particular) act as > > insensitive but look as it is sensitive. More specific is it possible t= o > > have a toggle button act as insensitive once activated but look > > sensitive, ie without the grey shade? > > Whatever you're doing, you're cheating ;-) Yes, I know...., a necessity for visualisation reasons. :) you can: > o Make copies of the GdkColor structs on widget->style.bg > [GTK_STATE_NORMAL] > (or is it ACTIVE ?), you might also want the .fg, .base & .text > members. > you'd want to do this post gtk_rc_parse(). > o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, > sensitive_bg) > (and friends) to set the sensitive graphic state onto the > insensitive state. Cheers, with a first quick look to the documentation that will do the job..= . -- -- Yiannis ------=_Part_16771_16989183.1135779693728 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 28/12/05, Tristan Van Berkom <tristan.van.berkom@gmail.com> wrote:
Yiannis wrote:
> Hi,
>
> is it possible to have a widget = (a toggle button in particular) act as
> insensitive but look as it i= s sensitive. More specific is it possible to
> have a toggle button a= ct as insensitive once activated but look
> sensitive, ie without the grey shade?

Whatever you're doing= , you're cheating ;-)

Yes, I know...., a necessity for visualisation reasons. :)

you can= :
     o Make copies of the GdkColor structs on widg= et->style.bg[GTK_STATE_NORMAL]
       (or is it ACTIVE ?), you might als= o want the .fg, .base & .text members.
     = ;  you'd want to do this post gtk_rc_parse().
   &nb= sp; o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= )
       (and friends) to set the sensitive= graphic state onto the insensitive state.

Cheers, with a first quick look to the documentation that will do the job..= .



--
-- Yiannis ------=_Part_16771_16989183.1135779693728-- From tom.pinkas@gmail.com Wed Dec 28 07:53:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CA393B0789 for ; Wed, 28 Dec 2005 07:53:28 -0500 (EST) 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 27990-10 for ; Wed, 28 Dec 2005 07:53:26 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by menubar.gnome.org (Postfix) with ESMTP id C69FC3B07A6 for ; Wed, 28 Dec 2005 07:53:25 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n29so2042876nzf for ; Wed, 28 Dec 2005 04:53:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oDmI6wk3XENdrW6hGF+i2D/bEz+ng9eggTmL4bJGgIjyWJ5BhlEtDfR9PDT8/fUo42vwJs2zA9utkjaJjLis6PDuBQEqcuedswWwdpXNvuDspVogd8shIpy1uHkKrgtjr2tYaGcE82JYMPzLJBsDQhdEhwAcFHvCsjW8JTGEWMY= Received: by 10.36.250.48 with SMTP id x48mr5424244nzh; Wed, 28 Dec 2005 04:53:25 -0800 (PST) Received: by 10.36.5.2 with HTTP; Wed, 28 Dec 2005 04:53:25 -0800 (PST) Message-ID: <21fb55350512280453i15ef5065y202b3bace2874a5@mail.gmail.com> Date: Wed, 28 Dec 2005 13:53:25 +0100 From: Tom Pinkas To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8978_4087234.1135774405052" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.094 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -1.094 X-Spam-Level: X-Mailman-Approved-At: Wed, 28 Dec 2005 11:00:41 -0500 Subject: Touchpad doesn't work after starting a GTK application. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 12:53:28 -0000 ------=_Part_8978_4087234.1135774405052 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, when I start a GTK application, my touchpad stop working. After start X server and (not gnome) window manager touchpad working well. But after starting random GTK application (i.e. vim-gtk, mozilla-firefox, ...) it sto= p working. I'm using synaptics driver http://web.telia.com/~u89404340/touchpad/. I'm using Debian, X.Org 6.8.2, libgtk2.0 2.6.4-3.1 and libgtk1.2 1.2.10-17(but I think it doesn't matter - I tried several versions of X, libgtk even synaptics touchpad driver) on Acer Aspire 1353LC. Thanks in advance for any advices. Tom ------=_Part_8978_4087234.1135774405052 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,

when I start a GTK application, my touchpad stop working. After start X server and (not gnome) window manager touchpad working well. But after starting random GTK application (i.e. vim-gtk, mozilla-firefox, ...) it stop working. I'm using synaptics driver http://web.telia.com/= ~u89404340/touchpad/.

I'm using Debian, X.Org 6.8.2, libgtk2.0 2.6.4-3.1 and libgtk1.2 1.2.10-17 (but I think it doesn't matter - I tried several versions of X, libgtk even synaptics touchpad driver) on Acer Aspire 1353LC.

Thanks in advance for any advices.

Tom
------=_Part_8978_4087234.1135774405052-- From odysseus.lost@gmail.com Wed Dec 28 11:35:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D733B11E0 for ; Wed, 28 Dec 2005 11:35:16 -0500 (EST) 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 14025-04 for ; Wed, 28 Dec 2005 11:35:12 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.203]) by menubar.gnome.org (Postfix) with ESMTP id 1A3753B11AC for ; Wed, 28 Dec 2005 11:35:02 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so531799nfc for ; Wed, 28 Dec 2005 08:35:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=AA/+CvzQBTg4HzC9QnK8zd8vg1nzpw/fDQbPShpeNtgv7QfdpM9vuvarA/d5NVJ8Um45O+i8TJ1KDMRs8sbjtxSSxUil2gCSEMOEaZt3/mKrLIHQXOBzAraiPm0mcRqOhwO0x5q+J7HKRsryV/lht5mfbbbZrRKGATblamcp25o= Received: by 10.48.4.13 with SMTP id 13mr333514nfd; Wed, 28 Dec 2005 08:35:01 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 28 Dec 2005 08:35:00 -0800 (PST) Message-ID: <5c71e1440512280835m7410ddaaq@mail.gmail.com> Date: Wed, 28 Dec 2005 18:35:00 +0200 From: Yiannis To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <5c71e1440512280621w37c6e890i@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17231_32560008.1135787700949" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.339 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.339 X-Spam-Level: Cc: Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 16:35:16 -0000 ------=_Part_17231_32560008.1135787700949 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28/12/05, Yiannis wrote: > > > > On 28/12/05, Tristan Van Berkom wrote: > > > > Yiannis wrote: > > > Hi, > > > > > > is it possible to have a widget (a toggle button in particular) act a= s > > > insensitive but look as it is sensitive. More specific is it possible > > to > > > have a toggle button act as insensitive once activated but look > > > sensitive, ie without the grey shade? > > > > Whatever you're doing, you're cheating ;-) > > > > > you can: > > o Make copies of the GdkColor structs on widget->style.bg[GTK_STAT= E_NORMAL] > > > > (or is it ACTIVE ?), you might also want the .fg, .base & .text > > members. > > you'd want to do this post gtk_rc_parse(). > > o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, > > sensitive_bg) > > (and friends) to set the sensitive graphic state onto the > > insensitive state. > > GdkColor *sensitive_bg =3D widget->style.bg[GTK_STATE_NORMAL]; fails with the following error: error: request for member `bg' in something not a structure or union and the same error occurs with all the other members of the style structure.... Any ideas? -- -- Yiannis ------=_Part_17231_32560008.1135787700949 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 28/12/05, Yiannis <odysseu= s.lost@gmail.com> wrote:


On 28/12/05, Tristan Van Berkom < tristan.van.berkom@gmail.com> wrote:
Yiannis wrote:
> Hi,
>
> is it possible to have a widget = (a toggle button in particular) act as
> insensitive but look as it i= s sensitive. More specific is it possible to
> have a toggle button a= ct as insensitive once activated but look
> sensitive, ie without the grey shade?

Whatever you're doing= , you're cheating ;-)



you can= :
     o Make copies of the GdkCol= or structs on widget-> style.bg[GTK_STATE_NORMAL]
       (or is it ACTIVE ?), you might als= o want the .fg, .base & .text members.
     = ;  you'd want to do this post gtk_rc_parse().
   &nb= sp; o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= )
       (and friends) to set the sensitive= graphic state onto the insensitive state.

GdkColor *sensitive_bg =3D widget->style.bg[GTK_STATE_NORMAL];

fails with the following error:
error: request for member `bg' in something not a structure or union

and the same error occurs with all the other members of the style structure= ....

Any ideas?


--
-- Yiannis ------=_Part_17231_32560008.1135787700949-- From tristan.van.berkom@gmail.com Wed Dec 28 14:09:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 332783B14E9 for ; Wed, 28 Dec 2005 14:09:23 -0500 (EST) 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 29200-05 for ; Wed, 28 Dec 2005 14:09:19 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 30FF33B155D for ; Wed, 28 Dec 2005 14:08:39 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n29so2144347nzf for ; Wed, 28 Dec 2005 11:08:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=OP6Oe3eIhJcumfe7iE8FA3RyCs+htGI6pClC6L+kT1a8fRv6L1Uu7kgn5oPtr2qQwaCgNa+t4fHX8MVw72e2yhQKg9LrDK2g5Vdx6VQCTlAAJWz0jbaxprJdqCVHLJxhCga/9SdtM+JISlg+hIqBGUVrgz+XiIFzg7+3qMCtHjI= Received: by 10.65.197.10 with SMTP id z10mr3315814qbp; Wed, 28 Dec 2005 11:08:37 -0800 (PST) Received: from ?65.95.16.142? ( [65.95.16.142]) by mx.gmail.com with ESMTP id q14sm833212qbq.2005.12.28.11.08.35; Wed, 28 Dec 2005 11:08:36 -0800 (PST) Message-ID: <43B2E433.6020203@gnome.org> Date: Wed, 28 Dec 2005 14:14:59 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> In-Reply-To: <5c71e1440512280835m7410ddaaq@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 19:09:23 -0000 Yiannis wrote: [...] > GdkColor *sensitive_bg = widget->style.bg[GTK_STATE_NORMAL]; > > fails with the following error: > error: request for member `bg' in something not a structure or union > > and the same error occurs with all the other members of the style > structure.... > > Any ideas? Heh, I was just jotting it down from memory; I didn't actually expect it to compile out of the box ;-) If it says "in something not a structure or union", then it's probably: widget->style->bg[GTK_STATE_NORMAL]; if not, a closer look at gtkwidget.h & gtkstyle.h will clarify. Cheers, -Tristan From paul@linuxaudiosystems.com Wed Dec 28 14:57:08 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 706793B1705 for ; Wed, 28 Dec 2005 14:57:08 -0500 (EST) 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 01030-03 for ; Wed, 28 Dec 2005 14:57:04 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id E95C33B16E3 for ; Wed, 28 Dec 2005 14:56:57 -0500 (EST) Received: from dhin ([141.151.56.8]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IS800E504QVMBJ6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 28 Dec 2005 13:56:57 -0600 (CST) Date: Wed, 28 Dec 2005 14:59:47 -0500 From: Paul Davis In-reply-to: <43AF7FFB.1090201@coyotegulch.com> To: Scott Robert Ladd Message-id: <1135799987.4661.11.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <43AF7FFB.1090201@coyotegulch.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Rich text on a GnomeCanvas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 19:57:08 -0000 On Mon, 2005-12-26 at 00:30 -0500, Scott Robert Ladd wrote: > I'm working on an application using GTK+ 2.8.9, and I need to display > high-quality text on an anti-aliased GnomeCanvas. Since > GnomeCanvasRichText does work on an AA canvas, what are my options? > > Essentially, I'm annotating a graphic image with labels. I'd like some > of these labels to be in color, and others in italic or bold. > > Any suggestions? i would probably just use multiple text items, setting the properties of each one. one item per label, And You're Done (TM) --p From sibakhan@gmail.com Fri Dec 30 09:45:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B79773B1F26 for ; Fri, 30 Dec 2005 09:45:22 -0500 (EST) 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 06746-09 for ; Fri, 30 Dec 2005 09:45:19 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 21FAE3B1F7D for ; Fri, 30 Dec 2005 09:35:58 -0500 (EST) Received: by zproxy.gmail.com with SMTP id m7so1506109nzf for ; Fri, 30 Dec 2005 06:35:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=M+KZ4RzieYSX19pgy/ZdRIvesr85C0YkNWQjuytb1jMaFKt6wIfobBUqUTRiDjaywz/HsHNNv3pARd47YMTZ5LkRlQqo/gnkmiMY53D8mvIRNjsnjBMp/Oy/aT98sXjiVaQ/1RiilTVNzqEYVKwDzl6+5PqHIEHpzCxGfyH6jyE= Received: by 10.36.145.5 with SMTP id s5mr1602233nzd; Fri, 30 Dec 2005 06:35:57 -0800 (PST) Received: by 10.36.194.8 with HTTP; Fri, 30 Dec 2005 06:35:57 -0800 (PST) Message-ID: Date: Fri, 30 Dec 2005 14:35:57 +0000 From: ibrar ahmed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: popup menu settings on help button X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 14:45:22 -0000 Hello ALL, HAPPY NEW YEAR! I have a problem to set the popup menu on help button. This time popup menu showing on click event on button but i want to set the border of menu that display very near to the bottom of button. Ahmed From odysseus.lost@gmail.com Fri Dec 30 14:28:58 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 834FC3B2116 for ; Fri, 30 Dec 2005 14:28:58 -0500 (EST) 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 01640-03 for ; Fri, 30 Dec 2005 14:28:55 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by menubar.gnome.org (Postfix) with ESMTP id 9FE563B21EC for ; Fri, 30 Dec 2005 14:28:49 -0500 (EST) Received: by nproxy.gmail.com with SMTP id c31so743353nfb for ; Fri, 30 Dec 2005 11:28:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cCca16TKLWd/iZjJhV0zdOQHKP8LOMALHTPI+uQckipedFPZOmLJfiPUOPTHjCJ8UXRfQs7QtrQvjmSdHVlNQyhWZ+NWzOPZKhQ8zcNZ7Oc6Gt98JHb2uIwcvNdxkYku3qIKyiBkUloscEWE6j3NDaWxva4edcJLCgXDTnsBzY8= Received: by 10.48.250.8 with SMTP id x8mr442187nfh; Fri, 30 Dec 2005 11:28:47 -0800 (PST) Received: by 10.48.144.13 with HTTP; Fri, 30 Dec 2005 11:28:47 -0800 (PST) Message-ID: <5c71e1440512301128w6744bdaap@mail.gmail.com> Date: Fri, 30 Dec 2005 21:28:47 +0200 From: Yiannis To: Tristan Van Berkom In-Reply-To: <43B2E433.6020203@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24691_17171613.1135970927904" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> <43B2E433.6020203@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[AWL=-0.499, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.747 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 19:28:58 -0000 ------=_Part_24691_17171613.1135970927904 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry for posting back but my code failed.... :) On 28/12/05, Tristan Van Berkom wrote: > > > Heh, > I was just jotting it down from memory; I didn't actually > expect it to compile out of the box ;-) I don't expect answers out of the box.... :). I do check with the documentation and the source code.... :) So here we go..... Firstly let me paste Tristan's previous reply to this email too: Tristan said: you can: o Create a sample GtkToggleButton o Make copies of the GdkColor structs on widget->style.bg [GTK_STATE_NORMAL] (or is it ACTIVE ?), you might also want the .fg, .base & .text members. you'd want to do this post gtk_rc_parse(). o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= ) (and friends) to set the sensitive graphic state onto the insensitive state. o gtk_widget_set_sensitive (widget, FASLE); Now, what I tried so far has failed. Here we go: Modifying directly the values of widget->style: widget->style->bg[GTK_STATE_INSENSITIVE] =3D widget->style->bg[GTK_STATE_NORMAL]; widget->style->fg[GTK_STATE_INSENSITIVE] =3D widget->style->fg[GTK_STATE_NORMAL]; widget->style->base[GTK_STATE_INSENSITIVE] =3D widget->style->base[GTK_STATE_NORMAL]; widget->style->fg_rc[GTK_STATE_INSENSITIVE] =3D widget->style->fg_rc[GTK_STATE_NORMAL]; using the gtk_widget_modify_xx functions: gtk_widget_modify_bg(widget, GTK_STATE_INSENSITIVE, &(widget->style->bg[GTK_STATE_NORMAL])); gtk_widget_modify_fg(widget, GTK_STATE_INSENSITIVE, &(widget->style->fg[GTK_STATE_NORMAL])); gtk_widget_modify_base(widget, GTK_STATE_INSENSITIVE, &(widget->style->base[GTK_STATE_NORMAL])); gtk_widget_modify_text(widget, GTK_STATE_INSENSITIVE, &(widget->style->text[GTK_STATE_NORMAL])); Copying firstly the GtkStyle, modifying the new one and passing it back to the widget (using gtk_widget_set_style...) even if this method is not recommended in the API: GtkStyle *style =3D gtk_style_copy(widget->style); style->fg[GTK_STATE_INSENSITIVE] =3D style->fg[GTK_STATE_NORMAL]; style->bg[GTK_STATE_INSENSITIVE] =3D style->bg[GTK_STATE_NORMAL]; style->base[GTK_STATE_INSENSITIVE] =3D style->base[GTK_STATE_NORMAL]; gtk_widget_set_style(widget, style); Copying the GtkRcStyle and then using gtk_widget_modify_style to pass it back... according to the API this is the "recommended" method as subsequent calls to gtk_widget_modify_XX are cummulative leaving the rest of the attributes unchanged. GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget); rcstyle->bg[GTK_STATE_INSENSITIVE] =3D rcstyle->bg[GTK_STATE_NORMAL]; rcstyle->fg[GTK_STATE_INSENSITIVE] =3D rcstyle->fg[GTK_STATE_NORMAL]; rcstyle->base[GTK_STATE_INSENSITIVE] =3D rcstyle->base[GTK_STATE_NORMAL]; gtk_widget_modify_style(widget, rcstyle); In all cases I call thereafter gtk_widget_set_sensitive(widget, FALSE); to make the widget insensitive. However, none of the above works.... the colours of the insensitive widget are still the ones of an insensitive widget.... Any clues? The only thing I can think of is that I am not using the right attributes.... bg, fg, base.... however, I cannot find any documentation explaining each one of the members in the GtkStyle structure.... but the names are self-explanatory so they should be the correct ones.... One more thing I am not fully sure about is the RcStyle.... This is supposed some kind of file that is used to define a theme.... Does this affect the GtkStyle? Ie when I call GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget); what I am copying is the widget->style data structure or something else??? Because the function return GtkRcStyle* but I cannot find any GtkRcStyle structure in the gtkwidget.h definition. -- -- Yiannis ------=_Part_24691_17171613.1135970927904 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry for posting back but my code failed.... :)

On 28/12/05, Tristan Van Berkom= <tristan.van.berkom= @gmail.com > wrote:

Heh,
     I was just jotting it down from m= emory; I didn't actually
expect it to compile out of the box ;-)

I don't expect answers out of the box.... :). I do check with the documentation and the source code.... :) So here we go..... Firstly let me paste Tristan's previous reply to this email too:

Tristan said:
you can:
    o Create a sample GtkToggleButton
    o Make copies of the GdkColor structs on widget->style.bg= [GTK_STATE_NORMAL]
      (or is it ACTIVE ?), you might also want the .fg, .ba= se & .text members.
      you'd want to do this post gtk_rc_parse().
    o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, s= ensitive_bg)
      (and friends) to set the sensitive graphic state onto= the insensitive state.
    o gtk_widget_set_sensitive (widget, FASLE);


Now, what I tried so far has failed. Here we go:

Modifying directly the values of widget->style:

widget->style->bg[GTK_STATE_INSENSITIVE] =3D widget->style->bg[= GTK_STATE_NORMAL];
widget->style->fg[GTK_STATE_INSENSITIVE] =3D widget->style->fg[= GTK_STATE_NORMAL];
widget->style->base[GTK_STATE_INSENSITIVE] =3D widget->style->b= ase[GTK_STATE_NORMAL];
widget->style->fg_rc[GTK_STATE_INSENSITIVE] =3D widget->style->= fg_rc[GTK_STATE_NORMAL];

using the gtk_widget_modify_xx functions:
gtk_widget_modify_bg(widget, GTK_STATE_INSENSITIVE, &(widget->style-= >bg[GTK_STATE_NORMAL]));
gtk_widget_modify_fg(widget, GTK_STATE_INSENSITIVE, &(widget->style-= >fg[GTK_STATE_NORMAL]));
gtk_widget_modify_base(widget, GTK_STATE_INSENSITIVE, &(widget->styl= e->base[GTK_STATE_NORMAL]));
gtk_widget_modify_text(widget, GTK_STATE_INSENSITIVE, &(widget->styl= e->text[GTK_STATE_NORMAL]));


Copying firstly the GtkStyle, modifying the new one and passing it back to the widget (using gtk_widget_set_style...) even if this method is not recommended in the API:
GtkStyle *style =3D gtk_style_copy(widget->style);
style->fg[GTK_STATE_INSENSITIVE] =3D style->fg[GTK_STATE_NORMAL];
style->bg[GTK_STATE_INSENSITIVE] =3D style->bg[GTK_STATE_NORMAL];
style->base[GTK_STATE_INSENSITIVE] =3D style->base[GTK_STATE_NORMAL];=
gtk_widget_set_style(widget, style);


Copying the GtkRcStyle and then using gtk_widget_modify_style to pass it back... according to the API this is the "recommended" method = as subsequent calls to gtk_widget_modify_XX are cummulative leaving the rest of the attributes unchanged.

GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget);
rcstyle->bg[GTK_STATE_INSENSITIVE] =3D rcstyle->bg[GTK_STATE_NORMAL];=
rcstyle->fg[GTK_STATE_INSENSITIVE] =3D rcstyle->fg[GTK_STATE_NORMAL];=
rcstyle->base[GTK_STATE_INSENSITIVE] =3D rcstyle->base[GTK_STATE_NORM= AL];
gtk_widget_modify_style(widget, rcstyle);

In all cases I call thereafter
gtk_widget_set_sensitive(widget, FALSE);
to make the widget insensitive.

However, none of the above works.... the colours of the insensitive widget = are still the ones of an insensitive widget....

Any clues?

The only thing I can think of is that I am not using the right attributes.... bg, fg, base.... however, I cannot find any documentation explaining each one of the members in the GtkStyle structure.... but the names are self-explanatory so they should be the correct ones.... One more thing I am not fully sure about is the RcStyle.... This is supposed some kind of file that is used to define a theme.... Does this affect the GtkStyle? Ie when I call
GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget);
what I am copying is the widget->style data structure or something else??? Because the function return GtkRcStyle* but I cannot find any GtkRcStyle structure in the gtkwidget.h definition.





--
-- Yiannis ------=_Part_24691_17171613.1135970927904-- From tristan.van.berkom@gmail.com Fri Dec 30 16:02:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B5A693B2299 for ; Fri, 30 Dec 2005 16:02:50 -0500 (EST) 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 08798-06 for ; Fri, 30 Dec 2005 16:02:47 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 493563B2296 for ; Fri, 30 Dec 2005 16:02:47 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 8so2062192nzo for ; Fri, 30 Dec 2005 13:02:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MFXpCbQwYy0u9qK3GxORJFds0VHfHYFBo8DGUqqBgab5BHKHObfjvGIZ1nriBTGDLcVNfoBc+tzqruYtkyhYFSvY6HRNPaSfAwZef+hpPYuym4lylpV2VhHJdleNlcBuiEIhF72nu07nb2zD8PwcRRM1eeKMT8uDxG6x4KilI5s= Received: by 10.64.253.2 with SMTP id a2mr3567473qbi; Fri, 30 Dec 2005 13:02:46 -0800 (PST) Received: from ?70.48.111.138? ( [70.48.111.138]) by mx.gmail.com with ESMTP id e17sm1638450qbe.2005.12.30.13.02.46; Fri, 30 Dec 2005 13:02:46 -0800 (PST) Message-ID: <43B5A1FC.90501@gnome.org> Date: Fri, 30 Dec 2005 16:09:16 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> <43B2E433.6020203@gnome.org> <5c71e1440512301128w6744bdaap@mail.gmail.com> In-Reply-To: <5c71e1440512301128w6744bdaap@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=-0.020, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.543 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 21:02:50 -0000 Yiannis wrote: > Sorry for posting back but my code failed.... :) > [...] Try doing: static GdkColor *insensitive_colour = NULL; static GdkColor *normal_colour = NULL; /* ... When initializing ... */ label = gtk_label_new (""); insensitive_colour = gdk_color_copy (&(GTK_WIDGET (label)->style->fg[GTK_STATE_INSENSITIVE])); normal_colour = gdk_color_copy (&(GTK_WIDGET (label)->style->fg[GTK_STATE_NORMAL])); gtk_widget_destroy (label); /* ... When setting sensitive state, * or inside a "notify::sensitive" handler ... */ gtk_widget_modify_fg (GTK_WIDGET (widget), GTK_STATE_NORMAL, sensitive ? normal_colour : insensitive_colour); You could use the widget of choice of course to initialize your colours, it was a togglebutton you wanted ? anyway, this code should work :) Cheers, -Tristan From mikael.olenfalk@gmail.com Fri Dec 30 20:07:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75B933B23FF for ; Fri, 30 Dec 2005 20:07:43 -0500 (EST) 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 26073-07 for ; Fri, 30 Dec 2005 20:07:23 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by menubar.gnome.org (Postfix) with ESMTP id AAC4D3B23FA for ; Fri, 30 Dec 2005 20:07:09 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i30so20064wra for ; Fri, 30 Dec 2005 17:07:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hvGcUb9jxwcaRIXhvt6B2dGQr6w3lTJPbyg0VvMww13SAAmWrHFu0oUpTSSGW6X6Xkp5aclqYN011MxZXmy6GKL21R5Jk0QonU1vftlxwSfCJatNU/jVKRu0hEoJGfSa6SdQqWsev07Dl6ntjK09v5ZDnMg30wvwqm0J2N0e7Zk= Received: by 10.64.199.9 with SMTP id w9mr283667qbf; Fri, 30 Dec 2005 17:07:08 -0800 (PST) Received: by 10.64.185.8 with HTTP; Fri, 30 Dec 2005 17:07:08 -0800 (PST) Message-ID: Date: Sat, 31 Dec 2005 02:07:08 +0100 From: Mikael Olenfalk To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.581 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.581 X-Spam-Level: Subject: Creating a GTK Cheat Sheet Poster X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mikael.Olenfalk@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 01:07:43 -0000 Hi, I just started working on creating a poster-sized (A0, approx 120x90 cm) cheat sheet for GTK development. My plan is to show an application window in the middle of the poster with all widgets in it and then list the classes for each widget around this window. I think this will make development much easier for newbies (like myself), especially because code completion often is too overwhelming for using as a TIP for which function to use; and it doesn't describe signals as well. So I have started creating an initial design of the GtkWindow class, which you can have a look at at this address: https://mikael.is-a-geek.org/shared/public/gtk-window-test-001.png It would be great if some of you could give feedback on this, below is a list of things I am thinking about changing next (that is before I move on and create other classes as well): - the "Functions" section is overwhelming and actually useless for a fast-glance look up of any function; should I remove it completely or just remove all uncommon functions from it? As you can see I have already removed some functions (all functions for set/getting the properties, as well as some functions for framebuffer gtk) I am a complete GTK newbie so I do not know which functions are uncommon; if you have suggestions, they are very welcome. - I am thinking about removing the "gboolean" and "gint" (and other common types) in favour of easy-to-distinguishable icons - I am thinking about removing the "GtkWindow *window" parameter in all functions in favour of an icon for the instance - I am thinking about creating a section of "Static Functions" (e.g. gtk_window_list_toplevels(void)) Thanks in advance for any feedback! Happy New Year to everybody! Mikael Olenfalk From yeti@physics.muni.cz Sat Dec 31 06:56:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C778C3B263D for ; Sat, 31 Dec 2005 06:56:44 -0500 (EST) 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 00772-10 for ; Sat, 31 Dec 2005 06:56:41 -0500 (EST) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D97783B2631 for ; Sat, 31 Dec 2005 06:56:38 -0500 (EST) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBVBuZSO014680; Sat, 31 Dec 2005 12:56:36 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 9499D23E4F; Sat, 31 Dec 2005 12:56:35 +0100 (CET) Date: Sat, 31 Dec 2005 12:56:35 +0100 From: "David Necas (Yeti)" To: Mikael Olenfalk Message-ID: <20051231115635.GK29084@potato> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Creating a GTK Cheat Sheet Poster X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 11:56:44 -0000 On Sat, Dec 31, 2005 at 02:07:08AM +0100, Mikael Olenfalk wrote: > I just started working on creating a poster-sized (A0, approx 120x90 > cm) cheat sheet for GTK development. My plan is to show an application > window in the middle of the poster with all widgets in it and then > list the classes for each widget around this window. > > I think this will make development much easier for newbies (like > myself), especially because code completion often is too overwhelming > for using as a TIP for which function to use; and it doesn't describe > signals as well. I have a few comments, I could have more if I had a better idea how is it supposed to be used, that is how it intends to complement API (and other) documentation. In my opinion one should primarily optimize the access to full documentation: if I already have a symbol or class and I am more than one keystroke away from its documentation, something is wrong. If I know it approximately, I should be still able to get the best match by approximate search or get to the list of all symbols in the correct class quickly. What is not covered so well: - I want a method that does.../the name of signal emitted when... If skimming of the method/signal/... list [in full documentation I have one keystroke away] fails, fulltext search helps a lot (though I recall I was unable to find the method to set GtkFileChooser's directory because its description only talks about folders, not mentioning directory). The cheatsheet could help if it tried to group the methods by topic, because now the order is arbitrary like in the API docs. But again, I would prefer less arbitrary method order in API docs too. - I want a widget that does.../looks like... Something between Widget Gallery and Widgets and Objects chapter TOC in API documetation -- only better -- would help. This is something you could focus on: to enable to find the essential information quickly instead of listing hordes of incomprehensible parameters that people need to look up in full documetation anyway. - I have a conceptual problem, need to learn some programming idiom, a particular tweak, ... A cheatsheet is not the right place for these. > So I have started creating an initial design of the GtkWindow class, > which you can have a look at at this address: > > https://mikael.is-a-geek.org/shared/public/gtk-window-test-001.png > > It would be great if some of you could give feedback on this, It obviously misses one thing: parent class and implemented interfaces (maybe childs too). People have problems finding inherited features even in API documetation that explicitely links to parents and lists implemented interfaces. You can mitigate the confusion by logical grouping of e.g. GtkHBox, GtkVBox, and GtkBox together, but not fully. > - the "Functions" section is overwhelming and actually useless for a > fast-glance look up of any function; should I remove it completely or > just remove all uncommon functions from it? As you can see I have > already removed some functions (all functions for set/getting the > properties, as well as some functions for framebuffer gtk) I am a > complete GTK newbie so I do not know which functions are uncommon; if > you have suggestions, they are very welcome. I supposte you do not want to just print copies of Gtk+ header files to A0 poster. Therefore I would only keep the commonly needed. I agree it is not always clear which are which. > - I am thinking about removing the "GtkWindow *window" parameter in > all functions in favour of an icon for the instance Redundant information: - The first argument of each signal is the instance, the last is always user data. - The first argument of each method is the instance (functions that are not methods, or are static methods, can be listed separately) - Method names of GtkSomething always start with gtk_something_. Most of these are only consequences of object system implemented in the language instead of being part of the language. I am not sure how confusing it would be if you removed all the gtk_something_ prefixes and `self' arguments (for me not at all because I only add these decorations because of C, I think about them the OOP way, but YMMV). Yeti -- That's enough. From doodle202@yahoo.com Thu Dec 29 09:58:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3A9D73B06F9 for ; Thu, 29 Dec 2005 09:58:52 -0500 (EST) 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 17500-05 for ; Thu, 29 Dec 2005 09:58:50 -0500 (EST) Received: from web90104.mail.scd.yahoo.com (web90104.mail.scd.yahoo.com [66.218.94.75]) by menubar.gnome.org (Postfix) with SMTP id 285D63B1980 for ; Thu, 29 Dec 2005 09:58:50 -0500 (EST) Received: (qmail 25758 invoked by uid 60001); 29 Dec 2005 14:58:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yQ4aN++ho56nFOy/Go28z1RmF7Wxfu7s3iIe6sKfK4slrHdYkA1mNqbJpXT7UhVOzQOZBz30M9mmkIA3tHOlUGw3xDFtQRDXRR6z5BzFC+wDC832bKsANXY8M84i7clgRP8bgpCyoqdwkRKSonisvn6B61Chb9/Bsf5MQ1B1IAw= ; Message-ID: <20051229145849.25756.qmail@web90104.mail.scd.yahoo.com> Received: from [194.237.142.10] by web90104.mail.scd.yahoo.com via HTTP; Thu, 29 Dec 2005 06:58:49 PST Date: Thu, 29 Dec 2005 06:58:49 -0800 (PST) From: dipti sach To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.54 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -0.54 X-Spam-Level: X-Mailman-Approved-At: Mon, 02 Jan 2006 08:30:34 -0500 Subject: Glib Installation problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 14:58:52 -0000 Hello, I have downloaded glib-2.8.4 and i am trying to install it. It gives a configure error : configure: error: *** pkg-config not found. But pkg-config is installed and if i do $ whereis pkg-config It returns /usr/local/bin/pkg-config. It would be nice if i can get some help related to this. Im trying to install GIMP and hence trying to install the dependencies. I am using Linux distribution Sles9 Regards Dipti __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From lists@nabble.com Thu Dec 1 02:12:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C418C3B3675 for ; Thu, 1 Dec 2005 02:12:17 -0500 (EST) 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 31161-03 for ; Thu, 1 Dec 2005 02:12:15 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E6D263B0803 for ; Thu, 1 Dec 2005 02:12:14 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Ehic2-0004Eo-IO for gtk-list@gnome.org; Wed, 30 Nov 2005 23:12:14 -0800 Message-ID: <1730004.post@talk.nabble.com> Date: Wed, 30 Nov 2005 23:12:14 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org In-Reply-To: <438DD14A.6030209@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_160_4410427.1133421134563" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 References: <1716370.post@talk.nabble.com> <438DC75A.5000706@gnome.org> <1716709.post@talk.nabble.com> <438DD14A.6030209@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.476 tagged_above=-999 required=2 tests=[BAYES_01, HTML_MESSAGE] X-Spam-Score: 1.476 X-Spam-Level: * Subject: Re: How to add callback to tell owner something X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 07:12:18 -0000 ------=_Part_160_4410427.1133421134563 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit sorry, I can only use glib1.2, so I can't use g_signal_emit(), g_signal_connect(), etc functions. Is there any other way for this problem? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/How-to-add-callback-to-tell-owner-something-t645553.html#a1730004 ------=_Part_160_4410427.1133421134563 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit sorry, I can only use glib1.2, so I can't use g_signal_emit(), g_signal_connect(), etc functions. Is there any other way for this problem?
Thanks

Sent from the Gtk+ - General forum at Nabble.com:
Re: How to add callback to tell owner something ------=_Part_160_4410427.1133421134563-- From kms@passback.co.uk Thu Dec 1 04:32:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ABEBA3B1597 for ; Thu, 1 Dec 2005 04:32:11 -0500 (EST) 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 09460-01 for ; Thu, 1 Dec 2005 04:32:08 -0500 (EST) Received: from gonzo.passback.co.uk (mailgate.passback.co.uk [62.49.46.202]) by menubar.gnome.org (Postfix) with ESMTP id 0CC213B1506 for ; Thu, 1 Dec 2005 04:32:08 -0500 (EST) Received: from animal.passback.co.uk (unknown [10.0.0.3]) by gonzo.passback.co.uk (Postfix) with ESMTP id 4FF1F2B005E for ; Thu, 1 Dec 2005 09:32:06 +0000 (GMT) From: Keith Sharp To: gtk-list@gnome.org In-Reply-To: <438C22CB.9060606@topazelectro.ru> References: <438C22CB.9060606@topazelectro.ru> Content-Type: text/plain Organization: Passback IT Consultancy Date: Thu, 01 Dec 2005 09:32:06 +0000 Message-Id: <1133429526.28075.4.camel@animal.passback.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Re: Icon in a tray - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 09:32:11 -0000 On Tue, 2005-11-29 at 12:43 +0300, Igor Gorbounov wrote: > Tell me, please, what widget (or anything else) can be used to represent > an application > by an icon in the tray (or notification area applet?)? I think you want libegg: http://cvs.gnome.org/viewcvs/libegg/ In particular, EggTrayIcon: http://cvs.gnome.org/viewcvs/libegg/libegg/tray/ Keith. From moodmonger@bk.ru Thu Dec 1 04:56:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3E04D3B14F9 for ; Thu, 1 Dec 2005 04:56:38 -0500 (EST) 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 11435-01 for ; Thu, 1 Dec 2005 04:56:36 -0500 (EST) Received: from mx3.mail.ru (mx3.mail.ru [194.67.23.149]) by menubar.gnome.org (Postfix) with ESMTP id 290D43B13A5 for ; Thu, 1 Dec 2005 04:56:35 -0500 (EST) Received: from [85.21.83.170] (port=18983 helo=[172.17.0.4]) by mx3.mail.ru with esmtp id 1EhlB3-000HK3-00; Thu, 01 Dec 2005 12:56:33 +0300 Message-ID: <438EC921.1060201@bk.ru> Date: Thu, 01 Dec 2005 12:57:53 +0300 From: Dmitry Konyshev User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Sirotkin References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: changing text colors in .gtkrc.mine X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 09:56:38 -0000 Alexander Sirotkin wrote: > Hey. > > Well... I'm going slightly mad after trying to change colors for > gnome-terminal for about 2 weeks or so. > This is unreal... > > The following very simple .gtkrc.mine file > > style "demiurg-test" = "bluecurve-default" > { > bg[NORMAL] = "#000000" > bg[ACTIVE] = "#000000" > fg[NORMAL] = "#ffffff" > text[NORMAL] = "#ffffff" > } > > class "GtkWidget" style "demiurg-test" > > well... I can't even say that it does not work, since it does work, > but for some very selected applications, for instance "winetools", > which I discovered accidentally since for most applications, like > gnome-terminal it does not !!! > > This is driving me crazy... I googled for hours and read every > documentation I could find, but could not resolve this mystery... > Any help would be appriciated. > > P.S. I'm using out of the box CentOS 4.2 distribution. > My understanding of this "mystery" is that style definition works in the most intuitive way: more specific widget selection for a style overrides less specific one. In other words, if you're setting a style for a concrete widget or widget class, this style overrides the style defined for all the widget types. Thus, your style definition for all the widget classes just gets overriden by more specific ones. wbr, Dmitry. From db5@hermes.net.au Fri Dec 2 07:00:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B61C73B3D2C for ; Fri, 2 Dec 2005 07:00:52 -0500 (EST) 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 16276-04 for ; Fri, 2 Dec 2005 07:00:51 -0500 (EST) Received: from blue.hermes.net.au (blue.hermes.net.au [203.35.8.194]) by menubar.gnome.org (Postfix) with ESMTP id 349903B3CF5 for ; Fri, 2 Dec 2005 07:00:50 -0500 (EST) Received: from cor9-ppp2126.hay.dialup.connect.net.au (IDENT:1003@cor9-ppp2126.hay.dialup.connect.net.au [61.68.40.94]) (authenticated bits=0) by blue.hermes.net.au (8.13.4/8.13.4) with ESMTP id jB2C0cdH013620 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 2 Dec 2005 23:00:48 +1100 From: Ian To: gtk-list@gnome.org Content-Type: text/plain Organization: Fog Watch Date: Fri, 02 Dec 2005 22:59:22 +1100 Message-Id: <1133524762.377.20.camel@ns.fogwatch.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.49 on 203.35.8.194 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: gnome-settings-daemon X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: db5@hermes.net.au List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 12:00:57 -0000 Dear GTK people I would like to be able to see me my GTK applications in IceWM using the assigned font properties without having to deliberately invoke gnome-font-properites or gnome-settings-daemon every time I boot. Some questions arise out of this. Presumably I should use gnome-settings-daemon, and not gnome-font-properties? If so, do I need a gnome-settings-daemon per login, or just once? If it is per login then presumably I would use ~/.xinitrc, but where for just once? /etc/X11/xinit/xinitrc.icewm? And ~/.gtkrc-2.0. How on earth does this relate to the settings made by gnome-font-properties? As you can see, I have had trouble with this subject. By all means just head me towards some documentation, I just couldn't find any. Thank you for any assistance you are able to provide. Regards Ian Slackware 10.1 From edward.robbins@tinyworld.co.uk Thu Dec 1 08:57:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 774E33B2383 for ; Thu, 1 Dec 2005 08:57:48 -0500 (EST) 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 04938-08 for ; Thu, 1 Dec 2005 08:57:46 -0500 (EST) Received: from mk-smarthost-2.mail.uk.tiscali.com (mk-smarthost-2.mail.uk.tiscali.com [212.74.114.38]) by menubar.gnome.org (Postfix) with ESMTP id A19C13B235B for ; Thu, 1 Dec 2005 08:57:43 -0500 (EST) Received: from illinois.rdg.ac.uk (HELO mk-cpfrontend.uk.tiscali.com) ([134.225.216.82]) by mk-smarthost-2.mail.uk.tiscali.com with ESMTP; 01 Dec 2005 13:57:42 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AAAAAN6MjkMJhQw Received: from [134.225.216.82] by mk-cpfrontend.uk.tiscali.com with HTTP; Thu, 1 Dec 2005 13:57:40 +0000 Date: Thu, 1 Dec 2005 13:57:40 +0000 Message-ID: <4366F1DA000B27A1@mk-cpfrontend-2.mail.uk.tiscali.com> In-Reply-To: <438DE97D.2090400@kernelconcepts.de> From: edward.robbins@tinyworld.co.uk To: "Florian Boor" , "Li Weichen" MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.751 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, TW_GT] X-Spam-Score: -1.751 X-Spam-Level: X-Mailman-Approved-At: Fri, 02 Dec 2005 11:57:49 -0500 Cc: linux-arm@lists.arm.linux.org.uk, gtk-list@gnome.org Subject: Re: Some basic questions about gtk/gtk+ in embedded system X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 13:57:48 -0000 >> 1. Does the gtk+ can be used as an embedded gui? > >It depends on the complexity of the application and on the amount of sto= rage >space and RAM you have on your device. But basically i'd say yes. There are >some >projects for user interfaces on mobile devices using GTK. (e.g. GPE - >http://gpe.handhelds.org and Maemo - http://maemo.org). > I prefer fltk - it is faster for embedded devices (but if your device is fast enough for gtk then fine). >> 3. Can it be compared to Qt/E or MiniGUI? What are the advantages and= >> disadvantages? > >GTK might be a little bit bigger than these two, but it is very powerful= >and >there are bindings for many languages available. I personally like GTK b= ecause >its native language is C instead of C++ and its good support for powerfu= l >themes. It is easy to develop applications on a desktop PC using the sam= e >API >like on your embedded device and if necessary you can port applications to >run >on that one easily. In addition to this GTK is LGPL licensed which is mu= ch >easier to deal with compared to the dual licensing crap for Qt/E. Agreed regarding licenses, but I much prefer C++ to C for this task... >Yes, mostly - you only need to get used to the constraints you have usin= g >an >object framework in C. It is a very good idea to have an API reference, witout >htis you are lost in a compley toolkit like GTK. Devhelp e.g. is very us= eful. ...because of the confusion this brings up. Although there are c++ bindin= gs for gtk I believe. Its all a matter of choice anyway ;). Have fun, Ed. ___________________________________________________________ Tiscali Broadband from 14.99 with free setup! http://www.tiscali.co.uk/products/broadband/ Christmas gift ideas and festive features - visit the Tiscali Christmas m= icrosite. http://www.tiscali.co.uk/christmas From demiourgos@gmail.com Thu Dec 1 09:45:42 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44A643B08DC for ; Thu, 1 Dec 2005 09:45:42 -0500 (EST) 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 09313-02 for ; Thu, 1 Dec 2005 09:45:40 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id 3AE8D3B16EA for ; Thu, 1 Dec 2005 09:45:40 -0500 (EST) Received: by xproxy.gmail.com with SMTP id s11so335121wxc for ; Thu, 01 Dec 2005 06:45:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=py27X+pHwtL5wXgu/ierOluQxR3IERoWBE0KBwtO/X5gTbvW3syH3/1Kf4pPsDNTGCTBL7cQxXA5gO2e/01Q0LMEbSeHpQcqR5YnX1O2dxeFYqHagUouDdo+80GVinDqlsbVj7J+raO0ux3HkcKS+Q4xDP1CyOtK099lLqGwYGA= Received: by 10.65.11.9 with SMTP id o9mr852671qbi; Thu, 01 Dec 2005 06:45:39 -0800 (PST) Received: by 10.65.72.17 with HTTP; Thu, 1 Dec 2005 06:45:39 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2005 16:45:39 +0200 From: Alexander Sirotkin To: Dmitry Konyshev In-Reply-To: <438EC921.1060201@bk.ru> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46274_20144663.1133448339371" References: <438EC921.1060201@bk.ru> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.112 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, RCVD_IN_SORBS] X-Spam-Score: 1.112 X-Spam-Level: * X-Mailman-Approved-At: Fri, 02 Dec 2005 11:57:49 -0500 Cc: gtk-list@gnome.org Subject: Re: changing text colors in .gtkrc.mine X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 14:45:42 -0000 ------=_Part_46274_20144663.1133448339371 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks. I thought about it too. In that case, the question is - how can I find the appropriate widget class for gnome-terminal, or any other application I would want to modify the theme for ? Thanks a lot. On 12/1/05, Dmitry Konyshev wrote: > > Alexander Sirotkin wrote: > > > Hey. > > > > Well... I'm going slightly mad after trying to change colors for > > gnome-terminal for about 2 weeks or so. > > This is unreal... > > > > The following very simple .gtkrc.mine file > > > > style "demiurg-test" =3D "bluecurve-default" > > { > > bg[NORMAL] =3D "#000000" > > bg[ACTIVE] =3D "#000000" > > fg[NORMAL] =3D "#ffffff" > > text[NORMAL] =3D "#ffffff" > > } > > > > class "GtkWidget" style "demiurg-test" > > > > well... I can't even say that it does not work, since it does work, > > but for some very selected applications, for instance "winetools", > > which I discovered accidentally since for most applications, like > > gnome-terminal it does not !!! > > > > This is driving me crazy... I googled for hours and read every > > documentation I could find, but could not resolve this mystery... > > Any help would be appriciated. > > > > P.S. I'm using out of the box CentOS 4.2 distribution. > > > My understanding of this "mystery" is that style definition works in the > most intuitive way: more specific widget selection for a style overrides > less specific one. In other words, if you're setting a style for a > concrete widget or widget class, this style overrides the style defined > for all the widget types. Thus, your style definition for all the widget > classes just gets overriden by more specific ones. > > wbr, Dmitry. > > -- Alexander Sirotkin ------=_Part_46274_20144663.1133448339371 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks.

I thought about it too. In that case, the question is - how can I find the appropriate widget class for gnome-terminal, or any other application I would want to modify the theme for ?

Thanks a lot.

On 12/1/05, Dmitry Konyshev <moodmonger@bk.ru> wrote:
Alexander Sirotkin wrote:

> Hey.
>
> Well... I'm goin= g slightly mad after trying to change colors for
> gnome-terminal for= about 2 weeks or so.
> This is unreal...
>
> The followi= ng very simple .gtkrc.mine file
>
> style "demiurg-test" =3D "bluecurve-default= "
> {
>         bg= [NORMAL] =3D "#000000"
>      = ;   bg[ACTIVE] =3D "#000000"
>   &= nbsp;     fg[NORMAL] =3D "#ffffff"
>         text[NORMAL] =3D &= quot;#ffffff"
> }
>
> class "GtkWidget" st= yle "demiurg-test"
>
> well... I can't even say that = it does not work, since it does work,
> but for some very selected applications, for instance "winetools&= quot;,
> which I discovered accidentally since for most applications,= like
> gnome-terminal it does not !!!
>
> This is drivin= g me crazy... I googled for hours and read every
> documentation I could find, but could not resolve this mystery...<= br>> Any help would be appriciated.
>
> P.S. I'm using out o= f the box CentOS 4.2 distribution.
>
My understanding of this &quo= t;mystery" is that style definition works in the
most intuitive way: more specific widget selection for a style override= s
less specific one. In other words, if you're setting a style for a
= concrete widget or widget class, this style overrides the style defined
for all the widget types. Thus, your style definition for all the widge= t
classes just gets overriden by more specific ones.

wbr, Dmitry.=




--
Alexander Sirot= kin ------=_Part_46274_20144663.1133448339371-- From atopo@ocv.org Fri Dec 2 16:15:10 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50DE83B111D for ; Fri, 2 Dec 2005 16:15:10 -0500 (EST) 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 31578-02 for ; Fri, 2 Dec 2005 16:15:08 -0500 (EST) Received: from rohrpostfix.ocv.org (62-99-167-52.static.adsl-line.inode.at [62.99.167.52]) by menubar.gnome.org (Postfix) with ESMTP id 504033B25C3 for ; Fri, 2 Dec 2005 16:15:07 -0500 (EST) Received: from shuttle (shuttle.ocv.org [192.168.0.101]) by rohrpostfix.ocv.org (8.13.0/8.12.11) with SMTP id jB2LF6dp017204 for ; Fri, 2 Dec 2005 22:15:06 +0100 (CET) From: "Alexander Topolanek" To: Date: Fri, 2 Dec 2005 22:15:45 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.001 tagged_above=-999 required=2 tests=[BAYES_40] X-Spam-Score: -0.001 X-Spam-Level: Subject: Build problems with gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 21:15:10 -0000 Hi, I'm trying to build gtk+ on my sony vaio N505SN (Mobile Pentium 2 CPU), which fails all the time with an "/bin/sh: line 1: 16977 Illegal instruction" in "/usr/src/gtk+-2.8.8/gtk/stock-icons". I've tried with gtk+ 2.8.8 and older versions. This is my compiler: gcc (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8). Any ideas? best regards Alexander From are.leistad@chello.no Sat Dec 3 11:38:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C5B83B2B29 for ; Sat, 3 Dec 2005 11:38:44 -0500 (EST) 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 08999-05 for ; Sat, 3 Dec 2005 11:38:41 -0500 (EST) Received: from amsfep20-int.chello.nl (amsfep12-int.chello.nl [213.46.243.17]) by menubar.gnome.org (Postfix) with ESMTP id AE9383B2B68 for ; Sat, 3 Dec 2005 11:38:40 -0500 (EST) Received: from aredell ([84.209.254.99]) by amsfep20-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051203163828.ONVU13840.amsfep20-int.chello.nl@aredell> for ; Sat, 3 Dec 2005 17:38:28 +0100 Message-ID: <001901c5f827$f90207c0$0201a8c0@aredell> From: " Are Leistad" To: Date: Sat, 3 Dec 2005 17:38:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Antivirus: avast! (VPS 0544-0, 31.10.2005), Outbound message X-Antivirus-Status: Not-Tested X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: X-Mailman-Approved-At: Sat, 03 Dec 2005 11:40:41 -0500 Subject: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 16:38:44 -0000 Hello GTK list! I'm evaluating GTK+ as the GUI/windowing toolkit for an embedded project. After spending a long time reviewing various toolkits, GTK+ is the one candidate that has bubbled to the top. The other alternative is an existing proprietary toolkit which is quite good, but the effort reequired to maintain it could potentially be quite large. Being able to draw on, and perhaps eventually contribute to, the GTK communitys efforts is the main advantage for me in picking it up. So far the concept and the API seems fine and the fact that it's all in pure C is a big advantage. The one thing that makes me hesitate is the question about stability. By stability I mean lack of (serious) bugs and memory leaks. I've tried to research this on the net, but there's not much to find in the way of comments on, or assessements of, GTK+ stability. Since GTK+ uses a number of 3rd party libraries these must be factored in as well. The application in question is mission critical, and must be able to run for extended periods (weeks or more) without any kind of cumulative degradation of the performance. If GTK+ gets adopted it will preferably run without X, but rather use a framebuffer, so or GTK+ on DirectFB is a possibility. It is noted that GTKfb is no longer maintained. The target platform is a x86 (ITX) with Suse Linux 2.6, but Windows is used for parts of the development cycle and the application must be able to run there. The application is demanding it that it will employ a high number of widgets. Several thousands of GUI objects will be created, and several hundred of these may be exposed at any one time. Responsive interactivity and quick redrawing is important. To get a better handle on the suitability of GTK in this case, I ask the list members for subjective and objective comments on a few issues: - general stability of GTK+ (bugs/leaks)? - suitability of GTK+ for mission critical embedded application? - any hints and tips for this kind of GTK+ usage? - best GTK+ options for use with linux framebuffer? - performance with thousands visible/hidden widgets on a 500MHz system? - to use glade or not... potential problems/instabilities? - is there a minimal HTML rendering widget available (for a help system)? Any comments or pointers to information will be greatly appreciated. AL -- From ibr@radix50.net Sat Dec 3 17:01:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3D593B1A67 for ; Sat, 3 Dec 2005 17:01:40 -0500 (EST) 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 32023-02 for ; Sat, 3 Dec 2005 17:01:38 -0500 (EST) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 84DE33B0960 for ; Sat, 3 Dec 2005 17:01:37 -0500 (EST) Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 3794D8D118 for ; Sat, 3 Dec 2005 23:01:36 +0100 (CET) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id 2C02D15D613 for ; Sat, 3 Dec 2005 23:01:36 +0100 (CET) Received: from alatau.radix50.net (dslb-084-057-003-020.pools.arcor-ip.net [84.57.3.20]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id EDB74C8B8B for ; Sat, 3 Dec 2005 23:01:34 +0100 (CET) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.4/8.13.4/Debian-2) with ESMTP id jB3M1SYq005649 for ; Sat, 3 Dec 2005 23:01:28 +0100 Received: (from ibr@localhost) by alatau.radix50.net (8.13.4/8.13.4/Submit) id jB3M1QFG005648 for gtk-list@gnome.org; Sat, 3 Dec 2005 23:01:26 +0100 Date: Sat, 3 Dec 2005 23:01:26 +0100 From: ibr@ata.cs.hun.edu.tr To: gtk-list@gnome.org Message-ID: <20051203220126.GA4730@radix50.net> References: <001901c5f827$f90207c0$0201a8c0@aredell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.828 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME] X-Spam-Score: -1.828 X-Spam-Level: Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 22:01:40 -0000 Hello Are, On Sat, Dec 03, 2005 at 05:38:17PM +0100, Are Leistad wrote: > - suitability of GTK+ for mission critical embedded application? You might be interested to investigate the behavior in the case of virtual memory exhaustion. As I looked at glib, I couldn't see an elegant way to pass that fact to the caller. E.g., g_list_append returns the new list head; if there is no memory available, the application is supposed to exit (please correct me if I'm wrong), which is not quite nice for an embedded app. A possible workaround could be calling some handler in your code, but I haven't looked at that. If you are interested, we could try to do that together. With kind regards, Baurzhan. From torriem@chem.byu.edu Sat Dec 3 23:08:00 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4156F3B189E for ; Sat, 3 Dec 2005 23:08:00 -0500 (EST) 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 21958-08 for ; Sat, 3 Dec 2005 23:07:58 -0500 (EST) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 783B63B11B5 for ; Sat, 3 Dec 2005 23:07:57 -0500 (EST) Received: from [192.168.108.50] ([192.168.108.50]) (authenticated bits=0) by mail.chem.byu.edu (8.12.10/8.12.10) with ESMTP id jB447r6U016654 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 3 Dec 2005 21:07:54 -0700 From: Michael Torrie To: Are Leistad In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> References: <001901c5f827$f90207c0$0201a8c0@aredell> Content-Type: text/plain Date: Sat, 03 Dec 2005 21:07:52 -0700 Message-Id: <1133669273.13402.115.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.53 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 04:08:00 -0000 On Sat, 2005-12-03 at 17:38 +0100, Are Leistad wrote: > If GTK+ gets adopted it will preferably run without X, but rather > use a framebuffer, so or GTK+ on DirectFB is a possibility. > It is noted that GTKfb is no longer maintained. The target platform > is a x86 (ITX) with Suse Linux 2.6, but Windows is used for parts of > the development cycle and the application must be able to run there. > The application is demanding it that it will employ a high number > of widgets. Several thousands of GUI objects will be created, and > several hundred of these may be exposed at any one time. > Responsive interactivity and quick redrawing is important. Actually I think you'll find that running GTK on an embedded X-server works very well. In fact I think it's a much better idea than the framebuffer, since GTKfb really has to implement GTK plus the stuff X provides. If you check out the kdrive X server from www.freedesktop.org, I think you'll find it can be less than a mb in binary size and run fine on just a few mb of RAM. Not much larger with GTK/X than GTKfb. A tiny window manager, matchbox also works well for an embedded system with a small screen. When you say you are considering GTK for an embedded situation, I take it you're not meaning real-time or microcontroller, but a small, full- blown computer running a full protected-mode, virtual memory OS. If not, GTK simply can't work. GTK must have dynamic memory allocation available from the OS. I'm found based on my experience with GTK and with many GTK apps that the stable GTK libraries have no known memory leaks. In fact the underlying glib libraries are so well-written that I can in one of my app (over the course of months) build and destroy millions of dynamic tree stuctures containing glib objects (lists, strings, etc) and not one leak. It has been a while since a real memory leak has been discovered in the gui stuff in GTK. In fact most of the supposed leaks reported in recent months were really just the programmer not quite understanding how the reference counting and object destruction worked. Michael -- Michael Torrie From jcupitt@gmail.com Sun Dec 4 11:45:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1173B4C84 for ; Sun, 4 Dec 2005 11:45:35 -0500 (EST) 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 26800-07 for ; Sun, 4 Dec 2005 11:45:32 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 0709C3B4CD4 for ; Sun, 4 Dec 2005 04:39:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id o37so731421nzf for ; Sun, 04 Dec 2005 01:39:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TvZs0D9/lWoH6KTHE824DvrR/uuRDozHSOx+VQzRQEMd65dHpnlN5qahZtz9zJrtLvGEKPrODq9GRl+N5Odzp+AWNBef4JXyP+0ociH3BlitfXBCwMKxIlyVNVYO2oXpkQ+FFFqzgq0rZ43Tbu54GiQapxldOSACC1JGvmQB/78= Received: by 10.64.195.11 with SMTP id s11mr2150797qbf; Sun, 04 Dec 2005 01:39:35 -0800 (PST) Received: by 10.65.15.14 with HTTP; Sun, 4 Dec 2005 01:39:35 -0800 (PST) Message-ID: <522c6460512040139u498f1560o848be7d5a4fb8fc0@mail.gmail.com> Date: Sun, 4 Dec 2005 09:39:35 +0000 From: John Cupitt To: Are Leistad In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001901c5f827$f90207c0$0201a8c0@aredell> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 16:45:35 -0000 On 12/3/05, Are Leistad wrote: > The one thing that makes me hesitate is the question about stability. > By stability I mean lack of (serious) bugs and memory leaks. I'm not embedded, but the GTK app I usually work on (medium sized? 250,000 lines) seems leak-free, according to valgrind. I've found three or four GTK crash bugs over the last five years, but they've been easy to patch around. Having the source to the whole GUI is just great. I've posted fixes to bugzilla and they've gone into GTK (and in to the next version) within a few days, usually. Something people have complained about is out of memory handling. GTK does not even attempt to do this: if malloc() fails, your program will promptly abort(). A possible fix is to keep some small-ish amount of RAM in reserve (1MB?) and to start using that when the system malloc() stops. That gives your program a little time to either save state and restart, or perhaps flush some caches or something and keep going. > - performance with thousands visible/hidden widgets on a 500MHz system? GTK used to feel fast on my 450MHz desktop machine 5 years ago. It's become a bit slower since then with the fancy new font system. It should be easy to do some benchmarks I guess. > - is there a minimal HTML rendering widget available (for a help system= )? Yes, there's gtkhtml2, though I've not used it. I think it just does plain HTML (ie. no CSS etc). From are.leistad@chello.no Sun Dec 4 11:08:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DFD43B5B5E for ; Sun, 4 Dec 2005 11:08:21 -0500 (EST) 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 21122-10 for ; Sun, 4 Dec 2005 11:08:19 -0500 (EST) Received: from amsfep19-int.chello.nl (amsfep11-int.chello.nl [213.46.243.19]) by menubar.gnome.org (Postfix) with ESMTP id 592963B5FC7 for ; Sun, 4 Dec 2005 10:45:06 -0500 (EST) Received: from aredell ([84.209.254.99]) by amsfep19-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051204154449.UTLE17379.amsfep19-int.chello.nl@aredell> for ; Sun, 4 Dec 2005 16:44:49 +0100 Message-ID: <002f01c5f8e9$a3b8e8c0$0201a8c0@aredell> From: " Are Leistad" To: Date: Sun, 4 Dec 2005 16:44:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Antivirus: avast! (VPS 0544-0, 31.10.2005), Outbound message X-Antivirus-Status: Not-Tested X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_TK] X-Spam-Score: -1.834 X-Spam-Level: X-Mailman-Approved-At: Sun, 04 Dec 2005 19:16:10 -0500 Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 16:08:22 -0000 Baurzhan wrote: > You might be interested to investigate the behavior in the case of > virtual memory exhaustion. As I looked at glib, I couldn't see an > elegant way to pass that fact to the caller. E.g., g_list_append returns > the new list head; if there is no memory available, the application is > supposed to exit (please correct me if I'm wrong), which is not quite > nice for an embedded app. A possible workaround could be calling some > handler in your code, but I haven't looked at that. If you are > interested, we could try to do that together. This is duly noted - can't have forced exits. This will have to be handled indeed. In this system there will be no VM. It will have a healthy amount of RAM though, probably 256MB of which at least half is available to the application. The memory usage is (must be!) controlled in that it is guaranteed to never exceed a known maximum, and a margin will be set off to allow for fragmentation. Of course getting to know what the usage of GTK is may be a challenge. This reminds me of another question: are there facilities in GTK for monitoring or logging resource usage? Or are there some information on actual usage available (per feature/subsystem/widget)? Our proprietary GUI tracks all malloc/free calls as well as keeping statistics for objects and events. This would be hard to live without. Michael Torrie wrote: > Actually I think you'll find that running GTK on an embedded X-server > works very well. It also looks like it's fastest with X. At least from this somewhat old but still interesting report: http://www.bluemug.com/research/linux_performance/index.shtml > A When you say you are considering GTK for an embedded situation, > I take it you're not meaning real-time or microcontroller Thats right. It's a full x86 ISA on the ITX form factor. There's no harddisks, only a FLASH IDE module. > I'm found based on my experience with GTK and with many GTK apps > that the stable GTK libraries have no known memory leaks. This sounds good. From Baurzhan and Michaels answers it's clear that I shall need to have a good look a glib though. John Cupitt wrote: > I'm not embedded, but the GTK app I usually work on (medium sized? > 250,000 lines) seems leak-free, according to valgrind. I'd say that's a fair sized application :) It's good to hear a report indicating good general integrity. > Something people have complained about is out of memory handling. Right. That seems to be a springning point. I would have though it obviously that graceful handling of memory exhaustion is a must have. > GTK used to feel fast on my 450MHz desktop machine 5 years ago. It's > become a bit slower since then with the fancy new font system. It > should be easy to do some benchmarks I guess. I need a GUI that feels fast on a 500MHZ system 5 years from now :) You're right of course, benchmarking is easy. I'll make a mock up of parts of the interface and see for myself. > Yes, there's gtkhtml2 I'll look that up, although CSS is really needed. I have a nearly completed one in the prorietary bin which will probably be used anyway. Baurzhan, Michael, John - Thank you very much for your responses! It's exacly the stuff I'm after. This matter will take some time to decide upon (there are others who have a say). I'll let you know which way it goes. In the mean time I'll watch for more comments on this. In any case, I need a new toolkit for general C and Ada programming and that is likely going to be GTK+. AL -- From ashley.maher@didymodesigns.com.au Mon Dec 5 00:40:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888FB3B1D1E for ; Mon, 5 Dec 2005 00:40:32 -0500 (EST) 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 29587-10 for ; Mon, 5 Dec 2005 00:40:29 -0500 (EST) Received: from mail.didymodesigns.com.au (unknown [203.132.226.82]) by menubar.gnome.org (Postfix) with SMTP id 55F303B1D62 for ; Mon, 5 Dec 2005 00:40:04 -0500 (EST) Received: (qmail 9705 invoked by alias); 5 Dec 2005 05:39:01 -0000 Received: from unknown (HELO gemini) (61.9.197.223) by ns2.didymodesigns.com.au with SMTP; 5 Dec 2005 05:39:01 -0000 From: ashley maher To: gtk-list@gnome.org Content-Type: text/plain Organization: Didymo Designs Date: Mon, 05 Dec 2005 16:39:52 +1100 Message-Id: <1133761192.9526.10.camel@gemini> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: gtklist pango stipple X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ashley.maher@didymodesigns.com.au List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 05:40:32 -0000 G'day, Using the gtk tree view tutorial I have been able to gain most of the functionality I need. I've been asked to include a stipple behind some cells. So I have attempted to do this. I was confident I could include this using pango markup. Unfortunately the text markup does not include a stipple attribute. There is, however, gdk_pango_renderer_set_stipple, which got me no where. I found teh stipple code in the demos for a text block. That didn't get me far. Is there any way to have a stipple behind text in a cell of a gtk list view? Hints on the direction to take appreciated. Regards, Ashley From fkater@googlemail.com Mon Dec 5 06:56:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A89D83B2D21 for ; Mon, 5 Dec 2005 06:56:17 -0500 (EST) 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 25083-03 for ; Mon, 5 Dec 2005 06:56:15 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by menubar.gnome.org (Postfix) with ESMTP id 18E943B2CFB for ; Mon, 5 Dec 2005 06:56:15 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i24so601413wra for ; Mon, 05 Dec 2005 03:56:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UFcAx2u118vMcHyAp9R0jege2XWZcg7Gibl0bXLYKZcCobP+clwnu8nhYUEHjqBnUrluL8l02dsTiH1PyMZV4PEwSgyfPCkOzbNN6zyDkVseHOBP26fWT724BMUIQ7DCZHHDKYNx4tT6GHESZFnfwnNuHmMB08D2wv9884A1+VE= Received: by 10.65.73.3 with SMTP id a3mr2622273qbl; Mon, 05 Dec 2005 03:56:14 -0800 (PST) Received: by 10.65.44.13 with HTTP; Mon, 5 Dec 2005 03:56:14 -0800 (PST) Message-ID: Date: Mon, 5 Dec 2005 12:56:14 +0100 From: Felix Kater To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: g_get_current_time() / win32: UTC instead of local time? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 11:56:17 -0000 Hi, I get the current hour of the day (0-23) like this: hour_of_the_day=3D my_gtimeval.tv_sec % (3600*24) / 3600 My windows timezone is set to UTC+1 =3D=3D GMT+1 =3D=3D CET, however, this = is not respected. What ever I select as the windows timezone the above formula calculates the same time (I guess UTC). How can I get the local hour? Thanks Felix From adnanx82@gmail.com Mon Dec 5 22:09:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D14CE3B1277 for ; Mon, 5 Dec 2005 22:09:13 -0500 (EST) 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 04343-06 for ; Mon, 5 Dec 2005 22:09:12 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by menubar.gnome.org (Postfix) with ESMTP id E4AC73B0EA6 for ; Mon, 5 Dec 2005 22:09:11 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i6so247917wra for ; Mon, 05 Dec 2005 19:09:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mCMV98HawWsDq9Xk091DVUmUWtjXFI85ao2wcu39yTPZ9iEMZV3jkYtH3V8Bc67MQfEwGAGMUvOF0iMr3b0MrWvDiPgN6ey3WcEhzFErMRrmROsUVrk1G79oTvVbvYfAPKV2GvrdxoX8dYGf2hDC4jkbm7NWI5+atXNU9n4TNzk= Received: by 10.54.136.4 with SMTP id j4mr1237110wrd; Mon, 05 Dec 2005 19:09:11 -0800 (PST) Received: by 10.54.134.1 with HTTP; Mon, 5 Dec 2005 19:09:10 -0800 (PST) Message-ID: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> Date: Mon, 5 Dec 2005 19:09:10 -0800 From: Adnan Dosa To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_201_25851401.1133838550960" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.006 tagged_above=-999 required=2 tests=[BAYES_00, FROM_ENDS_IN_NUMS, HTML_MESSAGE] X-Spam-Score: 2.006 X-Spam-Level: ** X-Spam-Flag: YES Subject: gtk application without x server? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 03:09:14 -0000 ------=_Part_201_25851401.1133838550960 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Is it possible to have a GTK application with windows that are not visible on the screen that can run without an X server? Ie the windows have their content rendered off-screen (in memory) and you can call window functions o= n it. I tried creating a window and called gtk_widget_hide() on it, but it doesn'= t work. Thanks, -Adnan. ------=_Part_201_25851401.1133838550960 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

Is it possible to have a GTK application with windows that are not visible on the screen that can run without an X server? Ie the windows have their content rendered off-screen (in memory) and you can call window functions on it.

I tried creating a window and called gtk_widget_hide() on it, but it doesn'= t work.

Thanks,

-Adnan.
------=_Part_201_25851401.1133838550960-- From jcupitt@gmail.com Wed Dec 7 06:32:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BC163B3670 for ; Wed, 7 Dec 2005 06:32:28 -0500 (EST) 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 25840-01 for ; Wed, 7 Dec 2005 06:32:26 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by menubar.gnome.org (Postfix) with ESMTP id C20583B367E for ; Wed, 7 Dec 2005 06:32:25 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so490343wxc for ; Wed, 07 Dec 2005 03:32:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FIG7FVFMoOWqfYI0ZbYl/9VU8kEeeMEbqJ4/p7Jqg+p5zwW7Ft5m4QSb/mgPbXyFd5NRjGYVHkAdEJlqP0xV0xkVbo1t+j5SUCTq69DrlVGcBle/ACoiPZtRHPTvWyJuFuqlOTRuwmJ3kUaQkKFKjamEGUjl5IIZcrP6gAumbU8= Received: by 10.70.125.10 with SMTP id x10mr1679140wxc; Wed, 07 Dec 2005 03:32:24 -0800 (PST) Received: by 10.70.67.14 with HTTP; Wed, 7 Dec 2005 03:32:24 -0800 (PST) Message-ID: <522c6460512070332k7eba2418o233c76eaf2514277@mail.gmail.com> Date: Wed, 7 Dec 2005 11:32:24 +0000 From: John Cupitt To: Adnan Dosa In-Reply-To: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.757 tagged_above=-999 required=2 tests=[BAYES_00, TW_DK, TW_GD, TW_GT] X-Spam-Score: -1.757 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk application without x server? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 11:32:30 -0000 On 12/6/05, Adnan Dosa wrote: > Is it possible to have a GTK application with windows that are not visib= le > on the screen that can run without an X server? No, GTK needs a display connection to work. You can use some of the lower level libraries like glib, gobject, gdkpixbuf etc without an X connection. From kasoftnew@yahoo.com Wed Dec 7 08:55:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DCD4A3B1402 for ; Wed, 7 Dec 2005 08:55:21 -0500 (EST) 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 05894-05 for ; Wed, 7 Dec 2005 08:55:14 -0500 (EST) Received: from web34603.mail.mud.yahoo.com (web34603.mail.mud.yahoo.com [209.191.68.137]) by menubar.gnome.org (Postfix) with SMTP id 088993B0F8E for ; Wed, 7 Dec 2005 08:55:12 -0500 (EST) Received: (qmail 2724 invoked by uid 60001); 7 Dec 2005 13:55:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=K1DvMazOY2TjYlHuchvCDtX+otSvWlVRtKhRof5GsXfQ6vgCLZYpxtFdhvn685Z5aWa4j8qONscYN2pEV1JMsQEsAA718yGO4IrpkljxNBFNSg9OmZ3dh4ZbCLiscqhAAd91hGSU0tRAINxbyj0nPTLxIYgtsxsK/PVfO4w6HIc= ; Message-ID: <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> Received: from [213.91.219.82] by web34603.mail.mud.yahoo.com via HTTP; Wed, 07 Dec 2005 05:55:11 PST Date: Wed, 7 Dec 2005 05:55:11 -0800 (PST) From: Stoyan karanfilov To: gtk-list@gnome.org In-Reply-To: <20051206170119.E86923B32F8@menubar.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.087 tagged_above=-999 required=2 tests=[BAYES_00, FORGED_YAHOO_RCVD] X-Spam-Score: -1.087 X-Spam-Level: Subject: Problem with compiling on SUSE 10 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 13:55:22 -0000 Hi, I wrote a small program that has been working and compiling on SUSE 9.2 (with gcc 3.x), but now same program does not link well on SUSE 10 (gcc 4). Here is the command line and error: gcc -Wall -g test_window.cpp -o test `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0` /tmp/cc4Mi4UX.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' I will appreciate any help. Sincerely: Stoyan Karanfilov __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From ygupta@gmail.com Wed Dec 7 09:02:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0890F3B0B09 for ; Wed, 7 Dec 2005 09:02:19 -0500 (EST) 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 06565-05 for ; Wed, 7 Dec 2005 09:02:16 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by menubar.gnome.org (Postfix) with ESMTP id C2E803B078C for ; Wed, 7 Dec 2005 09:02:15 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i13so580347wra for ; Wed, 07 Dec 2005 06:02:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=l2mkTykqhKgMQIKUIhUiwXT1bW+XZZ7phffwRYirw10wCTPgxvDVaAxEdVA0UXGmGbb7lH2Rfbz4vx6HUCaQWJf+qIhhtbvQ5rb2M7BzeeYBk9aKw6ebucnWQxGmld5xVMiCiDysPoOwea6UEqn7EgtdgnzTBh1IC0xbzJMCsuM= Received: by 10.65.20.1 with SMTP id x1mr1415848qbi; Wed, 07 Dec 2005 06:02:15 -0800 (PST) Received: by 10.64.10.16 with HTTP; Wed, 7 Dec 2005 06:02:15 -0800 (PST) Message-ID: Date: Wed, 7 Dec 2005 19:32:15 +0530 From: Yash Kumar Gupta To: Stoyan karanfilov In-Reply-To: <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33322_31433362.1133964135043" References: <20051206170119.E86923B32F8@menubar.gnome.org> <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.411 tagged_above=-999 required=2 tests=[BAYES_00, MIME_BASE64_LATIN, TW_GT] X-Spam-Score: -1.411 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Problem with compiling on SUSE 10 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 14:02:19 -0000 ------=_Part_33322_31433362.1133964135043 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline VHJ5IHVzaW5nIGcrKyBpbnN0ZWFkIG9mIGdjYyBhbmQgdGhpbmdzIHdpbGwgYmUgZmluZS4KCkhv cGUgdGhpcyBoZWxwcyEhCllhc2gKCgpPbiAxMi83LzA1LCBTdG95YW4ga2FyYW5maWxvdiA8a2Fz b2Z0bmV3QHlhaG9vLmNvbT4gd3JvdGU6Cj4KPiBIaSwgSSB3cm90ZSBhIHNtYWxsIHByb2dyYW0g dGhhdCBoYXMgYmVlbiB3b3JraW5nIGFuZAo+IGNvbXBpbGluZyBvbiBTVVNFIDkuMiAod2l0aCBn Y2MgMy54KSwgYnV0IG5vdyBzYW1lCj4gcHJvZ3JhbSBkb2VzIG5vdCBsaW5rIHdlbGwgb24gU1VT RSAxMCAoZ2NjIDQpLiBIZXJlIGlzCj4gdGhlIGNvbW1hbmQgbGluZSBhbmQgZXJyb3I6Cj4KPiBn Y2MgLVdhbGwgLWcgdGVzdF93aW5kb3cuY3BwIC1vIHRlc3QgYHBrZy1jb25maWcKPiAtLWNmbGFn cyBndGsrLTIuMCAtLWxpYnMgZ3RrKy0yLjBgCj4KPiAvdG1wL2NjNE1pNFVYLm86KC5laF9mcmFt ZSsweDExKTogdW5kZWZpbmVkIHJlZmVyZW5jZQo+IHRvIGBfX2d4eF9wZXJzb25hbGl0eV92MCcK Pgo+IEkgd2lsbCBhcHByZWNpYXRlIGFueSBoZWxwLgo+Cj4gU2luY2VyZWx5OiBTdG95YW4gS2Fy YW5maWxvdgo+Cj4KPgo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f Xwo+IFlhaG9vISBEU0wgliBTb21ldGhpbmcgdG8gd3JpdGUgaG9tZSBhYm91dC4KPiBKdXN0ICQx Ni45OS9tby4gb3IgbGVzcy4KPiBkc2wueWFob28uY29tCj4KPiBfX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IGd0ay1saXN0IG1haWxpbmcgbGlzdAo+IGd0 ay1saXN0QGdub21lLm9yZwo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZv L2d0ay1saXN0Cj4K ------=_Part_33322_31433362.1133964135043 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline PGRpdj5UcnkgdXNpbmcgZysrIGluc3RlYWQgb2YgZ2NjIGFuZCB0aGluZ3Mgd2lsbCBiZSBmaW5l LjwvZGl2Pgo8ZGl2PiZuYnNwOzwvZGl2Pgo8ZGl2PkhvcGUgdGhpcyBoZWxwcyEhPC9kaXY+Cjxk aXY+WWFzaDxicj48YnI+Jm5ic3A7PC9kaXY+CjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1b3Rl Ij5PbiAxMi83LzA1LCA8YiBjbGFzcz0iZ21haWxfc2VuZGVybmFtZSI+U3RveWFuIGthcmFuZmls b3Y8L2I+ICZsdDs8YSBocmVmPSJtYWlsdG86a2Fzb2Z0bmV3QHlhaG9vLmNvbSI+a2Fzb2Z0bmV3 QHlhaG9vLmNvbTwvYT4mZ3Q7IHdyb3RlOjwvc3Bhbj4KPGJsb2NrcXVvdGUgY2xhc3M9ImdtYWls X3F1b3RlIiBzdHlsZT0iUEFERElORy1MRUZUOiAxZXg7IE1BUkdJTjogMHB4IDBweCAwcHggMC44 ZXg7IEJPUkRFUi1MRUZUOiAjY2NjIDFweCBzb2xpZCI+SGksIEkgd3JvdGUgYSBzbWFsbCBwcm9n cmFtIHRoYXQgaGFzIGJlZW4gd29ya2luZyBhbmQ8YnI+Y29tcGlsaW5nIG9uIFNVU0UgOS4yICh3 aXRoIGdjYyAzLngpLCBidXQgbm93IHNhbWUKPGJyPnByb2dyYW0gZG9lcyBub3QgbGluayB3ZWxs IG9uIFNVU0UgMTAgKGdjYyA0KS4gSGVyZSBpczxicj50aGUgY29tbWFuZCBsaW5lIGFuZCBlcnJv cjo8YnI+PGJyPmdjYyAtV2FsbCAtZyB0ZXN0X3dpbmRvdy5jcHAgLW8gdGVzdCBgcGtnLWNvbmZp Zzxicj4tLWNmbGFncyBndGsrLTIuMCAtLWxpYnMgZ3RrKy0yLjBgPGJyPjxicj4vdG1wL2NjNE1p NFVYLm86KC5laF9mcmFtZSsweDExKTogdW5kZWZpbmVkIHJlZmVyZW5jZQo8YnI+dG8gYF9fZ3h4 X3BlcnNvbmFsaXR5X3YwJzxicj48YnI+SSB3aWxsIGFwcHJlY2lhdGUgYW55IGhlbHAuPGJyPjxi cj5TaW5jZXJlbHk6IFN0b3lhbiBLYXJhbmZpbG92PGJyPjxicj48YnI+PGJyPl9fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXzxicj5ZYWhvbyEgRFNMIJYgU29tZXRoaW5n IHRvIHdyaXRlIGhvbWUgYWJvdXQuPGJyPkp1c3QgJDE2Ljk5L21vLiBvciBsZXNzLgo8YnI+PGEg aHJlZj0iaHR0cDovL2RzbC55YWhvby5jb20iPmRzbC55YWhvby5jb208L2E+PGJyPjxicj5fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXzxicj5ndGstbGlzdCBt YWlsaW5nIGxpc3Q8YnI+PGEgaHJlZj0ibWFpbHRvOmd0ay1saXN0QGdub21lLm9yZyI+Z3RrLWxp c3RAZ25vbWUub3JnPC9hPjxicj48YSBocmVmPSJodHRwOi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1h bi9saXN0aW5mby9ndGstbGlzdCI+Cmh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3Rp bmZvL2d0ay1saXN0PC9hPjxicj48L2Jsb2NrcXVvdGU+PC9kaXY+PGJyPgo= ------=_Part_33322_31433362.1133964135043-- From kitana.ash@gmail.com Wed Dec 7 14:50:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org. Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89E723B3854 for ; Wed, 7 Dec 2005 14:50:54 -0500 (EST) 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 03851-09 for ; Wed, 7 Dec 2005 14:50:50 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id E91273B382C for ; Wed, 7 Dec 2005 14:50:48 -0500 (EST) Received: by zproxy.gmail.com with SMTP id z3so437312nzf for ; Wed, 07 Dec 2005 11:50:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mWgMnyuw9besNhE70aMrGLIyGMP/Bg1PvtsfYXnMxwFOJ8ImFP7GVMeHZ8lCXGN98yK+EeikgFKU/uK9LMrM97IVnHMepAkuJ3bLLxWM+pct1CsMuPZdw5ARb/1V7+cStDc9HK3MiBga40ba7fk8u0nw09xe6VYHlJ/ElUnZOJE= Received: by 10.36.25.18 with SMTP id 18mr1867139nzy; Wed, 07 Dec 2005 11:50:47 -0800 (PST) Received: by 10.36.66.17 with HTTP; Wed, 7 Dec 2005 11:50:47 -0800 (PST) Message-ID: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> Date: Wed, 7 Dec 2005 13:50:47 -0600 From: Susan Jimenez To: gtk-list@gnome.org. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2570_33193076.1133985047902" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.126 tagged_above=-999 required=2 tests=[BAYES_01, HTML_MESSAGE, PLING_PLING] X-Spam-Score: 2.126 X-Spam-Level: ** X-Spam-Flag: YES Cc: Subject: PLEASE HELP ME!!!! X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 19:50:54 -0000 ------=_Part_2570_33193076.1133985047902 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This place.....is so confusing.It started out,my just wanting to install a new GIMP....NOW I have to come to GTK to get a new Runtime Enviornment!But....how do you download it?I keep looking and looking....I know were the downloads are....but they just give me pages!!!!WTF!?!?!?! I'm used to the window popping up asking to "Save" or "Run" but all I get here is some page with all these links and stuff!!!Can someone PLEASE help me!I've never been so confused!!!! -- ~Kitana Ash~ ------=_Part_2570_33193076.1133985047902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
This place.....is so confusing.It started out,my just wanting to insta= ll a new GIMP....NOW I have to come to GTK to get a new Runtime Enviornment= !But....how do you download it?I keep looking and looking....I know were th= e downloads are....but they just give me pages!!!!WTF!?!?!?!
I'm used to the window popping up asking to "Save" or "= Run" but all I get here is some page with all these links and stuff!!!= Can someone PLEASE help me!I've never been so confused!!!!

--
~Kitana Ash~
------=_Part_2570_33193076.1133985047902-- From csaavedra@alumnos.utalca.cl Wed Dec 7 15:05:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EF723B0FE2 for ; Wed, 7 Dec 2005 15:05:35 -0500 (EST) 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 05457-04 for ; Wed, 7 Dec 2005 15:05:34 -0500 (EST) Received: from mail.inf.tu-dresden.de (mail.inf.tu-dresden.de [141.76.2.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CCB43B0F0E for ; Wed, 7 Dec 2005 15:05:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.inf.tu-dresden.de (8.12.10/8.12.10) with ESMTP id jB7K5Uup018762; Wed, 7 Dec 2005 21:05:30 +0100 (CET) Received: from mail.inf.tu-dresden.de ([127.0.0.1]) by localhost (mail.inf.tu-dresden.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18528-01; Wed, 7 Dec 2005 21:05:30 +0100 (CET) Received: from dijkstra.wh8.tu-dresden.de (B202a.WH8.tu-dresden.de [141.30.225.153]) by mail.inf.tu-dresden.de (8.12.10/8.12.10) with ESMTP id jB7K5TnW018750; Wed, 7 Dec 2005 21:05:29 +0100 (CET) From: Claudio Saavedra To: Susan Jimenez In-Reply-To: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> References: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> Content-Type: text/plain Date: Wed, 07 Dec 2005 21:05:27 +0100 Message-Id: <1133985927.19619.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd_new at inf.tu-dresden.de X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.338 tagged_above=-999 required=2 tests=[BAYES_00, PLING_PLING] X-Spam-Score: -1.338 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: PLEASE HELP ME!!!! X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 20:05:35 -0000 On Wed, 2005-12-07 at 13:50 -0600, Susan Jimenez wrote: > This place.....is so confusing.It started out,my just wanting to > install a new GIMP....NOW I have to come to GTK to get a new Runtime > Enviornment!But....how do you download it?I keep looking and > looking....I know were the downloads are....but they just give me > pages!!!!WTF!?!?!?! > I'm used to the window popping up asking to "Save" or "Run" but all I > get here is some page with all these links and stuff!!!Can someone > PLEASE help me!I've never been so confused!!!! Dear Kitana, Please breath, sit, and relax. Then, click the link above, and wait 5 seconds. http://prdownloads.sourceforge.net/gimp-win/gtk% 2B-2.6.9-setup.zip?use_mirror=switch Your "save, run" dialog will appear. Greetings, Claudio -- Claudio Saavedra From jborrone@saa.ars.usda.gov Wed Dec 7 18:08:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE9923B1944 for ; Wed, 7 Dec 2005 18:08:50 -0500 (EST) 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 21339-02 for ; Wed, 7 Dec 2005 18:08:48 -0500 (EST) Received: from saa.ars.usda.gov (saa.ars.usda.gov [199.133.64.246]) by menubar.gnome.org (Postfix) with ESMTP id 1093B3B1984 for ; Wed, 7 Dec 2005 18:08:47 -0500 (EST) Received: from (199.133.64.246) by DA32USMDGW1_AVS01.usda.gov via smtp id 6eed_e967635c_6742_11da_941f_001143d36648; Wed, 07 Dec 2005 17:00:04 +0000 Received: from SAA-GATE-MTA by saa.ars.usda.gov with Novell_GroupWise; Wed, 07 Dec 2005 18:08:44 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Wed, 07 Dec 2005 18:08:10 -0500 From: "James Borrone" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 23:08:51 -0000 I am trying to determine how to find the following files, they are not presently on my machine and ws wondering if they are downloadable. libgdk.a libglib.a libgmodule.a libgtk.a I am not a programmer, and have very limited knowledge of the UNIX/LINUX environment,, so basically if your mom wold not understand what you are writing neither would I. I am just trying to get a program to work, and it needs to find these files. Thanks James Borrone From hdnews@gawab.com Wed Dec 7 18:47:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5784E3B3617 for ; Wed, 7 Dec 2005 18:47:20 -0500 (EST) 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 24766-08 for ; Wed, 7 Dec 2005 18:47:18 -0500 (EST) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by menubar.gnome.org (Postfix) with ESMTP id E13783B2787 for ; Wed, 7 Dec 2005 18:47:17 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr12.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB7NlGJL098795 for ; Thu, 8 Dec 2005 00:47:17 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jB7NlFfo008026 for ; Thu, 8 Dec 2005 00:47:16 +0100 Message-ID: <4397747F.7080403@gawab.com> Date: Thu, 08 Dec 2005 00:47:11 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: reference count of textbuffer increases with each paste? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 23:47:20 -0000 L.S., I'm experiencing the following on WIN32: When I do Copy; Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste From within the same gtktextbuffer, I see a dramatic increase of the reference count of the GtkTextBuffer. If I do analogous: Copy from notepad; Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste I see no increase of the reference count at all. Is this a feature or a bug of GtkTextBuffer? Best whishes, Hans Oesterholt-Dijkema From xyberblue@gmail.com Wed Dec 7 20:51:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9B43B27B6 for ; Wed, 7 Dec 2005 20:51:45 -0500 (EST) 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 32608-06 for ; Wed, 7 Dec 2005 20:51:43 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by menubar.gnome.org (Postfix) with ESMTP id 3D8803B27DE for ; Wed, 7 Dec 2005 20:51:43 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 67so877720wri for ; Wed, 07 Dec 2005 17:51:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=k2H24N/572wmkB+oZDwzGRnJKOpUPaBgLyy7ZpVpbCYk8YMUOFxOaM+Rrp19xOTGisrY/0vyc8jKpg3t7hLQtRm0CqMcIO1ATyac0axFJ/XjA7nrrfbAN8nQy+nbU2Rc9u/s+GnffGmm63yy31T9I0CGL0eDAAgBfA87hIcxeB8= Received: by 10.54.135.3 with SMTP id i3mr1313878wrd; Wed, 07 Dec 2005 17:51:42 -0800 (PST) Received: by 10.54.156.19 with HTTP; Wed, 7 Dec 2005 17:51:42 -0800 (PST) Message-ID: <45ea3f390512071751k2c954d0xf0cf19b377aaeef5@mail.gmail.com> Date: Thu, 8 Dec 2005 09:51:42 +0800 From: Xyber Blue To: James Borrone In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6229_18974535.1134006702458" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 01:51:45 -0000 ------=_Part_6229_18974535.1134006702458 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Those are the static libraries for gtk and glib. You can find these files o= n /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk. You can create these files by downloading the gtk source at www.gtk.org On 12/8/05, James Borrone wrote: > > I am trying to determine how to find the following files, they are not > presently on my machine and ws wondering if they are downloadable. > > libgdk.a > libglib.a > libgmodule.a > libgtk.a > > I am not a programmer, and have very limited knowledge of the UNIX/LINUX > environment,, so basically if your mom wold not understand what you are > writing neither would I. I am just trying to get a program to work, and > it needs to find these files. > > Thanks > > James Borrone > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ------=_Part_6229_18974535.1134006702458 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Those are the static libraries for gtk and glib. You can find these files on /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk.

You can create these files by downloading the gtk source at www.gtk.org

On = 12/8/05, James Borrone < jborrone@saa.ars.usda.gov> wrote:
I am trying to determine how to find the foll= owing files, they are not
presently on my machine and ws wondering if they are downloadable.
<= br>libgdk.a
libglib.a
libgmodule.a
libgtk.a

I am not a prog= rammer, and have very limited knowledge of the UNIX/LINUX
environment,, = so basically if your mom wold not understand what you are
writing neither would I.  I am just trying to get a program t= o work, and
it needs to find these files.

Thanks

James Bor= rone
_______________________________________________
gtk-list mailing= list
gtk-list@gnome.org
http://mail.gnome.org/mail= man/listinfo/gtk-list

------=_Part_6229_18974535.1134006702458-- From igorbounov@topazelectro.ru Thu Dec 8 00:00:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 309CE3B2866 for ; Thu, 8 Dec 2005 00:00:56 -0500 (EST) 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 12529-07 for ; Thu, 8 Dec 2005 00:00:53 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id D61653B2907 for ; Thu, 8 Dec 2005 00:00:16 -0500 (EST) Received: (qmail 5763 invoked by uid 7801); 8 Dec 2005 04:55:33 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.087314 secs); 08 Dec 2005 04:55:33 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.087314 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 8 Dec 2005 04:55:32 -0000 Message-ID: <4397BDF1.6080701@topazelectro.ru> Date: Thu, 08 Dec 2005 08:00:33 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_TK] X-Spam-Score: -1.834 X-Spam-Level: Cc: Subject: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 05:00:56 -0000 Tell me, please, if there is any way to get a Win API application instance handle in a gtkmm application just as it is needed in this function: HWND MCIWndCreate(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPSTR szFile); Igor Gorbounov From sibakhan@gmail.com Thu Dec 8 04:02:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDC5E3B39C9 for ; Thu, 8 Dec 2005 04:02:43 -0500 (EST) 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 28193-02 for ; Thu, 8 Dec 2005 04:02:39 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 12B213B39BB for ; Thu, 8 Dec 2005 04:02:34 -0500 (EST) Received: by xproxy.gmail.com with SMTP id h28so881646wxd for ; Thu, 08 Dec 2005 01:02:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MK4iyhN/0eTD3x7wBboL8iwmqwCSSSGGLGO4MOQg6PcZ5lf54pVw0BbYu/uEDR7rfl4CSiPF2ky6IOncZYsDwkC/3DLqw+te5uFDCUBK56CWJuMVJcdpMbNnG26T9PW8DIEjProATN0mkYJEYwjEzztgIOhn2NMKE/eOdlJmAgM= Received: by 10.70.11.15 with SMTP id 15mr3482303wxk; Thu, 08 Dec 2005 01:02:33 -0800 (PST) Received: by 10.70.10.13 with HTTP; Thu, 8 Dec 2005 01:02:33 -0800 (PST) Message-ID: Date: Thu, 8 Dec 2005 09:02:33 +0000 From: ibrar ahmed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Question X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 09:02:44 -0000 hello all, I have problem to load a pixmap with text in combobox. i have done like this but there is warning which is write down. store =3D gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING); =09=09icon =3D gdk_pixbuf_new_from_file("Compression_Settings16.ico", &erro= r); =09=09=09gtk_list_store_append (store, &iter); =09 =09gtk_list_store_set (store, &iter, =09=09=09 PIXBUF_COL, icon, =09=09=09 TEXT_COL, "C:/", =09=09=09 -1); GLib-GObject-WARNING **: unable to set property `text' of type `gchararray' from value of type `GdkPixbuf' Output is display center of the combobox, how i can control it also. thanx for any query! Ahmed From gnome-gtk-list@m.gmane.org Thu Dec 8 07:42:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB2063B3A9F for ; Thu, 8 Dec 2005 07:42:16 -0500 (EST) 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 11951-04 for ; Thu, 8 Dec 2005 07:42:14 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 14F693B3AA3 for ; Thu, 8 Dec 2005 07:42:14 -0500 (EST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1EkL51-0001ZI-Uv for gtk-list@gnome.org; Thu, 08 Dec 2005 13:40:59 +0100 Received: from oasis.sbet.com ([193.111.204.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2005 13:40:59 +0100 Received: from met by oasis.sbet.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2005 13:40:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dmitry Met Date: Thu, 08 Dec 2005 14:09:39 +0200 Lines: 10 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: oasis.sbet.com User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: gtk and image and memory leak X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 12:42:17 -0000 Hello. I am trying to write simle gtk apllication like screensaver. I have an animated gif of size 3.8 megs with 140 frames. I need simple show this animationa in one window. After application starts, program gets all free memory (300 megs) and runs slowly. I was read all posts contain word "image", "animation" and understand that i need big amount of memory and good CPU. But what is the basic configuration of computer? I need to show in cycle 8-10 animations (animated gifs or jpegs in cycle). And maybe matter is that i am use python gtk? Thanks for any response. From emeyer@eskimo.com Wed Dec 7 14:12:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D45D3B37DC for ; Wed, 7 Dec 2005 14:12:45 -0500 (EST) 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 00798-08 for ; Wed, 7 Dec 2005 14:12:42 -0500 (EST) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.62]) by menubar.gnome.org (Postfix) with ESMTP id 835843B2942 for ; Wed, 7 Dec 2005 14:12:42 -0500 (EST) Received: from 24-136-4-5.demp-bsr1.chi-demp.il.cable.rcn.com (HELO [192.168.1.101]) ([24.136.4.5]) by smtp02.mrf.mail.rcn.net with ESMTP; 07 Dec 2005 14:12:39 -0500 X-IronPort-AV: i="3.99,226,1131339600"; d="scan'208"; a="181197978:sNHT30223896" Message-ID: <43973428.30106@eskimo.com> Date: Wed, 07 Dec 2005 13:12:40 -0600 From: Eddie Meyer User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: X-Mailman-Approved-At: Thu, 08 Dec 2005 08:34:55 -0500 Subject: Announcement: Building new C resource - There is a forum to discuss GTK+ programming X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 19:12:45 -0000 Hi all, First, a little background -- I am in the process of teaching myself how to program in C. While doing this, I decided that I would try and give back to the Internet community by building some C resources on my homepage. Note: My homepage is only a couple of months old, so don't expect too much from it at this point. I came across GTK+ as a great library to use while programming in C. I intend to add a link to the GTK+ website from my 'C Programming Page'. My website also includes a forum area (which is only one week old) -- It already had a forum dedicated to C program, but I thought you guys might like to know that I just created a dedicated forum for discussions related to GTK+ programming. Please feel free to check it out. I thought you might like to know that this resource was available. To the GTK+ team, thanks for all your hard work on this library. Thanks Eddie -- Eddie Meyer Homepage: http://www.eskimo.com/~emeyer From jborrone@saa.ars.usda.gov Thu Dec 8 12:34:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB2AB3B2A07 for ; Thu, 8 Dec 2005 12:34:58 -0500 (EST) 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 03416-09 for ; Thu, 8 Dec 2005 12:34:57 -0500 (EST) Received: from saa.ars.usda.gov (saa.ars.usda.gov [199.133.64.246]) by menubar.gnome.org (Postfix) with ESMTP id 5D83B3B2258 for ; Thu, 8 Dec 2005 12:34:56 -0500 (EST) Received: from (199.133.64.246) by DA32USMDGW1_AVS01.usda.gov via smtp id 6b22_6f8be49a_67dd_11da_9eba_001143d36648; Thu, 08 Dec 2005 11:26:12 +0000 Received: from SAA-GATE-MTA by saa.ars.usda.gov with Novell_GroupWise; Thu, 08 Dec 2005 12:34:54 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Thu, 08 Dec 2005 12:34:37 -0500 From: "James Borrone" To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part6042B6BD.0__=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: Fwd: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 17:34:59 -0000 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part6042B6BD.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --=__Part6042B6BD.0__= Content-Type: message/rfc822 Date: Thu, 08 Dec 2005 12:32:08 -0500 From: "James Borrone" To: Cc: Subject: Re: lost files Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I tried that. After installing GTK, I tried launching the program, and it came up with the same error message, that it could not find those files. I looked for the files in the installed GTK program, and could not locate them james >>> Xyber Blue 12/07/05 8:51 PM >>> Those are the static libraries for gtk and glib. You can find these files on /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk. You can create these files by downloading the gtk source at www.gtk.org On 12/8/05, James Borrone wrote: > > I am trying to determine how to find the following files, they are not > presently on my machine and ws wondering if they are downloadable. > > libgdk.a > libglib.a > libgmodule.a > libgtk.a > > I am not a programmer, and have very limited knowledge of the UNIX/LINUX > environment,, so basically if your mom wold not understand what you are > writing neither would I. I am just trying to get a program to work, and > it needs to find these files. > > Thanks > > James Borrone > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=__Part6042B6BD.0__=-- From ragnacruxer@gmail.com Thu Dec 8 17:37:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 801D43B1A8C for ; Thu, 8 Dec 2005 17:37:54 -0500 (EST) 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 24759-04 for ; Thu, 8 Dec 2005 17:37:46 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by menubar.gnome.org (Postfix) with ESMTP id 9D4FC3B1C07 for ; Thu, 8 Dec 2005 17:37:26 -0500 (EST) Received: by nproxy.gmail.com with SMTP id h2so246289nfe for ; Thu, 08 Dec 2005 14:37:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:organization:x-mailer:mime-version:content-type; b=UXX9aZr4efZWFRNJSTOxQnFyfwtmdRKFlW7FJy5AgKbVI8xSlto38qXkkXbIVSW/GBJb/3v2yNTK7XQSTDRXG6LhXyx8Hpfn6jRm6x0CBJIkbkfxpQ555kliFTlK5w+KI+fQamI9K2kWw2QmYqUoLZqSYMUYzodVg803BXzrgHU= Received: by 10.48.219.16 with SMTP id r16mr359075nfg; Thu, 08 Dec 2005 14:37:25 -0800 (PST) Received: from eleclipse ( [87.7.22.158]) by mx.gmail.com with ESMTP id r34sm740423nfc.2005.12.08.14.37.24; Thu, 08 Dec 2005 14:37:25 -0800 (PST) Date: Thu, 8 Dec 2005 23:37:24 +0100 From: Stefano Esposito To: gtk-app-devel-list@gnome.org Message-Id: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> Organization: - X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 22:37:55 -0000 --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, in my app i need to implement a spreedsheet-like widget (i.e. a GtkTreeView= with a GtkListStore which shows a number of empty lines to be filled by th= e user). Any hints? --=20 "Solo due cose sono infinite: l'universo e la stupidit=E0 umana... e per qu= anto riguarda l'universo non sono sicuro" Albert Einstein # GnuPG/PGP Key Id: 0x5646B7D4 --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmLWq2LRRrlZGt9QRAqi+AJ9aSbIIwThOQXhulkWQ6p+DiFDiSQCeLktb pquGnFCtBn/bJBAwa/qdq18= =dOzH -----END PGP SIGNATURE----- --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH-- From ragnacruxer@gmail.com Thu Dec 8 19:43:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 505B83B16F3 for ; Thu, 8 Dec 2005 19:43:40 -0500 (EST) 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 01547-04 for ; Thu, 8 Dec 2005 19:43:37 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 280FF3B1463 for ; Thu, 8 Dec 2005 19:43:36 -0500 (EST) Received: by zproxy.gmail.com with SMTP id l1so788567nzf for ; Thu, 08 Dec 2005 16:43:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:organization:x-mailer:mime-version:content-type; b=o8emjuIaLu8y53rNMJdqxDCI5fNSfV33jTNAM9O4q93zASjd59Wfz24W4lfhmmdrBoCje6JwklcCBaVPCGZ8TwU3Qtb41HpJYn+OaBEOqEbBEC9iNRcZUcHu5vGATKjcUjbzb5dYR1qJapckJTtulxi8GfwO6cjuwCqrdAH31KU= Received: by 10.64.203.5 with SMTP id a5mr3394104qbg; Thu, 08 Dec 2005 16:43:35 -0800 (PST) Received: from eleclipse ( [87.7.22.158]) by mx.gmail.com with ESMTP id o32sm723772qbe.2005.12.08.16.43.06; Thu, 08 Dec 2005 16:43:32 -0800 (PST) Date: Fri, 9 Dec 2005 01:42:55 +0100 From: Stefano Esposito To: Adrian Feiguin Message-Id: <20051209014255.7bd92b52.ragnacruxer@gmail.com> In-Reply-To: <4398C3E8.5090806@kitp.ucsb.edu> References: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> <4398C3E8.5090806@kitp.ucsb.edu> Organization: - X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 00:43:40 -0000 --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 08 Dec 2005 15:38:16 -0800 Adrian Feiguin wrote: > Check out gtksheet. It's part of gtkextra : http://gtkextra.sourceforge.n= et > Enjoy, > That's excatly what I was looking for. Thanks for the tip :) Bye Stefano --=20 "Solo due cose sono infinite: l'universo e la stupidit=E0 umana... e per qu= anto riguarda l'universo non sono sicuro" Albert Einstein # GnuPG/PGP Key Id: 0x5646B7D4 --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmNMY2LRRrlZGt9QRAnfHAKCB7PcP5fjl/fZAY7wclyjRi1hcAgCdGr5M +HKLHU/Pwai9kgvw+E0ogUA= =h04G -----END PGP SIGNATURE----- --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I-- From xyberblue@gmail.com Thu Dec 8 21:04:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6E3B0841 for ; Thu, 8 Dec 2005 21:04:16 -0500 (EST) 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 06702-10 for ; Thu, 8 Dec 2005 21:04:14 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id E29943B0A16 for ; Thu, 8 Dec 2005 21:04:13 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 67so1146548wri for ; Thu, 08 Dec 2005 18:04:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nZQKtc3AKTlDUR4TuZcy5SuDAiiXLRT4082VHQqyVy1iaMUre2pfbXMaortTZ+4IQ/VUdjHboClxiZU3byDyrehdre74GJg2305wBxq0KDgwqsEC6LR1VjjKen3IJyNMnH3+GK9wSJ8CxbzQGLA+KLrioiQ+D5pZnFWGVQEElS8= Received: by 10.54.80.1 with SMTP id d1mr3970705wrb; Thu, 08 Dec 2005 18:04:12 -0800 (PST) Received: by 10.54.156.19 with HTTP; Thu, 8 Dec 2005 18:04:12 -0800 (PST) Message-ID: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> Date: Fri, 9 Dec 2005 10:04:12 +0800 From: Xyber Blue To: James Borrone In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17764_32144746.1134093852604" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 02:04:17 -0000 ------=_Part_17764_32144746.1134093852604 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you post how you install gtk into your linux??? usually, the default is to the /usr/local/lib... Try this export LD_LIBRARY_PATH=3D{path_to_gtk_prefix}/lib On 12/9/05, James Borrone wrote: > > > > > ---------- Forwarded message ---------- > From: "James Borrone" > To: > Date: Thu, 08 Dec 2005 12:32:08 -0500 > Subject: Re: lost files > I tried that. After installing GTK, I tried launching the program, and > it came up with the same error message, that it could not find those > files. I looked for the files in the installed GTK program, and could > not locate them > > james > > >>> Xyber Blue 12/07/05 8:51 PM >>> > Those are the static libraries for gtk and glib. You can find these > files on > /usr/lib directory since linux distros bundled already these packages > and > that if you installed the gtk. > > You can create these files by downloading the gtk source at www.gtk.org > > On 12/8/05, James Borrone wrote: > > > > I am trying to determine how to find the following files, they are not > > presently on my machine and ws wondering if they are downloadable. > > > > libgdk.a > > libglib.a > > libgmodule.a > > libgtk.a > > > > I am not a programmer, and have very limited knowledge of the > UNIX/LINUX > > environment,, so basically if your mom wold not understand what you > are > > writing neither would I. I am just trying to get a program to work, > and > > it needs to find these files. > > > > Thanks > > > > James Borrone > > _______________________________________________ > > 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 > > > ------=_Part_17764_32144746.1134093852604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you post how you install gtk into your linux???

usually, the default is to the /usr/local/lib...
Try this

export LD_LIBRARY_PATH=3D{path_to_gtk_prefix}/lib
On 12/9/05, James Borrone <= jborrone@saa.ars.usda.gov&= gt; wrote:


---------- Forwarded message ----------
From: "James Borrone"= ; < jborrone@saa.ars.usda.gov&= gt;
To: <xyberblue@gmail.com>
Date: Thu, 08 Dec 2005 12:32:08 -0500
Subject: Re: lost files<= br> I tried that.  After installing GTK, I tried launching the progra= m, and
it came up with the same error message, that it could not find th= ose
files.  I looked for the files in the installed GTK progra= m, and could
not locate them

james

>>> Xyber Blue <
xyberblue@gmail.com> 12/07/05 8:51 PM &g= t;>>
Those are the static libraries for gtk and glib. You can find= these
files on
/usr/lib directory since linux distros bundled already thes= e packages
and
that if you installed the gtk.

You can create t= hese files by downloading the gtk source at www.gtk.org

On 12/8/05, James Borrone <jborrone@saa.ars.usda.gov> wrote:
>
= > I am trying to determine how to find the following files, they are not
> presently on my machine and ws wondering if they are downloadable.=
>
> libgdk.a
> libglib.a
> libgmodule.a
> li= bgtk.a
>
> I am not a programmer, and have very limited knowled= ge of the
UNIX/LINUX
> environment,, so basically if your mom wold not unde= rstand what you
are
> writing neither would I.  I am jus= t trying to get a program to work,
and
> it needs to find these fi= les.
>
> Thanks
>
> James Borrone
> _________________= ______________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>



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



------=_Part_17764_32144746.1134093852604-- From igorbounov@topazelectro.ru Fri Dec 9 00:01:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D89CC3B11A1 for ; Fri, 9 Dec 2005 00:01:44 -0500 (EST) 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 17598-03 for ; Fri, 9 Dec 2005 00:01:41 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 2B5053B10CA for ; Fri, 9 Dec 2005 00:01:40 -0500 (EST) Received: (qmail 21215 invoked by uid 7801); 9 Dec 2005 04:56:55 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.096261 secs); 09 Dec 2005 04:56:55 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.096261 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 04:56:54 -0000 Message-ID: <43990FC4.1030408@topazelectro.ru> Date: Fri, 09 Dec 2005 08:01:56 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: Subject: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 05:01:45 -0000 Hi, All! I need to implement some kind of movie player in my gtk+ win32 app. Any hints, please? Igor Gorbounov From jean.brefort@normalesup.org Fri Dec 9 02:30:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3942C3B3CA7 for ; Fri, 9 Dec 2005 02:30:17 -0500 (EST) 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 26372-01 for ; Fri, 9 Dec 2005 02:30:15 -0500 (EST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id ABF523B3CA2 for ; Fri, 9 Dec 2005 02:30:14 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id C15134AB4F; Fri, 9 Dec 2005 08:30:13 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: Xyber Blue In-Reply-To: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> References: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 09 Dec 2005 08:26:22 +0100 Message-Id: <1134113183.8441.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 07:30:17 -0000 lib*.a are static libraries which are useful when building a statistically linked executable. They are not used at run time. Many distribs ship them in dev packages. Le vendredi 09 décembre 2005 à 10:04 +0800, Xyber Blue a écrit : > Can you post how you install gtk into your linux??? > > usually, the default is to the /usr/local/lib... > Try this > > export LD_LIBRARY_PATH={path_to_gtk_prefix}/lib > On 12/9/05, James Borrone wrote: > > > > ---------- Forwarded message ---------- > From: "James Borrone" < jborrone@saa.ars.usda.gov> > To: > Date: Thu, 08 Dec 2005 12:32:08 -0500 > Subject: Re: lost files > I tried that. After installing GTK, I tried launching the > program, and > it came up with the same error message, that it could not find > those > files. I looked for the files in the installed GTK program, > and could > not locate them > > james > > >>> Xyber Blue 12/07/05 8:51 PM >>> > Those are the static libraries for gtk and glib. You can find > these > files on > /usr/lib directory since linux distros bundled already these > packages > and > that if you installed the gtk. > > You can create these files by downloading the gtk source at > www.gtk.org > > On 12/8/05, James Borrone wrote: > > > > I am trying to determine how to find the following files, > they are not > > presently on my machine and ws wondering if they are > downloadable. > > > > libgdk.a > > libglib.a > > libgmodule.a > > libgtk.a > > > > I am not a programmer, and have very limited knowledge of > the > UNIX/LINUX > > environment,, so basically if your mom wold not understand > what you > are > > writing neither would I. I am just trying to get a program > to work, > and > > it needs to find these files. > > > > Thanks > > > > James Borrone > > _______________________________________________ > > 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 > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From murrayc@murrayc.com Fri Dec 9 03:13:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 245C73B1908; Fri, 9 Dec 2005 03:13:13 -0500 (EST) 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 29441-05; Fri, 9 Dec 2005 03:13:10 -0500 (EST) Received: from webmail3.sd.dreamhost.com (webmail3.sd.dreamhost.com [64.111.100.15]) by menubar.gnome.org (Postfix) with ESMTP id 13B683B0F4F; Fri, 9 Dec 2005 03:13:10 -0500 (EST) Received: from webmail.murrayc.com (localhost [127.0.0.1]) by webmail3.sd.dreamhost.com (Postfix) with ESMTP id 0CE1C140EB; Fri, 9 Dec 2005 00:13:07 -0800 (PST) Received: from 217.72.192.194 (SquirrelMail authenticated user murrayc@murrayc.com) by webmail.murrayc.com with HTTP; Fri, 9 Dec 2005 09:13:07 +0100 (CET) Message-ID: <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> In-Reply-To: <43990FC4.1030408@topazelectro.ru> References: <43990FC4.1030408@topazelectro.ru> Date: Fri, 9 Dec 2005 09:13:07 +0100 (CET) From: "Murray Cumming" To: "Igor Gorbounov" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 08:13:13 -0000 > Hi, All! > I need to implement some kind of movie player in my gtk+ win32 app. Any > hints, please? > Igor Gorbounov You could see Totem's source code. Really, someone should work on the gstreamer C++ bindings. Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From igorbounov@topazelectro.ru Fri Dec 9 04:13:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6DB73B140B for ; Fri, 9 Dec 2005 04:13:16 -0500 (EST) 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 02016-05 for ; Fri, 9 Dec 2005 04:13:11 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 1783B3B0B51 for ; Fri, 9 Dec 2005 04:13:10 -0500 (EST) Received: (qmail 12632 invoked by uid 7801); 9 Dec 2005 09:08:25 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.090423 secs); 09 Dec 2005 09:08:25 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.090423 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 09:08:24 -0000 Message-ID: <43994AB6.2090705@topazelectro.ru> Date: Fri, 09 Dec 2005 12:13:26 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Murray Cumming References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> In-Reply-To: <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:13:16 -0000 Murray Cumming wrote: > [...] > >You could see Totem's source code. > > Thanks, i've almost forgotten about this player. >Really, someone should work on the gstreamer C++ bindings. > > > I've read recently that Arpad Gereoffy, the author of Mplayer, intended to propose the mplayer's API as a standard for movie player API in Linuxes. I've tried hard but haven't found any glimpse of documentation for mplayer API. But mplayer is a great application. What about totem - it seems to me very weak as compared with mplayer. Perhaps it just cannot implement most of gstreamer's movie features. Igor Gorbounov From igorbounov@topazelectro.ru Fri Dec 9 04:18:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3EA7E3B3CD1 for ; Fri, 9 Dec 2005 04:18:32 -0500 (EST) 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 02433-08 for ; Fri, 9 Dec 2005 04:18:28 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 110543B08EC for ; Fri, 9 Dec 2005 04:18:20 -0500 (EST) Received: (qmail 13431 invoked by uid 7801); 9 Dec 2005 09:13:36 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.087315 secs); 09 Dec 2005 09:13:36 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.087315 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 09:13:34 -0000 Message-ID: <43994BED.7080204@topazelectro.ru> Date: Fri, 09 Dec 2005 12:18:37 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> <43994AB6.2090705@topazelectro.ru> In-Reply-To: <43994AB6.2090705@topazelectro.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:18:32 -0000 Igor Gorbounov wrote: > [...] > What about totem - it seems to me very weak as compared with mplayer. > Perhaps it just > cannot implement most of gstreamer's movie features. > Sorry, it is based on xine. Igor Gorbounov From zboszor@freemail.hu Fri Dec 9 08:22:26 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 360D83B3EEA for ; Fri, 9 Dec 2005 08:22:26 -0500 (EST) 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 23980-10 for ; Fri, 9 Dec 2005 08:22:22 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id DF1D33B3E71 for ; Fri, 9 Dec 2005 08:22:21 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id E3CB5891753 for ; Fri, 9 Dec 2005 15:24:45 +0100 (CET) Message-ID: <43998C8A.3080404@freemail.hu> Date: Fri, 09 Dec 2005 14:54:18 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 13:22:26 -0000 Hi, I need to find out whether an instance of a program is already running and possibly unminimize it or bring it above any other windows, so I can prevent an application started again. Is is possible using GTK-1.2, or GTK-2.x, and how? Thanks in advance, Zoltán Böszörményi From mpsuzuki@hiroshima-u.ac.jp Fri Dec 9 09:37:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 528D23B4B22 for ; Fri, 9 Dec 2005 09:37:14 -0500 (EST) 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 31846-08 for ; Fri, 9 Dec 2005 09:37:12 -0500 (EST) Received: from localhost.localnet (P061198174230.ppp.prin.ne.jp [61.198.174.230]) by menubar.gnome.org (Postfix) with SMTP id B5D173B3F74 for ; Fri, 9 Dec 2005 09:37:08 -0500 (EST) Received: (qmail 11585 invoked by alias); 9 Dec 2005 14:36:30 -0000 Received: (qmail 11573 invoked by uid 7791); 9 Dec 2005 14:36:25 -0000 Received: from unknown (HELO centri) (127.0.0.1) by 0 with SMTP; 9 Dec 2005 14:36:25 -0000 Date: Fri, 9 Dec 2005 23:36:25 +0900 From: mpsuzuki@hiroshima-u.ac.jp To: Zoltan Boszormenyi Message-Id: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> In-Reply-To: <43998C8A.3080404@freemail.hu> References: <43998C8A.3080404@freemail.hu> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.948 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, RCVD_IN_DYNABLOCK, RCVD_IN_SORBS, TW_GT] X-Spam-Score: 0.948 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:37:16 -0000 Hi On Fri, 09 Dec 2005 14:54:18 +0100 Zoltan Boszormenyi wrote: >I need to find out whether an instance of a program is already running >and possibly unminimize it or bring it above any other windows, so >I can prevent an application started again. >Is is possible using GTK-1.2, or GTK-2.x, and how? I'm afraid gtk does not have support for that. I think it's role of task manager for desktop (possibly you want to know whether the program is running on same desktop - not on same computer, and reordering of window is the role of desktop manager, not GUI toolkit like GTK). Thus, there might be something helpful in GNOME. However, I don't know you want to use GNOME or anything else. Regards, mpsuzuki From ygupta@gmail.com Fri Dec 9 09:52:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 199BA3B4000 for ; Fri, 9 Dec 2005 09:52:28 -0500 (EST) 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 00977-05 for ; Fri, 9 Dec 2005 09:52:26 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by menubar.gnome.org (Postfix) with ESMTP id 21F803B3FC8 for ; Fri, 9 Dec 2005 09:52:26 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 58so1504587wri for ; Fri, 09 Dec 2005 06:52:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RfetHiOKs2vHO9JrkmLgkATokfbWMNcmssD9dwHDIKY0V8gA3buTs/4I4+q7G+U5AY7HhIyQgWiTxjRpw5m+dT6w/iOlI50MKgS/4FqBJyVFTLG+qAnxCa+bg7ks0d1YIPpKZAbATkQ1poiUdY7nAvxz46u+Rvl9lhkj8QECK+U= Received: by 10.64.184.10 with SMTP id h10mr3936472qbf; Fri, 09 Dec 2005 06:52:25 -0800 (PST) Received: by 10.64.10.16 with HTTP; Fri, 9 Dec 2005 06:52:25 -0800 (PST) Message-ID: Date: Fri, 9 Dec 2005 20:22:25 +0530 From: Yash Kumar Gupta To: Zoltan Boszormenyi In-Reply-To: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5074_28041844.1134139945341" References: <43998C8A.3080404@freemail.hu> <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:52:28 -0000 ------=_Part_5074_28041844.1134139945341 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is possible using the Xlibrary , that is to say, we need to get the registered handle of any application (if already running) from the X server and if it is not available, we need to register the same so that future instances can find it out by querying X server. Most of the GUI applications on linux use this mechanism to get the already running instance of the same application so that any future instance can connect to it and present the window again to the user. -Yash On 12/9/05, mpsuzuki@hiroshima-u.ac.jp wrote: > > Hi > > On Fri, 09 Dec 2005 14:54:18 +0100 > Zoltan Boszormenyi wrote: > >I need to find out whether an instance of a program is already running > >and possibly unminimize it or bring it above any other windows, so > >I can prevent an application started again. > >Is is possible using GTK-1.2, or GTK-2.x, and how? > > I'm afraid gtk does not have support for that. > I think it's role of task manager for desktop > (possibly you want to know whether the program > is running on same desktop - not on same computer, > and reordering of window is the role of desktop > manager, not GUI toolkit like GTK). > Thus, there might be something helpful in GNOME. > However, I don't know you want to use GNOME or > anything else. > > Regards, > mpsuzuki > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ------=_Part_5074_28041844.1134139945341 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
This is possible using the Xlibrary , that is to say, we need to get t= he registered handle of any application (if already running) from the X ser= ver and if it is not available, we need to register the same so that future= instances can find it out by querying X server.
Most of the GUI applications on linux use this mechanism to get the al= ready running instance of the same application so that any future instance = can connect to it and present the window again to the user.
 
-Yash

 
On 12/9/05, = mpsuzuki@hiroshima-u.ac.jp <mpsuzuki@hiroshima-= u.ac.jp > wrote:
Hi

On Fri, 09 Dec 2005 14= :54:18 +0100
Zoltan Boszormenyi < zboszor@freemail.hu> wrote:
>I need to find out whether an ins= tance of a program is already running
>and possibly unminimize it or = bring it above any other windows, so
>I can prevent an application st= arted again.
>Is is possible using GTK-1.2, or GTK-2.x, and how?

I'm afrai= d gtk does not have support for that.
I think it's role of task manager = for desktop
(possibly you want to know whether the program
is running= on same desktop - not on same computer,
and reordering of window is the role of desktop
manager, not GUI too= lkit like GTK).
Thus, there might be something helpful in GNOME.
Howe= ver, I don't know you want to use GNOME or
anything else.

Regards= ,
mpsuzuki
_______________________________________________
gtk-list= mailing list
gtk-list@gnome.org
http://ma= il.gnome.org/mailman/listinfo/gtk-list

------=_Part_5074_28041844.1134139945341-- From zboszor@freemail.hu Fri Dec 9 10:21:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1036D3B4BDA for ; Fri, 9 Dec 2005 10:21:15 -0500 (EST) 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 03556-10 for ; Fri, 9 Dec 2005 10:21:13 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id 8A4AA3B3FE8 for ; Fri, 9 Dec 2005 10:21:12 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id 439F78913D8; Fri, 9 Dec 2005 17:23:45 +0100 (CET) Message-ID: <4399A86B.6020101@freemail.hu> Date: Fri, 09 Dec 2005 16:53:15 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: mpsuzuki@hiroshima-u.ac.jp References: <43998C8A.3080404@freemail.hu> <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> In-Reply-To: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 15:21:15 -0000 Hi, mpsuzuki@hiroshima-u.ac.jp írta: >Hi > >On Fri, 09 Dec 2005 14:54:18 +0100 >Zoltan Boszormenyi wrote: > > >>I need to find out whether an instance of a program is already running >>and possibly unminimize it or bring it above any other windows, so >>I can prevent an application started again. >>Is is possible using GTK-1.2, or GTK-2.x, and how? >> >> > >I'm afraid gtk does not have support for that. >I think it's role of task manager for desktop >(possibly you want to know whether the program > is running on same desktop - not on same computer, > and reordering of window is the role of desktop > manager, not GUI toolkit like GTK). > > Yes, I would like to know whether a program is started on the same X display. >Thus, there might be something helpful in GNOME. >However, I don't know you want to use GNOME or >anything else. > > And yes again, the program I would like to modify uses the gnome 1.x libraries and was created with Glade 0.6.x. The program's main window is a GnomeApp, and there are two properties (WM Class and WM Name) that I can set in Glade. I guess these could be used to find out whether a window is registered (still running) on the X display I try to run the second instance. The question is how? Best regards, Zoltán Böszörményi From yinglcs@aim.com Fri Dec 9 12:05:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CAD243B4D37 for ; Fri, 9 Dec 2005 12:05:17 -0500 (EST) 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 13471-04 for ; Fri, 9 Dec 2005 12:05:15 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id B82BE3B4D51 for ; Fri, 9 Dec 2005 12:02:26 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.111.58452867 (57870) for ; Fri, 9 Dec 2005 12:02:22 -0500 (EST) Received: from MBLK-M17 (mblk-m17.mblk.aol.com [64.12.136.50]) by air-ia01.mail.aol.com (v108.32) with ESMTP id MAILINIA14-e20e4399b89b16f; Fri, 09 Dec 2005 12:02:22 -0500 Date: Fri, 09 Dec 2005 12:02:19 -0500 From: yinglcs@aim.com Message-Id: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by MBLK-M17.sysops.aol.com (64.12.136.50) with HTTP (WebMailUI); Fri, 09 Dec 2005 12:02:19 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 64.12.136.50 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_01, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -0.659 X-Spam-Level: Subject: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:05:18 -0000 Hi, Can someone please tell me how t reparent a widget from a GdkWindow to a GdkDrawable? Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mleisher@crl.NMSU.Edu Fri Dec 9 12:07:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 832113B4D6C for ; Fri, 9 Dec 2005 12:07:59 -0500 (EST) 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 13917-03 for ; Fri, 9 Dec 2005 12:07:57 -0500 (EST) Received: from crl.NMSU.Edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id 39E333B4DA2 for ; Fri, 9 Dec 2005 12:06:30 -0500 (EST) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.NMSU.Edu (8.13.4/8.13.4) with ESMTP id jB9H67Y4027972; Fri, 9 Dec 2005 10:06:08 -0700 (MST) Message-ID: <4399BA00.9080405@crl.nmsu.edu> Date: Fri, 09 Dec 2005 10:08:16 -0700 From: Mark Leisher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zoltan Boszormenyi References: <43998C8A.3080404@freemail.hu> In-Reply-To: <43998C8A.3080404@freemail.hu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1206/Thu Dec 8 12:56:45 2005 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:07:59 -0000 Zoltan Boszormenyi wrote: > Hi, > > I need to find out whether an instance of a program is already running > and possibly unminimize it or bring it above any other windows, so > I can prevent an application started again. > Is is possible using GTK-1.2, or GTK-2.x, and how? > The following procedure is an old X11 trick. It will not work on Windows. 0. Add code to your program to handle GDK_SELECTION_CLEAR events. See 5 below for what this code should do. 1. At startup of the program, create an atom with gdk_intern_atom(). 2. Use gdk_selection_owner_get() on the atom. 3. If the selection owner is NULL, then call gdk_selection_owner_set() with the time_ parameter set to GDK_CURRENT_TIME and the send_event parameter set to FALSE. 4. Else, there is a valid owner of the atom, so the program is already running. Assert ownership of the selection with gdk_selection_owner_set() again. This causes the running application to lose ownership and call the code to handle GDK_SELECTION_CLEAR events. Then exit. 5. The code to handle GDK_SELECTION_CLEAR events should do 2 things: A. If minimized, unminimize. B. Assert ownership of the selection again. This doesn't work on Windows because the GDK selection API apparently only works within applications and not globally like they do in X11. -- --------------------------------------------------------------------------- Mark Leisher Computing Research Lab A sneer is the weapon of the weak. New Mexico State University -- James Russell Lowell (1819-1891) Box 30001, MSC 3CRL Las Cruces, NM 88003 From tristan.van.berkom@gmail.com Fri Dec 9 12:23:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30D1A3B4CD1 for ; Fri, 9 Dec 2005 12:23:21 -0500 (EST) 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 15323-09 for ; Fri, 9 Dec 2005 12:23:16 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by menubar.gnome.org (Postfix) with ESMTP id 8728A3B1EF4 for ; Fri, 9 Dec 2005 12:23:11 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 69so1309032wri for ; Fri, 09 Dec 2005 09:23:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=oNvEpTDc/HribKaRHC28vvb2UQlwyodLIMgrB5nG6OIjptMRb8H/ckOoxFSRyJd3eLycOHdXFhy1/1O5IUMq3EGOuKXt/XWYyLXGLSU/KWIkFw7mKhEnIQ00Oc6vyxJKKOdu0yR7IMZBHbSvAE76FB5JokufLCgf6EHnjE809Y0= Received: by 10.64.184.10 with SMTP id h10mr4087608qbf; Fri, 09 Dec 2005 09:23:10 -0800 (PST) Received: from ?70.48.173.143? ( [70.48.173.143]) by mx.gmail.com with ESMTP id m3sm164948qbe.2005.12.09.09.23.02; Fri, 09 Dec 2005 09:23:05 -0800 (PST) Message-ID: <4399BEBD.6040009@gnome.org> Date: Fri, 09 Dec 2005 12:28:29 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> In-Reply-To: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:23:22 -0000 yinglcs@aim.com wrote: > Hi, > > Can someone please tell me how t reparent a widget from a GdkWindow to a > GdkDrawable? You cant, a GdkWindow & GdkDrawable can not be parents of any objects since they are not GtkContainers. What exactly do you want to do ? Cheers, -Tristan From flaviothunder@terra.com.br Fri Dec 9 12:29:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59ACB3B070F for ; Fri, 9 Dec 2005 12:29:11 -0500 (EST) 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 16167-09 for ; Fri, 9 Dec 2005 12:29:09 -0500 (EST) Received: from loncoche.terra.com.br (loncoche.terra.com.br [200.176.10.196]) by menubar.gnome.org (Postfix) with ESMTP id A84BA3B0E11 for ; Fri, 9 Dec 2005 12:29:08 -0500 (EST) Received: from mubende.terra.com.br (mubende.terra.com.br [200.176.10.8]) by loncoche.terra.com.br (Postfix) with ESMTP id 3430AD503E9; Fri, 9 Dec 2005 15:29:07 -0200 (BRST) X-Terra-Karma: -2% X-Terra-Hash: 6bb09e581ba1b1ffe7d6b79c61089ecf Received-SPF: pass (mubende.terra.com.br: domain of terra.com.br designates 200.176.10.8 as permitted sender) client-ip=200.176.10.8; envelope-from=flaviothunder@terra.com.br; helo=[192.168.1.133]; Received: from [192.168.1.133] (unknown [200.196.242.80]) (authenticated user flaviothunder) by mubende.terra.com.br (Postfix) with ESMTP id D531B2480FA; Fri, 9 Dec 2005 15:29:06 -0200 (BRST) Message-ID: <4399BEE1.7060206@terra.com.br> Date: Fri, 09 Dec 2005 15:29:05 -0200 From: =?ISO-8859-1?Q?Fl=E1vio_Alberto_Lopes_Soares?= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> In-Reply-To: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:29:11 -0000 In GTK FAQ theres an explanation about this look at : http://www.gtk.org/faq/#AEN636 Good luck Flavio Alberto Lopes Soares flaviothunder@terra.com.br yinglcs@aim.com escreveu: > Hi, > > Can someone please tell me how t reparent a widget from a GdkWindow to > a GdkDrawable? > > Thank you. > ________________________________________________________________________ > Check Out the new free AIM(R) Mail -- 2 GB of storage and > industry-leading spam and email virus protection. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From yinglcs@aim.com Fri Dec 9 16:59:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79B8A3B0F4E for ; Fri, 9 Dec 2005 16:59:23 -0500 (EST) 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 05890-10 for ; Fri, 9 Dec 2005 16:59:17 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id 730953B0F6C for ; Fri, 9 Dec 2005 16:59:16 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.bf.65e569ed (57873) for ; Fri, 9 Dec 2005 16:59:09 -0500 (EST) Received: from mblk-r33 (mblk-r33.mblk.aol.com [152.163.179.23]) by air-ia02.mx.aol.com (v108.32) with ESMTP id MAILINIA23-e2114399fe2dba; Fri, 09 Dec 2005 16:59:09 -0500 Date: Fri, 09 Dec 2005 16:59:09 -0500 From: yinglcs@aim.com Message-Id: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by mblk-r33.sysops.aol.com (152.163.179.23) with HTTP (WebMailUI); Fri, 09 Dec 2005 16:59:09 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 152.163.179.23 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.123 tagged_above=-999 required=2 tests=[BAYES_00, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -1.123 X-Spam-Level: Subject: How can I save the pixel of a GdkWindow/GdkWidget to a file? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 21:59:23 -0000 Hi, Can someone please tell me can I save the pixel of a GdkWindow/GdkWidget to a file? The only think I find is saving from a GdkDrawable (the 2 functions below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow? GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL, gd, NULL, 0, 0, 0, 0, w, h); gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL); Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mclasen@redhat.com Fri Dec 9 19:09:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 18D8A3B0836; Fri, 9 Dec 2005 19:09:10 -0500 (EST) 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 16308-03; Fri, 9 Dec 2005 19:09:08 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 617263B095C; Fri, 9 Dec 2005 19:09:07 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBA097AS009625; Fri, 9 Dec 2005 19:09:07 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA091V31551; Fri, 9 Dec 2005 19:09:01 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA091428721; Fri, 9 Dec 2005 19:09:01 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Dec 2005 19:09:00 -0500 Message-Id: <1134173340.3214.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_XD] X-Spam-Score: -1.834 X-Spam-Level: Cc: Subject: GTK+ 2.8.9 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 00:09:13 -0000 GTK+ 2.8.9 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.9.tar.bz2 md5sum: e7a94132ae6353106c80cd4a1106a368 gtk+-2.8.9.tar.gz md5sum: 3f89f4f32d60d39e8d1d0fde241d629c This is a bugfix release in the 2.8.x series. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.8 to GTK+ 2.8.9 ================================================= * Bugs fixed: 321560 File chooser filter behaves weird [Bogdan Nicula, Federico Mena Quintero] 317999 2.8.4 to 2.8.6: sound-juicer crash, fileselector assertions [Sebastian Bacher] 322569 On unsetting the Model, GtkTreeView does not clear it's associated TreeSelection [Milosz Derezynski] 322998 Crash on selecting a file of null mime-type [Sadrul Habib Chowdhury] 323024 gtktoolbutton leaks a pixbuf [Paolo Borelli] 323209 GdkEvent leaked in gtktreeview.c / gtk_tree_view_key_press [Crispin Flowerday] 323073 Typo in trap_activate_cb() [Sadrul Habib Chowdhury] 323045 gtkcalendar.c: The identifier is already declared. [Kazuki Iwamoto] 323386 gtk_menu_attach_to_widget() does not take NULL detacher [Jorn Baayen] 307196 Unhinted fonts are measured incorrectly and drawing problems occur as a result [Alex Jones, Behdad Esfahbod] 316310 unwanted scrolling in recent gtk [Paolo Borelli] 322019 Toolbars without icons are invisible in icon-only mode [Ross Burton] 323077 Search-entry in the TreeView not working properly [Sadrul Habib Chowdhury] 323475 gtktoolbutton.c:562: warning: 'image' is used uninitialized in this function [Ross Burton] 323577 reference count of textbuffer increases with each paste 323629 gtk_selection_data_get_uris leaks memory [Markku Vire] * Other changes - Remove GMemChunk from public header files to support building against GLib 2.10 [Matthias Clasen] - Report errors in option parsing [Matthias] - Merge upstream xdgmime changes to handle duplicate glob patterns [Matthias] Matthias Clasen From mclasen@redhat.com Fri Dec 9 19:17:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82BFC3B11D0; Fri, 9 Dec 2005 19:17:09 -0500 (EST) 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 17382-03; Fri, 9 Dec 2005 19:17:06 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 10E473B102C; Fri, 9 Dec 2005 19:17:04 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBA0H3hV011399; Fri, 9 Dec 2005 19:17:03 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA0H3V00433; Fri, 9 Dec 2005 19:17:03 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA0H3429253; Fri, 9 Dec 2005 19:17:03 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Dec 2005 19:17:02 -0500 Message-Id: <1134173822.3214.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: GLib 2.9.1 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 00:17:09 -0000 GLib 2.9.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.9/ glib-2.9.1.tar.bz2 md5sum: f4817f7e0546f8d4b37c20b6ceca69ad glib-2.9.1.tar.gz md5sum: 2f214411d591a1ba910fb3acc356903c This is the second development release leading up to GLib 2.10. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.8. If you have problems, you'll need to reinstall GLib 2.8.4. * GLib 2.10 will be source and binary compatible with the GLib 2.8.x series; however, the new API additions in GLib 2.9.1 are not yet finalized, so there may be incompatibities between this release and the final 2.10 release. * Remaining issues for GLib 2.10 can be found with the following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=glib&target_milestone=2.10 +API+Freeze&&target_milestone=2.10 +Freeze&bug_status=NEW&bug_status=UNCONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.9.0 to GLib 2.9.1 ================================================= * Memory management - The slice allocator is implemented [Tim Janik] - g_slice_free_chain() has been renamed to g_slice_free_chain_with_offset() [Tim, Behdad Esfahbod] - Mem chunks are deprecated [Matthias Clasen] * Data structures - Hash tables are refcounted, and have a boxed type [Tim] * Thread support - Support for Solaris threads has been removed [Sebastian Wilhelmi, Andrew Paprocki] - g_async_queue_sort(), g_async_queue_push_sorted() have been added to allow GAsyncQueue to be used as a priority queue, together with the corresponding _unlocked variants [Martyn Russell] * GObject: - The concept of a floating initial reference has been moved from GtkObject to GObject [Tim] * Win32 changes: - Make g_rename() replace existing files [Tor Lillqvist] * Misc new API: - G_GUINT64_CONSTANT macro to define guint64 constants [Andrew Paprocki] - G_GNUC_WARN_UNUSED_RESULT macro to instruct the compiler to emit a warning if the value returned by a function is ignored. [Arjan van de Ven, Alex Larsson] - GList and GSList now have sort functions which take an extra user data argument [Martyn Russell] - g_param_spec_ref_sink() has been added for consistency [Tim] * $LOGNAME is respected when determining user data. [Laszlo Peter] * Other changes and bug fixes [Tim, Matthias, Behdad, Christian Persch, Benedikt Meurer, Andrew Paprocki, Kazuki Iwamoto, Alexis S. L. Carvalho, Stanislav Brabec, Andreas Schwab, Kalle Vahlman] * Documentation - Deprecation warnings carry version information [Matthias] - The slice allocator has been documented [Matthias, Tim] - Other improvements [Morten Welinder] Matthias Clasen From aolexiy@gmail.com Sat Dec 10 05:45:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 594A43B131E for ; Sat, 10 Dec 2005 05:45:54 -0500 (EST) 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 26544-04 for ; Sat, 10 Dec 2005 05:45:52 -0500 (EST) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.203]) by menubar.gnome.org (Postfix) with ESMTP id 86BC43B0937 for ; Sat, 10 Dec 2005 05:45:51 -0500 (EST) Received: by uproxy.gmail.com with SMTP id a2so75503ugf for ; Sat, 10 Dec 2005 02:45:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ucCXue9gyoWUB9LItJYUSjcc1oDkcAsZpZIbHR6Ui17h9/g1S5bR7e4uBMpIQYMDdMRcaL8aOBJmVNCvburDnVjKhRw/CJJh2R5EOYV5C3N8T/xGIf0VOpMKPKRI1DfkUc9dcs9B90JgrJeKhv/53Qs2mbz8lbbidGQ9O4dkDIU= Received: by 10.66.184.5 with SMTP id h5mr271928ugf; Sat, 10 Dec 2005 02:45:50 -0800 (PST) Received: from ?82.207.125.179? ( [82.207.125.179]) by mx.gmail.com with ESMTP id j3sm1046882ugd.2005.12.10.02.45.49; Sat, 10 Dec 2005 02:45:50 -0800 (PST) Message-ID: <439AB2D9.5040301@gmail.com> Date: Sat, 10 Dec 2005 12:50:01 +0200 From: Olexiy Avramchenko User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> In-Reply-To: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_XI] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: How can I save the pixel of a GdkWindow/GdkWidget to a file? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 10:45:54 -0000 yinglcs@aim.com wrote: > Hi, > > Can someone please tell me can I save the pixel of a > GdkWindow/GdkWidget to a file? > > The only think I find is saving from a GdkDrawable (the 2 functions > below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow? There's no GdkWidget. GtkWidget has a pointer to corresponding drawable: GTK_WIDGET(widget)->window It can be NULL, however. > GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL, > gd, NULL, 0, 0, 0, 0, w, h); > > gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL); I'd do the following: gboolean save_pixels (GtkWidget *widget, const gchar *fname) { GdkPixbuf *pixbuf; g_return_val_if_fail (GTK_IS_WIDGET (widget) && fname != NULL, FALSE); if (widget->window != NULL) { gboolean res; /* it's typical for the widget to have no its own window, so you must specify the region it covers in the parent's window such an information is stored in GtkWidget::allocation */ pixbuf = gdk_pixbuf_get_from_drawable ( NULL, widget->window, NULL, widget->allocation.x, widget->allocation.y, 0, 0, widget->allocation.width, widget->allocation.height, ); g_return_val_if_fail (pixbuf != NULL, FALSE); res = gdk_pixbuf_save (pixbuf, fname, "png", NULL); g_object_unref (pixbuf); return res; } return FALSE; } PS: I've typed the code just in mail client, some typos are possible ;) Olexiy From afeiguin@kitp.ucsb.edu Thu Dec 8 18:39:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45E403B06D4; Thu, 8 Dec 2005 18:39:55 -0500 (EST) 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 29286-01; Thu, 8 Dec 2005 18:39:52 -0500 (EST) Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by menubar.gnome.org (Postfix) with ESMTP id 0356A3B1834; Thu, 8 Dec 2005 18:39:52 -0500 (EST) Received: from [192.168.2.2] (really [68.227.87.239]) by fed1rmmtao02.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051208233709.RKKL17006.fed1rmmtao02.cox.net@[192.168.2.2]>; Thu, 8 Dec 2005 18:37:09 -0500 Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.13.13/195]); Thu, 08 Dec 2005 15:38:17 -0800 Message-ID: <4398C3E8.5090806@kitp.ucsb.edu> Date: Thu, 08 Dec 2005 15:38:16 -0800 From: Adrian Feiguin User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en To: Stefano Esposito References: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> In-Reply-To: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Dec 2005 14:07:34 -0500 Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 23:39:55 -0000 Check out gtksheet. It's part of gtkextra : http://gtkextra.sourceforge.net Enjoy, Stefano Esposito wrote: >Hi all, > >in my app i need to implement a spreedsheet-like widget (i.e. a GtkTreeView with a GtkListStore which shows a number of empty lines to be filled by the user). Any hints? > > > >------------------------------------------------------------------------ > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/195 - Release Date: 12/8/2005 From murrayc@murrayc.com Sat Dec 10 15:13:57 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1B5183B2CD8; Sat, 10 Dec 2005 15:13:57 -0500 (EST) 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 09070-04; Sat, 10 Dec 2005 15:13:54 -0500 (EST) Received: from jareth.dreamhost.com (jareth.dreamhost.com [66.33.198.201]) by menubar.gnome.org (Postfix) with ESMTP id 037BB3B1EAA; Sat, 10 Dec 2005 15:13:54 -0500 (EST) Received: from [192.168.1.101] (p5498DE13.dip.t-dialin.net [84.152.222.19]) by jareth.dreamhost.com (Postfix) with ESMTP id 3FDDA78090; Sat, 10 Dec 2005 12:12:06 -0800 (PST) From: Murray Cumming To: Igor Gorbounov In-Reply-To: <43994BED.7080204@topazelectro.ru> References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> <43994AB6.2090705@topazelectro.ru> <43994BED.7080204@topazelectro.ru> Content-Type: text/plain Date: Sat, 10 Dec 2005 21:11:49 +0100 Message-Id: <1134245509.8150.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 20:13:57 -0000 On Fri, 2005-12-09 at 12:18 +0300, Igor Gorbounov wrote: > Igor Gorbounov wrote: > > > [...] > > What about totem - it seems to me very weak as compared with mplayer. > > Perhaps it just > > cannot implement most of gstreamer's movie features. > > > Sorry, it is based on xine. No, it uses gstreamer by default. For questions about gstreamer, there is a gstreamer mailing list. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From raphtee@gmail.com Sat Dec 10 20:43:30 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBE353B525C for ; Sat, 10 Dec 2005 20:43:29 -0500 (EST) 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 01916-01 for ; Sat, 10 Dec 2005 20:43:27 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id F09373B2EAE for ; Sat, 10 Dec 2005 20:43:26 -0500 (EST) Received: by xproxy.gmail.com with SMTP id t5so826696wxc for ; Sat, 10 Dec 2005 17:43:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=QHE9mfh9JyN3bJ8nvQwRg2YafbtZDNN6imZU7uwXy5DpBg9Kx6pv982ik9Uw01Lkw8AQz+NE90rzxpqbTAjaq9XQhw4wcL9CmW3spsbfeR/ynv5HlJqOwQpEAh25i/+x30hfAb9am2sipKe1sHxm3sAHFhwuGNpCRn1ALQUAP44= Received: by 10.70.100.17 with SMTP id x17mr6527762wxb; Sat, 10 Dec 2005 17:43:26 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id i39sm6290765wxd.2005.12.10.17.43.25; Sat, 10 Dec 2005 17:43:25 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Dec 2005 20:43:21 -0500 Message-Id: <1134265401.3160.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: GIOChannel issues X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 01:43:30 -0000 Hello, I am trying to use GIOChannel in order to use sockets in a simple way (I am trying to get notification on events like read and disconnect). Anyway, here is the code that creates the GIOCHannel void on_ListenButton_clicked (GtkButton *button, gpointer user_data) { GtkWidget *text = lookup_widget(GTK_WIDGET(button), "StatusText"); // create the listening socket int sockfd, new_fd; struct sockaddr_in my_addr; struct sockaddr_in their_addr; int sin_size; if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); exit(1); } my_addr.sin_family = AF_INET; my_addr.sin_port = htons(1352); my_addr.sin_addr.s_addr = INADDR_ANY; bzero(&(my_addr.sin_zero), 8); if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) == -1) { perror("bind"); exit(1); } if (listen(sockfd, 5) == -1) { perror("listen"); exit(1); } gtk_entry_set_text(GTK_ENTRY(text), "Listening"); sin_size = sizeof(struct sockaddr_in); if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size)) == -1) { perror("accept"); } // we got a socket so set text box gtk_entry_set_text(GTK_ENTRY(text), "Connection accepted"); // now create GIOChannel from connection GIOChannel *iochannel = g_io_channel_unix_new(new_fd); // now add to main event loop GtkWidget *window = lookup_widget(GTK_WIDGET(button), "MainWindow"); g_io_add_watch(iochannel, G_IO_IN, (GIOFunc *) &ReceiveData, (gpointer) window); // now close the listener close(sockfd); } The function g_io_watch() ties to the G_IO_IN (there is data to read on the socket) event to the function ReceiveData that is defined as gboolean ReceiveData(GIOChannel *source, GIOCondition condition, gpointer data) { gchar buf[500]; int bytes_read; GtkWidget *text = NULL; GQuark quark; GError *error = NULL; gint sd; g_print("data received\n"); text = lookup_widget(GTK_WIDGET(data), "StatusText"); gtk_entry_set_text(GTK_ENTRY(text), "received data"); sd = g_io_channel_unix_get_fd(source); bytes_read = recv(sd, buf, 500, 0); if(bytes_read == -1) { g_print("error\n"); } else { buf[bytes_read] = '\0'; g_print("buf = %s\n", buf); text = lookup_widget(GTK_WIDGET(data), "ReceivedText"); gtk_entry_set_text(GTK_ENTRY(text), buf); } return TRUE; } The problem is this. If the client closes the connection then I get a flood of empty buffers and the ReceiveData() function is repeatedly called. What could cause this weird behavior? Travis Miller From zboszor@freemail.hu Sun Dec 11 12:05:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 653013B168F for ; Sun, 11 Dec 2005 12:05:55 -0500 (EST) 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 14045-06 for ; Sun, 11 Dec 2005 12:05:52 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id 748F33B12B8 for ; Sun, 11 Dec 2005 12:05:33 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id C66BA8918B6; Sun, 11 Dec 2005 19:08:12 +0100 (CET) Message-ID: <439C63EF.2050402@freemail.hu> Date: Sun, 11 Dec 2005 18:37:51 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: Mark Leisher References: <43998C8A.3080404@freemail.hu> <4399BA00.9080405@crl.nmsu.edu> In-Reply-To: <4399BA00.9080405@crl.nmsu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 17:05:55 -0000 Thanks for the answer, although I still have problems with this. Mark Leisher írta: > Zoltan Boszormenyi wrote: > >> Hi, >> >> I need to find out whether an instance of a program is already running >> and possibly unminimize it or bring it above any other windows, so >> I can prevent an application started again. >> Is is possible using GTK-1.2, or GTK-2.x, and how? >> > > The following procedure is an old X11 trick. It will not work on Windows. > > 0. Add code to your program to handle GDK_SELECTION_CLEAR events. See > 5 below for what this code should do. > > 1. At startup of the program, create an atom with gdk_intern_atom(). > > 2. Use gdk_selection_owner_get() on the atom. > > 3. If the selection owner is NULL, then call gdk_selection_owner_set() > with the time_ parameter set to GDK_CURRENT_TIME and the send_event > parameter set to FALSE. My problem is, the owner this call returns is always NULL. This has something to do with the fact that the actual owner is a window in another process. There is this call: GdkWindow *gdk_window_foreign_new(GdkNativeWindow anid) This GdkNativeWindow is a native X Window ID or HWND on Windows. I seem to have to call this, wrap a foreign window into a GdkWindow before gdk_selection_owner_set() can give me sensible return value. But how can I tell the XID of a window created from another process? Sorry, I don't know too much about low level Xlib programming... > 4. Else, there is a valid owner of the atom, so the program is already > running. Assert ownership of the selection with > gdk_selection_owner_set() again. This causes the running application > to lose ownership and call the code to handle GDK_SELECTION_CLEAR > events. Then exit. > > 5. The code to handle GDK_SELECTION_CLEAR events should do 2 things: > A. If minimized, unminimize. > B. Assert ownership of the selection again. > > This doesn't work on Windows because the GDK selection API apparently > only works within applications and not globally like they do in X11. From chris@cvine.freeserve.co.uk Sun Dec 11 14:25:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AF6043B1505 for ; Sun, 11 Dec 2005 14:25:40 -0500 (EST) 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 29280-01 for ; Sun, 11 Dec 2005 14:25:38 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id 9DE183B0A28 for ; Sun, 11 Dec 2005 14:25:37 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3207.me.freeserve.com (SMTP Server) with ESMTP id 5F36B9000088; Sun, 11 Dec 2005 20:25:34 +0100 (CET) Received: from boulder.homenet (user-2208.lns2-c7.dsl.pol.co.uk [84.65.168.160]) by mwinf3207.me.freeserve.com (SMTP Server) with ESMTP id 21D759000087; Sun, 11 Dec 2005 20:25:34 +0100 (CET) X-ME-UUID: 20051211192534138.21D759000087@mwinf3207.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id jBBJPSSY001382; Sun, 11 Dec 2005 19:25:28 GMT From: Chris Vine To: gtk-list@gnome.org, raphtee@gmail.com Date: Sun, 11 Dec 2005 19:25:28 +0000 User-Agent: KMail/1.9 References: <1134265401.3160.7.camel@localhost.localdomain> In-Reply-To: <1134265401.3160.7.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512111925.28518.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: Re: GIOChannel issues X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 19:25:40 -0000 On Sunday 11 December 2005 01:43, Travis Miller wrote: > Hello, > > I am trying to use GIOChannel in order to use sockets in a simple way (I > am trying to get notification on events like read and disconnect). > Anyway, here is the code that creates the GIOCHannel > > void > on_ListenButton_clicked (GtkButton *button, > gpointer user_data) > { > GtkWidget *text = lookup_widget(GTK_WIDGET(button), > "StatusText"); > > // create the listening socket > int sockfd, new_fd; > struct sockaddr_in my_addr; > struct sockaddr_in their_addr; > int sin_size; > > if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { > perror("socket"); > exit(1); > } > > my_addr.sin_family = AF_INET; > my_addr.sin_port = htons(1352); > my_addr.sin_addr.s_addr = INADDR_ANY; > bzero(&(my_addr.sin_zero), 8); > > if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct > sockaddr)) == -1) { > perror("bind"); > exit(1); > } > > > if (listen(sockfd, 5) == -1) { > perror("listen"); > exit(1); > } > gtk_entry_set_text(GTK_ENTRY(text), "Listening"); > > sin_size = sizeof(struct sockaddr_in); > if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, > &sin_size)) == -1) { > perror("accept"); > } > > // we got a socket so set text box > gtk_entry_set_text(GTK_ENTRY(text), "Connection accepted"); > > // now create GIOChannel from connection > GIOChannel *iochannel = g_io_channel_unix_new(new_fd); > > // now add to main event loop > GtkWidget *window = lookup_widget(GTK_WIDGET(button), > "MainWindow"); > g_io_add_watch(iochannel, G_IO_IN, (GIOFunc *) &ReceiveData, > (gpointer) window); > > > // now close the listener > close(sockfd); > > } > > The function g_io_watch() ties to the G_IO_IN (there is data to read on > the socket) event to the function ReceiveData that is defined as > > gboolean ReceiveData(GIOChannel *source, GIOCondition condition, > gpointer data) > { > gchar buf[500]; > int bytes_read; > GtkWidget *text = NULL; > GQuark quark; > GError *error = NULL; > gint sd; > > > > g_print("data received\n"); > text = lookup_widget(GTK_WIDGET(data), "StatusText"); > gtk_entry_set_text(GTK_ENTRY(text), "received data"); > > sd = g_io_channel_unix_get_fd(source); > > bytes_read = recv(sd, buf, 500, 0); > > if(bytes_read == -1) { > g_print("error\n"); > } > else { > buf[bytes_read] = '\0'; > g_print("buf = %s\n", buf); > text = lookup_widget(GTK_WIDGET(data), "ReceivedText"); > gtk_entry_set_text(GTK_ENTRY(text), buf); > } > > return TRUE; > } > > The problem is this. If the client closes the connection then I get a > flood of empty buffers and the ReceiveData() function is repeatedly > called. What could cause this weird behavior? I cannot see where you disconnect the callback. The easiest way to do that is to call g_io_channel_unref() on the iochannel pointer immediately after you have called g_io_add_watch() on it. g_io_channel_unix_new() returns a GIOChannel object with a reference count of one. g_io_add_watch() adds a further reference count - if you decrement it by 1, the callback will be disconnected and the relevant GSource object removed as soon either the callback returns FALSE or you call g_source_remove() on the return value of g_io_add_watch() - so detect the closing of the socket by the peer in the callback (read()/recv() returning 0 and/or the G_IO_HUP condition arising in your 'condition' variable) and return FALSE upon that occurring, or store the return value of g_io_add_watch() and call g_source_remove() on it. For the result you mention to occur, it appears therefore that specifying the G_IO_IN condition flag in g_io_add_watch() will cause the callback to be called even if the the socket is in error condition or the socket is closed, without actually specifying the G_IO_HUP or G_IO_ERR flags. Chris From wtallman@olypen.com Sun Dec 11 19:41:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8710F3B27D3 for ; Sun, 11 Dec 2005 19:41:22 -0500 (EST) 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 23131-04 for ; Sun, 11 Dec 2005 19:41:19 -0500 (EST) Received: from olypen1.olypen.com (olypen1.olypen.com [208.200.248.250]) by menubar.gnome.org (Postfix) with ESMTP id 9E7163B2625 for ; Sun, 11 Dec 2005 19:41:12 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen1.olypen.com with esmtp() (Exim 4.43) id 1Elbk8-0000QD-JM for gtk-list@gnome.org; Sun, 11 Dec 2005 16:40:40 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBC0ejha031930 for gtk-list@gnome.org; Sun, 11 Dec 2005 16:40:45 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Sun, 11 Dec 2005 16:40:45 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051212004045.GA31796@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Gtk marshallers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 00:41:22 -0000 This is a plea for someone to do a bit of mentoring. Here's the situation: I've got a fairly good-sized C application that I've developed for a specific purpose, and now it looks like it could easily be extended to a class of such purposes. This application works, as do many, on the CLI with a boat-load of applicable arguments. It produces textual output that can be used in a variety of ways. I can cobble up code in gtk to present nice GUI interfaces that will create an argument string to send to the C code. I can write gtk code that can present the output in a suitable variety of ways. What I cannot seem to do is wrap my head around how to get the gtk code to communicate with the C code. I've read the gtk docs on signal marshallers, and it's just not making sense to me. I'm still using gtk-1.2, with the notion that I probably should get that up and running, and then rewrite however necessary for each newer edition of gtk until I've got code for the latest. Would someone who really knows this stuff be so kind as to mentor me off list on this. I figure off list is better, as I would guess that 1.2 is no longer relevant to the readers of this list. Thanks all for reading, Bill Tallman From raphtee@gmail.com Sun Dec 11 19:53:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88D803B1EA9 for ; Sun, 11 Dec 2005 19:53:38 -0500 (EST) 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 24121-02 for ; Sun, 11 Dec 2005 19:53:36 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by menubar.gnome.org (Postfix) with ESMTP id 1B1663B1264 for ; Sun, 11 Dec 2005 19:53:36 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i23so1269950wra for ; Sun, 11 Dec 2005 16:53:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=kBFUObki7ywPcdFlpibskeHbfUN4vyfrlh6/AgZyuAUNlLJbXMEr3rtaK41lFjtXuzVQ+K2ZnTnUehq+/wSzMjAWkipN4Jqd/Qaci6JS7Tw8EwO2aQsGlsRIc6id8f0faFUlcA83vPItHd6jAW1wDPdmFe7cFCkPJ4yE5xXp4pQ= Received: by 10.54.86.4 with SMTP id j4mr120069wrb; Sun, 11 Dec 2005 16:52:40 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id 29sm7702726wrl.2005.12.11.16.53.34; Sun, 11 Dec 2005 16:53:34 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Dec 2005 19:53:22 -0500 Message-Id: <1134348802.24814.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 00:53:38 -0000 I have another GLib question. Currently I am writing some code that needs to perform some calculations every second. SO I want the function called every second. So rather than using setitimer to create a SIGALRM event that registering a function with sigaction() would catch, I thought I could use the g_timeout_add() function in GLib. However I found after playing with it that if I set it to 1 second then after 1 second it calls the function. At the end of the function (if I return TRUE from the function) it then sets up to call the function again in second. So for a function that takes say 100 - 200 milliseconds to complete, I find that I get the behavior that my function is not called every second but more like every 1.1 - 1.2 seconds. I undertsnad that gtk_timeout_add() is deprecated so is there another option (or should I just use the standard setitimer() function)? Travis Miller From ben@benjohnson.net Sun Dec 11 20:51:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628623B0757 for ; Sun, 11 Dec 2005 20:51:32 -0500 (EST) 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 29086-04 for ; Sun, 11 Dec 2005 20:51:29 -0500 (EST) Received: from server017.dfw.nationwide.net (server017.dfw.nationwide.net [206.123.129.80]) by menubar.gnome.org (Postfix) with SMTP id 5AB5F3B155D for ; Sun, 11 Dec 2005 20:51:29 -0500 (EST) Received: (qmail 7179 invoked from network); 12 Dec 2005 01:51:28 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Mon, 12 Dec 2005 01:51:28 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 53826E4072 for ; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15257-08 for ; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Received: by rose (Postfix, from userid 1000) id 1EDF5E4074; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Date: Sun, 11 Dec 2005 17:51:26 -0800 From: Ben Johnson To: gtk-list Message-ID: <20051212015126.GB2576@rose.benjohnson.net> Mail-Followup-To: Ben Johnson , gtk-list References: <1134348802.24814.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134348802.24814.4.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Re: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 01:51:32 -0000 On Sun, Dec 11, 2005 at 07:53:22PM -0500, Travis Miller wrote: > I have another GLib question. Currently I am writing some code that > needs to perform some calculations every second. SO I want the function > called every second. So rather than using setitimer to create a SIGALRM > event that registering a function with sigaction() would catch, I > thought I could use the g_timeout_add() function in GLib. However I > found after playing with it that if I set it to 1 second then after 1 > second it calls the function. At the end of the function (if I return > TRUE from the function) it then sets up to call the function again in > second. So for a function that takes say 100 - 200 milliseconds to > complete, I find that I get the behavior that my function is not called > every second but more like every 1.1 - 1.2 seconds. I undertsnad that > gtk_timeout_add() is deprecated so is there another option (or should I > just use the standard setitimer() function)? is g_timeout_add() deprecated? I don't see anything about that in my documentation. I've used both POSIX signals and the g_timeout stuff to run "timers". Regular POSIX signals are nice because they're more truly asynchronous. They're bad because you can't manipulate any gtk widgets (the gtk state) from a POSIX signal callback, because you're likely to receive the interrupt during a non-thread-safe section. This is the reason I stick with the g_timeout stuff. I think the best way to deal with your issue is to NOT use the automatic restart feature you're using (return TRUE from the callback). Instead, look to see how much time has passed since the last time the callback ran and use gtk_timeout_add() with an adjusted timeout value. keep in mind that there is no guarantee that that the timer will fire "on time". it will fire as soon as possible, and only during main loop. So, if one of your functions takes several seconds to complete a task and doesn't allow gtk events to be processed, your g_timeout callback will not be called for those several seconds. I think this is similar to how POSIX signals work, but they're a little more reliable. :) - Ben From tml@iki.fi Mon Dec 12 04:34:29 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AEE543B0CDB; Mon, 12 Dec 2005 04:34:29 -0500 (EST) 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 29020-03; Mon, 12 Dec 2005 04:34:27 -0500 (EST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id BA0153B09E6; Mon, 12 Dec 2005 04:34:26 -0500 (EST) Received: from pettson.tml.iki.fi (MMMDXXVI.tun.saunalahti.fi [213.169.5.226]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id D8652103D3A; Mon, 12 Dec 2005 11:34:22 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17309.17444.383000.400602@gargle.gargle.HOWL> Date: Mon, 12 Dec 2005 11:34:28 +0200 To: Igor Gorbounov In-Reply-To: <4397BDF1.6080701@topazelectro.ru> References: <4397BDF1.6080701@topazelectro.ru> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 09:34:29 -0000 Igor Gorbounov writes: > Tell me, please, if there is any way to get a Win API application > instance handle in a gtkmm application GetModuleHandle(NULL) ? (I think "application instance" is Windows 3.x terminology, but the MCIWndCreate() docs say "handle to the module", to presumably GetModuleHandle() is what you want. --tml From ztuylek@inonu.edu.tr Mon Dec 12 04:54:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D977B3B3475 for ; Mon, 12 Dec 2005 04:54:54 -0500 (EST) 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 30784-10 for ; Mon, 12 Dec 2005 04:54:42 -0500 (EST) Received: from inonu.edu.tr (unknown [193.140.142.6]) by menubar.gnome.org (Postfix) with ESMTP id 3E6963B2611 for ; Mon, 12 Dec 2005 04:53:49 -0500 (EST) Received: from inonu.edu.tr (localhost [127.0.0.1]) by inonu.edu.tr (Postfix) with ESMTP id 08B40EC109 for ; Mon, 12 Dec 2005 11:53:19 +0200 (EET) Received: from [193.140.142.252] (unknown [193.140.142.252]) by inonu.edu.tr (Postfix) with ESMTP id E4694EC102 for ; Mon, 12 Dec 2005 11:53:18 +0200 (EET) Message-ID: <439D48AA.2000602@inonu.edu.tr> Date: Mon, 12 Dec 2005 11:53:46 +0200 From: ztuylek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 09:54:55 -0000 From florian.boor@kernelconcepts.de Mon Dec 12 05:52:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 48F4D3B2FBD for ; Mon, 12 Dec 2005 05:52:18 -0500 (EST) 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 03179-09 for ; Mon, 12 Dec 2005 05:52:15 -0500 (EST) Received: from gateway.kernelconcepts.de (dns.kernelconcepts.de [212.60.202.194]) by menubar.gnome.org (Postfix) with ESMTP id 1CB723B3442 for ; Mon, 12 Dec 2005 05:52:15 -0500 (EST) Received: from thunder.kc.de ([192.168.2.128] ident=fuchs) by gateway.kernelconcepts.de with asmtp (Exim 3.35 #1 (Debian)) id 1Ell7R-0006k4-00; Mon, 12 Dec 2005 11:41:21 +0100 Message-ID: <439D5654.20701@kernelconcepts.de> Date: Mon, 12 Dec 2005 11:52:04 +0100 From: Florian Boor User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zoltan Boszormenyi References: <43998C8A.3080404@freemail.hu> In-Reply-To: <43998C8A.3080404@freemail.hu> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 10:52:18 -0000 Hi, Zoltan Boszormenyi wrote: > I need to find out whether an instance of a program is already running > and possibly unminimize it or bring it above any other windows, so > I can prevent an application started again. > Is is possible using GTK-1.2, or GTK-2.x, and how? as long as you are using X11 you can use libstartup-notification. Greetings Florian -- The dream of yesterday Florian Boor is the hope of today Tel: 0271-771091-14 and the reality of tomorrow. Fax: 0271-771091-19 [Robert Hutchings Goddard, 1904] florian.boor@kernelconcepts.de 6C 44 30 4C 43 20 6B 61 16 07 0F AA E6 97 70 A8 From yinglcs@aim.com Mon Dec 12 10:59:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D4593B53E9 for ; Mon, 12 Dec 2005 10:59:24 -0500 (EST) 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 02840-06 for ; Mon, 12 Dec 2005 10:59:16 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id 760F23B53E0 for ; Mon, 12 Dec 2005 10:59:01 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.29a.199f50c (57870) for ; Mon, 12 Dec 2005 10:58:57 -0500 (EST) Received: from FWM-M09 (fwm-m09.webmail.aol.com [64.12.168.73]) by air-ia01.mail.aol.com (v108.32) with ESMTP id MAILINIA14-e20e439d9e4117d; Mon, 12 Dec 2005 10:58:57 -0500 Date: Mon, 12 Dec 2005 10:58:57 -0500 From: yinglcs@aim.com Message-Id: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 24.13.168.31 by FWM-M09.sysops.aol.com (64.12.168.73) with HTTP (WebMailUI); Mon, 12 Dec 2005 10:58:57 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 64.12.168.73 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.123 tagged_above=-999 required=2 tests=[BAYES_00, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -1.123 X-Spam-Level: Subject: How can I find out the text of an entry in a ComboBox X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 15:59:24 -0000 Hi, How can I find out the text of an entry in a ComboBox if I only know the index of that entry? Regards, ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From martyn@imendio.com Mon Dec 12 13:07:39 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D71B3B2747 for ; Mon, 12 Dec 2005 13:07:39 -0500 (EST) 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 17047-10 for ; Mon, 12 Dec 2005 13:07:37 -0500 (EST) Received: from holken.mikan.net (holken.mikan.net [195.43.255.228]) by menubar.gnome.org (Postfix) with ESMTP id 74B163B13ED for ; Mon, 12 Dec 2005 13:07:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by holken.mikan.net (Postfix) with ESMTP id B307D12C01 for ; Mon, 12 Dec 2005 19:07:32 +0100 (CET) Received: from holken.mikan.net ([127.0.0.1]) by localhost (holken.mikan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32418-09 for ; Mon, 12 Dec 2005 19:07:29 +0100 (CET) Received: from nemesis (host81-159-197-244.range81-159.btcentralplus.com [81.159.197.244]) by holken.mikan.net (Postfix) with ESMTP id DD12612C17 for ; Mon, 12 Dec 2005 19:07:28 +0100 (CET) From: Martyn Russell To: gtk-list@gnome.org In-Reply-To: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> References: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> Content-Type: text/plain Organization: Imendio AB Date: Mon, 12 Dec 2005 18:15:45 +0000 Message-Id: <1134411345.2716.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at holken.mikan.net X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: Re: How can I find out the text of an entry in a ComboBox X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: martyn@imendio.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 18:07:39 -0000 On Mon, 2005-12-12 at 10:58 -0500, yinglcs@aim.com wrote: > How can I find out the text of an entry in a ComboBox if I only know > the index of that entry? Try: gtk_combo_box_get_active_text (); Or something like: model = gtk_combo_box_get_model (combobox); path = gtk_tree_path_new_from_indices (0, -1); gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get (model, &iter, 0, &str, -1); gtk_tree_path_free (path); g_free (str); -- Regards, Martyn From Robert.Thorpe@antenova.com Mon Dec 12 14:04:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D9FE3B2727 for ; Mon, 12 Dec 2005 14:04:53 -0500 (EST) 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 22988-03 for ; Mon, 12 Dec 2005 14:04:51 -0500 (EST) Received: from lhuumrelay3.mail.eu.uu.net (lhuumrelay3.lnd.ops.eu.uu.net [62.189.58.19]) by menubar.gnome.org (Postfix) with ESMTP id 4D4723B09B3 for ; Mon, 12 Dec 2005 14:04:49 -0500 (EST) Received: from antenova.com ([193.128.174.131]) by lhuumrelay3.mail.eu.uu.net (8.13.3/8.13.3) with ESMTP id jBCJ4l8e026962 for ; Mon, 12 Dec 2005 19:04:47 GMT X-Authenticated-As: none Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Mon, 12 Dec 2005 19:05:22 -0000 Message-ID: <062347F5EA06184999273868C1B4FD7F84231C@server.Antenova.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Win32 API HInstance and gtk+ - how? Thread-Index: AcX+/3Oc91rAz0BiRW+r28gipi0CQQATiU8g From: "Robert Thorpe" To: "gtk-list" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: RE: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 19:04:54 -0000 The normal way to get the app instance is to do GetWindowLong (hwnd, GWL_HINSTANCE) But hInstance and prevInstance aren't very useful these days, they cannot be used to check if a program is already running as it could be on Win-16. The normal way is to do that is to use FindWindow with the window class and Window name as NULL. > -----Original Message----- > From: gtk-list-bounces@gnome.org=20 > [mailto:gtk-list-bounces@gnome.org] On Behalf Of Tor Lillqvist > Sent: 12 December 2005 09:34 > To: Igor Gorbounov > Cc: gtk-list; GTKMM Lists > Subject: Win32 API HInstance and gtk+ - how? >=20 > Igor Gorbounov writes: > > Tell me, please, if there is any way to get a Win API=20 > application > instance handle in a gtkmm application >=20 > GetModuleHandle(NULL) ?=20 >=20 > (I think "application instance" is Windows 3.x terminology, but the > MCIWndCreate() docs say "handle to the module", to presumably > GetModuleHandle() is what you want. >=20 > --tml >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 From mleisher@crl.NMSU.Edu Mon Dec 12 17:00:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 84F1A3B0DE1 for ; Mon, 12 Dec 2005 17:00:38 -0500 (EST) 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 07901-08 for ; Mon, 12 Dec 2005 17:00:36 -0500 (EST) Received: from crl.NMSU.Edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id 585BB3B06BD for ; Mon, 12 Dec 2005 17:00:34 -0500 (EST) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.NMSU.Edu (8.13.4/8.13.4) with ESMTP id jBCM0GZA007980 for ; Mon, 12 Dec 2005 15:00:16 -0700 (MST) Message-ID: <439DF391.5040406@crl.nmsu.edu> Date: Mon, 12 Dec 2005 15:02:57 -0700 From: Mark Leisher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: multipart/mixed; boundary="------------000901020002000703030603" X-Virus-Scanned: ClamAV 0.87.1/1209/Mon Dec 12 08:48:01 2005 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Possible problem with gdk_selection_get_owner() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 22:00:38 -0000 This is a multi-part message in MIME format. --------------000901020002000703030603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Attached are two small programs, gtk.c and x11.c. Both are meant to demonstrate how to use a GdkAtom/Atom to determine if an instance of a program is already running (Linux/Unix). The x11.c code works fine. The gtk.c code always returns NULL when gdk_selection_get_owner() is called, but the SelectionClear event is actually dispatched when gdk_selection_owner_set() is called the second time the program is run. Am I missing something or is this expected behavior? How the programs are supposed to be run: 1. Run the first one in the background: % ./x11 & 2. When the program is run again, it is supposed to print something about another copy already running and exit: % ./x11 -- --------------------------------------------------------------------------- Mark Leisher Computing Research Lab A sneer is the weapon of the weak. New Mexico State University -- James Russell Lowell (1819-1891) Box 30001, MSC 3CRL Las Cruces, NM 88003 --------------000901020002000703030603 Content-Type: text/plain; name="gtk.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="gtk.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPGd0ay9n dGsuaD4KCnN0YXRpYyBHZGtBdG9tIHJ1bm5pbmcgPSAwOwoKc3RhdGljIGdib29sZWFuCnNl bGNsZWFyKEd0a1dpZGdldCAqdywgR2RrRXZlbnRTZWxlY3Rpb24gKmV2LCBncG9pbnRlciBk YXRhKQp7CiAgICBnZGtfc2VsZWN0aW9uX293bmVyX3NldCh3LT53aW5kb3csIGV2LT5zZWxl Y3Rpb24sIEdES19DVVJSRU5UX1RJTUUsIEZBTFNFKTsKCiAgICByZXR1cm4gVFJVRTsKfQoK c3RhdGljIHZvaWQKZG9uZShHdGtXaWRnZXQgKndpZGdldCwgZ3BvaW50ZXIgZGF0YSkKewog ICAgZ2RrX3NlbGVjdGlvbl9vd25lcl9zZXQoMCwgcnVubmluZywgR0RLX0NVUlJFTlRfVElN RSwgRkFMU0UpOwogICAgZ3RrX21haW5fcXVpdCgpOwogICAgZXhpdCgwKTsKfQoKaW50Cm1h aW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICp3LCAqYjsKCiAg ICBndGtfaW5pdCgmYXJnYywgJmFyZ3YpOwoKICAgIHJ1bm5pbmcgPSBnZGtfYXRvbV9pbnRl cm4oIlBST0dfUlVOTklORyIsIFRSVUUpOwoKICAgIGlmIChnZGtfc2VsZWN0aW9uX293bmVy X2dldChydW5uaW5nKSAhPSAwKSB7CiAgICAgICAgcHJpbnRmKCIlczogYWxyZWFkeSBydW5u aW5nLlxuIiwgZ19nZXRfcHJnbmFtZSgpKTsKICAgICAgICBnZGtfc2VsZWN0aW9uX293bmVy X3NldCgwLCBydW5uaW5nLCBHREtfQ1VSUkVOVF9USU1FLCBUUlVFKTsKICAgICAgICByZXR1 cm4gMTsKICAgIH0KCiAgICB3ID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZF TCk7CiAgICBnX3NpZ25hbF9jb25uZWN0KEdfT0JKRUNUKHcpLCAic2VsZWN0aW9uLWNsZWFy LWV2ZW50IiwKICAgICAgICAgICAgICAgICAgICAgR19DQUxMQkFDSyhzZWxjbGVhciksIDAp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1codyksICJBbSBJIEFscmVh ZHkgUnVubmluZz8iKTsKICAgIGdfc2lnbmFsX2Nvbm5lY3QoR19PQkpFQ1QodyksICJkZXN0 cm95IiwgR19DQUxMQkFDSyhndGtfbWFpbl9xdWl0KSwgMCk7CiAgICBnX3NpZ25hbF9jb25u ZWN0KEdfT0JKRUNUKHcpLCAiZGVsZXRlX2V2ZW50IiwgR19DQUxMQkFDSyhndGtfbWFpbl9x dWl0KSwwKTsKCiAgICBiID0gZ3RrX2J1dHRvbl9uZXdfd2l0aF9sYWJlbCgiRXhpdCIpOwog ICAgZ3RrX3dpZGdldF9zZXRfc2l6ZV9yZXF1ZXN0KGIsIDEwMCwgMTAwKTsKICAgIGdfc2ln bmFsX2Nvbm5lY3QoR19PQkpFQ1QoYiksICJjbGlja2VkIiwgR19DQUxMQkFDSyhkb25lKSwg MCk7CiAgICBndGtfY29udGFpbmVyX2FkZChHVEtfQ09OVEFJTkVSKHcpLCBiKTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKHcpOwoKICAgIC8qCiAgICAgKiBPd24gdGhlIHNlbGVjdGlv bi4KICAgICAqLwogICAgZ2RrX3NlbGVjdGlvbl9vd25lcl9zZXQody0+d2luZG93LCBydW5u aW5nLCBHREtfQ1VSUkVOVF9USU1FLCBUUlVFKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJl dHVybiAwOwp9Cg== --------------000901020002000703030603 Content-Type: text/plain; name="x11.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="x11.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxYMTEvWGxpYi5oPgoKI2RlZmluZSBBTExF VkVOVE1BU0tTIChLZXlQcmVzc01hc2t8S2V5UmVsZWFzZU1hc2t8QnV0dG9uUHJlc3NNYXNr fFwKICAgICAgICAgICAgICAgICAgICAgICBCdXR0b25SZWxlYXNlTWFza3xFbnRlcldpbmRv d01hc2t8TGVhdmVXaW5kb3dNYXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBQb2ludGVy TW90aW9uTWFza3xQb2ludGVyTW90aW9uSGludE1hc2t8XAogICAgICAgICAgICAgICAgICAg ICAgIEJ1dHRvbjFNb3Rpb25NYXNrfEJ1dHRvbjJNb3Rpb25NYXNrfEJ1dHRvbjNNb3Rpb25N YXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBCdXR0b240TW90aW9uTWFza3xCdXR0b241 TW90aW9uTWFza3xCdXR0b25Nb3Rpb25NYXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBL ZXltYXBTdGF0ZU1hc2t8RXhwb3N1cmVNYXNrfFZpc2liaWxpdHlDaGFuZ2VNYXNrfFwKICAg ICAgICAgICAgICAgICAgICAgICBTdHJ1Y3R1cmVOb3RpZnlNYXNrfFJlc2l6ZVJlZGlyZWN0 TWFza3xcCiAgICAgICAgICAgICAgICAgICAgICAgU3Vic3RydWN0dXJlTm90aWZ5TWFza3xT dWJzdHJ1Y3R1cmVSZWRpcmVjdE1hc2t8XAogICAgICAgICAgICAgICAgICAgICAgIEZvY3Vz Q2hhbmdlTWFza3xQcm9wZXJ0eUNoYW5nZU1hc2t8Q29sb3JtYXBDaGFuZ2VNYXNrfFwKICAg ICAgICAgICAgICAgICAgICAgICBPd25lckdyYWJCdXR0b25NYXNrKQoKaW50Cm1haW4odm9p ZCkKewogICAgaW50IGRvbmU7CiAgICBEaXNwbGF5ICpkOwogICAgQXRvbSBydW5uaW5nOwog ICAgV2luZG93IHdpbiwgcm9vdDsKICAgIFhFdmVudCBldjsKCiAgICBkID0gWE9wZW5EaXNw bGF5KCIiKTsKCiAgICByb290ID0gRGVmYXVsdFJvb3RXaW5kb3coZCk7CgogICAgd2luID0g WENyZWF0ZVdpbmRvdyhkLCByb290LCAxMCwgMTAsIDEwMCwgMTAwLCAyLAogICAgICAgICAg ICAgICAgICAgICAgICBDb3B5RnJvbVBhcmVudCwgSW5wdXRPdXRwdXQsIENvcHlGcm9tUGFy ZW50LAogICAgICAgICAgICAgICAgICAgICAgICAwLCAwKTsKICAgIFhTZWxlY3RJbnB1dChk LCB3aW4sIEFMTEVWRU5UTUFTS1MpOwogICAgWE1hcFdpbmRvdyhkLCB3aW4pOwoKICAgIHJ1 bm5pbmcgPSBYSW50ZXJuQXRvbShkLCAiUFJPR19SVU5OSU5HIiwgVHJ1ZSk7CgogICAgaWYg KFhHZXRTZWxlY3Rpb25Pd25lcihkLCBydW5uaW5nKSA9PSAwKSB7CiAgICAgICAgcHJpbnRm KCJPd25pbmcgcHJvcGVydHkuXG4iKTsKICAgICAgICBYU2V0U2VsZWN0aW9uT3duZXIoZCwg cnVubmluZywgd2luLCBDdXJyZW50VGltZSk7CiAgICB9IGVsc2UgewogICAgICAgIFhTZXRT ZWxlY3Rpb25Pd25lcihkLCBydW5uaW5nLCAwLCBDdXJyZW50VGltZSk7CiAgICAgICAgWERl c3Ryb3lXaW5kb3coZCwgd2luKTsKICAgICAgICBYQ2xvc2VEaXNwbGF5KGQpOwogICAgICAg IHByaW50ZigiQW5vdGhlciBpbnN0YW5jZSBpcyBydW5uaW5nLlxuIik7CiAgICAgICAgcmV0 dXJuIDA7CiAgICB9CgogICAgZG9uZSA9IDA7CiAgICB3aGlsZSAoIWRvbmUpIHsKICAgICAg ICBYTmV4dEV2ZW50KGQsICZldik7CiAgICAgICAgc3dpdGNoIChldi50eXBlKSB7CiAgICAg ICAgICBjYXNlIFNlbGVjdGlvbkNsZWFyOgogICAgICAgICAgICBYU2V0U2VsZWN0aW9uT3du ZXIoZCwgcnVubmluZywgd2luLCBDdXJyZW50VGltZSk7CiAgICAgICAgICAgIGJyZWFrOwog ICAgICAgICAgY2FzZSBLZXlSZWxlYXNlTWFzazoKICAgICAgICAgICAgZG9uZSA9IDE7CiAg ICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgIH0KCiAgICBYU2V0U2VsZWN0aW9uT3du ZXIoZCwgcnVubmluZywgMCwgQ3VycmVudFRpbWUpOwogICAgWENsb3NlRGlzcGxheShkKTsK ICAgIHJldHVybiAwOwp9Cg== --------------000901020002000703030603-- From shafer@realmsys.com Mon Dec 12 20:23:51 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 074293B555D for ; Mon, 12 Dec 2005 20:23:51 -0500 (EST) 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 24128-06 for ; Mon, 12 Dec 2005 20:23:49 -0500 (EST) Received: from ba.realmsys.com (207.88.121.47.ptr.us.xo.net [207.88.121.47]) by menubar.gnome.org (Postfix) with ESMTP id A618B3B1905 for ; Mon, 12 Dec 2005 20:23:48 -0500 (EST) Received: from [10.100.6.214] (unknown [66.239.3.2]) by ba.realmsys.com (Spam Firewall) with ESMTP id AB6843014F for ; Mon, 12 Dec 2005 18:23:47 -0700 (MST) From: Andrew Shafer To: gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Dec 2005 18:22:00 -0700 Message-Id: <1134436920.7358.12.camel@baraka.inrealm.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Barracuda Spam Firewall at realmsys.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Double buffering while moving in a 'fixed' X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 01:23:51 -0000 I know what I'm doing is against all things holy, but maybe someone else thought about this before. I have a GtkFixed container that I'm using to do little layout. Inside the fixed I have components. Components can be any widget and they are also associated with a shape mask. I collect all the widgets and masks, then draw them into the fixed and mask them to get a shaped window. (the components make use of 'normal' layout tools, like V/Hbox etc.) Now I want to move pieces around in an animated fashion cause I'm crazy like that. It all works, but I get a little flicker as you would expect if you aren't double buffering. Is there some strategy that would allow me to smooth out the drawing while still retaining the individual GdkWindows on my components and children so they can catch events? Any ideas? Anyone ever played with anything like this using gtk? Regards Andrew Shafer From lists@nabble.com Mon Dec 12 21:30:29 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D8B243B0E44 for ; Mon, 12 Dec 2005 21:30:29 -0500 (EST) 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 28512-01 for ; Mon, 12 Dec 2005 21:30:28 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 576B93B5856 for ; Mon, 12 Dec 2005 21:30:21 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Elzvo-0004Gr-Mp for gtk-list@gnome.org; Mon, 12 Dec 2005 18:30:20 -0800 Message-ID: <1916845.post@talk.nabble.com> Date: Mon, 12 Dec 2005 18:30:20 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_542_16328830.1134441020703" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_30, HTML_MESSAGE] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES Subject: how to add an icon to the item in my list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 02:30:30 -0000 ------=_Part_542_16328830.1134441020703 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I use gtk+1.2; the list as the following: GtkWidget* list = gtk_list_new(); GList* viewList = ...; gtk_list_append_items(GTK_LIST(list), viewList); my question is: how to add an icon(.png, .xpm, etc) to the current selected item in the list? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/how-to-add-an-icon-to-the-item-in-my-list-t731785.html#a1916845 ------=_Part_542_16328830.1134441020703 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit I use gtk+1.2;
the list as the following:
    GtkWidget* list = gtk_list_new();
    GList* viewList = ...;
    gtk_list_append_items(GTK_LIST(list), viewList);

my question is:
    how to add an icon(.png, .xpm, etc) to the current selected item in the list?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
how to add an icon to the item in my list ------=_Part_542_16328830.1134441020703-- From ramachandracs@rediffmail.com Mon Dec 12 22:58:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FCD63B2725 for ; Mon, 12 Dec 2005 22:58:23 -0500 (EST) 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 01591-02 for ; Mon, 12 Dec 2005 22:58:21 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.136]) by menubar.gnome.org (Postfix) with SMTP id 3467D3B1864 for ; Mon, 12 Dec 2005 22:58:19 -0500 (EST) Received: (qmail 10266 invoked by uid 510); 13 Dec 2005 03:58:08 -0000 Date: 13 Dec 2005 03:58:08 -0000 Message-ID: <20051213035808.10265.qmail@webmail62.rediffmail.com> Received: from unknown (59.92.135.217) by rediffmail.com via HTTP; 13 dec 2005 03:58:08 -0000 MIME-Version: 1.0 From: "Ramachandra CS" To: gtk-list@gnome.org Content-type: multipart/alternative; boundary="Next_1134446288---0-203.199.83.136-10251" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.277 tagged_above=-999 required=2 tests=[BAYES_20, HTML_MESSAGE, MSGID_FROM_MTA_HEADER] X-Spam-Score: 2.277 X-Spam-Level: ** X-Spam-Flag: YES Subject: Warning :*****: When I run GTK Application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ramachandra CS List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 03:58:23 -0000 This is a multipart mime message --Next_1134446288---0-203.199.83.136-10251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0A=A0 I am facing some problems when i run my GTK Applications. = And also when i click on any widget, it display the Gdk-WARNING, but the ap= plication works fine some times. =0A =0A So Can u suggest me some i= deas to correct these problems. And the following are the Gdk-WARNINGS.....= .........................=0A=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-885= 9-1': No such file or directory=0A=0A(tcsetup:903): Gdk-WARNING **: Error c= onverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'I= SO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conve= rting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8= 859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error convertin= g from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-= 1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fr= om UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' i= s not supported=0AEXEC FAILED!=0A=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fro= m UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is= not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UT= F-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not= supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 = to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not sup= ported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to S= TRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not support= ed=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRIN= G: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0AEXEC FAILED!=0A= =0A=0A=0A=0ARegards,=0A-r=0A --Next_1134446288---0-203.199.83.136-10251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A Hi,
=0A
=0A    I am facing some problems when i run= my GTK Applications. And also when i click on any widget, it display the G= dk-WARNING, but the application works fine some times.
=0A   =
=0A    So Can u suggest me some ideas to correct these pro= blems. And the following are the Gdk-WARNINGS..............................=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1': No such fil= e or directory
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Erro= r converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to= 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A(tcsetup:903= ): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from c= haracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup= :903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fr= om character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcs= etup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversio= n from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A= (tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conve= rsion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: C= onversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
= =0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING= : Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to ST= RING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supporte= d
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 t= o STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supp= orted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF= -8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not = supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from= UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is = not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting = from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1'= is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-885= 9-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error con= verting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO= -8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error= converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to = 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A
=0A
= =0A
=0ARegards,
=0A-r
=0A=0A

=0A

=0A=0A --Next_1134446288---0-203.199.83.136-10251-- From mclasen@redhat.com Mon Dec 12 23:23:27 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 858613B0986; Mon, 12 Dec 2005 23:23:27 -0500 (EST) 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 03391-08; Mon, 12 Dec 2005 23:23:25 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id C184E3B230F; Mon, 12 Dec 2005 23:23:22 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBD4NMXo029797; Mon, 12 Dec 2005 23:23:22 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBD4NH109250; Mon, 12 Dec 2005 23:23:17 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBD4NGc27296; Mon, 12 Dec 2005 23:23:16 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Dec 2005 23:23:15 -0500 Message-Id: <1134447796.2597.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: Pango 1.11.1 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 04:23:28 -0000 Behdad stayed up all night to finish Pango 1.11.1 before leaving for the holidays. Thanks, Behdad ! Pango 1.11.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9 http://ftp.gnome.org/pub/GNOME/sources/pango/1.11 pango-1.11.1.tar.bz2 c6255bba9bb738a564716fd57b7cc546 pango-1.11.1.tar.gz af6d609510fe5c0d35a3f8f863135b7c This is the second development release leading up to 1.12. Overview of changes between 1.11.0 and 1.11.1 ============================================= * ATSUI support for the cairo backend. [Anders Carlsson] * Fixed a couple of regressions with font size and scaling. * Draw a dashed empty box on missing glyphs for cairo-fc backend. * Support OpenType features for basic (Latin/Greek/...) module. * Support swash feature in Arabic module. * Misc bug fixes. * Misc documentation improvements. Optimizations: * Cache GObject private data in PangoFcFont.priv [Federico Mena Quintero] * Add a constant-sized light-weight cache for glyph extents. * Use g_slice_* instead of GMemChunk in mini-fribidi. December 12, 2005 Matthias From igorbounov@topazelectro.ru Tue Dec 13 00:23:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 037923B5940 for ; Tue, 13 Dec 2005 00:23:44 -0500 (EST) 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 08391-10 for ; Tue, 13 Dec 2005 00:23:42 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id ABD3E3B5943 for ; Tue, 13 Dec 2005 00:23:40 -0500 (EST) Received: (qmail 28165 invoked by uid 7801); 13 Dec 2005 05:18:48 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.086862 secs); 13 Dec 2005 05:18:48 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.086862 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 13 Dec 2005 05:18:47 -0000 Message-ID: <439E5AEE.3060700@topazelectro.ru> Date: Tue, 13 Dec 2005 08:23:58 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tor Lillqvist References: <4397BDF1.6080701@topazelectro.ru> <17309.17444.383000.400602@gargle.gargle.HOWL> In-Reply-To: <17309.17444.383000.400602@gargle.gargle.HOWL> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.757 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_LQ, TW_TK] X-Spam-Score: -1.757 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 05:23:44 -0000 Tor Lillqvist wrote: >Igor Gorbounov writes: > > Tell me, please, if there is any way to get a Win API application > > instance handle in a gtkmm application > >GetModuleHandle(NULL) ? > > > Yes, Vinzenz Feenstra has suggested this function last week and it helped. Thanks to all, who answered my question. Igor Gorbounov > > > From slackcub@gmail.com Tue Dec 13 02:37:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6AFCE3B0DD1 for ; Tue, 13 Dec 2005 02:37:07 -0500 (EST) 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 27110-07 for ; Tue, 13 Dec 2005 02:37:05 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id AE2E63B27B3 for ; Tue, 13 Dec 2005 02:37:03 -0500 (EST) Received: by zproxy.gmail.com with SMTP id i28so1669756nzi for ; Mon, 12 Dec 2005 23:37:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:mime-version:content-disposition:content-type:content-transfer-encoding:message-id:from; b=n+GgVx9KTsfO8G4Z/TAOSEJFfQAgvbL0/4fUW9nbQC9QwcRgrWg44EJTuIjkOm1FHNfzp9gB/PM+SdvMWgnBrtHQud/myX2WoMPZ4GkMInOvk6YhNULJVPHlZwgQ4RUw/LE1i+fEoDW9cily12EHz7Yjji7p/Y16U/3tMg3oRgg= Received: by 10.36.148.15 with SMTP id v15mr6987751nzd; Mon, 12 Dec 2005 23:37:02 -0800 (PST) Received: from pitr.largegeek.com ( [68.252.72.79]) by mx.gmail.com with ESMTP id 23sm3974370nzn.2005.12.12.23.37.02; Mon, 12 Dec 2005 23:37:02 -0800 (PST) To: gtk-list@gnome.org Date: Tue, 13 Dec 2005 01:40:38 -0600 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200512130140.38985.largegeek@largegeek.com> From: Largegeek X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_KG] X-Spam-Score: -1.811 X-Spam-Level: Subject: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: largegeek@largegeek.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 07:37:07 -0000 I am trying to upgrade my version of gtk+ because I want to upgrade gimp. At least, that was the original version but now it has become an all consuming mission because I have been trying on and off for a couple weeks now with no success. I just installed the following libraries: atk 1.10.1 cairo 1.0.2 glib 2.8.4 pango 1.10.1 originally I had needed to keep my old version of glib on here because I was having other programs break with version 2.8.4 of glib. Mainly unresolved symbol issues. but whenever I would try to run configure on gtk+ it would say that pkgconfig reported v2.8.4 of glib, but it found my old one. After unsuccessfully trying to figure that problem out, I gave up and decided that I would just rebuild the programs that didn't work with the new glib version Now I'm getting an error said that configure can't link to the pango libraries, when I know I have them installed in /usr/local. Any help would be greatly appreciated! David largegeek@largegeek.com From diego@otello.alma.unibo.it Tue Dec 13 05:10:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C845C3B1A82 for ; Tue, 13 Dec 2005 05:10:17 -0500 (EST) 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 07471-07 for ; Tue, 13 Dec 2005 05:10:15 -0500 (EST) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 5864F3B1B3F for ; Tue, 13 Dec 2005 05:10:12 -0500 (EST) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 269E4DCAA1 for ; Tue, 13 Dec 2005 06:33:34 -0500 (EST) Message-ID: <439E9780.1010706@otello.alma.unibo.it> Date: Tue, 13 Dec 2005 10:42:24 +0100 From: Diego Zuccato User-Agent: Mozilla Thunderbird 1.0.7-3mdk (X11/20051015) X-Accept-Language: it, en MIME-Version: 1.0 Cc: gtk-list References: <1134348802.24814.4.camel@localhost.localdomain> <20051212015126.GB2576@rose.benjohnson.net> In-Reply-To: <20051212015126.GB2576@rose.benjohnson.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Subject: Re: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 10:10:17 -0000 Ben Johnson wrote: > keep in mind that there is no guarantee that that the timer will fire > "on time". it will fire as soon as possible, and only during main loop. > So, if one of your functions takes several seconds to complete a task > and doesn't allow gtk events to be processed, your g_timeout callback > will not be called for those several seconds. I think this is similar > to how POSIX signals work, but they're a little more reliable. :) If this behaviour is not what he wants, he should fallback to multithreading (w/ all the gdk_threads_enter/leave stuff). BYtE, Diego. From DANIELLLANO@terra.es Tue Dec 13 06:53:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45EC3B1965 for ; Tue, 13 Dec 2005 06:53:47 -0500 (EST) 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 16686-01 for ; Tue, 13 Dec 2005 06:53:45 -0500 (EST) Received: from csmtpout3.frontal.correo (webmail.terra.es [213.4.149.12]) by menubar.gnome.org (Postfix) with ESMTP id 8DFDA3B5B59 for ; Tue, 13 Dec 2005 06:51:26 -0500 (EST) Received: from cps2 (213.4.149.20) by csmtpout3.frontal.correo (7.2.056.2) id 42D549260045D8C3 for gtk-list@gnome.org; Tue, 13 Dec 2005 12:50:30 +0100 Received: from [213.4.149.67] by correo2.terra.es with HTTP (authenticated as danielllano@terra.es); Tue, 13 Dec 2005 12:51:25 +0100 Message-ID: <33365135.1134474685252.JavaMail.root@cps2> Date: Tue, 13 Dec 2005 12:51:25 +0100 (MET) From: "DANIELLLANO@terra.es" To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.48 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_KG=0.077] X-Spam-Score: -0.48 X-Spam-Level: Subject: Re: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: DANIELLLANO@terra.es List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 11:53:48 -0000 Largegeek wrote: > I am trying to upgrade my version of gtk+ because I want to upgrade gimp.= At=20 > least, that was the original version but now it has become an all consumi= ng=20 > mission because I have been trying on and off for a couple weeks now with= no=20 > success. >=20 > I just installed the following libraries: > atk 1.10.1 > cairo 1.0.2 > glib 2.8.4 > pango 1.10.1 >=20 > originally I had needed to keep my old version of glib on here because I = was=20 > having other programs break with version 2.8.4 of glib. Mainly unresolved= =20 > symbol issues. but whenever I would try to run configure on gtk+ it=20 would say=20 > that pkgconfig reported v2.8.4 of glib, but it found my old one. After=20 > unsuccessfully trying to figure that problem out, I gave up and decided t= hat=20 > I would just rebuild the programs that didn't work with the new glib vers= ion > Now I'm getting an error said that configure can't link to the pango=20 > libraries, when I know I have them installed in /usr/local.=20 What version of gimp are you trying to install? Debian already has gimp-2.2.9 (and updated versions of the needed libraries= ) so you may want to stick to Debian testing or unstable if you are not doing hardcore=20 development. http://packages.debian.org/gimp Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. From flaviothunder@terra.com.br Tue Dec 13 08:09:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 587493B3A6B for ; Tue, 13 Dec 2005 08:09:43 -0500 (EST) 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 23700-05 for ; Tue, 13 Dec 2005 08:09:41 -0500 (EST) Received: from birao.terra.com.br (birao.terra.com.br [200.176.10.197]) by menubar.gnome.org (Postfix) with ESMTP id 6A49D3B5BEF for ; Tue, 13 Dec 2005 08:02:52 -0500 (EST) Received: from bucavu.terra.com.br (bucavu.terra.com.br [200.176.10.6]) by birao.terra.com.br (Postfix) with ESMTP id 8939C108C1F6 for ; Tue, 13 Dec 2005 11:02:50 -0200 (BRST) X-Terra-Karma: -2% X-Terra-Hash: 465a2d885378875f40a9d804dad371cf Received-SPF: pass (bucavu.terra.com.br: domain of terra.com.br designates 200.176.10.6 as permitted sender) client-ip=200.176.10.6; envelope-from=flaviothunder@terra.com.br; helo=[192.168.1.133]; Received: from [192.168.1.133] (unknown [200.196.242.80]) (authenticated user flaviothunder) by bucavu.terra.com.br (Postfix) with ESMTP id 6B8A0153C125 for ; Tue, 13 Dec 2005 11:02:50 -0200 (BRST) Message-ID: <439EC679.4050600@terra.com.br> Date: Tue, 13 Dec 2005 11:02:49 -0200 From: =?ISO-8859-1?Q?Fl=E1vio_Alberto_Lopes_Soares?= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.692 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_PASS=-0.001] X-Spam-Score: -0.692 X-Spam-Level: Subject: configure_event not sended X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 13:09:44 -0000 Hello all, I'm developing an application using GTK2 + libglade for use in a x86 embedded system, I'm compiled the gtk2, libglade2, pango, xft2, fontconfig, freetype, glib2 X 4.5.99.8 and kdrive small X (I will choose what X I will use) without problems to install in my target system. In my Debian Sarge system with the default libraries the application runs OK, but when I run my program in target system (Geode 300MHz Processor, chipset NSC5330) with the compiled libs it not calls the callback function connected to "configure_event" signal for the main window, but other signals as "pressed" signal for the buttons works OK. What can be the problem ? What are the libraries that "handle" the "configure_event" signal ? Thanks for any help Flavio Alberto Lopes Soares flaviothunder@terra.com.br From jcupitt@gmail.com Tue Dec 13 08:49:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57CB83B39BA for ; Tue, 13 Dec 2005 08:49:01 -0500 (EST) 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 27838-02 for ; Tue, 13 Dec 2005 08:48:58 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id 0AB6C3B2500 for ; Tue, 13 Dec 2005 08:48:57 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so2027279wxc for ; Tue, 13 Dec 2005 05:48:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sZTTlEoutfyzHiKfHj3VVb/8dmzOwNm22uTuR4pe9VqnahQt3C4THVwO/QAxaUl118dVNErtsOzvD/9K04zxv98KjCt9SiYolgn23+iUOW1zhlA/TB+kUXtUpzJo7XoOs+gk6/mnTLqOmY4cSSibLKO+ixgS2aaHZcW6D4egewc= Received: by 10.70.59.15 with SMTP id h15mr204537wxa; Tue, 13 Dec 2005 05:48:56 -0800 (PST) Received: by 10.70.67.14 with HTTP; Tue, 13 Dec 2005 05:48:56 -0800 (PST) Message-ID: <522c6460512130548q289ece64g670fef61d91f54e1@mail.gmail.com> Date: Tue, 13 Dec 2005 13:48:56 +0000 From: John Cupitt To: Andrew Shafer In-Reply-To: <1134436920.7358.12.camel@baraka.inrealm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134436920.7358.12.camel@baraka.inrealm.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Double buffering while moving in a 'fixed' X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 13:49:01 -0000 On 12/13/05, Andrew Shafer wrote: > Inside the fixed I have components. Components can be any widget and > they are also associated with a shape mask. I collect all the widgets > and masks, then draw them into the fixed and mask them to get a shaped > window. (the components make use of 'normal' layout tools, like V/Hbox > etc.) > > It all works, but I get a little flicker as you would expect if you > aren't double buffering. I do something like this in my app, except without the shaped windows. I have a fixed containing a lot of eventboxes, then each eventbox containing a vbox with my contents. I don't animate programatically much, but I do have the eventboxes draggable with the mouse. It seems to work OK (even on win32!) and there's no visible flicker. Some screenshots here: http://www.vips.ecs.soton.ac.uk/screenshots.php?page=3DVersion+7-10 John From diego@otello.alma.unibo.it Tue Dec 13 09:46:21 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D201C3B0F25 for ; Tue, 13 Dec 2005 09:46:20 -0500 (EST) 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 02345-05 for ; Tue, 13 Dec 2005 09:46:17 -0500 (EST) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id C73D23B3A74 for ; Tue, 13 Dec 2005 09:44:38 -0500 (EST) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id B0FE712218B for ; Tue, 13 Dec 2005 11:35:58 -0500 (EST) Message-ID: <439EDE63.60806@otello.alma.unibo.it> Date: Tue, 13 Dec 2005 15:44:51 +0100 From: Diego Zuccato User-Agent: Mozilla Thunderbird 1.0.7-3mdk (X11/20051015) X-Accept-Language: it, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Subject: Can't handle events from combobox? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 14:46:21 -0000 Hello all. I'm having troubles trying to catch keyboard events from a combobox. What I'm doing is a simple g_signal_connect(G_OBJECT(combo), "key_press_event", G_CALLBACK(reset_combo), NULL); just after setting the model and before selecting (eventually) a default for that combo. reset_combo() just prints an asterisk and returns. But I can't get that damned asterisk printed :( "Standard" controls work as expected, but my callback is never called. Can't see the difference between my grabbing and the grab done by Gtk+ internally in the GtkComboBox source. Any hint? Something obvious I couldn't see? Tks, Diego. From slackcub@gmail.com Tue Dec 13 10:36:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AD56D3B3B32 for ; Tue, 13 Dec 2005 10:36:43 -0500 (EST) 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 08592-10 for ; Tue, 13 Dec 2005 10:36:41 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by menubar.gnome.org (Postfix) with ESMTP id EF7643B3B3D for ; Tue, 13 Dec 2005 10:36:04 -0500 (EST) Received: by zproxy.gmail.com with SMTP id l1so1772309nzf for ; Tue, 13 Dec 2005 07:36:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-disposition:content-type:content-transfer-encoding:message-id:from; b=NbQevIUltPbbdWSPCpXz76u85jeMtddWMZX6ObRcMASTUPeiWFpL6kWvG8B+r+LQI6arysfi2BsltUvCif6bbA3cVkC/i83XtQi5MkSwN4OLR1QEPlDKcLYNnAu3CakFb13FdlonKAOmYh1FEw9N7qybluPH10yYRywnofdtqGg= Received: by 10.36.20.6 with SMTP id 6mr7416282nzt; Tue, 13 Dec 2005 07:36:03 -0800 (PST) Received: from pitr.largegeek.com ( [68.252.72.79]) by mx.gmail.com with ESMTP id 22sm3190108nzn.2005.12.13.07.35.59; Tue, 13 Dec 2005 07:36:00 -0800 (PST) To: gtk-list@gnome.org Date: Tue, 13 Dec 2005 09:39:38 -0600 User-Agent: KMail/1.6.2 References: <33365135.1134474685252.JavaMail.root@cps2> In-Reply-To: <33365135.1134474685252.JavaMail.root@cps2> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200512130939.39260.largegeek@largegeek.com> From: Largegeek X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_KG=0.077] X-Spam-Score: -2.446 X-Spam-Level: Subject: Re: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: largegeek@largegeek.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 15:36:43 -0000 I'm trying to install gimp 2.2.9 I am not running Debian, I have Slackware 9.1. I know it's an old version,= I=20 just really don't feel like doing a complete upgrade of it right now. On Tuesday 13 December 2005 05:51, DANIELLLANO@terra.es wrote: > Largegeek wrote: > > I am trying to upgrade my version of gtk+ because I want to upgrade gim= p. > > At least, that was the original version but now it has become an all > > consuming mission because I have been trying on and off for a couple > > weeks now with no success. > > > > I just installed the following libraries: > > atk 1.10.1 > > cairo 1.0.2 > > glib 2.8.4 > > pango 1.10.1 > > > > originally I had needed to keep my old version of glib on here because I > > was having other programs break with version 2.8.4 of glib. Mainly > > unresolved symbol issues. but whenever I would try to run configure on > > gtk+ it > > would say > > > that pkgconfig reported v2.8.4 of glib, but it found my old one. After > > unsuccessfully trying to figure that problem out, I gave up and decided > > that I would just rebuild the programs that didn't work with the new gl= ib > > version Now I'm getting an error said that configure can't link to the > > pango libraries, when I know I have them installed in /usr/local. > > What version of gimp are you trying to install? > > Debian already has gimp-2.2.9 (and updated versions of the needed > libraries) so you may want to stick to Debian testing or unstable if you > are not doing hardcore > development. > http://packages.debian.org/gimp > > > > Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yinglcs@aim.com Tue Dec 13 11:44:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A19F3B0A24 for ; Tue, 13 Dec 2005 11:44:04 -0500 (EST) 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 15888-02 for ; Tue, 13 Dec 2005 11:43:57 -0500 (EST) Received: from imo-m19.mx.aol.com (imo-m19.mx.aol.com [64.12.137.11]) by menubar.gnome.org (Postfix) with ESMTP id 82B223B0917 for ; Tue, 13 Dec 2005 11:43:56 -0500 (EST) Received: from yinglcs@aim.com by imo-m19.mx.aol.com (mail_out_v38_r6.3.) id h.1f0.48eb5bd5 (57874) for ; Tue, 13 Dec 2005 11:43:49 -0500 (EST) Received: from FWM-R06 (fwm-r06.webmail.aol.com [152.163.211.134]) by air-ia02.mx.aol.com (v108.32) with ESMTP id MAILINIA24-e212439efa4410; Tue, 13 Dec 2005 11:43:49 -0500 Date: Tue, 13 Dec 2005 11:43:48 -0500 From: yinglcs@aim.com Message-Id: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by FWM-R06.sysops.aol.com (152.163.211.134) with HTTP (WebMailUI); Tue, 13 Dec 2005 11:43:48 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 152.163.211.134 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.637 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0, NO_REAL_NAME=0.961, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -1.637 X-Spam-Level: Subject: Find the font of a Widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 16:44:04 -0000 Hi, Can you please tell me how can I which font a widget is using programmically? I can only find this funtion, which just modify the font: gtk_widget_modify_font. Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From paul@linuxaudiosystems.com Tue Dec 13 15:20:30 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F3353B3A93 for ; Tue, 13 Dec 2005 15:20:30 -0500 (EST) 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 04174-03 for ; Tue, 13 Dec 2005 15:20:24 -0500 (EST) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id D86A43B2A7A for ; Tue, 13 Dec 2005 15:19:53 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRG0063PDT4LE26@vms040.mailsrvcs.net> for gtk-list@gnome.org; Tue, 13 Dec 2005 14:19:53 -0600 (CST) Date: Tue, 13 Dec 2005 15:22:29 -0500 From: Paul Davis In-reply-to: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> To: yinglcs@aim.com Message-id: <1134505349.13653.103.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.467 tagged_above=-999 required=2 tests=[AWL=-0.022, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.467 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Find the font of a Widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:20:30 -0000 GtkStyle* style = gtk_widget_get_style(widget); PangoFontDescription* font = style->font; or something like that. i use gtkmm (C++) note that styles are not necessarily set up until after a widget has been realized, because they can be affected by the screen the widget is displayed on. --p From inittab@sdf.lonestar.org Tue Dec 13 15:39:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AE2753B2B57 for ; Tue, 13 Dec 2005 15:39:37 -0500 (EST) 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 05895-06 for ; Tue, 13 Dec 2005 15:39:35 -0500 (EST) Received: from sdf.lonestar.org (ol.freeshell.ORG [192.94.73.20]) by menubar.gnome.org (Postfix) with ESMTP id 5CF743B29CD for ; Tue, 13 Dec 2005 15:39:27 -0500 (EST) Received: from sdf.lonestar.org (IDENT:inittab@freeshell.ORG [192.94.73.30]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id jBDKdHW6011219 for ; Tue, 13 Dec 2005 20:39:17 GMT Received: (from inittab@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id jBDKdHnA019848 for gtk-list@gnome.org; Tue, 13 Dec 2005 20:39:17 GMT Date: Tue, 13 Dec 2005 20:39:17 +0000 From: Greg Schenzel To: gtk-list@gnome.org Message-ID: <20051213203917.GA16628@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-Mailman-Approved-At: Wed, 14 Dec 2005 08:50:02 -0500 Subject: ComboBoxText set_editable equivalent X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: inittab@unixdev.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:39:37 -0000 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable To Whom It May Concern, I'm using gtkmm to build a C++ video stream converter. There are several fields which only need be edited under certain format profiles. Most of these fields are Gtk::ComboBoxText widgets. I need an equivalent for set_editable to prevent the user from selecting a nonsensical combination, but I am unable to find it. In short, what is the best practice to grey-out a ComboBoxText widget? Thanks in Advance, - Greg S. P.S. Please CC me at inittab AT unixdev.net. --=20 Greg Schenzel: inittab@unixdev.net UNIX Administrator, IP Networking Specialist WWW: inittab.netizenweb.com, www.unixdev.net ICQ: 57800324, Yahoo: idle_resonance, AIM: Idle Resonance --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (NetBSD) iD8DBQFDnzF12ua/BJvbazcRAuStAKCf2H6lfne1GxmLmPObSVT9mHPWiwCdFUsl V8s15+jUJcWl1OfOp1W3pE8= =EEM9 -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq-- From zvi.sebrow@verizon.net Wed Dec 14 10:27:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3878D3B3E94; Wed, 14 Dec 2005 10:27:49 -0500 (EST) 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 31045-10; Wed, 14 Dec 2005 10:27:47 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id 51B193B3E24; Wed, 14 Dec 2005 10:27:19 -0500 (EST) Received: from OFFICEPC1 ([151.205.166.142]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRH003S8UWCQCM1@vms048.mailsrvcs.net>; Wed, 14 Dec 2005 09:26:38 -0600 (CST) Date: Wed, 14 Dec 2005 10:26:37 -0500 From: "Zvi Sebrow" To: , Message-id: <00cb01c600c2$c6b53e60$4000a8c0@OFFICEPC1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_00C8_01C60098.DD718070" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.909 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: 1.909 X-Spam-Level: * Cc: Subject: GtkComboEntryBox, tabs and focus X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 15:27:50 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00C8_01C60098.DD718070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there a way to set up a GtkComboEntryBox so that if the user hits the TAB key (while editing text in the EntryBox), the focus would not be grabbed by the down-arrow-box of=20 the ComboBox but rather the next Widget in the window?=20 Zvi ------=_NextPart_000_00C8_01C60098.DD718070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there a way to set up a GtkComboEntryBox so that = if=20 the
user hits the TAB key (while editing text=20 in the EntryBox),
 the focus would not be = grabbed by=20 the down-arrow-box of
the ComboBox but rather the next Widget in = the window? 
 
Zvi
------=_NextPart_000_00C8_01C60098.DD718070-- From napoleone1981@gmail.com Wed Dec 14 17:29:41 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A775B3B127E for ; Wed, 14 Dec 2005 17:29:41 -0500 (EST) 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 07676-04 for ; Wed, 14 Dec 2005 17:29:38 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by menubar.gnome.org (Postfix) with ESMTP id 556463B0D69 for ; Wed, 14 Dec 2005 17:29:38 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 13so223373nzp for ; Wed, 14 Dec 2005 14:29:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oUAtw54RXcNUcE7FujNvn5xGZHbwmwfeypesvM7k/4jzUlZrA6+GAaWbOG4ILxatkK9BB/kdNPOJs99Vgemd2F/jxKK1xusuBJCVlBxhhJ5FUoYtCNNo4oc1QkDnfETBiiyCHQU9b5pg9UMOKiCi7v8oSZOfmhFNE36wRgt/4hw= Received: by 10.65.139.11 with SMTP id r11mr811945qbn; Wed, 14 Dec 2005 14:29:37 -0800 (PST) Received: by 10.65.252.20 with HTTP; Wed, 14 Dec 2005 14:29:37 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 23:29:37 +0100 From: "N@poleone" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.532 tagged_above=-999 required=2 tests=[AWL=0.068, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.532 X-Spam-Level: Subject: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 22:29:41 -0000 Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()= ': error: argument of type `gint (dialogAcquisizione::)(void*)' does not match `gboolean (*)(void*)' The code is (all in the same class): #include gint dialogAcquisizione::acquisisci(gpointer data) { std::cout << "Sto acquisendo...\n"; return (TRUE); } void dialogAcquisizione::on_okbutton2_clicked() { std::cout << "Intercettato l'evento di ok\n" << "Inzializzo il timer\n"; guint timer_id; timer_id =3D gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); //this.hide(); } Why??? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Wed Dec 14 22:38:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBC1A3B0E7D for ; Wed, 14 Dec 2005 22:38:06 -0500 (EST) 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 29657-06 for ; Wed, 14 Dec 2005 22:38:02 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id 09E973B0BBB for ; Wed, 14 Dec 2005 22:38:02 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRI00KJVSRBT1O4@vms048.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Dec 2005 21:38:01 -0600 (CST) Date: Wed, 14 Dec 2005 22:40:39 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134618039.7539.9.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 03:38:07 -0000 On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > Hi, > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > is the same...). I'm using C++... > The error is: > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > match `gboolean (*)(void*)' > > The code is (all in the same class): > > #include > > gint dialogAcquisizione::acquisisci(gpointer data) this should return gboolean. > { > std::cout << "Sto acquisendo...\n"; > return (TRUE); > } > > void dialogAcquisizione::on_okbutton2_clicked() > { > std::cout << "Intercettato l'evento di ok\n" > << "Inzializzo il timer\n"; > guint timer_id; > timer_id = > gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); > //this.hide(); > } > > Why??? > -- > Ciao da > N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) > "Le battaglie si vincono con gli uomini che si hanno, non con quelli che > si vorrebbero" (Napoleone Bonaparte) > "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) > "Le donne possono avere bambini...gli uomini computers" (Anonimo) > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From ramachandracs@rediffmail.com Wed Dec 14 23:09:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BE6173B0011 for ; Wed, 14 Dec 2005 23:09:37 -0500 (EST) 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 32121-07 for ; Wed, 14 Dec 2005 23:09:35 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.147]) by menubar.gnome.org (Postfix) with SMTP id 4F09C3B07C0 for ; Wed, 14 Dec 2005 23:09:32 -0500 (EST) Received: (qmail 15283 invoked by uid 510); 15 Dec 2005 04:08:57 -0000 Date: 15 Dec 2005 04:08:57 -0000 Message-ID: <20051215040857.15281.qmail@webmail25.rediffmail.com> Received: from unknown (59.92.155.231) by rediffmail.com via HTTP; 15 dec 2005 04:08:57 -0000 MIME-Version: 1.0 From: "Ramachandra CS" To: "gtk_list" Content-type: multipart/mixed; boundary="Next_1134619737---0-203.199.83.147-15278" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.97 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0, TW_GT=0.077] X-Spam-Score: -0.97 X-Spam-Level: Subject: Fwd: Warning :*****: When I run GTK Application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ramachandra CS List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 04:09:37 -0000 This is a multipart mime message --Next_1134619737---0-203.199.83.147-15278 Content-type: multipart/alternative; boundary="Next_1134619737---1-203.199.83.147-15278" This is a multipart mime message --Next_1134619737---1-203.199.83.147-15278 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0A=0A=0ANote: Forwarded message attached=0A=0A-- Original Message --= =0A=0AFrom: "Ramachandra CS" =0ATo: gtk-list@= gnome.org=0ASubject: Warning :*****: When I run GTK Application=0A --Next_1134619737---1-203.199.83.147-15278 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0A
=0A
=0ANote: Forwarded message attached
=0A=0A-- Original Message --
=0A
=0AFrom: "Ramachandra CS" &= lt;ramachandracs@rediffmail.com>
=0ATo: gtk-list@gnome.org
=0ASubj= ect: Warning :*****: When I run GTK Application
=0A=0A

=0A

=0A=
=0A --Next_1134619737---1-203.199.83.147-15278-- --Next_1134619737---0-203.199.83.147-15278 Content-type: message/rfc822 MIME-Version: 1.0 Message-ID: <20051213035808.10265.qmail@webmail62.rediffmail.com> From: "Ramachandra CS" To: gtk-list@gnome.org Subject: Warning :*****: When I run GTK Application Content-Type: multipart/mixed; boundary="===============1428433415==" This is a multipart mime message --===============1428433415== Content-type: multipart/alternative; boundary="Next_1134446288---0-203.199.83.136-10251" This is a multipart mime message --Next_1134446288---0-203.199.83.136-10251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0A=A0 I am facing some problems when i run my GTK Applications. = And also when i click on any widget, it display the Gdk-WARNING, but the ap= plication works fine some times. =0A =0A So Can u suggest me some i= deas to correct these problems. And the following are the Gdk-WARNINGS.....= .........................=0A=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-885= 9-1': No such file or directory=0A=0A(tcsetup:903): Gdk-WARNING **: Error c= onverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'I= SO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conve= rting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8= 859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error convertin= g from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-= 1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fr= om UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' i= s not supported=0AEXEC FAILED!=0A=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fro= m UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is= not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UT= F-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not= supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 = to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not sup= ported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to S= TRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not support= ed=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRIN= G: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0AEXEC FAILED!=0A= =0A=0A=0A=0ARegards,=0A-r=0A --Next_1134446288---0-203.199.83.136-10251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A Hi,
=0A
=0A    I am facing some problems when i run= my GTK Applications. And also when i click on any widget, it display the G= dk-WARNING, but the application works fine some times.
=0A   =
=0A    So Can u suggest me some ideas to correct these pro= blems. And the following are the Gdk-WARNINGS..............................=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1': No such fil= e or directory
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Erro= r converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to= 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A(tcsetup:903= ): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from c= haracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup= :903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fr= om character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcs= etup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversio= n from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A= (tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conve= rsion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: C= onversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
= =0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING= : Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to ST= RING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supporte= d
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 t= o STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supp= orted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF= -8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not = supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from= UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is = not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting = from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1'= is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-885= 9-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error con= verting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO= -8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error= converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to = 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A
=0A
= =0A
=0ARegards,
=0A-r
=0A=0A

=0A

=0A=0A --Next_1134446288---0-203.199.83.136-10251-- --===============1428433415== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list --===============1428433415==-- --Next_1134619737---0-203.199.83.147-15278-- From napoleone1981@gmail.com Thu Dec 15 03:24:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 053953B09DE for ; Thu, 15 Dec 2005 03:24:43 -0500 (EST) 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 16480-05 for ; Thu, 15 Dec 2005 03:24:40 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 2AE3B3B12AB for ; Thu, 15 Dec 2005 03:24:36 -0500 (EST) Received: by zproxy.gmail.com with SMTP id x7so324686nzc for ; Thu, 15 Dec 2005 00:24:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VarLhpl1OBxpO1q2ihoRGM4MpUPJZUQes57n5Mw8A6P8b0kjizTb9V9dGwVsOjePYT7jsLU1qwnk2raAjY8pH91MTVExO/yEyFn/ujKi19tUsLgX7Ks0Sv0JgpFoZq6D+GBgTc1UC7+o6JVQXvIWzThyceay6Z4NnOlHPyLEzEY= Received: by 10.65.75.3 with SMTP id c3mr302974qbl; Thu, 15 Dec 2005 00:24:35 -0800 (PST) Received: by 10.65.252.20 with HTTP; Thu, 15 Dec 2005 00:24:35 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 09:24:35 +0100 From: "N@poleone" To: paul@linuxaudiosystems.com In-Reply-To: <1134618039.7539.9.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134618039.7539.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.542 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.542 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 08:24:43 -0000 2005/12/15, Paul Davis : > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > > Hi, > > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > > is the same...). I'm using C++... > > The error is: > > > > In member function `virtual void dialogAcquisizione::on_okbutton2_click= ed()': > > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > > match `gboolean (*)(void*)' > > > > The code is (all in the same class): > > > > #include > > > > gint dialogAcquisizione::acquisisci(gpointer data) > > this should return gboolean. > I resolved defining the function as static... -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From napoleone1981@gmail.com Wed Dec 14 09:39:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6C493B07BB for ; Wed, 14 Dec 2005 09:39:56 -0500 (EST) 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 26251-03 for ; Wed, 14 Dec 2005 09:39:54 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by menubar.gnome.org (Postfix) with ESMTP id C69D73B3D3D for ; Wed, 14 Dec 2005 09:39:27 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i12so401477wra for ; Wed, 14 Dec 2005 06:39:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=L++9lHaIlew3AxXuWEMYxz5pRxhlje9E+04MsVQgSPikCyWsFCTPYAAtHQ/ELBxKeeRLYMr0B2MLI9Rwa0E2iMsEI8UkSJjh4pSiqelYdM+f0lF9fEx1xRQ6oueHuA5sObEIsY4XzoA0UQOGSk0Cv3db7Da5GoORa0Dq+NZGPi4= Received: by 10.64.91.18 with SMTP id o18mr441810qbb; Wed, 14 Dec 2005 06:39:25 -0800 (PST) Received: by 10.65.252.20 with HTTP; Wed, 14 Dec 2005 06:39:25 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 15:39:25 +0100 From: "N@poleone" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Thu, 15 Dec 2005 09:03:02 -0500 Subject: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 14:39:57 -0000 Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()= ': error: argument of type `gint (dialogAcquisizione::)(void*)' does not match `gboolean (*)(void*)' The code is (all in the same class): #include gint dialogAcquisizione::acquisisci(gpointer data) { =09std::cout << "Sto acquisendo...\n"; =09return (TRUE); } void dialogAcquisizione::on_okbutton2_clicked() { =09std::cout << "Intercettato l'evento di ok\n" =09=09=09<< "Inzializzo il timer\n"; =09guint timer_id; =09timer_id =3D gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acqui= sisci,NULL); =09//this.hide(); } Why??? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Thu Dec 15 09:27:31 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 386FD3B1DD3 for ; Thu, 15 Dec 2005 09:27:31 -0500 (EST) 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 20405-01 for ; Thu, 15 Dec 2005 09:27:29 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 44BAF3B1D03 for ; Thu, 15 Dec 2005 09:27:29 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRJ00GAVMTMH9S5@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Dec 2005 08:27:26 -0600 (CST) Date: Thu, 15 Dec 2005 09:30:02 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134657002.7539.28.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1134618039.7539.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 14:27:31 -0000 On Thu, 2005-12-15 at 09:24 +0100, N@poleone wrote: > 2005/12/15, Paul Davis : > > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > > > Hi, > > > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > > > is the same...). I'm using C++... > > > The error is: > > > > > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > > > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > > > match `gboolean (*)(void*)' > > > > > > The code is (all in the same class): > > > > > > #include > > > > > > gint dialogAcquisizione::acquisisci(gpointer data) > > > > this should return gboolean. > > > > I resolved defining the function as static... wow, somehow i completely missed out on the C++ part. amazing. why are you not using gtkmm ? this allows you to use a fully C++ idiom (or several of them) with GTK. its very, very, very nice. and where its not nice, that's GTK's fault :) --p From jean.brefort@normalesup.org Thu Dec 15 11:16:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 944413B27AF for ; Thu, 15 Dec 2005 11:16:38 -0500 (EST) 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 30293-04 for ; Thu, 15 Dec 2005 11:16:33 -0500 (EST) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 561593B27BE for ; Thu, 15 Dec 2005 11:16:22 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id 7C0AD6CC06; Thu, 15 Dec 2005 17:16:21 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: "N@poleone" In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Thu, 15 Dec 2005 17:12:11 +0100 Message-Id: <1134663131.9201.9.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.909 tagged_above=-999 required=2 tests=[AWL=-0.379, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.909 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 16:16:43 -0000 Le mercredi 14 décembre 2005 à 15:39 +0100, N@poleone a écrit : > Hi, > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > is the same...). I'm using C++... > The error is: > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > match `gboolean (*)(void*)' > > The code is (all in the same class): > > #include > > gint dialogAcquisizione::acquisisci(gpointer data) > { > std::cout << "Sto acquisendo...\n"; > return (TRUE); > } > > void dialogAcquisizione::on_okbutton2_clicked() > { > std::cout << "Intercettato l'evento di ok\n" > << "Inzializzo il timer\n"; > guint timer_id; > timer_id = gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); > //this.hide(); > } > > Why??? You cannot use a C++ class method directly in gtk_timeout_add. One way to do that is: void cb_timeout (dialogAcquisizione *dialog) { dialog->acquisici(NULL); // do you really need an argument? } ... timer_id = gtk_timeout_add(5000,G_CALLBACK (cb_timeout), this); From napoleone1981@gmail.com Thu Dec 15 11:58:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6BD593B2642 for ; Thu, 15 Dec 2005 11:58:15 -0500 (EST) 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 01705-04 for ; Thu, 15 Dec 2005 11:58:13 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by menubar.gnome.org (Postfix) with ESMTP id 3CA3C3B2813 for ; Thu, 15 Dec 2005 11:57:54 -0500 (EST) Received: by zproxy.gmail.com with SMTP id z31so419070nzd for ; Thu, 15 Dec 2005 08:57:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R5ns24oNzpmd7Viml1PKNEazTKkWtq4XCc/PbSfgUtetnk84QTpviZajdxQhFCNWSFO/TJ1dpRTatm09ZiKZSlY5IgfZ/Hdpb+i5hCtX0mJvIdIMtLW2KNKlcBIO4znFxIIkvrf4W8gKpIoa2WqDVErt/tD4sP07qNZbgEor8gg= Received: by 10.65.160.11 with SMTP id m11mr1153352qbo; Thu, 15 Dec 2005 08:57:53 -0800 (PST) Received: by 10.65.252.20 with HTTP; Thu, 15 Dec 2005 08:57:53 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 17:57:53 +0100 From: "N@poleone" To: paul@linuxaudiosystems.com In-Reply-To: <1134657002.7539.28.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134618039.7539.9.camel@localhost.localdomain> <1134657002.7539.28.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 16:58:15 -0000 2005/12/15, Paul Davis : > On Thu, 2005-12-15 at 09:24 +0100, N@poleone wrote: > > 2005/12/15, Paul Davis : > > > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: [CUT] > > > > I resolved defining the function as static... > > > wow, somehow i completely missed out on the C++ part. amazing. > > why are you not using gtkmm ? this allows you to use a fully C++ idiom > (or several of them) with GTK. its very, very, very nice. and where its > not nice, that's GTK's fault :) > > --p I'm using gtkmm, but I couldn't find the same function in gtkmm, so I found that in gtk. Theres is a g_timeout_add function also for gtkmm?? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Thu Dec 15 12:19:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87FB63B2C76 for ; Thu, 15 Dec 2005 12:19:54 -0500 (EST) 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 04002-06 for ; Thu, 15 Dec 2005 12:19:52 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id CD70A3B2A41 for ; Thu, 15 Dec 2005 12:12:27 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRJ00EGAUGP6KW5@vms048.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Dec 2005 11:12:27 -0600 (CST) Date: Thu, 15 Dec 2005 12:15:05 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134666905.7539.40.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1134618039.7539.9.camel@localhost.localdomain> <1134657002.7539.28.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 17:19:54 -0000 > > why are you not using gtkmm ? this allows you to use a fully C++ idiom > > (or several of them) with GTK. its very, very, very nice. and where its > > not nice, that's GTK's fault :) > > > > --p > > I'm using gtkmm, but I couldn't find the same function in gtkmm, so I > found that in gtk. > Theres is a g_timeout_add function also for gtkmm?? Glib::signal_timeout().connect (mem_fun (object, &SomeObject::method), msecs); From control.h@gmail.com Thu Dec 15 14:47:34 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EEEC73B2AD7 for ; Thu, 15 Dec 2005 14:47:33 -0500 (EST) 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 17591-01 for ; Thu, 15 Dec 2005 14:47:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 8B53E3B2CE2 for ; Thu, 15 Dec 2005 14:47:30 -0500 (EST) Received: by zproxy.gmail.com with SMTP id x7so463784nzc for ; Thu, 15 Dec 2005 11:47:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KOS4o0Mkx7tm1uwYAmoDdS+PvxrDvqKJ0ATgdoBgsUXundksjyB31ldhf4SkEKfFMVrwCyqs8vAy5Gg3gxikiqDv2dd8gBakKkbwhM6YE4pXBxGSJxiCwhcbjl8qgFyOTxmyP0lURfdoZyBkGKl9oYYmSPBMwkfv5uhYtk/QOnA= Received: by 10.64.242.4 with SMTP id p4mr409845qbh; Thu, 15 Dec 2005 11:47:28 -0800 (PST) Received: by 10.64.204.13 with HTTP; Thu, 15 Dec 2005 11:47:26 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 20:47:26 +0100 From: control H To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: force configure-event X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 19:47:34 -0000 Hi all, in my app I connect an "event" callback to a button. From within this callback I try to force a "configure-event" for a gtdrawingarea by calling gtk_widget_queue_draw(drawing_area). However, this signal is never emitted, therefore the drawingarea never gets redrawn. Any ideas why? From riboaz@xs4all.nl Thu Dec 15 16:18:25 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A1E33B2131 for ; Thu, 15 Dec 2005 16:18:25 -0500 (EST) 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 26131-08 for ; Thu, 15 Dec 2005 16:18:21 -0500 (EST) Received: from smtp-vbr8.xs4all.nl (smtp-vbr8.xs4all.nl [194.109.24.28]) by menubar.gnome.org (Postfix) with ESMTP id 9F3983B20D8 for ; Thu, 15 Dec 2005 16:18:20 -0500 (EST) Received: from webmail.xs4all.nl (dovemail1.xs4all.nl [194.109.26.3]) by smtp-vbr8.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBFLICL7050685 for ; Thu, 15 Dec 2005 22:18:16 +0100 (CET) (envelope-from riboaz@xs4all.nl) Received: from 80.126.242.36 (SquirrelMail authenticated user riboaz) by webmail.xs4all.nl with HTTP; Thu, 15 Dec 2005 22:18:16 +0100 (CET) Message-ID: <22449.80.126.242.36.1134681496.squirrel@webmail.xs4all.nl> In-Reply-To: References: Date: Thu, 15 Dec 2005 22:18:16 +0100 (CET) From: "Richard Boaz" To: gtk-list@gnome.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Re: force configure-event X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 21:18:25 -0000 > Hi all, > > in my app I connect an "event" callback to a button. From within this > callback I try to force a "configure-event" for a gtdrawingarea by calling > gtk_widget_queue_draw(drawing_area). However, this signal is never > emitted, therefore the drawingarea never gets redrawn. > > Any ideas why? hi, configure-event is called upon initial exposure of the drawing area and changes in dimension (and probably more). gtk_widget_queue_draw() will invoke the expose-event callback you have defined for the drawing area. one paradigm for managing this type of situation: - in the configure event, call the routine responsible for making the drawing - in the drawing routine, draw everything to a pixmap. last line of code is gtk_widget_queue_draw() on the drawing area the pixmap should be rendered to. - in the expose event, do nothing (in terms of drawing) except draw the pixmap to the drawing area following this allows you to call your drawing routines from within the program itself, always resulting in a refresh of the drawing area. ciao, richard From zboszor@freemail.hu Thu Dec 15 20:19:46 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E4BE3B2D14 for ; Thu, 15 Dec 2005 20:19:46 -0500 (EST) 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 12416-10 for ; Thu, 15 Dec 2005 20:19:41 -0500 (EST) Received: from linux.dunaweb.hu (linux.dunaweb.hu [62.77.196.1]) by menubar.gnome.org (Postfix) with ESMTP id 5B6FB3B1384 for ; Thu, 15 Dec 2005 20:19:41 -0500 (EST) Received: from localhost (linux.dunaweb.hu [127.0.0.1]) by linux.dunaweb.hu (Postfix) with ESMTP id E033F8E057F for ; Fri, 16 Dec 2005 02:19:39 +0100 (CET) Received: from linux.dunaweb.hu ([127.0.0.1]) by localhost (linux.dunaweb.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-02 for ; Fri, 16 Dec 2005 02:19:34 +0100 (CET) Received: from szolnok.dunaweb.hu (unknown [192.168.3.154]) by linux.dunaweb.hu (Postfix) with ESMTP id 61AD88E0539 for ; Fri, 16 Dec 2005 02:19:33 +0100 (CET) Received: from [81.17.177.202] (host-81-17-177-202.dunaweb.hu [81.17.177.202]) by szolnok.dunaweb.hu (Postfix) with ESMTP id 9F3B78913CC for ; Fri, 16 Dec 2005 02:19:25 +0100 (CET) Message-ID: <43A21DBA.6060405@freemail.hu> Date: Fri, 16 Dec 2005 02:51:54 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at dunaweb.hu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: Linking both GTK-1.2 and GTK-2.x libs X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 01:19:46 -0000 Hi, I have a GTK-1.2 application and I would like to use the RLIB reporting engine. Problem is, RLIB uses GLIB-2.x internally. Is it possible to link together both GTK/GLIB versions together and have it working? What I have done is that I wrapped all RLIB calls into an own library, so my reporting library can include different set of include headers ( and ) as the main application and it compiles nicely. However, RLIB opens it's lower level DBMS accessor modules with e.g. g_module_open("libr-odbc", 2). It seems that it finds the wrong version of the function, strace shows it tries to dlopen /usr/lib64/libr-odbc instead of /usr/lib64/libr-odbc.so. The whole stuff works nicely in another fully GTK-2.x application, g_module_open() in GLIB-2.x finds the correct shared library name even on Windows. I "fixed" it with creating a symlink but then it crashes elsewhere, I guess it comes from the same problem. If linking together GTK-1.2 and GTK-2.x can be done, how? Best regards, Zoltán Böszörményi From raphtee@gmail.com Thu Dec 15 21:14:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BBA583B0D53 for ; Thu, 15 Dec 2005 21:14:04 -0500 (EST) 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 16008-09 for ; Thu, 15 Dec 2005 21:14:02 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by menubar.gnome.org (Postfix) with ESMTP id C8EB83B0C62 for ; Thu, 15 Dec 2005 21:14:01 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so694213wxc for ; Thu, 15 Dec 2005 18:14:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=XPkOt0MwaPEu8C7ponuKXIP6Poq0MeKH9ImEPasckqnrCFrRj8dm+OIw6Q4Mbqj5KwmYz9jjUlUMBKJbZyeuajSBYWzzllwuJkwAwECVwshmS/xLZZLyU7xSDaNN+YxXUwqB2JgBVtBtBpVYIIToJ6J2TMuB+ccgMIurlqrZhCI= Received: by 10.70.74.20 with SMTP id w20mr224557wxa; Thu, 15 Dec 2005 18:13:58 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id i20sm3764426wxd.2005.12.15.18.13.58; Thu, 15 Dec 2005 18:13:58 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 15 Dec 2005 21:13:56 -0500 Message-Id: <1134699236.1450.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: To kill a GThread X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:14:04 -0000 Hi, I am trying to figure out how to kill a GThread that I created using g_thread_create(). I couldn't find anything in DevHelp that would indicate a way to kill a thread. It seems the only way is to signal the thread and have the thread call g_thread_exit() itself. Is there a way to kill a thread from another thread directly? Travis Miller From chris@cvine.freeserve.co.uk Fri Dec 16 04:43:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2B5093B115E for ; Fri, 16 Dec 2005 04:43:09 -0500 (EST) 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 15009-04 for ; Fri, 16 Dec 2005 04:43:05 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id ECAFD3B0D40 for ; Fri, 16 Dec 2005 04:43:00 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3213.me.freeserve.com (SMTP Server) with ESMTP id B8837B000084; Fri, 16 Dec 2005 10:42:59 +0100 (CET) Received: from boulder.homenet (user-865.l5.c1.dsl.pol.co.uk [84.66.3.97]) by mwinf3213.me.freeserve.com (SMTP Server) with ESMTP id 92730B000086; Fri, 16 Dec 2005 10:42:59 +0100 (CET) X-ME-UUID: 20051216094259599.92730B000086@mwinf3213.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id jBG9gxAN000792; Fri, 16 Dec 2005 09:42:59 GMT From: Chris Vine To: gtk-list@gnome.org, raphtee@gmail.com Date: Fri, 16 Dec 2005 09:42:59 +0000 User-Agent: KMail/1.9 References: <1134699236.1450.6.camel@localhost.localdomain> In-Reply-To: <1134699236.1450.6.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512160942.59380.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.264 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.264 X-Spam-Level: Cc: Subject: Re: To kill a GThread X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 09:43:09 -0000 On Friday 16 December 2005 02:13, Travis Miller wrote: > Hi, > > I am trying to figure out how to kill a GThread that I created using > g_thread_create(). I couldn't find anything in DevHelp that would > indicate a way to kill a thread. It seems the only way is to signal the > thread and have the thread call g_thread_exit() itself. Is there a way > to kill a thread from another thread directly? You would have to write some implementation-specific code. If you know that the underlying implementation is pthreads, you could get the thread id of the thread you want to cancel and call pthread_cancel() on it, after calling pthread_cleanup_push() or pthread_cleanup_pop() as necessary to ensure the cancelled thread cleans up its resources (such as memory allocated on the heap). I believe Windows has a similar call, but I do not know its name, nor whether it chooses a similar set of cancellation points. Chris From ztuylek@inonu.edu.tr Fri Dec 16 05:51:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CC3B006B for ; Fri, 16 Dec 2005 05:51:48 -0500 (EST) 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 20532-05 for ; Fri, 16 Dec 2005 05:51:46 -0500 (EST) Received: from inonu.edu.tr (unknown [193.140.142.6]) by menubar.gnome.org (Postfix) with ESMTP id 40DCF3B0C38 for ; Fri, 16 Dec 2005 05:51:37 -0500 (EST) Received: from inonu.edu.tr (localhost [127.0.0.1]) by inonu.edu.tr (Postfix) with ESMTP id DFD9EEC229 for ; Fri, 16 Dec 2005 12:51:23 +0200 (EET) Received: from [193.140.142.252] (unknown [193.140.142.252]) by inonu.edu.tr (Postfix) with ESMTP id C91ABEC225 for ; Fri, 16 Dec 2005 12:51:23 +0200 (EET) Message-ID: <43A29C22.5050005@inonu.edu.tr> Date: Fri, 16 Dec 2005 12:51:14 +0200 From: ztuylek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.124 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: 1.124 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 10:51:48 -0000 From lists@nabble.com Thu Dec 15 21:22:47 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A322F3B144F for ; Thu, 15 Dec 2005 21:22:47 -0500 (EST) 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 16739-07 for ; Thu, 15 Dec 2005 21:22:45 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 56A8E3B0A13 for ; Thu, 15 Dec 2005 21:22:44 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1En5F5-0001C3-V1 for gtk-list@gnome.org; Thu, 15 Dec 2005 18:22:44 -0800 Message-ID: <1968302.post@talk.nabble.com> Date: Thu, 15 Dec 2005 18:22:43 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org In-Reply-To: <1916845.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_417_6830323.1134699763957" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 References: <1916845.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-Mailman-Approved-At: Fri, 16 Dec 2005 08:14:29 -0500 Subject: Re: how to add an icon to the item in my list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:22:47 -0000 ------=_Part_417_6830323.1134699763957 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit help -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/how-to-add-an-icon-to-the-item-in-my-list-t731785.html#a1968302 ------=_Part_417_6830323.1134699763957 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit help

Sent from the
Gtk+ - General forum at Nabble.com:
Re: how to add an icon to the item in my list ------=_Part_417_6830323.1134699763957-- From yeajchao@yahoo.com.cn Sat Dec 17 23:28:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 132343B19AB for ; Sat, 17 Dec 2005 23:28:12 -0500 (EST) 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 11230-01 for ; Sat, 17 Dec 2005 23:28:07 -0500 (EST) Received: from web15108.mail.cnb.yahoo.com (web15108.mail.cnb.yahoo.com [202.165.103.77]) by menubar.gnome.org (Postfix) with SMTP id 1BB053B0C13 for ; Sat, 17 Dec 2005 23:28:06 -0500 (EST) Received: (qmail 82543 invoked by uid 60001); 18 Dec 2005 04:28:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JCKDec8fdb08yTXoGqD7YkdldKF1JfsMDsP1GgySZhjDIep6euwm9h72DCOhG03k1EK3Wcqs011kzmgdCrYu34EUhaD5dCUaYjPGah82FLEfeG2YQVQwgHXzyWLFbenep9ndB6ReWaPRhVk+hnZIyCWXTKZ69laEfxEPcmshXHE= ; Message-ID: <20051218042803.82541.qmail@web15108.mail.cnb.yahoo.com> Received: from [159.226.165.155] by web15108.mail.cnb.yahoo.com via HTTP; Sun, 18 Dec 2005 12:28:03 CST Date: Sun, 18 Dec 2005 12:28:03 +0800 (CST) From: yeajchao To: gtk-app , gtk-list MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.909 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: 1.909 X-Spam-Level: * Cc: Subject: question about combo X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:28:12 -0000 hello all In my application,i use combo in somewhere the problem is when i click on it he popup a list when i move mouse on the list the selected highligth don't move accordingly what can i do ? any help would be much appreciate __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com From yeajchao@yahoo.com.cn Sat Dec 17 23:49:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 559393B1989 for ; Sat, 17 Dec 2005 23:49:12 -0500 (EST) 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 12804-06 for ; Sat, 17 Dec 2005 23:49:08 -0500 (EST) Received: from web15102.mail.cnb.yahoo.com (web15102.mail.cnb.yahoo.com [202.165.103.71]) by menubar.gnome.org (Postfix) with SMTP id 18B553B161A for ; Sat, 17 Dec 2005 23:49:07 -0500 (EST) Received: (qmail 621 invoked by uid 60001); 18 Dec 2005 04:49:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X5Qn5T1sSyQv0Ja9Vgzvw9BNqLBxfgmf0dWHXpyFQF6dkikX8f8N9djdlfumCkkENs8HlajtQnTw2NsFPbYBd8I/D8D4YBPRYih6EC+bpl3V4O+9UUkEntPZUhrbP1ljHEezHnAi2Rp46926gwy1Bhy+vgVPMUi4BXD5VjrM69Q= ; Message-ID: <20051218044905.619.qmail@web15102.mail.cnb.yahoo.com> Received: from [159.226.165.155] by web15102.mail.cnb.yahoo.com via HTTP; Sun, 18 Dec 2005 12:49:05 CST Date: Sun, 18 Dec 2005 12:49:05 +0800 (CST) From: yeajchao To: gtk-app , gtk-list MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.782 tagged_above=-999 required=2 tests=[AWL=-1.127, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: 0.782 X-Spam-Level: Cc: Subject: about draw color line or polygon X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:49:12 -0000 kello all i want draw line or my own widget with color how can i draw a polygon with color ,and in the polygon, the color are not the same ,the coloe in the polygon have setp change from red to green any help would be much appreciate __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com From meyerro3@msu.edu Sun Dec 18 14:00:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC4CE3B2887 for ; Sun, 18 Dec 2005 14:00:22 -0500 (EST) 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 19539-05 for ; Sun, 18 Dec 2005 14:00:19 -0500 (EST) Received: from sys22.mail.msu.edu (sys22.mail.msu.edu [35.9.75.122]) by menubar.gnome.org (Postfix) with ESMTP id 783F63B2814 for ; Sun, 18 Dec 2005 14:00:12 -0500 (EST) Received: from meyerro3 by sys22.mail.msu.edu with local (Exim 4.52 #1) id 1Eo3lT-00010H-JW for gtk-list@gnome.org; Sun, 18 Dec 2005 14:00:11 -0500 From: "Robert Steven Meyer" To: gtk-list@gnome.org Date: Sun, 18 Dec 2005 14:00:11 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: Errors on first compile -- base.c X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 19:00:23 -0000 I've been following the tutorial and ran into a ton of errors on my first compile. I'm assuming since i made it this far, that I didn't screw up the install but this is the first time i've ever messed around with GTK and I am without a doubt new to all of this. Here is what terminal spit out at me... $ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33, from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33, from /usr/include/gtk-2.0/gdk/gdkcairo.h:24, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from base.c:1: /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: warning: data definition has no type or storage class /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: warning: data definition has no type or storage class /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33, from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkobject.h:207: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkobject.h:207: warning: data definition has no type o r storage class /usr/include/gtk-2.0/gtk/gtkobject.h:210: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkobject.h:210: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33, from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkwidget.h:447: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkwidget.h:447: warning: data definition has no type o r storage class /usr/include/gtk-2.0/gtk/gtkwidget.h:719: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkwidget.h:719: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkcontainer.h:174: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:174: warning: data definition has no typ e or storage class /usr/include/gtk-2.0/gtk/gtkcontainer.h:178: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:178: warning: data definition has no typ e or storage class /usr/include/gtk-2.0/gtk/gtkcontainer.h:182: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:182: warning: data definition has no typ e or storage class In file included from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkdialog.h:141: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkdialog.h:141: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: warning: data definition has no ty pe or storage class In file included from /usr/include/gtk-2.0/gtk/gtkcelllayout.h:26, from /usr/include/gtk-2.0/gtk/gtk.h:49, from base.c:1: /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: error: syntax error before ‘G_ GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: warning: data definition has n o type or storage class /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: error: syntax error before ‘G_ GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: warning: data definition has n o type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:49, from base.c:1: /usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: warning: data definition has no typ e or storage class In file included from /usr/include/gtk-2.0/gtk/gtkcombobox.h:25, from /usr/include/gtk-2.0/gtk/gtk.h:65, from base.c:1: /usr/include/gtk-2.0/gtk/gtktreeview.h:170: error: syntax error before ‘G_GNUC_N ULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeview.h:170: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:82, from base.c:1: /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: error: syntax error before ‘ G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: warning: data definition has no type or storage class /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: error: syntax error before ‘ G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:158, from base.c:1: /usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: warning: data definition has no ty pe or storage class /usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: warning: data definition has no ty pe or storage class From dbasald@libero.it Mon Dec 19 06:13:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A3B23B077A for ; Mon, 19 Dec 2005 06:13:01 -0500 (EST) 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 29197-05 for ; Mon, 19 Dec 2005 06:12:58 -0500 (EST) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by menubar.gnome.org (Postfix) with ESMTP id B81A03B0971 for ; Mon, 19 Dec 2005 06:12:57 -0500 (EST) Received: from localhost (172.16.1.79) by smtp1.libero.it (7.0.027-DD01) id 439D8FC3009FE6D4 for gtk-list@gnome.org; Mon, 19 Dec 2005 12:12:57 +0100 Received: from smtp2.libero.it ([172.16.1.97]) by localhost (asav1.libero.it [193.70.192.150]) (amavisd-new, port 10024) with ESMTP id 10316-03 for ; Mon, 19 Dec 2005 12:12:56 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp2.libero.it (7.0.027-DD01) id 431C3B20011A7DF9 for gtk-list@gnome.org; Mon, 19 Dec 2005 12:12:56 +0100 Date: Mon, 19 Dec 2005 12:12:56 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "dbasald@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 82.48.216.104 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.576 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_PG=0.077] X-Spam-Score: -0.576 X-Spam-Level: Subject: gtk_object bad signal X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 11:13:01 -0000 hi all I'm new of GTK+ pogramming. I'm tring to develp an application in linux w= ritten in C with GTK 2.8 libraries. This app is interfaced with a database, reads data from it and create a G= UI. I made a GTK object for detection of database UPDATEs, I mean: when the D= Bmanager receives an UPDATE command from a connection it starts a RULE th= at emits a signal. My object has a p_thread looping over a SELECT that checks for DBmanager signals. After detection of DB signal emission my ob= ject emits an own gtk-signal (named disp-signal). This last gtk-signal is connected to a function for GUI updating by a g_s= ignal_connect(). Same function is also called by one other g_signal_connect() activted by = a button_press_event. This two connections are because the user can change values shown in GUI = but s/he is allowed to comeback to batabase settings. If the user saves some new values all other clients pr= ograms have to update their GUI. The problem is here: if I click te button the GUI is updated correctly bu= t when the "updateGUIfunction" is called by my object signal the program crashes after a few updates. The c= rash comes with an Xlib error shown into stderr. After that the program objects not updated appears to = work fine but all the widget areas destroyed and newed comes hidden. Sometimes I get a GTK_DRAWABLE failed e= rror like following: (prova_gnome2:10237): Gdk-CRITICAL **: gdk_drawable_get_size: assertion `= GDK_IS_DRAWABLE (drawable)' failed (prova_gnome2:10237): Gdk-CRITICAL **: gdk_window_invalidate_rect: assert= ion `window !=3D NULL' failed It could be due to my signal interface not well initialized: it don't ret= urn user_data like a gtk-button (I don't know why, I followed on-line gtk examples) but I tried to use th= e gtk button signal included in child field of my object with same result= s. Please help me! thanks, Daniele B. The following code is my object for database signal detection and usage i= nto the program: /************************************************************************= *** * pgmonitorr.h ************************************************************************= ****/ #ifdef HAVE_CONFIG_H # include #endif #ifndef __PGMONITORR_H__ #define __PGMONITORR_H__ #include #include "libpq-fe.h" G_BEGIN_DECLS #define PGMONITORR_TYPE (pgmonitorr_get_type ()) #define PGMONITORR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PG= MONITORR_TYPE, Pgmonitorr)) #define PGMONITORR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PGM= ONITORR_TYPE, PgmonitorrClass)) #define IS_PGMONITORR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PG= MONITORR_TYPE)) #define IS_PGMONITORR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PGM= ONITORR_TYPE)) #define PGMONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PGM= ONITORR, PgmonitorrClass)) typedef struct _Pgmonitorr Pgmonitorr; typedef struct _PgmonitorrClass PgmonitorrClass; struct _Pgmonitorr { GtkBin parent; GtkWidget *child; gchar conninfo[500]; gchar segnale[50]; PGconn *async_conn; pthread_t monitor_t; //GThread *monitor_t; }; struct _PgmonitorrClass { GtkBinClass parent_class; void (* pgmonitorr) (Pgmonitorr *pgm); }; GType pgmonitorr_get_type (void); GtkWidget* pgmonitorr_new (char * conninfo, char * segnal= e); void pgmonitorr_clear (Pgmonitorr *pgm); G_END_DECLS #endif /* __PGMONITORR_H__ */ /************************************************************************= *** * pgmonitorr.c ************************************************************************= ****/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include "pgmonitorr.h" #include "libpq-fe.h" // libreria di intergaccia col postgres enum { DISP_SIGNAL, LAST_SIGNAL }; static guint pgmonitorr_signals[LAST_SIGNAL] =3D { 0 }; static void pgmonitorr_class_init (PgmonitorrClass *klass); static void pgmonitorr_init (Pgmonitorr *pgm); static void enable_pgmonitor (Pgmonitorr *pgm); GType pgmonitorr_get_type (void) { static GtkType pgm_type =3D 0; if (!pgm_type) { static const GtkTypeInfo pgm_info =3D { "PGmonitorr", sizeof (Pgmonitorr), sizeof (PgmonitorrClass), (GtkClassInitFunc) pgmonitorr_class_init, (GtkObjectInitFunc) pgmonitorr_init, /* reserved_1 */ NULL, /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, }; pgm_type =3D gtk_type_unique (GTK_TYPE_BIN, &pgm_info); } fprintf (stderr,"pgmonitorr: gettype\n"); return pgm_type; } static void pgmonitorr_class_init (PgmonitorrClass *class) { GtkObjectClass *object_class; object_class =3D (GtkObjectClass*) class; pgmonitorr_signals[DISP_SIGNAL] =3D g_signal_new ("disp_signal", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_FIRST | G_SIGNAL_AC= TION, G_STRUCT_OFFSET (PgmonitorrClass= , pgmonitorr), NULL, NULL, g_cclosure_marshal_VOID__VOID, /*gtk_signal_default_marshaller,*/ GTK_TYPE_NONE, 0); fprintf (stderr,"pgmonitorr: class_init\n"); } static void pgmonitorr_init (Pgmonitorr *pgm) { pgm->child =3D NULL; g_snprintf (pgm->conninfo,500, "%s",""); g_snprintf (pgm->segnale,50, "%s",""); fprintf (stderr, "pgmonitorr: init\n"); } GtkWidget* pgmonitorr_new (char * rconninfo, char * rsegnale) { Pgmonitorr * pgm =3D g_object_new (pgmonitorr_get_type (), NULL); pgm->child =3D GTK_WIDGET(gtk_button_new()); gtk_container_add(GTK_CONTAINER(pgm),GTK_WIDGET(pgm->child)); g_snprintf (pgm->conninfo, 500, "%s",rconninfo); g_snprintf (pgm->segnale, 50, "%s",rsegnale); pthread_create (&(pgm->monitor_t), NULL, (gpointer)enable_pgmonitor, (gp= ointer)pgm); fprintf (stderr,"pgmonitorr: new OK!\n"); return GTK_WIDGET (pgm); } void pgmonitorr_clear (Pgmonitorr *pgm) { printf ("eseguo chiudi_conn Pgmonitor2\n"); pthread_cancel(pgm->monitor_t); pthread_join (pgm->monitor_t,0); PQfinish(pgm->async_conn); } static void enable_pgmonitor(Pgmonitorr *pgm) { int sock; fd_set input_mask; gchar nome[30]; PGresult *res; PGnotify *notify; gchar comando[50]; fprintf (stderr, "pgmonitorr: pthread 1 \n"); pgm->async_conn =3D PQconnectdb(pgm->conninfo); g_snprintf (comando,50, "LISTEN %s;", pgm->segnale); res =3D PQexec(pgm->async_conn, comando); if (PQresultStatus(res) !=3D PGRES_COMMAND_OK) { fprintf(stderr, "LISTEN command failed: %s", PQerrorMessa= ge(pgm->async_conn)); PQclear(res); PQfinish (pgm->async_conn); exit (1); } PQclear(res); fprintf (stderr, "pgmonitorr: pthread 2 \n"); sock =3D PQsocket(pgm->async_conn); for (;;) { fprintf (stderr,"for pgmonitor enable\n"); FD_ZERO(&input_mask); FD_SET(sock, &input_mask); if (sock < 0) { fprintf (stderr, "socket error\n"); break; // shouldn't happen } if (select(sock + 1, &input_mask, NULL, NULL, NULL) < 0) { fprintf(stderr, "select() failed: %s\n", strerror(errno)); PQfinish (pgm->async_conn); } // Now check for input PQconsumeInput(pgm->async_conn); while ((notify =3D PQnotifies(pgm->async_conn)) !=3D NULL) { g_snprintf (nome,30, "%s", notify->relname); fprintf(stderr,"ASYNC NOTIFY of '%s' received from backend pid %d\n",n= ome, notify->be_pid); PQfreemem(notify); g_signal_emit (pgm,pgmonitorr_signals[DISP_SIGNAL], 0); } } fprintf (stderr, "errore pgmonitorr\n"); pgmonitorr_clear (pgm); } /************************************************ *callback.c ***********************/ GtkWidget *monitor_disp=3DNULL; monitor_disp =3D pgmonitorr_new(conninfo->str, "disponibile"); gtk_widget_set_name(monitor_disp,"monitor_disp"); gtk_box_pack_start(GTK_BOX (hbox_generale1),monitor_disp,FALSE,FALSE,0);= g_signal_connect(G_OBJECT(annulla_button),"button_press_event", G_CALLBACK(ins_piatti_modifica_listino), (int*)id_rep); g_signal_connect(G_OBJECT(monitor_disp), "disp_signal", G_CALLBACK(aux_ins_piatti_modifica_listino), id_rep); void aux_ins_piatti_modifica_listino (GtkWidget *elemento, int id_rep) { ins_piatti_modifica_listino(elemento,NULL,id_rep); } void ins_piatti_modifica_listino executes some lookups, destroy a part of= gui and remake it (gtk_vbox_new() ... gtk_spinbutton_new ... gtk_entry_n= ew ...) From mistrial@libero.it Mon Dec 19 15:11:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 849673B2C86 for ; Mon, 19 Dec 2005 15:11:55 -0500 (EST) 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 14308-02 for ; Mon, 19 Dec 2005 15:11:52 -0500 (EST) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id AE0D33B2F1C for ; Mon, 19 Dec 2005 15:09:02 -0500 (EST) Received: from localhost (172.16.1.75) by smtp6.libero.it (7.0.027-DD01) id 439D919300A8B054 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:54 +0100 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav17.libero.it [193.70.193.4]) (amavisd-new, port 10024) with ESMTP id 08822-08 for ; Mon, 19 Dec 2005 21:08:53 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp3.libero.it (7.0.027-DD01) id 431C39E0011B2506 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:53 +0100 Date: Mon, 19 Dec 2005 21:08:53 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.202 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MISSING_SUBJECT=1.816, TW_GT=0.077] X-Spam-Score: 1.202 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:11:55 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:14:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8FAB43B2EE1 for ; Mon, 19 Dec 2005 15:14:23 -0500 (EST) 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 14566-06 for ; Mon, 19 Dec 2005 15:14:21 -0500 (EST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by menubar.gnome.org (Postfix) with ESMTP id 1BC873B2E80 for ; Mon, 19 Dec 2005 15:11:33 -0500 (EST) Received: from localhost (172.16.1.48) by smtp3.libero.it (7.0.027-DD01) id 439D911000A21016 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:40 +0100 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav8.libero.it [193.70.193.94]) (amavisd-new, port 10024) with ESMTP id 06212-08-6 for ; Mon, 19 Dec 2005 21:08:39 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp3.libero.it (7.0.027-DD01) id 431C39E0011B24E2 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:39 +0100 Date: Mon, 19 Dec 2005 21:08:39 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.202 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MISSING_SUBJECT=1.816, TW_GT=0.077] X-Spam-Score: 1.202 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:14:23 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:15:00 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88A493B2EF1 for ; Mon, 19 Dec 2005 15:15:00 -0500 (EST) 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 14673-08 for ; Mon, 19 Dec 2005 15:14:57 -0500 (EST) Received: from smtp5.libero.it (smtp5.libero.it [193.70.192.55]) by menubar.gnome.org (Postfix) with ESMTP id D85E53B2EF3 for ; Mon, 19 Dec 2005 15:12:18 -0500 (EST) Received: from localhost (172.16.1.8) by smtp5.libero.it (7.0.027-DD01) id 439D918400A89E5C for gtk-list@gnome.org; Mon, 19 Dec 2005 21:12:17 +0100 Received: from smtp1.libero.it ([172.16.1.97]) by localhost (asav9.libero.it [193.70.192.87]) (amavisd-new, port 10024) with ESMTP id 13776-04-2 for ; Mon, 19 Dec 2005 21:12:17 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp1.libero.it (7.0.027-DD01) id 431C3A42011BF9A2 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:12:17 +0100 Date: Mon, 19 Dec 2005 21:12:16 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.036 tagged_above=-999 required=2 tests=[AWL=-0.422, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.036 X-Spam-Level: Subject: Forgotten graphic with gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:15:00 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:16:06 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE8043B2E48 for ; Mon, 19 Dec 2005 15:16:06 -0500 (EST) 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 14815-07 for ; Mon, 19 Dec 2005 15:16:04 -0500 (EST) Received: from smtp5.libero.it (smtp5.libero.it [193.70.192.55]) by menubar.gnome.org (Postfix) with ESMTP id 4A94C3B2DFD for ; Mon, 19 Dec 2005 15:13:57 -0500 (EST) Received: from localhost (172.16.1.81) by smtp5.libero.it (7.0.027-DD01) id 439D918400A8A70E for gtk-list@gnome.org; Mon, 19 Dec 2005 21:13:56 +0100 Received: from smtp20.libero.it ([172.16.1.77]) by localhost (asav22.libero.it [193.70.193.9]) (amavisd-new, port 10024) with ESMTP id 25919-12-20 for ; Mon, 19 Dec 2005 21:13:55 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp20.libero.it (7.0.027-DD01) id 431C3BFF0116942B for gtk-list@gnome.org; Mon, 19 Dec 2005 21:13:55 +0100 Date: Mon, 19 Dec 2005 21:13:55 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.983 tagged_above=-999 required=2 tests=[AWL=-0.369, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.983 X-Spam-Level: Subject: Forgotten graphic with gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:16:07 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:21:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 527683B08DD for ; Mon, 19 Dec 2005 15:21:30 -0500 (EST) 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 15372-06 for ; Mon, 19 Dec 2005 15:21:27 -0500 (EST) Received: from smtp4.libero.it (smtp4.libero.it [193.70.192.54]) by menubar.gnome.org (Postfix) with ESMTP id 3F7F83B2EBD for ; Mon, 19 Dec 2005 15:16:26 -0500 (EST) Received: from localhost (172.16.1.75) by smtp4.libero.it (7.0.027-DD01) id 439D910600A944A3 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:16:25 +0100 Received: from smtp0.libero.it ([172.16.1.76]) by localhost (asav17.libero.it [193.70.193.4]) (amavisd-new, port 10024) with ESMTP id 14572-01-2 for ; Mon, 19 Dec 2005 21:16:24 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp0.libero.it (7.0.027-DD01) id 439064B400299DFE for gtk-list@gnome.org; Mon, 19 Dec 2005 21:16:24 +0100 Date: Mon, 19 Dec 2005 21:16:24 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: multipart/mixed; boundary="_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835" From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.333 tagged_above=-999 required=2 tests=[AWL=-0.719, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.333 X-Spam-Level: Subject: Forgotten graphic with a gtk program X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:21:32 -0000 --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. In order to see something i enclose a little png that it must be include = in the program folder. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835 Content-Type: image/png; name="=?iso-8859-1?Q?ring.png?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?iso-8859-1?Q?ring.png?=" iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAIAAABwJOjsAAAACXBIWXMAAAsTAAALEwEAmpwY AAAAB3RJTUUH1QsZCjcMQMBn8QAAAB10RVh0Q29tbWVudABDcmVhdGVkIHdpdGggVGhlIEdJ TVDvZCVuAAABvUlEQVRIx7WV74oTQRDEf90zmzN/1AjnF303wSf3BaJylzuSTWa6/LCzG05F JWYHFmahqOouumvs86cvZuTMesP2rZkzxzkc2O91PlEKEhG4hBlmuDGT6nQUl3t2B3AnJfwX 4aGsP3H9G8CnxgLAjDz4nDMpW0qYEYE7ZqMnfmEfLlcAUsYdd5ITIoI8qHYdXcfd3YXCnYjG NTkhXQlYLOg6agWg4kZeLkmJxcI2G7bvLAIfrRMYhHBDNIuuA+Ss08mEcqUWQuTXbyxnVivu 39uHj5iBGgtgw6dGIa4EfP9mkhYLO5+oQVTyakXXsV6z3XJ/b3PNs/T8bBHqE7USwcwLNPVt RLxYAZ/GQZp1hXFr8k14KKHW3yzxTXVHvVHFBwc8zdzxqHqxuv3Mryqazy2hWyE+b8c26kW0 KXMgAsVfIvf/p9pGt9vrMLU/8z5d0nuwNp96SiGCV0u+7nSTnHoBgFp5eGC3035P3xNVtZIf 93Ln1Bsoqt0kmSeARC1yt8NBjw88PaucKQUgHw94Aill6zrd5C0aAFKLhwjVyuGovqeciUqI XApJnJ1y5ni8zev7UxQOFZRCLU01gh8mL2LUToM1CgAAAABJRU5ErkJggg== --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835-- From tvb@gnome.org Mon Dec 19 15:32:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 27E103B0A90 for ; Mon, 19 Dec 2005 15:32:48 -0500 (EST) 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 16759-02 for ; Mon, 19 Dec 2005 15:32:42 -0500 (EST) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 903E83B1E27 for ; Mon, 19 Dec 2005 15:30:29 -0500 (EST) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 3A74A15983; Mon, 19 Dec 2005 15:26:08 -0500 (EST) Message-ID: <43A728B4.5070701@gnome.org> Date: Mon, 19 Dec 2005 16:40:04 -0500 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "mistrial@libero.it" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599] X-Spam-Score: -2.541 X-Spam-Level: Cc: gtk-list Subject: Re: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:32:48 -0000 mistrial@libero.it wrote: > ciao > First of all I make excuses myself for my English not too much corrected. I write in order to speak you to you about a problem that I have found with my first program written in C with gtk. > I have written the algorithm in order to resolve the puzzle and have set up all the graphical interface but when start the simulation does not visualize me in real Time the graphic regarding the algorithm that is under. > I enclose the code of my program with the hope that someone can gives some council to me. You need to read this: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html [...] > void dohanoi(gint N, gint da, gint a, gint usando){ > int i,j,h,parz; > > if (N > 0){ > > dohanoi(N-1,da,usando,a); > g_print("\n\nmuovo da %d --> a %d\n",da,a); > sleep(1); > for(i=disk-1;i>=0;i--){ > if(asta[i][da]==0){ > parz=i+1; > //salvo in h la posizione dell'anello da rimuovere(il valore contenuto nell'array riflette l'indice del vettore che contiene gli anelli) > h=asta[parz][da]; > //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nella sezione DROP > valoreAnelloDrag=h; > rigaAnelloDrag=parz; > //setto a 0 l'elemento trovato > asta[parz][da]=0; > //rimuovo l'anello dal container > gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); > break; > }; > }; > //se non trova niente nel for vuol dire che sto togliendo il primo anello di un asta > if(asta[0][da]!=0){ > h=asta[0][da]; > valoreAnelloDrag=asta[0][da]; > asta[0][da]=0; > //ora rimuovo il widget anello dall'event box > gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); > }; > for(i=disk-1;i>=0;i--){ > if(asta[i][a]==0){ > > asta[i][a]=valoreAnelloDrag; > //aggiungo l'anello al container > gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnelloDrag]); > break; > }; > }; > for (i=0;i<=disk-1;i++){ > g_print("\n"); > for (j=0;j<=2;j++){ > g_print("%4d",asta[i][j]); > }; > }; > dohanoi(N-1,usando,a,da); > }; > }; What you need to do, is remove "sleep (1)" and replace it with "return", and then deal with the catastrophy that follows :) i.e. You need to break down your algorythm into itterations and return to the event loop so that GTK+ can process events. You can use something like g_timeout_add() to do this. Cheers, -Tristan From post@talura.dk Tue Dec 20 09:42:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BDACC3B1D5C for ; Tue, 20 Dec 2005 09:42:44 -0500 (EST) 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 06348-08 for ; Tue, 20 Dec 2005 09:42:42 -0500 (EST) Received: from talura.dk (unknown [62.61.141.145]) by menubar.gnome.org (Postfix) with ESMTP id 69FF03B1D63 for ; Tue, 20 Dec 2005 09:42:41 -0500 (EST) Received: from [62.61.141.145] (unknown [62.61.141.145]) by talura.dk (Postfix) with ESMTP id 24C2429D648 for ; Tue, 20 Dec 2005 15:42:40 +0100 (CET) Message-ID: <43A8185F.4090207@talura.dk> Date: Tue, 20 Dec 2005 15:42:39 +0100 From: Egon Andersen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 14:42:44 -0000 Hi, I've just downloaded and installed the pre-build GTK+ for windows Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ Now I experienced that I get a border on my window, eventhough I've set gtk_window_set_decorated(x, FALSE) for the window. I also experienced that the transparent image that I had before, now got a black background. In the previous 2.6.x that I used, the window had no border and the background was transparent as expected. I've read the API document and I don't se that anything should have changed in this area from 2.6.x to 2.8.8 I've also searched the bug-tracker for bug-reports on 'decorated', but none seems to relate to this problem. My program looks like this: gtk_window_set_decorated(GTK_WINDOW (splash_screen), FALSE); /* Get the transparent image shape the window accordingly */ visual = gdk_visual_get_system (); colormap = gdk_colormap_new(visual, TRUE); pixmap = gdk_pixmap_colormap_create_from_xpm(NULL, colormap, &mask, NULL, file); /* Shape the window according to image */ gtk_widget_shape_combine_mask(splash_screen, mask, 0, 0); image = gtk_image_new_from_pixmap (pixmap, NULL); gtk_widget_show (image); gtk_container_add (GTK_CONTAINER (splash_screen), image); Is it only me that has experienced this problem? Or have I missed something in my code that has now been working without problems for 2-3 years now. Best regards Egon Andersen From tml@iki.fi Tue Dec 20 09:55:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A12643B1DBE for ; Tue, 20 Dec 2005 09:55:01 -0500 (EST) 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 07708-01 for ; Tue, 20 Dec 2005 09:54:59 -0500 (EST) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 930943B069A for ; Tue, 20 Dec 2005 09:54:56 -0500 (EST) Received: from pettson.tml.iki.fi (MMDLXXIX.tun.saunalahti.fi [213.169.2.179]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 653F7DC621; Tue, 20 Dec 2005 16:54:53 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17320.6971.560000.721289@gargle.gargle.HOWL> Date: Tue, 20 Dec 2005 16:54:51 +0200 To: Egon Andersen In-Reply-To: <43A8185F.4090207@talura.dk> References: <43A8185F.4090207@talura.dk> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=-0.046, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.356 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 14:55:01 -0000 Egon Andersen writes: > I've just downloaded and installed the pre-build GTK+ for windows > Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ Try GTK+ 2.8.9 from ftp.gtk.org. I don't know what 2.8.8-rc2 is. Ask the gladewin32 people about that. > I've read the API document and I don't se that anything should have > changed in this area from 2.6.x to 2.8.8 Read the ChangeLog. 2005-11-27 Tor Lillqvist Once again rework Win32 window decoration code. Doesn't break #104514. The dialogs in gtk-demo now have the same decorations and behaviour as on X11. Tried to fix #322516 but it seems very hard to make the trivial sample program there behave as expected. --tml From post@talura.dk Tue Dec 20 11:18:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7E6C53B1AF7 for ; Tue, 20 Dec 2005 11:18:07 -0500 (EST) 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 16157-10 for ; Tue, 20 Dec 2005 11:18:05 -0500 (EST) Received: from talura.dk (unknown [62.61.141.145]) by menubar.gnome.org (Postfix) with ESMTP id BBB813B1AB9 for ; Tue, 20 Dec 2005 11:17:50 -0500 (EST) Received: from [62.61.141.145] (unknown [62.61.141.145]) by talura.dk (Postfix) with ESMTP id 91D5029D648 for ; Tue, 20 Dec 2005 17:17:48 +0100 (CET) Message-ID: <43A82EAC.1020506@talura.dk> Date: Tue, 20 Dec 2005 17:17:48 +0100 From: Egon Andersen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <43A8185F.4090207@talura.dk> <17320.6971.560000.721289@gargle.gargle.HOWL> In-Reply-To: <17320.6971.560000.721289@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.488 tagged_above=-999 required=2 tests=[AWL=-0.043, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.488 X-Spam-Level: Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 16:18:07 -0000 Tor Lillqvist wrote: > Egon Andersen writes: > > I've just downloaded and installed the pre-build GTK+ for windows > > Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ > > Try GTK+ 2.8.9 from ftp.gtk.org. I don't know what 2.8.8-rc2 is. Ask > the gladewin32 people about that. > > > I've read the API document and I don't se that anything should have > > changed in this area from 2.6.x to 2.8.8 > > Read the ChangeLog. > > 2005-11-27 Tor Lillqvist > > Once again rework Win32 window decoration code. Doesn't break > #104514. The dialogs in gtk-demo now have the same decorations and > behaviour as on X11. Tried to fix #322516 but it seems very hard > to make the trivial sample program there behave as expected. Where do I find the ChangeLog? Do you have a url for the ChangeLog you refer to? I've only been able to find the reference to #322516 in the GTK+ 2.8.8 release announcement (I would have thought that I could have found #322516 in the bug-tracker by searching for decorated or decoration, but apparently not...) And it seems that #322516 is closed by WONTFIX, so I don't see why it should be any better to use GTK+ 2.8.9 instead of GTK+ 2.8.8 in relation to this problem? BTW The reason I use the pre-build from http://gladewin32.sourceforge.net/ is that it is a "all in one" package and simple to install for others. Best regards Egon Andersen From tml@iki.fi Tue Dec 20 11:33:05 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 04C0E3B1DA7 for ; Tue, 20 Dec 2005 11:33:05 -0500 (EST) 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 17668-06 for ; Tue, 20 Dec 2005 11:33:00 -0500 (EST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 71C593B08F7 for ; Tue, 20 Dec 2005 11:32:10 -0500 (EST) Received: from pettson.tml.iki.fi (MMDLXXIX.tun.saunalahti.fi [213.169.2.179]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 4D3FC104579; Tue, 20 Dec 2005 18:32:07 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17320.12805.529000.547351@gargle.gargle.HOWL> Date: Tue, 20 Dec 2005 18:32:05 +0200 To: Egon Andersen In-Reply-To: <43A82EAC.1020506@talura.dk> References: <43A8185F.4090207@talura.dk> <17320.6971.560000.721289@gargle.gargle.HOWL> <43A82EAC.1020506@talura.dk> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.419 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.419 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 16:33:05 -0000 Egon Andersen writes: > Where do I find the ChangeLog? In the source code. > And it seems that #322516 is closed by WONTFIX, so I don't see why > it should be any better to use GTK+ 2.8.9 instead of GTK+ 2.8.8 in > relation to this problem? Did you try? It's not particularily useful to use something else than the latest version when reporting bugs. --tml From leadbala@rediffmail.com Wed Dec 21 02:49:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89EBC3B2C19 for ; Wed, 21 Dec 2005 02:49:01 -0500 (EST) 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 27233-06 for ; Wed, 21 Dec 2005 02:48:58 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.42]) by menubar.gnome.org (Postfix) with SMTP id 2D35F3B2BBA for ; Wed, 21 Dec 2005 02:45:54 -0500 (EST) Received: (qmail 28255 invoked by uid 510); 21 Dec 2005 07:45:37 -0000 Date: 21 Dec 2005 07:45:37 -0000 Message-ID: <20051221074537.28254.qmail@webmail55.rediffmail.com> Received: from unknown (220.225.137.242) by rediffmail.com via HTTP; 21 dec 2005 07:45:37 -0000 MIME-Version: 1.0 From: "Bala Murugan" To: gtk-list@gnome.org Content-type: multipart/alternative; boundary="Next_1135151137---0-203.199.83.42-28251" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.993 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, DNS_FROM_RFC_ABUSE=0.2, HTML_IMAGE_ONLY_28=1.9, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0, TW_GT=0.077] X-Spam-Score: 1.993 X-Spam-Level: * Subject: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bala Murugan List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 07:49:01 -0000 This is a multipart mime message --Next_1135151137---0-203.199.83.42-28251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0AHi gtk users developpers,=0AIam new to LINUX and I am using suse 10 = in my intel based box. I wish to install a molecular dynamics program ghemi= ca (from open source community) I got the following error:=0A bio-42:/home/= bala/2downloads/ghemical-gms-1.01.07 # ./configure=0Achecking build system = type... i686-pc-linux-gnu=0Achecking host system type... i686-pc-linux-gnu= =0Achecking for gcc... gcc=0Achecking for C compiler default output file na= me... a.out=0Achecking whether the C compiler works... yes=0Achecking wheth= er we are cross compiling... no=0Achecking for suffix of executables...=0Ac= hecking for suffix of object files... o=0Achecking whether we are using the= GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Achecking = for gcc option to accept ANSI C... none needed=0Achecking for g++... g++=0A= checking whether we are using the GNU C++ compiler... yes=0Achecking whethe= r g++ accepts -g... yes=0Achecking how to run the C preprocessor... gcc -E= =0Achecking how to run the C++ preprocessor... g++ -E=0Achecking for a BSD-= compatible install... /usr/bin/install -c=0Achecking for ranlib... ranlib= =0Achecking for ar... /usr/bin/ar=0Achecking for sh... /bin/sh=0Achecking w= hether make sets $(MAKE)... yes=0Achecking whether build environment is san= e... yes=0Achecking for gtk-config... no=0Achecking for GTK - version >=3D = 0.99.7... no=0A*** The gtk-config script installed by GTK could not be foun= d=0A*** If GTK was installed in PREFIX, make sure PREFIX/bin is in=0A*** yo= ur path, or set the GTK_CONFIG environment variable to the=0A*** full path = to gtk-config.=0Aconfigure: error: Cannot find proper gtk version=0Abio-42:= /home/bala/2downloads/ghemical-gms-1.01.07 #=0Awhen I issued rpm -qa gtk I = have recieved the following;=0Agtk-1.2.10-888=0AI have installed developer = packages too to the system.=0ACould anybody guide me from this point.=0ATha= nks in advance.=0A=0A=0A=0AYours truly,=0D=0AP.BalaMurugan.=0D=0A=0D=0A----= ----------------------------------------------=0D=0A"Science is built up of= facts, as a house is built up of stones,but an accumulation of facts is no= more a science than a heap of stones is a house"-Henri Poincare --Next_1135151137---0-203.199.83.42-28251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0AHi gtk users developpers,
=0AIam new to LINUX and I = am using suse 10 in my intel based box. I wish to install a molecular dynam= ics program ghemica (from open source community) I got the following error:=
=0A bio-42:/home/bala/2downloads/ghemical-gms-1.01.07 # ./configure
= =0Achecking build system type... i686-pc-linux-gnu
=0Achecking host syst= em type... i686-pc-linux-gnu
=0Achecking for gcc... gcc
=0Achecking f= or C compiler default output file name... a.out
=0Achecking whether the = C compiler works... yes
=0Achecking whether we are cross compiling... no=
=0Achecking for suffix of executables...
=0Achecking for suffix of o= bject files... o
=0Achecking whether we are using the GNU C compiler... = yes
=0Achecking whether gcc accepts -g... yes
=0Achecking for gcc opt= ion to accept ANSI C... none needed
=0Achecking for g++... g++
=0Ache= cking whether we are using the GNU C++ compiler... yes
=0Achecking wheth= er g++ accepts -g... yes
=0Achecking how to run the C preprocessor... gc= c -E
=0Achecking how to run the C++ preprocessor... g++ -E
=0Acheckin= g for a BSD-compatible install... /usr/bin/install -c
=0Achecking for ra= nlib... ranlib
=0Achecking for ar... /usr/bin/ar
=0Achecking for sh..= . /bin/sh
=0Achecking whether make sets $(MAKE)... yes
=0Achecking wh= ether build environment is sane... yes
=0Achecking for gtk-config... no<= BR>=0Achecking for GTK - version >=3D 0.99.7... no
=0A*** The gtk-con= fig script installed by GTK could not be found
=0A*** If GTK was install= ed in PREFIX, make sure PREFIX/bin is in
=0A*** your path, or set the GT= K_CONFIG environment variable to the
=0A*** full path to gtk-config.
= =0Aconfigure: error: Cannot find proper gtk version
=0Abio-42:/home/bala= /2downloads/ghemical-gms-1.01.07 #
=0Awhen I issued rpm -qa gtk I have r= ecieved the following;
=0Agtk-1.2.10-888
=0AI have installed develope= r packages too to the system.
=0ACould anybody guide me from this point.=
=0AThanks in advance.
=0A
=0A=0A

=0A=0A=0AYours truly,=0D
= =0AP.BalaMurugan.=0D
=0A=0D
=0A--------------------------------------= ------------=0D
=0A"Science is built up of facts, as a&nb= sp;house is built up of stones,but an accumulation of f= acts is no more a science than a heap of stones is=  a house"-Henri Poincare

=0A=0A --Next_1135151137---0-203.199.83.42-28251-- From wtallman@olypen.com Wed Dec 21 03:35:51 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34DCD3B2CAA for ; Wed, 21 Dec 2005 03:35:51 -0500 (EST) 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 00511-03 for ; Wed, 21 Dec 2005 03:35:47 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id 67AA23B2C56 for ; Wed, 21 Dec 2005 03:35:42 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1EozRk-0004G1-9o for gtk-list@gnome.org; Wed, 21 Dec 2005 00:35:40 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBL8ZbCf016524 for gtk-list@gnome.org; Wed, 21 Dec 2005 00:35:37 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 21 Dec 2005 00:35:37 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051221083537.GA16245@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <20051221074537.28254.qmail@webmail55.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051221074537.28254.qmail@webmail55.rediffmail.com> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.388 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.388 X-Spam-Level: Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 08:35:51 -0000 On Wed, Dec 21, 2005 at 07:45:37AM -0000, Bala Murugan wrote: > checking for GTK - version >= 0.99.7... no > *** The gtk-config script installed by GTK could not be found > *** If GTK was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the GTK_CONFIG environment variable to the > *** full path to gtk-config. The part you should read. Find out where gtk-config is on your installation. Make a symlink from there to where the application needs it to be. Recompile. Eventually, one discovers that these guys who roll up these tarballs are pretty sharp, and what they tell you to do is most often exactly what you need to do. Notice the asterisks preceeding the explanation. They are there to call your attention to what you need to read. Now, how do you know what $PREFIX is? What you do is 'grep -n PREFIX configure', and then go to the line numbers and see what PREFIX is. Most often it's /usr/local. So what are you looking for? It's listed in the first line: gtk-config, and it's called a script. So where is it on your system? Do 'slocate gtk-config', and you'll probably find it somewhere like /usr/bin. So you do 'file /usr/bin/gtk-config', and you find out that gtk-config is a Bourne shell script text executable. That's what you're looking for. Problem is, your configure file doubtless already knows to look in /usr/bin, and hasn't found it. What happens when 'slocate gtk-config' turns up empty? That's when you ask rpm to list the files, and it will tell you where it is, if indeed you have it. Hint: learn the shell commands. Using them will tell you everything you need to know, and will allow you to perform most, if not all, tasks your system will ever require. ---------------- You're new to Linux, and it can be a bit daunting. The key is to read what the system tells you word for word and make sure you actually understand what it's telling you. Most folk reread this stuff three or four times to make sure they actually see what is there. It gets easier once you get used to it, and when you've run one of these systems for a while, you'll wonder how you ever managed to use anything else. Oh, and the convention is that you install all compiled applications at the local level. That's /usr/local, which mirrors /usr in most particulars. Make symlinks as necessary and it'll "just work". Good luck, Bill Tallman From odysseus.lost@gmail.com Wed Dec 21 11:16:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AB0A23B2283 for ; Wed, 21 Dec 2005 11:16:55 -0500 (EST) 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 19918-07 for ; Wed, 21 Dec 2005 11:16:52 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by menubar.gnome.org (Postfix) with ESMTP id CA2453B2231 for ; Wed, 21 Dec 2005 11:16:50 -0500 (EST) Received: by nproxy.gmail.com with SMTP id l36so65487nfa for ; Wed, 21 Dec 2005 08:16:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=R9blqin9fFiDhqBbmC7+JD/dlPVhTwHcAvMhY95qjHPNnmoql15hukct7nXpnWeaOims8O9ch3iNDwD9BDkT4VuxUm7aagZ3HwsoJ6YlSeCkJ7CZuFX4BW//r3yu+jvO5npgX+kwj+71IhrDocayUWZILwc7IGBxwxIonQZ2ahQ= Received: by 10.48.250.8 with SMTP id x8mr41202nfh; Wed, 21 Dec 2005 08:16:47 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 21 Dec 2005 08:16:47 -0800 (PST) Message-ID: <5c71e1440512210816se307023r@mail.gmail.com> Date: Wed, 21 Dec 2005 16:16:47 +0000 From: Yiannis To: Bala Murugan In-Reply-To: <20051221074537.28254.qmail@webmail55.rediffmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6371_4022306.1135181807935" References: <20051221074537.28254.qmail@webmail55.rediffmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 16:16:56 -0000 ------=_Part_6371_4022306.1135181807935 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On 21 Dec 2005 07:45:37 -0000, Bala Murugan wrote= : > > > Hi gtk users developpers, > Iam new to LINUX and I am using suse 10 in my intel based box. I wish to > install a molecular dynamics program ghemica (from open source community)= I > got the following error: > *** The gtk-config script installed by GTK could not be found > *** If GTK was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the GTK_CONFIG environment variable to the > *** full path to gtk-config. > configure: error: Cannot find proper gtk version > first of all this is not a question regarding Gtk... You better ask such a question on a linux forum.... simply because you will get much more help an= d much faster.... In a few words if you are coming from windows.... then you would have probably heard about the registry.... Well, let's say for a minute that Linux has such a registry as well, but has nothing to do with the windows one.... This is simply a file that tells your system where to find some things.... This registry depends on your shell (yes that thing that looks like a dos command line). Let's say for a min that you are using a bash shell... Then you should have a .bashrc file, .bash_history, maybe a .bash_profile, etc... Have a look at them and probably you want to edit the .bashrc. You need to set some environment variables. So for example the warning saying to add PREFIX/bin would be and assume tha= t your prefix (ie the path you installed gtk) is: /home/foo/gtk/bin. You shoudl add to your "registry" file the following: PATH=3D$PATH:/home/foo/gtk/bin and then either "resource" the file $ source or close down the shell and open a new one.... Similary you need to setup the other environment variables such as the CPAT= H and C_INCLUDE_PATH, LIBRARY_PATH and LIBRARY, and maybe some others needed by your program. Better if you post your questions to a linux forum (eg. www.linuxquestions.org OR www.linuxforum.com OR www.linuxforums.org just to name a few) -- -- Yiannis ------=_Part_6371_4022306.1135181807935 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
On 21 Dec 2005 07:45:37 -0000, Bala Murugan <leadbala@rediffmail.com> wrote:

 
Hi gtk users developpers,
Iam new to LINUX and I am using suse 10 in my intel based box. I wish to install a molecular dynamics program ghemica (from open source community) I got the following error:
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find proper gtk version


first of all this is not a question regarding Gtk... You better ask such a question on a linux forum.... simply because you will get much more help and much faster.... In a few words if you are coming from windows.... then you would have probably heard about the registry.... Well, let's say for a minute that Linux has such  a registry as well, but has nothing to do with the windows one.... This is simply a file that tells your system where to find some things.... This registry depends on your shell (yes that thing that looks like a dos command line). Let's say for a min that you are using a bash shell... Then you should have a .bashrc file, .bash_history, maybe a .bash_profile, etc... Have a look at them and probably you want to edit the .bashrc. You need to set some environment variables.
So for example the warning saying to add PREFIX/bin would be and assume that your prefix (ie the path you installed gtk) is: /home/foo/gtk/bin. You shoudl add to your "registry" file the following:
PATH=3D$PATH:/home/foo/gtk/bin

and then either "resource" the file
$ source <filename>
or close down the shell and open a new one....
Similary you need to setup the other environment variables such as the CPATH and C_INCLUDE_PATH, LIBRARY_PATH and LIBRARY, and maybe some others needed by your program. Better if you post your questions to a linux forum (eg. www.linuxquestio= ns.org OR www.linuxforum.com = OR www.linuxforums.org just to name= a few)
 



--
-- Yiannis ------=_Part_6371_4022306.1135181807935-- From tvb@gnome.org Wed Dec 21 11:31:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E35CD3B1F98 for ; Wed, 21 Dec 2005 11:31:51 -0500 (EST) 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 21802-02 for ; Wed, 21 Dec 2005 11:31:49 -0500 (EST) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 725DB3B301D for ; Wed, 21 Dec 2005 11:30:29 -0500 (EST) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 432B515A49; Wed, 21 Dec 2005 11:25:52 -0500 (EST) Message-ID: <43A99376.1090300@gnome.org> Date: Wed, 21 Dec 2005 12:40:06 -0500 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <20051221074537.28254.qmail@webmail55.rediffmail.com> <5c71e1440512210816se307023r@mail.gmail.com> In-Reply-To: <5c71e1440512210816se307023r@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.52 tagged_above=-999 required=2 tests=[AWL=0.002, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.52 X-Spam-Level: Cc: Bala Murugan , gtk-list@gnome.org Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 16:31:52 -0000 Yiannis wrote: > Hi, > On 21 Dec 2005 07:45:37 -0000, Bala Murugan wrote: > >> >>Hi gtk users developpers, >>Iam new to LINUX and I am using suse 10 in my intel based box. I wish to >>install a molecular dynamics program ghemica (from open source community) I >>got the following error: >>*** The gtk-config script installed by GTK could not be found >>*** If GTK was installed in PREFIX, make sure PREFIX/bin is in >>*** your path, or set the GTK_CONFIG environment variable to the >>*** full path to gtk-config. >>configure: error: Cannot find proper gtk version >> I dont know how suse works, but with redhat (or systems that use rpm), you usually have a "package.rpm" and a "package-devel.rpm". The typical user isnt going to compile stuff on his/her machine, so they dont need gtk+ header files etc (i.e. the -devel.rpm package). The program you want to install needs to have the old GTK+-1.2 libraries, the devel package of GTK+-1.2 will have the gtk-config program which will report the current version etc... installing GTK+-1.2 (development files) will fix your problem Just remember, if you dont have GTK+-1.2 devel files, you probably dont have the header files etc for any other libraries that your program requires, so you'll need header files etc for every library that your program depends on. Cheers, -Tristan From rajesh.banginwar@intel.com Wed Dec 21 13:26:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D24403B0A6F for ; Wed, 21 Dec 2005 13:26:52 -0500 (EST) 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 01486-01 for ; Wed, 21 Dec 2005 13:26:48 -0500 (EST) Received: from orsfmr003.jf.intel.com (fmr18.intel.com [134.134.136.17]) by menubar.gnome.org (Postfix) with ESMTP id C65693B1099 for ; Wed, 21 Dec 2005 13:26:35 -0500 (EST) Received: from orsfmr100.jf.intel.com (orsfmr100.jf.intel.com [10.7.209.16]) by orsfmr003.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc, v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id jBLIQZ6u023777 for ; Wed, 21 Dec 2005 18:26:35 GMT Received: from orsmsxvs040.jf.intel.com (orsmsxvs040.jf.intel.com [192.168.65.206]) by orsfmr100.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc, v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id jBLIOmVr015440 for ; Wed, 21 Dec 2005 18:26:35 GMT Received: from orsmsx332.amr.corp.intel.com ([192.168.65.60]) by orsmsxvs040.jf.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005122110263416134 for ; Wed, 21 Dec 2005 10:26:34 -0800 Received: from orsmsx402.amr.corp.intel.com ([192.168.65.208]) by orsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 21 Dec 2005 10:26:34 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Dec 2005 10:26:34 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Announcing LSB Desktop specifications preview release Thread-Index: AcYGXBKoG+GvkVl/TmqdZKZPpqsMww== From: "Banginwar, Rajesh" To: X-OriginalArrivalTime: 21 Dec 2005 18:26:34.0948 (UTC) FILETIME=[12D71040:01C6065C] X-Scanned-By: MIMEDefang 2.52 on 10.7.209.16 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.583 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, TW_BJ=0.077, TW_BP=0.077, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -0.583 X-Spam-Level: Subject: Announcing LSB Desktop specifications preview release X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 18:26:53 -0000 Hello,=09 Today we are announcing the preview release of LSB desktop 3.1 specifications. This is a fairly complete version of LSB desktop specification for wider review. We are targeting the first release candidate for the same in the middle of next month.=20 The complete specification is available at: http://www.linuxbase.org/spec/booksets/LSB-Desktop/LSB-Desktop.html This specification is based on the following libraries and versions. 1. GTK toolkit module: The module only specification for GTK is available at: http://www.linuxbase.org/spec/book/Toolkit_Gtk/Toolkit_Gtk.html It is based on the following libraries and versions. a. Glib version 2.6.6 b. ATK version 1.9.0 c. Pango version 1.8.2 d. GTK version 2.6.10 We will really appreciate feedback from GTK developers and users at least on this part of the spec.=20 2. XML module: The module only specification is available at http://www.linuxbase.org/spec/book/XML/XML.html a. libxml2 version 2.6.22 3. Graphics-Ext module: The module only specification is available at http://www.linuxbase.org/spec/book/Graphics-Ext/Graphics-Ext.html a. libpng12 library version 1.2.8 b. libjpeg library version 6b Please note that if a distro has an older version of library, it may not be able to pass LSB desktop certification. E.g. libxml2 2.6.20 does not have certain symbols that 2.6.22 provides. Please note some of the specification work currently in-progress (E.g. PNG and JPEG).=20 Kindly review the specification and submit your feedback. The preferred method is LSB bugzilla at http://bugs.linuxbase.org/ What may be added before official release-candidate: 1. libQt: Currently Trolltech is working on creating the specification for this toolkit. As they complete the required technical work, decision will be made regarding including libQt in LSB desktop specification. This decision relies on timely completion of libQt specs work and licensing criteria resolution. 2. fontconfig and libfontconfig: Currently the technical work is ongoing and based on when it is finished, LSB desktop specification (specifically Graphics-Ext module) will be updated. Thanks, -Rajesh Banginwar LSB desktop lead. From hdnews@gawab.com Wed Dec 21 17:30:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A1383B09E0 for ; Wed, 21 Dec 2005 17:30:52 -0500 (EST) 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 23531-03 for ; Wed, 21 Dec 2005 17:30:49 -0500 (EST) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by menubar.gnome.org (Postfix) with ESMTP id 9A7EF3B30F3 for ; Wed, 21 Dec 2005 17:29:58 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBLMTvA5069279 for ; Wed, 21 Dec 2005 23:29:57 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBLMTufo026298 for ; Wed, 21 Dec 2005 23:29:56 +0100 Message-ID: <43A9D761.2070400@gawab.com> Date: Wed, 21 Dec 2005 23:29:53 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.714 tagged_above=-999 required=2 tests=[AWL=-1.312, BAYES_05=-1.11, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -0.714 X-Spam-Level: Subject: cairo drawing and fonts X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:30:52 -0000 Hello there, Just wondering. Is there a way use pango font descriptions, etc for cairo contexts to draw text? Thanks in advance for your answers, -- Hans From andrew@openldev.org Wed Dec 21 17:39:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98FA23B197F for ; Wed, 21 Dec 2005 17:39:43 -0500 (EST) 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 24244-03 for ; Wed, 21 Dec 2005 17:39:41 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id 27AB13B07BD for ; Wed, 21 Dec 2005 17:39:41 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 14:39:25 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: andrew@openldev.org To: Cc: Message-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.64 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.64 X-Spam-Level: Subject: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:39:43 -0000 Recently I have been working on dynamically loading libraries for my applic= ation=0D=0Awith GModule. I have a source file that contains this function:= =0D=0A=0D=0AG_MODULE_EXPORT PluginState init (Plugin *p)=0D=0A{=0D=0A /* D= o something */=0D=0A}=0D=0A=0D=0AA library is created with libtool with the= parameters '-module' and '-avoid-version'=0D=0Apassed to it in the Makefil= e.am. I then try to access it with this code:=0D=0A=0D=0AGModule *module;= =0D=0Amodule =3D g_module_open (library, G_MODULE_BIND_LAZY);=0D=0Aif (!mod= ule)=0D=0A error (g_module_error());=0D=0Aelse=0D=0A if (!g_module_symbol= (module, "init", (gpointer*)&init)=0D=0A error (g_module_error());=0D= =0A=0D=0AI've gone through the API docs a few times as well as some code fr= om=0D=0Avarious other open source projects, but cannot figure out what I am= =0D=0Ascrewing up. I know it is probably something stupid, but any help wou= ld =0D=0Abe much appreciated. Thanks!=0D=0A=0D=0A---=0D=0AAndrew Krause From andrew@openldev.org Wed Dec 21 17:42:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 238A83B1F29 for ; Wed, 21 Dec 2005 17:42:59 -0500 (EST) 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 24681-02 for ; Wed, 21 Dec 2005 17:42:57 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id 49EAF3B1A11 for ; Wed, 21 Dec 2005 17:42:41 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 14:42:22 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: andrew@openldev.org To: Cc: Message-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.608 tagged_above=-999 required=2 tests=[AWL=0.032, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.608 X-Spam-Level: Subject: re: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:42:59 -0000 > Recently I have been working on dynamically loading libraries for my appl= ication=0D=0A> with GModule. I have a source file that contains this functi= on:=0D=0A> =0D=0A> G_MODULE_EXPORT PluginState init (Plugin *p)=0D=0A> {=0D= =0A> /* Do something */=0D=0A> }=0D=0A> =0D=0A> A library is created with= libtool with the parameters '-module' and '-avoid-version'=0D=0A> passed t= o it in the Makefile.am. I then try to access it with this code:=0D=0A> =0D= =0A> GModule *module;=0D=0A> module =3D g_module_open (library, G_MODULE_BI= ND_LAZY);=0D=0A> if (!module)=0D=0A> error (g_module_error());=0D=0A> els= e=0D=0A> if (!g_module_symbol (module, "init", (gpointer*)&init)=0D=0A> = error (g_module_error());=0D=0A> =0D=0A> I've gone through the API docs = a few times as well as some code from=0D=0A> various other open source proj= ects, but cannot figure out what I am=0D=0A> screwing up. I know it is prob= ably something stupid, but any help would =0D=0A> be much appreciated. Than= ks!=0D=0A=0D=0AOh crap! I forgot to put the error I'm getting. In any case,= I'm getting this=0D=0Aerror from the second g_module_error() call:=0D=0A= =0D=0A`init': /usr/lib/libplugin.so: undefined symbol: init=0D=0A=0D=0ASorr= y about that!=0D=0A=0D=0A---=0D=0AAndrew Krause From andrew@openldev.org Wed Dec 21 18:20:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 268433B16B4 for ; Wed, 21 Dec 2005 18:20:44 -0500 (EST) 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 28372-08 for ; Wed, 21 Dec 2005 18:20:41 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id A81933B066A for ; Wed, 21 Dec 2005 18:20:40 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 15:20:25 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "Andrew Krause" To: Cc: Message-ID: <08cd7f3797224d6caf40b1e9834474ca@openldev.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.088 tagged_above=-999 required=2 tests=[AWL=0.513, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.088 X-Spam-Level: Subject: re: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 23:20:44 -0000 Nevermind. I just forgot to use extern "C" ... I knew it was something stup= id.=0D=0A=0D=0A---=0D=0AAndrew Krause From igorbounov@topazelectro.ru Thu Dec 22 00:04:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8296F3B324A for ; Thu, 22 Dec 2005 00:04:40 -0500 (EST) 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 19044-07 for ; Thu, 22 Dec 2005 00:04:37 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 824AE3B3257 for ; Thu, 22 Dec 2005 00:04:35 -0500 (EST) Received: (qmail 6007 invoked by uid 7801); 22 Dec 2005 04:59:30 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.084827 secs); 22 Dec 2005 04:59:30 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.084827 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 22 Dec 2005 04:59:29 -0000 Message-ID: <43AA33F7.4050302@topazelectro.ru> Date: Thu, 22 Dec 2005 08:04:55 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtkmm-list@gnome.org, gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=0.075, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.525 X-Spam-Level: Cc: Subject: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:04:40 -0000 Hi, All! I need any hints about using Gdk::Window::add_filter(GdkFilterFunc function, gpointer data) or gdk_window_add_filter(...), in particular what this filter function looks like and how those gpointer data are made. Igor Gorbounov From lists@nabble.com Thu Dec 22 00:28:26 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 175D13B324A for ; Thu, 22 Dec 2005 00:28:26 -0500 (EST) 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 20776-05 for ; Thu, 22 Dec 2005 00:28:23 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 07A023B12C9 for ; Thu, 22 Dec 2005 00:28:22 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1EpJ01-0000iS-2T for gtk-list@gnome.org; Wed, 21 Dec 2005 21:28:21 -0800 Message-ID: <2055454.post@talk.nabble.com> Date: Wed, 21 Dec 2005 21:28:21 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_836_20938963.1135229301072" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.295 tagged_above=-999 required=2 tests=[AWL=-0.190, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.295 X-Spam-Level: Subject: How to select an list item without focus X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:28:26 -0000 ------=_Part_836_20938963.1135229301072 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following: gtk_list_select_item(GTK_LIST(MyList), ItemIndex); //select this item gtk_list_scroll_vertical(GTK_LIST(MyList), GTK_SCROLL_STEP_FORWARD, 0); // scroll the vertical bar after this, the focus moves from the button to the item which is selected now. and How to select an list item without focus? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/How-to-select-an-list-item-without-focus-t789612.html#a2055454 ------=_Part_836_20938963.1135229301072 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following:
    gtk_list_select_item(GTK_LIST(MyList), ItemIndex);  //select this item
    gtk_list_scroll_vertical(GTK_LIST(MyList),
                               GTK_SCROLL_STEP_FORWARD,
                               0);  // scroll the vertical bar

after this, the focus moves from the button to the item which is selected now.

and How to select an list item without focus?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
How to select an list item without focus ------=_Part_836_20938963.1135229301072-- From wtallman@olypen.com Thu Dec 22 01:31:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1B6023B136C for ; Thu, 22 Dec 2005 01:31:19 -0500 (EST) 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 25030-02 for ; Thu, 22 Dec 2005 01:31:16 -0500 (EST) Received: from olypen2.olypen.com (olypen2.olypen.com [208.200.248.249]) by menubar.gnome.org (Postfix) with ESMTP id EB7CE3B3286 for ; Thu, 22 Dec 2005 01:31:10 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen2.olypen.com with esmtp() (Exim 4.43) id 1EpJyo-00049i-QF for gtk-list@gnome.org; Wed, 21 Dec 2005 22:31:11 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBM6V8nE001949 for gtk-list@gnome.org; Wed, 21 Dec 2005 22:31:08 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 21 Dec 2005 22:31:08 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051222063108.GA887@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <2055454.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2055454.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.426 X-Spam-Level: Subject: List procedure question. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 06:31:19 -0000 A question, please, from a coding newbie. I'm building a front end for an ephemeris engine, and I've begun with a simple entry window for terrestrial data to obtain a position listing. Some while back I asked for some mentoring on connecting Gtk to C code; I've resolved that issue by planning the communication via structs and temp files. So I'm off and crawling, only to fetch aground in the midst of this first file. It's several hundred lines of code now, and so would be a bit much to post here. Is it acceptable to post a URL instead? Thanks, Bill Tallman From murrayc@murrayc.com Thu Dec 22 03:37:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23FD63B3300; Thu, 22 Dec 2005 03:37:24 -0500 (EST) 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 00834-01; Thu, 22 Dec 2005 03:37:18 -0500 (EST) Received: from toby.dreamhost.com (toby.dreamhost.com [66.33.193.58]) by menubar.gnome.org (Postfix) with ESMTP id 2D3A73B32F2; Thu, 22 Dec 2005 03:37:01 -0500 (EST) Received: from [10.1.9.84] (grossetto.webde.de [217.72.192.194]) by toby.dreamhost.com (Postfix) with ESMTP id DB33A15E655; Thu, 22 Dec 2005 00:36:59 -0800 (PST) From: Murray Cumming To: Igor Gorbounov In-Reply-To: <43AA33F7.4050302@topazelectro.ru> References: <43AA33F7.4050302@topazelectro.ru> Content-Type: text/plain Date: Thu, 22 Dec 2005 09:36:57 +0100 Message-Id: <1135240617.23355.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.57 tagged_above=-999 required=2 tests=[AWL=0.029, BAYES_00=-2.599] X-Spam-Score: -2.57 X-Spam-Level: Cc: gtk-list , gtkmm-list@gnome.org Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 08:37:24 -0000 On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote: > Hi, All! > I need any hints about using Gdk::Window::add_filter(GdkFilterFunc > function, gpointer data) or > gdk_window_add_filter(...), in particular what this filter function > looks like and how those > gpointer data are made. > Igor Gorbounov The data is some "state" information (such as a pointer to a C++ class instance) that will be passed to the callback function. This hasn't been wrapped as a sigc::slot<>, probably because I couldn't see when it would be useful. The documentation says "This is a low-level operation and makes it easy to break GDK and/or GTK+, so you have to know what you're doing" and that scares me a bit. This would be easy for someone to wrap properly. See the other SignalProxy_* classes in the .ccg files. A patch would be welcome. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From igorbounov@topazelectro.ru Thu Dec 22 04:09:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 579963B332E for ; Thu, 22 Dec 2005 04:09:53 -0500 (EST) 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 03753-08 for ; Thu, 22 Dec 2005 04:09:51 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 86EE63B3310 for ; Thu, 22 Dec 2005 04:09:15 -0500 (EST) Received: (qmail 28562 invoked by uid 7801); 22 Dec 2005 09:04:10 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.095872 secs); 22 Dec 2005 09:04:10 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.095872 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 22 Dec 2005 09:04:09 -0000 Message-ID: <43AA6D50.6070404@topazelectro.ru> Date: Thu, 22 Dec 2005 12:09:36 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Murray Cumming References: <43AA33F7.4050302@topazelectro.ru> <1135240617.23355.18.camel@localhost.localdomain> In-Reply-To: <1135240617.23355.18.camel@localhost.localdomain> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.493 tagged_above=-999 required=2 tests=[AWL=0.030, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.493 X-Spam-Level: Cc: gtk-list , gtkmm-list@gnome.org Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 09:09:53 -0000 Murray Cumming wrote: >On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote: > > >>Hi, All! >>I need any hints about using Gdk::Window::add_filter(GdkFilterFunc >>function, gpointer data) or >>gdk_window_add_filter(...), in particular what this filter function >>looks like and how those >>gpointer data are made. >> Igor Gorbounov >> >> > >The data is some "state" information (such as a pointer to a C++ class >instance) that will be passed to the callback function. > >This hasn't been wrapped as a sigc::slot<>, probably because I couldn't >see when it would be useful. [...] > The situation is such that I use a winapi mplayer and pass to it a gdk_window handle, and next, when that player stops it sends an awfull winapi message in some crazy winapi way, and I've almost broke my brains in an effort to get this message. This add_filter method was designed to catch those messages, but how - no one has wrote an example. As far as I could find in Google, Tor Lillquist had added this filter in about gtk+ 2.2.x. Igor Gorbounov From Alessandro.Abrami@elettra.trieste.it Thu Dec 22 04:44:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 799953B33B4 for ; Thu, 22 Dec 2005 04:44:09 -0500 (EST) 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 06668-01 for ; Thu, 22 Dec 2005 04:44:06 -0500 (EST) Received: from elettra.trieste.it (mail1.elettra.trieste.it [140.105.4.201]) by menubar.gnome.org (Postfix) with ESMTP id AD6163B1F72 for ; Thu, 22 Dec 2005 04:43:31 -0500 (EST) Received: from [140.105.3.173] (account alessandro.abrami HELO [127.0.0.1]) by elettra.trieste.it (CommuniGate Pro SMTP 4.3.8) with ESMTPA id 10429035; Thu, 22 Dec 2005 10:44:38 +0100 Message-ID: <43AA7539.8040901@elettra.trieste.it> Date: Thu, 22 Dec 2005 10:43:21 +0100 From: Alessandro Abrami User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en, it MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-Mailman-Approved-At: Thu, 22 Dec 2005 09:05:05 -0500 Subject: Notebook and Scrolled windows: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 09:44:09 -0000 Hi, I'm been working on scrolled windows within a notebook and just like Bob McCallister, see his mail: Notebook and Scrolled windows: bug? * /From/: Bob McCallister * /To/: gtk-list gnome org * /Subject/: Notebook and Scrolled windows: bug? * /Date/: Tue, 01 Jun 2004 15:24:11 -0400 I have the same problem: only the scrolled window onto the first notebook page has the scroolbar functioning, while the scrolled window onto the second page doesn't. I compiled his code on my debian machine, and, again, the same problem. I saw the answer of Russell Shaw in this mail-list, but I currently have: ||/ Name Version Description +++-=========================-=========================-================================================================== ii libgtk2.0-0 2.6.4-3 The GTK+ graphical user interface library ii libgtk2.0-bin 2.6.4-3 The programs for the GTK+ graphical user interface library ii libgtk2.0-common 2.6.4-3 Common files for the GTK+ graphical user interface library ii libgtk2.0-dev 2.6.4-3 Development files for the GTK+ library May someone give me help? Thanks, Alessandro From corey.burger@gmail.com Thu Dec 22 14:10:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 314083B25B8 for ; Thu, 22 Dec 2005 14:10:04 -0500 (EST) 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 26787-02 for ; Thu, 22 Dec 2005 14:10:00 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by menubar.gnome.org (Postfix) with ESMTP id CDB283B0CC3 for ; Thu, 22 Dec 2005 14:09:50 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so172187nfc for ; Thu, 22 Dec 2005 11:09:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=kNldlZVoMP2m5QEcWj/fgn4jNFmc07hxCTmyuAknY64aoFUwaBdXOH9QZIbhvsVJHAncG6DxGyUBkIL/9wXCYlHvhebm5KlBwqqUf6t5K9+Hc7nxvsii/vDJ1ODTGxpzVyhywn5HXwRETLbhXpS/a6efxiJQayP2BXOilWKkiog= Received: by 10.48.4.9 with SMTP id 9mr105619nfd; Thu, 22 Dec 2005 11:09:49 -0800 (PST) Received: by 10.48.233.11 with HTTP; Thu, 22 Dec 2005 11:09:49 -0800 (PST) Message-ID: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> Date: Thu, 22 Dec 2005 11:09:49 -0800 From: Corey Burger To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: chipx86@chipx86.com, David Trowbridge Subject: A new spelling world order X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:10:04 -0000 Hey all, I was speaking with the maintainers of libsexy about the possiblity of moving the libsexy spelling widget into gtk+. IMHO, the UI for libsexy is probably the best one I have seen yet, allowing nearly seamless spell checking. However, I am not a technical pserson and thus am not familiar with what is needed to get this stuff into gtk+. Here is the conversation with David Trowbridge, "Well, opening up a dialogue with the gtk+ developers about it would be a good first step. While I've certainly caught everything obvious, I'd be pretty surprised if SexySpellEntry was 100% bug free right now, so lots of testing would be good; I'm not sure about the actual requirements and procedures for getting a widget into gtk+, but quality is obviously paramount. Beyond that, I don't have any other ideas at the moment." Cheers, Corey From andrew@openldev.org Thu Dec 22 14:45:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 189D83B263A for ; Thu, 22 Dec 2005 14:45:45 -0500 (EST) 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 29292-10 for ; Thu, 22 Dec 2005 14:45:32 -0500 (EST) Received: from f05n15.cac.psu.edu (unknown [128.118.141.100]) by menubar.gnome.org (Postfix) with ESMTP id 27C573B244A for ; Thu, 22 Dec 2005 14:45:32 -0500 (EST) Received: from [207.255.12.78] (207-255-12-078-dhcp.jst.pa.atlanticbb.net [207.255.12.78]) by f05n15.cac.psu.edu (8.13.2/8.13.2) with ESMTP id jBMJirbg147658; Thu, 22 Dec 2005 14:44:54 -0500 Message-ID: <43AB0254.2060802@openldev.org> Date: Thu, 22 Dec 2005 14:45:24 -0500 From: Andrew Krause User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Corey Burger References: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> In-Reply-To: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: chipx86@chipx86.com, David Trowbridge , gtk-list@gnome.org Subject: Re: A new spelling world order X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:45:45 -0000 Corey Burger wrote: >Hey all, > >I was speaking with the maintainers of libsexy about the possiblity of >moving the libsexy spelling widget into gtk+. IMHO, the UI for libsexy >is probably the best one I have seen yet, allowing nearly seamless >spell checking. However, I am not a technical pserson and thus am not >familiar with what is needed to get this stuff into gtk+. > I would be all for this! It would be a wonderful thing to be able to have spellchecking provided universally to any widget that we use. It would help the user because it would become consistent across all of Gnome. --- Andrew Krause andrew@openldev.org www.openldev.org From dkasak@nusconsulting.com.au Thu Dec 22 17:38:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F2CB3B171F for ; Thu, 22 Dec 2005 17:38:38 -0500 (EST) 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 09726-05 for ; Thu, 22 Dec 2005 17:38:36 -0500 (EST) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 6A3A43B1648 for ; Thu, 22 Dec 2005 17:38:34 -0500 (EST) Received: from [10.146.1.180] (ayahuasca.nusconsulting.com.au [10.146.1.180]) by screamer.nusconsulting.com.au (8.13.4/8.13.4) with ESMTP id jBMMcqUL002301 for ; Fri, 23 Dec 2005 09:38:52 +1100 Message-ID: <43AB2955.2080100@nusconsulting.com.au> Date: Fri, 23 Dec 2005 09:31:49 +1100 From: Daniel Kasak User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051029) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 357512 - fec4e925678e X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=357512&m=fec4e925678e X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=357512&m=fec4e925678e X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=357512&m=fec4e925678e X-Scanned-By: CanIt (www . canit . ca) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.572 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.572 X-Spam-Level: Subject: Performance under Citrix & WAN? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 22:38:38 -0000 Greetings. I'm beginning on a project that I would like to do in GTK ( Perl GTK, actually ). The app will be running on 50 different sites, on a WAN over DSL, and inside Citrix :) We're mainly considering the Citrix option for ease of installation / maintenance. It's not a particularly graphically intensive app - it will mainly be a single form ( large though ) for entering stuff into a database. Has anyone used a GTK application under the above setup? What is performance like? I'm not all that familiar with Citrix, so I'm not exactly sure what it will run like. I assume that it does some intelligent compression of standard Windows widgets for performance over a network. Can I expect decent performance for GTK? Thanks :) Dan From david@avoncliff.com Thu Dec 22 18:42:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 415793B0BA7 for ; Thu, 22 Dec 2005 18:42:18 -0500 (EST) 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 13171-08 for ; Thu, 22 Dec 2005 18:42:15 -0500 (EST) Received: from trajan.ag-netcom.net (www.ag-netcom.net [212.58.137.10]) by menubar.gnome.org (Postfix) with ESMTP id 60C4A3B0BE1 for ; Thu, 22 Dec 2005 18:42:15 -0500 (EST) Received: from [192.168.0.2] (dsl-217-155-44-202.zen.co.uk [217.155.44.202]) by trajan.ag-netcom.net (8.12.8p1/8.12.8) with ESMTP id jBMNgEpl044030 for ; Thu, 22 Dec 2005 23:42:14 GMT (envelope-from david@avoncliff.com) Message-ID: <43AB37EA.3090100@avoncliff.com> Date: Thu, 22 Dec 2005 23:34:02 +0000 From: David Stevenson User-Agent: Mozilla Thunderbird 1.0 (X11/20050219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Subject: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 23:42:18 -0000 Hi I have a problem, and am not sure where to ask, so if this is the wrong place please advise. I am using tiff files that are 9000x6000 pixels black and white. ( they are schematic drawings intended to print A0 size ) I calculate this as just under 8meg at 1 bit per pixel, however when I open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which pushes my 256meg Macmini into swapping and makes the files unusable. I thought the problem could be with the files claiming to be 24bit colour although only using mono, but from a quick look at the headers I think they are 1 bit / pixel. Can anyone confirm the memory use for black and white tiffs. David From jcupitt@gmail.com Fri Dec 23 05:23:42 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E0AB3B0A93 for ; Fri, 23 Dec 2005 05:23:42 -0500 (EST) 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 21886-10 for ; Fri, 23 Dec 2005 05:23:37 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by menubar.gnome.org (Postfix) with ESMTP id 680343B09D9 for ; Fri, 23 Dec 2005 05:23:37 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so600038wxc for ; Fri, 23 Dec 2005 02:23:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gfHCBamJJJ2NrIB4XzgFBfiwMV+AoyLrqrHWDoeymltyzaqGydK72InEsHClAPp6Q+VdOVuR0BDJ7XlUlEbrQsPsR6cXcEOxskas6xp0JX4N0W4PX4B9oKD1F5cnhRgLtSN7McffJNkYicYCVhIyQXb/4KF1HsmtB8j2eC/wuSY= Received: by 10.70.94.5 with SMTP id r5mr3108341wxb; Fri, 23 Dec 2005 02:23:36 -0800 (PST) Received: by 10.70.67.14 with HTTP; Fri, 23 Dec 2005 02:23:36 -0800 (PST) Message-ID: <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> Date: Fri, 23 Dec 2005 10:23:36 +0000 From: John Cupitt To: David Stevenson In-Reply-To: <43AB37EA.3090100@avoncliff.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43AB37EA.3090100@avoncliff.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.567 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.567 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 10:23:42 -0000 On 12/22/05, David Stevenson wrote: > I am using tiff files that are 9000x6000 pixels black and white. > ( they are schematic drawings intended to print A0 size ) > I calculate this as just under 8meg at 1 bit per pixel, however when I > open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which > pushes my 256meg Macmini into swapping and makes the files unusable. I did some tests with a 10k x 10k pixel 1 bit image on my laptop. gimp needs just over 200MB of RAM, so I guess they represent the image as 8 bits per pixel plus a bit. eog needs about 350MB, so they might be using RGBA. I maintain an image processing package called nip and it needs just over 30MB to view and manipulate the image. But it's not a paint program and can be tricky to use :-( if you're curious, you can download from: http://www.vips.ecs.soton.ac.uk/ John From hdnews@gawab.com Fri Dec 23 06:07:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3D3F03B1FC2 for ; Fri, 23 Dec 2005 06:07:24 -0500 (EST) 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 25221-05 for ; Fri, 23 Dec 2005 06:07:22 -0500 (EST) Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by menubar.gnome.org (Postfix) with ESMTP id B28B03B1B29 for ; Fri, 23 Dec 2005 06:06:35 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr17.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBNB6XF1041560 for ; Fri, 23 Dec 2005 12:06:34 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBNB6Wfo030182 for ; Fri, 23 Dec 2005 12:06:32 +0100 Message-ID: <43ABDA35.5010008@gawab.com> Date: Fri, 23 Dec 2005 12:06:29 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.469 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.469 X-Spam-Level: Subject: cairo support for Postscript/PDF X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 11:07:24 -0000 L.S., Am I right if I conclude that cairo support for postscript is not included with Gtk? Or is this just a glade-win32.sf.net omission? Thanks in advance for your answers, -- Hans Oesterholt From david@avoncliff.com Fri Dec 23 08:41:41 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 153D43B095B for ; Fri, 23 Dec 2005 08:41:41 -0500 (EST) 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 04071-07 for ; Fri, 23 Dec 2005 08:41:38 -0500 (EST) Received: from trajan.ag-netcom.net (www.ag-netcom.net [212.58.137.10]) by menubar.gnome.org (Postfix) with ESMTP id 196383B10C2 for ; Fri, 23 Dec 2005 08:41:38 -0500 (EST) Received: from [192.168.0.2] (dsl-217-155-44-202.zen.co.uk [217.155.44.202]) by trajan.ag-netcom.net (8.12.8p1/8.12.8) with ESMTP id jBNDfapl052387; Fri, 23 Dec 2005 13:41:36 GMT (envelope-from david@avoncliff.com) Message-ID: <43ABFC0C.5050706@avoncliff.com> Date: Fri, 23 Dec 2005 13:30:52 +0000 From: David Stevenson User-Agent: Mozilla Thunderbird 1.0 (X11/20050219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Cupitt References: <43AB37EA.3090100@avoncliff.com> <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> In-Reply-To: <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599] X-Spam-Score: -2.565 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 13:41:41 -0000 John Cupitt wrote: > On 12/22/05, David Stevenson wrote: > >>I am using tiff files that are 9000x6000 pixels black and white. >>( they are schematic drawings intended to print A0 size ) >>I calculate this as just under 8meg at 1 bit per pixel, however when I >>open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which >>pushes my 256meg Macmini into swapping and makes the files unusable. > > > I did some tests with a 10k x 10k pixel 1 bit image on my laptop. gimp > needs just over 200MB of RAM, so I guess they represent the image as 8 > bits per pixel plus a bit. eog needs about 350MB, so they might be > using RGBA. > > I maintain an image processing package called nip and it needs just > over 30MB to view and manipulate the image. But it's not a paint > program and can be tricky to use :-( if you're curious, you can > download from: > > http://www.vips.ecs.soton.ac.uk/ > > John > Thanks John, I have emerged nip2 and now I can view my drawings no problem. David From riboaz@xs4all.nl Fri Dec 23 10:29:10 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 097193B0F66 for ; Fri, 23 Dec 2005 10:29:10 -0500 (EST) 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 12805-10 for ; Fri, 23 Dec 2005 10:29:07 -0500 (EST) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by menubar.gnome.org (Postfix) with ESMTP id B4A433B0820 for ; Fri, 23 Dec 2005 10:29:06 -0500 (EST) Received: from webmail.xs4all.nl (dovemail7.xs4all.nl [194.109.26.9]) by smtp-vbr9.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBNFT5f0038870; Fri, 23 Dec 2005 16:29:05 +0100 (CET) (envelope-from riboaz@xs4all.nl) Received: from 80.127.22.34 (SquirrelMail authenticated user riboaz) by webmail.xs4all.nl with HTTP; Fri, 23 Dec 2005 16:29:05 +0100 (CET) Message-ID: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> Date: Fri, 23 Dec 2005 16:29:05 +0100 (CET) From: "Richard Boaz" To: gtk-list@gnome.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.43 X-Spam-Level: Subject: gtk_window_set_focus() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 15:29:10 -0000 hi, I have an app to draw seismograms on the screen. When the user hits the "Next" button, the app goes away and reads the next batch of traces for display, does various statistics, plots the output to an internal pixmap and then renders this to the screen; depending on the number of files to be read, this could take a fair amount of time (up to a minute). no problems there. One issue that came up over time (when actually unleashed to the end users...) was that when the program was away reading the files, user events (e.g., mouse click) would get caught and (maybe) cause problems since the program was not in the proper state to process this event properly. I got around this by introducing an invisible widget used to grab focus while the program is off reading and processing files, and then ungrabbing this focus once the program's processing is complete, thus disallowing any user events to be propogated to the widget receiving the user event. This also works just fine. However, this has now introduced a new problem. If the user has the mouse over the Next button (to read traces), clicks this button (thus invoking the file processing described above), and doesn't move the mouse off this button, when the program returns (ungrabbing focus of my invisible widget), focus is not reset to this button. (Clicking this button again has no effect; focussing somewhere else and returning to this button results in a working button.) To get around this, then, I tried to use gtk_window_get_focus() to save the widget having focus at the moment my internal processing is invoked, and then returning this focus to this saved widget when the process is complete, via the following function: void focusLock(int lockCmd) { static GtkWidget *oldFocus; switch(lockCmd) { case LOCK: oldFocus = gtk_window_get_focus(topWindow); gtk_grab_add(invisible); break; case UNLOCK: gtk_grab_remove(invisible); gtk_window_set_focus(topWindow, oldFocus); // tried also gtk_widget_grab_focus(): also no effect break; } } However, using this code, the focus is not reset back to the oldFocus widget; there is no change in the problem behaviour. In order to be able to press the button a second time, I must still move the mouse away from the button and back over it. So, I'm wondering, first, is there a way to achieve my above-stated goals some other (better) way? Second, if the above methodology is okay, why does the gtk_window_set_focus() call above not result in the focus being returned to the widget having focus before my program stole it with gtk_grab_add()? Thanks for any ideas in advance, I'm finding myself in a loop of solve one problem and I simply make another needing solving. cheers, richard boaz From jcupitt@gmail.com Fri Dec 23 10:37:31 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23A6A3B1070 for ; Fri, 23 Dec 2005 10:37:31 -0500 (EST) 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 13753-01 for ; Fri, 23 Dec 2005 10:37:28 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by menubar.gnome.org (Postfix) with ESMTP id D5E4D3B1B7B for ; Fri, 23 Dec 2005 10:37:22 -0500 (EST) Received: by xproxy.gmail.com with SMTP id h29so433815wxd for ; Fri, 23 Dec 2005 07:37:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WxcqcfSnfd+5TjXmBQsZE+xZYW79ZenXmVTgV+bF8sTcygZH5aYn2QUMheMdlaqd+VVGciZUZSVeRquQ/IFoGuBu0fuK1B8DNp57zxPHwtPYiO6jfkUScxByya293l938Fb8Bpyzxix+91PIwy9Vn1FHmmU0/O56vy58ujNlKzs= Received: by 10.70.53.1 with SMTP id b1mr3379721wxa; Fri, 23 Dec 2005 07:37:22 -0800 (PST) Received: by 10.70.67.14 with HTTP; Fri, 23 Dec 2005 07:37:22 -0800 (PST) Message-ID: <522c6460512230737s65f41743r9da9604706535654@mail.gmail.com> Date: Fri, 23 Dec 2005 15:37:22 +0000 From: John Cupitt To: Richard Boaz In-Reply-To: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.567 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.567 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_focus() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 15:37:31 -0000 Hi, On 12/23/05, Richard Boaz wrote: > One issue that came up over time (when actually unleashed to the end > users...) was that when the program was away reading the files, user > events (e.g., mouse click) would get caught and (maybe) cause problems > since the program was not in the proper state to process this event > properly. > > I got around this by introducing an invisible widget used to grab focus > while the program is off reading and processing files, and then ungrabbin= g > this focus once the program's processing is complete, thus disallowing an= y > user events to be propogated to the widget receiving the user event. Thi= s > also works just fine. How about popping up a modal dialog saying "Procesing, please wait ...". The dialog will receive all mouse and keyboard events and they won't get queued on your main window. When processing finishes, pop down the dialog and your app will still be as it was. I guess a better solution would be to thread your program and display a %complete bar, but I imagine that would be more work. John From zvi.sebrow@verizon.net Fri Dec 23 13:54:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2938F3B2774 for ; Fri, 23 Dec 2005 13:54:59 -0500 (EST) 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 28538-03 for ; Fri, 23 Dec 2005 13:54:56 -0500 (EST) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 9EC1B3B2735 for ; Fri, 23 Dec 2005 13:54:54 -0500 (EST) Received: from OFFICEPC1 ([151.205.177.118]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRY002F7SJGSLR7@vms044.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 12:54:54 -0600 (CST) Date: Fri, 23 Dec 2005 13:55:00 -0500 From: "Zvi Sebrow" To: Message-id: <019301c607f2$605b3cf0$4000a8c0@OFFICEPC1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_0190_01C607C8.771ED200" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.082 tagged_above=-999 required=2 tests=[AWL=-1.991, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.082 X-Spam-Level: Subject: changing the width of Frames X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 18:54:59 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0190_01C607C8.771ED200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How does one go about changing the width and/or the color of the frame drawn width a GtkFrame? TIA Zvi ------=_NextPart_000_0190_01C607C8.771ED200 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How does one go about changing the width and/or the = color of=20 the frame
drawn width a GtkFrame?
 
TIA
Zvi
------=_NextPart_000_0190_01C607C8.771ED200-- From junshen2004@gmail.com Fri Dec 23 18:02:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E834E3B289C for ; Fri, 23 Dec 2005 18:02:19 -0500 (EST) 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 12971-01 for ; Fri, 23 Dec 2005 18:02:17 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 385133B2610 for ; Fri, 23 Dec 2005 18:02:17 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 16so727038nzp for ; Fri, 23 Dec 2005 15:02:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=E/WpHmU2yclycSiVaTuDbhlFgfkvMaVLU1SIvA8LmSix7wA84F3B3LyXPpuw6GP5vTzLcsW35bDPVpvozgy+KSAZN4qGj3BJHFbIOzw1mXpfoglaxgqPZvCdCy9KzdEeArtMEht3eRdKYdMxClbxi9qQetCtjXqEVtDIKWbh5jo= Received: by 10.64.149.14 with SMTP id w14mr1893732qbd; Fri, 23 Dec 2005 15:02:16 -0800 (PST) Received: by 10.64.210.4 with HTTP; Fri, 23 Dec 2005 15:02:16 -0800 (PST) Message-ID: <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> Date: Fri, 23 Dec 2005 18:02:16 -0500 From: Jun Shen To: gtk-list@gnome.org In-Reply-To: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22881_30597531.1135378936561" References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.481 X-Spam-Level: Subject: New to GTK+, please help X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 23:02:20 -0000 ------=_Part_22881_30597531.1135378936561 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am new to GTK+. I am trying to run the Hello World program from GTK+ 2.0Tutorial in Visual C++ 6.0. But I am getting the following error. Please help. Thank you very much. Jun ** (gtk.exe): WARNING **: The specified module could not be found. Failed to load Pango module for id: 'BasicScriptEngineWin32' (gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): a ssertion `G_IS_OBJECT (object)' failed ** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_shape_sha pe): assertion `PANGO_IS_FONT (font)' failed ------=_Part_22881_30597531.1135378936561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
 
I am new to GTK+. I am trying to run the Hello World program= from GTK+ 2.0 Tutorial in Visual C++ 6.0. But I am getting the following e= rror. Please help.
 
Thank you very much.
 
Jun

** (gtk.exe): WARNING **: The specified module could not be found.=
Failed to load Pango module for id: 'BasicScriptEngineWin32'

(gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_= object_ref): a
ssertion `G_IS_OBJECT (object)' failed

** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_s= hape_sha
pe): assertion `PANGO_IS_FONT (font)' failed

 

 
------=_Part_22881_30597531.1135378936561-- From paul@linuxaudiosystems.com Fri Dec 23 19:51:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0DA383B3229 for ; Fri, 23 Dec 2005 19:51:35 -0500 (EST) 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 19183-02 for ; Fri, 23 Dec 2005 19:51:32 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 43FFC3B2D15 for ; Fri, 23 Dec 2005 19:51:32 -0500 (EST) Received: from dhin ([151.197.42.141]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRZ00K0B91VWOA0@vms046.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 18:51:31 -0600 (CST) Date: Fri, 23 Dec 2005 19:54:21 -0500 From: Paul Davis To: gtk-list@gnome.org Message-id: <1135385661.6838.32.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.572 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.572 X-Spam-Level: Subject: the container/table/scrollbar/adjustment problem to end all such problems X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 00:51:35 -0000 OK, I've had enough of trying to fix this problem over the years. Its time to ask the rest of the experts how they would solve this. The problem at hand is layed out like this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +--------------------------------+-----------------------------+ | | | | | | | | | | A | B | | | | | | | | | | +--------------------------------+-----------------------------+X | | |X | | |X | | |X | C | D |X | | |X | | |X +--------------------------------+-----------------------------+X the exact and relative dimensions don't matter at all. the rules are that: * A never scrolls at all * B scrolls horizontally in step with D, but never vertically * C scrolls vertically in step with D, but never horizontally * (by implication) D scrolls vertically and horizontally the area marked "XXXXXXXX" indicates the desired location of the scrollbar to control scrolling in the appropriate direction. how to do this with GTK? i know the basics so please don't tell me about using a table, etc. my existing (non)solution is: overall layout is a 3x3 table C is a layout containing an eventbox D is canvas widget (i.e. a layout, since canvas IS-A layout) B is a vbox containing several custom rulers and a canvas A is a vbox containing text labels stacked XXXXXX is a scrollbar of the appropriate orientation this is *very* close to working, but not close enough. I cannot get the layout in C to scroll properly. it has its own adjustments, but anytime the adjustment associated with vertical scrollbar is changed, we set the layout adjustment to the same value. horizontal scrolling works fine. the C layout will scroll, but any part of the event box that was not visible when the top level window was mapped will never be drawn. suggestions? new approaches? before you ask "why not use a scrolled window?", been there, done that. GTK's scrolled windows do not support the idea of being limited in display size but having no visible scrollbars. this means that C cannot be a scrolled window because it will either (a) expand to the full size of its child widget or (b) have to have at least 1 visible scrollbar. --p From paul@linuxaudiosystems.com Fri Dec 23 20:31:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A853E3B230F for ; Fri, 23 Dec 2005 20:31:15 -0500 (EST) 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 21547-09 for ; Fri, 23 Dec 2005 20:31:12 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id AD7413B1943 for ; Fri, 23 Dec 2005 20:31:12 -0500 (EST) Received: from dhin ([151.197.42.141]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRZ00HVVAVKJBW1@vms046.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 19:30:57 -0600 (CST) Date: Fri, 23 Dec 2005 20:33:47 -0500 From: Paul Davis In-reply-to: <1135385661.6838.32.camel@localhost.localdomain> To: gtk-list@gnome.org Message-id: <1135388027.6838.34.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1135385661.6838.32.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.571 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.571 X-Spam-Level: Subject: Re: the container/table/scrollbar/adjustment problem to end all such problems X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 01:31:15 -0000 On Fri, 2005-12-23 at 19:54 -0500, Paul Davis wrote: > OK, I've had enough of trying to fix this problem over the years. Its > time to ask the rest of the experts how they would solve this. i also know that an excellent way to solve problems is to draft an exasperated email to this list and wait for about 10 minutes, at which point the problem will become utterly self-evident. thanks for listening in. --p From email@micahcarrick.com Fri Dec 23 21:04:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 620FE3B0D4E for ; Fri, 23 Dec 2005 21:04:19 -0500 (EST) 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 23404-09 for ; Fri, 23 Dec 2005 21:04:17 -0500 (EST) Received: from meteor.lunarpages.com (meteor.lunarpages.com [216.193.217.213]) by menubar.gnome.org (Postfix) with ESMTP id D283F3B08A5 for ; Fri, 23 Dec 2005 21:04:16 -0500 (EST) Received: from c-24-21-141-194.hsd1.or.comcast.net ([24.21.141.194] helo=[192.168.0.100]) by meteor.lunarpages.com with esmtpa (Exim 4.52) id 1Epylb-0005yQ-8C for gtk-list@gnome.org; Fri, 23 Dec 2005 18:04:15 -0800 Message-ID: <43ACACCA.70309@micahcarrick.com> Date: Fri, 23 Dec 2005 18:04:58 -0800 From: Micah Carrick User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - meteor.lunarpages.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - micahcarrick.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.398 X-Spam-Level: Subject: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: email@micahcarrick.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 02:04:19 -0000 Hi. I have a GtkImage in my glade file which I am trying to get to display image data that I have in memory. The data is in raw format, 3 bytes per pixel RGB. So, this is sort of what I'm trying to do now (v->image_data is a struct member with the array of guchar containing my image data)... GdkPixbuf *pixbuf = gdk_pixbuf_new_from_data( v->image_data, GDK_COLORSPACE_RGB, FALSE, 8, 320, 240, 960, NULL, NULL ); GtkWidget *image1 = glade_xml_get_widget (gxml, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(image1), pixbuf); gtk_widget_show(image1); Any pointers as to what I might be doing wrong? Thanks, Micah From duckwing@duckwing.ca Fri Dec 23 22:30:46 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50AFD3B3454 for ; Fri, 23 Dec 2005 22:30:46 -0500 (EST) 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 27803-10 for ; Fri, 23 Dec 2005 22:30:43 -0500 (EST) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by menubar.gnome.org (Postfix) with ESMTP id 723763B2EFA for ; Fri, 23 Dec 2005 22:30:43 -0500 (EST) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ007ICGF62OC0@l-daemon> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd2mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ00I0VGF6OKC0@pd2mr8so.prod.shaw.ca> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: from localhost ([24.69.162.251]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ00AJWGF6XLI1@l-daemon> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: by localhost (Postfix, from userid 1000) id C0AAB1B70B; Fri, 23 Dec 2005 19:30:43 -0800 (PST) Date: Fri, 23 Dec 2005 19:30:43 -0800 From: "Carl B. Constantine" In-reply-to: <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> To: gtk-list@gnome.org Mail-Followup-To: gtk-list@gnome.org Message-id: <20051224033043.GB5518@Mallard> X-Info: http://www.duckwing.ca MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-2-k7-smp (i686) X-Uptime: 19:29:21 up 10:21, 4 users, load average: 0.07, 0.02, 0.00 References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Re: New to GTK+, please help X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 03:30:46 -0000 * Jun Shen (junshen2004@gmail.com) wrote: > Hi, > > I am new to GTK+. I am trying to run the Hello World program from GTK+ > 2.0Tutorial in Visual C++ > 6.0. But I am getting the following error. Please help. > > Thank you very much. > > Jun > > ** (gtk.exe): WARNING **: The specified module could not be found. > Failed to load Pango module for id: 'BasicScriptEngineWin32' > > (gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 > (g_object_ref): a > ssertion `G_IS_OBJECT (object)' failed > > ** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 > (_pango_engine_shape_sha > pe): assertion `PANGO_IS_FONT (font)' failed Do you have the Pango Libraries specified in your VC++ project? I'm not up on Visual C but check to make sure everything is linked in correctly. -- .''`. Carl B. Constantine : :' : duckwing@duckwing.ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom "Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world." From hdnews@gawab.com Sat Dec 24 05:55:49 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 819F33B0A38 for ; Sat, 24 Dec 2005 05:55:49 -0500 (EST) 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 19359-07 for ; Sat, 24 Dec 2005 05:55:47 -0500 (EST) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by menubar.gnome.org (Postfix) with ESMTP id 186023B06A8 for ; Sat, 24 Dec 2005 05:55:47 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr3.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBOAtjtR080824 for ; Sat, 24 Dec 2005 11:55:46 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBOAtifo032675 for ; Sat, 24 Dec 2005 11:55:45 +0100 Message-ID: <43ABD9D2.3000101@gawab.com> Date: Fri, 23 Dec 2005 12:04:50 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.059 tagged_above=-999 required=2 tests=[AWL=-2.058, BAYES_05=-1.11, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_POST=1.708, TW_CV=0.077, TW_VX=0.077] X-Spam-Score: -0.059 X-Spam-Level: Subject: cairo support, Postscript? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 10:55:49 -0000 Hello, On WIN32, I cvxz From everaldo.canuto@gmail.com Sat Dec 24 08:39:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 565F13B11B1 for ; Sat, 24 Dec 2005 08:39:10 -0500 (EST) 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 31554-07 for ; Sat, 24 Dec 2005 08:39:07 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id A4D5D3B1B88 for ; Sat, 24 Dec 2005 08:37:59 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 68so720981wra for ; Sat, 24 Dec 2005 05:37:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=E6Ggjfi54G7to9WhxUMeaMCMH1iTu5zzDtZUMmMu4Q3NSXvU+ql+lLNyOFlM4sJsLM3mQIKF2VQhZbqhkP7ClZCyr7izNYFsmuG1CfZFI9HqwhYCLYyA52/yYW8Mn1ASziqxlIoCVMq9y+xoaYUWWrEAP9NUxq3e3vQxp9iRb5E= Received: by 10.54.135.7 with SMTP id i7mr3745811wrd; Sat, 24 Dec 2005 05:37:58 -0800 (PST) Received: from ?172.31.0.45? ( [200.164.80.130]) by mx.gmail.com with ESMTP id 13sm8093462wrl.2005.12.24.05.37.55; Sat, 24 Dec 2005 05:37:57 -0800 (PST) From: Everaldo Canuto To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 24 Dec 2005 10:37:47 -0300 Message-Id: <1135431467.27692.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: Mary Christimas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 13:39:17 -0000 Hi all, I know that this is a international list and not all people have same religion or calendar but... Mary Christimas, a happy new year and a big success in 2006!! Everaldo. From duckwing@duckwing.ca Sat Dec 24 13:11:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB87E3B2612 for ; Sat, 24 Dec 2005 13:11:07 -0500 (EST) 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 17085-06 for ; Sat, 24 Dec 2005 13:11:04 -0500 (EST) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by menubar.gnome.org (Postfix) with ESMTP id 892B63B0A23 for ; Sat, 24 Dec 2005 13:11:04 -0500 (EST) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS00016TL6G7DD0@l-daemon> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:04 -0700 (MST) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd4mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS000JB3L6GOCE0@pd4mr1so.prod.shaw.ca> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:04 -0700 (MST) Received: from localhost ([24.69.162.251]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS0008ZEL6F4M90@l-daemon> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:03 -0700 (MST) Received: by localhost (Postfix, from userid 1000) id 97C161B6F0; Sat, 24 Dec 2005 10:11:07 -0800 (PST) Date: Sat, 24 Dec 2005 10:11:07 -0800 From: "Carl B. Constantine" In-reply-to: <1135431467.27692.7.camel@localhost.localdomain> To: Everaldo Canuto Mail-Followup-To: Everaldo Canuto , gtk-list@gnome.org Message-id: <20051224181107.GB7468@Mallard> X-Info: http://www.duckwing.ca MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-2-k7-smp (i686) X-Uptime: 10:10:47 up 1 day, 1:02, 4 users, load average: 0.11, 0.11, 0.04 References: <1135431467.27692.7.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.433 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.433 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Mary Christimas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 18:11:07 -0000 * Everaldo Canuto (everaldo.canuto@gmail.com) wrote: > Hi all, > > I know that this is a international list and not all people have same > religion or calendar but... > > Mary Christimas, a happy new year and a big success in 2006!! > > Everaldo. Thank you. To you and yours too. -- .''`. Carl B. Constantine : :' : duckwing@duckwing.ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom "Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world." From michael@zolnott.de Sun Dec 25 03:23:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45483B079C for ; Sun, 25 Dec 2005 03:23:12 -0500 (EST) 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 28573-08 for ; Sun, 25 Dec 2005 03:23:09 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id 4F9E43B0B0F for ; Sun, 25 Dec 2005 03:22:43 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3203.me.freeserve.com (SMTP Server) with ESMTP id 23BDD1C00085 for ; Sun, 25 Dec 2005 09:22:42 +0100 (CET) Received: from www.zolnott.de (user-7071.l6.c5.dsl.pol.co.uk [84.65.123.159]) by mwinf3203.me.freeserve.com (SMTP Server) with ESMTP id BFF5E1C00083 for ; Sun, 25 Dec 2005 09:22:41 +0100 (CET) X-ME-UUID: 20051225082241786.BFF5E1C00083@mwinf3203.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 928804B943; Sun, 25 Dec 2005 08:22:39 +0000 (GMT) Date: Sun, 25 Dec 2005 08:22:37 +0000 From: Michael Ott To: gtk mailing list Message-ID: <20051225082232.GA19389@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.14 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r655 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Printing in win32 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 08:23:13 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! I want to port an small linux application to windows. This application have a printing function using gnome functions. Can i port this printing function to windows without using gnome libs? CU =20 =20 Michael =20 =20 -- =20 Michael Ott, e-mail: michael@zolnott.de, www.zolnott.de = =20 I am registered as user #275453 with the Linux Counter, http://counter.li.o= rg. --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDrlbIXDV4oK/n3xIRAgSTAKDFSdlsyUNaMpjJka0xInMkWGjxbgCdGR7N EcIyTX1K6tNhSOU6e7cGcjo= =mdbf -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From gnome@coyotegulch.com Tue Dec 27 02:51:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 535523B4BA5 for ; Tue, 27 Dec 2005 02:51:50 -0500 (EST) 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 28738-04 for ; Tue, 27 Dec 2005 02:51:47 -0500 (EST) Received: from smtpout02-04.prod.mesa1.secureserver.net (smtpout02-04.prod.mesa1.secureserver.net [64.202.165.194]) by menubar.gnome.org (Postfix) with SMTP id 3C85D3B6327 for ; Mon, 26 Dec 2005 19:21:46 -0500 (EST) Received: (qmail 30466 invoked from network); 27 Dec 2005 00:21:45 -0000 Received: from unknown (24.96.113.5) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 27 Dec 2005 00:21:45 -0000 Message-ID: <43B0891C.302@coyotegulch.com> Date: Mon, 26 Dec 2005 19:21:48 -0500 From: Scott Robert Ladd User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: RFC: Program for Possible Tutorial X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 07:51:53 -0000 I'm may write a Cairo tutorial, based on what I learned while writing the program found here: http://www.coyotegulch.com/distfiles/unit_circle-1.0.0.tar.gz The program isn't rocket science; one of my home-schooled kids had trouble understanding the relationship of angles and trig functions, and I needed a small project for getting better acquainted with Cairo. If anyone on the GTK or Cairo teams has comments about the code or improvements thereto, I'm open to suggestions. -- Scott Robert Ladd Coyote Gulch Productions http://www.coyotegulch.com From staniszewskip@imperial.pl Tue Dec 27 10:34:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 469013B2E72; Tue, 27 Dec 2005 10:34:20 -0500 (EST) 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 20783-06; Tue, 27 Dec 2005 10:34:18 -0500 (EST) Received: from av4-vega.dc.sint.pl (av4-vega.dc.sint.pl [213.241.70.183]) by menubar.gnome.org (Postfix) with ESMTP id 95D8B3B3649; Tue, 27 Dec 2005 02:17:29 -0500 (EST) Received: from ewg145.neoplus.adsl.tpnet.pl ([83.20.230.145]:3725 helo=[192.168.1.251]) by av4-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1Er95L-0002nq-Dd; Tue, 27 Dec 2005 08:17:27 +0100 Message-ID: <43B00567.5010807@imperial.pl> Date: Mon, 26 Dec 2005 15:59:51 +0100 From: =?ISO-8859-2?Q?Przemys=B3aw_Staniszewski?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------010908070702010405030709" X-Exiscan-AV-Host: av4-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.198 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.198 X-Spam-Level: X-Mailman-Approved-At: Tue, 27 Dec 2005 11:01:02 -0500 Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 15:34:20 -0000 This is a multi-part message in MIME format. --------------010908070702010405030709 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------010908070702010405030709 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------010908070702010405030709 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------010908070702010405030709-- From wtallman@olypen.com Tue Dec 27 11:35:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7AEC3B2F91 for ; Tue, 27 Dec 2005 11:35:37 -0500 (EST) 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 28571-05 for ; Tue, 27 Dec 2005 11:35:34 -0500 (EST) Received: from olypen3.olypen.com (olypen3.olypen.com [208.200.248.248]) by menubar.gnome.org (Postfix) with ESMTP id 4D8ED3B2151 for ; Tue, 27 Dec 2005 03:10:36 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen3.olypen.com with esmtp() (Exim 4.43) id 1Er9ui-0007Wt-3L for gtk-list@gnome.org; Tue, 27 Dec 2005 00:10:32 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBR8AXTX003225 for gtk-list@gnome.org; Tue, 27 Dec 2005 00:10:33 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Tue, 27 Dec 2005 00:10:33 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051227081033.GA3037@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.429 X-Spam-Level: Subject: Yet another question X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:35:37 -0000 This will be my third post here. Perhaps I'll get an answer this time. I'm still struggling along trying to learn Gtk+ and using 1.2. What I'd like to know is how to kill a child window without killing the parent. Or at least I think that's what I need to know. I have a main panel with buttons to launch some number of different satellite windows, like a file selecter, and such. I've gotten each of these to work as a stand-alone, and then dropped the main function to make a call-back. Works like a charm. What happens, though, is when I go to close the call-back, it takes the entire application. The delete_event function calls gtk_main_quit() and that works for the prototype, but now I'd like to replace that with something that just closes the call-back and leaves the main window intact. In one window I crafted myself (lotsa fields and buttons and spinners and such), I simply commented out the delete-event call from gtk_signal_connect, and though I couldn't close it from a button within the window, when I clicked off the desktop frame, it went away without killing the main panel. The file selector is straight from the tutorial, however, and I don't know how to change that... clicking off the desktop frame kills everything. I'm seeing things like gtk_widget_destroy, but I can't figure out how to apply them. I've got both Harlow and Pennington, as well as all the html docs I can find, and I'm still lost. Would someone point me in the right direction here, please? Thanks, Bill Tallman From wtallman@olypen.com Tue Dec 27 11:47:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2F7D93B1B49 for ; Tue, 27 Dec 2005 11:47:44 -0500 (EST) 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 30030-01 for ; Tue, 27 Dec 2005 11:47:40 -0500 (EST) Received: from olypen1.olypen.com (olypen1.olypen.com [208.200.248.250]) by menubar.gnome.org (Postfix) with ESMTP id 1940B3B3980 for ; Tue, 27 Dec 2005 03:21:56 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen1.olypen.com with esmtp() (Exim 4.43) id 1ErA5e-0003lx-Lr for gtk-list@gnome.org; Tue, 27 Dec 2005 00:21:50 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBR8LrUP003384 for gtk-list@gnome.org; Tue, 27 Dec 2005 00:21:53 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Tue, 27 Dec 2005 00:21:53 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051227082153.GA3358@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.431 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.431 X-Spam-Level: Subject: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:47:44 -0000 Wouldn't you know it. After all this time, I just happened to notice the solution in the back of Pennington. Run nested instances of gtk_main(). Thanks anyway, Bill Tallman From gnome@coyotegulch.com Tue Dec 27 11:55:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A2333B2515 for ; Tue, 27 Dec 2005 11:55:45 -0500 (EST) 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 30976-06 for ; Tue, 27 Dec 2005 11:55:43 -0500 (EST) Received: from smtpout02-04.prod.mesa1.secureserver.net (smtpout02-04.prod.mesa1.secureserver.net [64.202.165.194]) by menubar.gnome.org (Postfix) with SMTP id BFF1E3B7CBE for ; Mon, 26 Dec 2005 00:30:35 -0500 (EST) Received: (qmail 19212 invoked from network); 26 Dec 2005 05:30:33 -0000 Received: from unknown (24.96.113.5) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 26 Dec 2005 05:30:33 -0000 Message-ID: <43AF7FFB.1090201@coyotegulch.com> Date: Mon, 26 Dec 2005 00:30:35 -0500 From: Scott Robert Ladd User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Subject: Rich text on a GnomeCanvas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:55:45 -0000 I'm working on an application using GTK+ 2.8.9, and I need to display high-quality text on an anti-aliased GnomeCanvas. Since GnomeCanvasRichText does work on an AA canvas, what are my options? Essentially, I'm annotating a graphic image with labels. I'd like some of these labels to be in color, and others in italic or bold. Any suggestions? ..Scott From ihi.marzyciel@wp.pl Tue Dec 27 14:42:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B7BCE3B1F2C; Tue, 27 Dec 2005 14:42:50 -0500 (EST) 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 19432-09; Tue, 27 Dec 2005 14:42:38 -0500 (EST) Received: from av2-vega.dc.sint.pl (av2-vega.dc.sint.pl [213.241.70.181]) by menubar.gnome.org (Postfix) with ESMTP id EC3B83B3222; Tue, 27 Dec 2005 07:52:00 -0500 (EST) Received: from ewg145.neoplus.adsl.tpnet.pl ([83.20.230.145]:4109 helo=[192.168.1.251]) by av2-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1ErEJ1-0000LG-UQ; Tue, 27 Dec 2005 13:51:56 +0100 Message-ID: <43B13901.8040009@wp.pl> Date: Tue, 27 Dec 2005 13:52:17 +0100 From: =?ISO-8859-2?Q?Przemys=B3aw_Staniszewski?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------090305050504000903090101" X-Exiscan-AV-Host: av2-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.955 tagged_above=-999 required=2 tests=[AWL=0.490, BAYES_00=-2.599, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.955 X-Spam-Level: Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 19:42:50 -0000 This is a multi-part message in MIME format. --------------090305050504000903090101 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------090305050504000903090101 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------090305050504000903090101 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------090305050504000903090101-- From odysseus.lost@gmail.com Tue Dec 27 18:43:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F68B3B0A83 for ; Tue, 27 Dec 2005 18:43:04 -0500 (EST) 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 16420-05 for ; Tue, 27 Dec 2005 18:43:02 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by menubar.gnome.org (Postfix) with ESMTP id 38A5F3B0E4F for ; Tue, 27 Dec 2005 13:46:51 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so463280nfc for ; Tue, 27 Dec 2005 10:46:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=IZ98AdFmhr1qPqb0JsrxbJ6JhnYUXVSk66U9SN/dyYKvM86uaLnZ4vL/QdcD4ZRIYEEp3ULlGLC0wR/1mpP/xTtF1Nzk2d4Uqx4iTXBI40GqzKbkFxqm27oD7QFwjOLa6RlxQc9xonH7V4Gds43h80fS3uYJhBSpLFn2S9Wbvoc= Received: by 10.48.12.14 with SMTP id 14mr286522nfl; Tue, 27 Dec 2005 10:46:49 -0800 (PST) Received: by 10.48.144.13 with HTTP; Tue, 27 Dec 2005 10:46:49 -0800 (PST) Message-ID: <5c71e1440512271046v1de46d58n@mail.gmail.com> Date: Tue, 27 Dec 2005 20:46:49 +0200 From: Yiannis To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14579_31684690.1135709209755" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.632 tagged_above=-999 required=2 tests=[AWL=-1.798, BAYES_40=-0.185, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.632 X-Spam-Level: Cc: Subject: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 23:43:04 -0000 ------=_Part_14579_31684690.1135709209755 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, is it possible to have a widget (a toggle button in particular) act as insensitive but look as it is sensitive. More specific is it possible to have a toggle button act as insensitive once activated but look sensitive, ie without the grey shade? Cheers. -- -- Yiannis ------=_Part_14579_31684690.1135709209755 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

is it possible to have a widget (a toggle button in particular) act as insensitive but look as it is sensitive. More specific is it possible to have a toggle button act as insensitive once activated but look sensitive, ie without the grey shade?

Cheers.

--
-- Yiannis ------=_Part_14579_31684690.1135709209755-- From shafer@realmsys.com Tue Dec 27 20:20:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C940B3B06DA for ; Tue, 27 Dec 2005 20:20:24 -0500 (EST) 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 28602-09 for ; Tue, 27 Dec 2005 20:20:22 -0500 (EST) Received: from ba.realmsys.com (207.88.121.47.ptr.us.xo.net [207.88.121.47]) by menubar.gnome.org (Postfix) with ESMTP id B538E3B2111 for ; Tue, 27 Dec 2005 16:57:53 -0500 (EST) Received: from [10.100.5.218] (unknown [66.239.3.2]) by ba.realmsys.com (Spam Firewall) with ESMTP id AB0B139741 for ; Tue, 27 Dec 2005 14:57:52 -0700 (MST) From: Andrew Shafer To: gtk-list@gnome.org Content-Type: text/plain Date: Tue, 27 Dec 2005 14:55:59 -0700 Message-Id: <1135720559.30765.5.camel@baraka.inrealm.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Barracuda Spam Firewall at realmsys.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.12 tagged_above=-999 required=2 tests=[AWL=-2.430, BAYES_40=-0.185, FORGED_RCVD_HELO=0.135, RCVD_IN_DSBL=2.6] X-Spam-Score: 0.12 X-Spam-Level: Subject: Testing your GUI X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:20:25 -0000 This list seems like an appropriate place to ask this question. I've been using GTK for a few months now and I'm interested in some testing strategies. Does any one have a favorite method for testing your GTK applications? Any programs that you use to automate a series of X Events for the purpose of testing? Thanks, Andrew Shafer From sfgm@verizon.net Tue Dec 27 20:26:14 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8A3603B0AE6 for ; Tue, 27 Dec 2005 20:26:14 -0500 (EST) 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 29521-02 for ; Tue, 27 Dec 2005 20:26:12 -0500 (EST) Received: from mta8.srv.hcvlny.cv.net (mta8.srv.hcvlny.cv.net [167.206.4.203]) by menubar.gnome.org (Postfix) with ESMTP id 0B09B3B1653 for ; Tue, 27 Dec 2005 17:10:42 -0500 (EST) Received: from RUBYPC (ool-457407c4.dyn.optonline.net [69.116.7.196]) by mta8.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with SMTP id <0IS600HOEG9GHSDK@mta8.srv.hcvlny.cv.net> for gtk-list@gnome.org; Tue, 27 Dec 2005 17:10:31 -0500 (EST) Date: Tue, 27 Dec 2005 17:10:13 -0500 From: Jay Kessel To: gtk-list@gnome.org Message-id: <006601c60b32$4f8e8b50$6601a8c0@RUBYPC> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Mailer: Microsoft Outlook Express 6.00.2900.2527 Content-type: multipart/alternative; boundary="Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g)" X-Priority: 3 X-MSMail-priority: Normal References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.979 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_NEUTRAL=1.069] X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Flag: YES Subject: New to GTK+, have a few questions X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:26:14 -0000 This is a multi-part message in MIME format. --Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Hi, I am relatively new to GTK+. If I want to draw a rectangle around a widget, such an a GtkEntry or a GtkLabel, how do I go about doing that? I need to be able to change the color of the box and the thickness of the lines, depending on some other data. Can I do that with a GtkFrame? Thanks, Jay --Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Hi,
 
I am relatively new to GTK+.   If I want to draw a rectangle around a widget, such an a GtkEntry or a GtkLabel,
how do I go about doing that?  I need to be able to change the color of the box and the thickness of the lines,
depending on some other data.  Can I do that with a GtkFrame?
 
Thanks,
Jay
--Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g)-- From hdnews@gawab.com Tue Dec 27 20:33:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D738F3B0E7C for ; Tue, 27 Dec 2005 20:33:56 -0500 (EST) 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 30473-06 for ; Tue, 27 Dec 2005 20:33:55 -0500 (EST) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by menubar.gnome.org (Postfix) with ESMTP id F0DF63B22B0 for ; Tue, 27 Dec 2005 17:25:55 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr6.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBRMPrk5085429; Tue, 27 Dec 2005 23:25:54 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBRMPrfo014724; Tue, 27 Dec 2005 23:25:53 +0100 Message-ID: <43B1BF6B.4050700@gawab.com> Date: Tue, 27 Dec 2005 23:25:47 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: Hans Oesterholt-Dijkema References: <43ABDA35.5010008@gawab.com> In-Reply-To: <43ABDA35.5010008@gawab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.204 tagged_above=-999 required=2 tests=[AWL=-0.390, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.204 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: cairo support for Postscript/PDF X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:33:57 -0000 Ok, they are stil experimental. However, how does one compile cairo using MinGW32 or MSVC? Anyone? Hans Oesterholt-Dijkema schreef: > L.S., > > Am I right if I conclude that cairo support for postscript > is not included with Gtk? Or is this just a glade-win32.sf.net > omission? > > Thanks in advance for your answers, > > -- > Hans Oesterholt > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeti@physics.muni.cz Tue Dec 27 20:47:36 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3B0A3B1294 for ; Tue, 27 Dec 2005 20:47:36 -0500 (EST) 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 32099-04 for ; Tue, 27 Dec 2005 20:47:34 -0500 (EST) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 2BCFD3B06B9 for ; Tue, 27 Dec 2005 17:49:43 -0500 (EST) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBRMnWJv004300; Tue, 27 Dec 2005 23:49:33 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 06F9023E0D; Tue, 27 Dec 2005 23:49:32 +0100 (CET) Date: Tue, 27 Dec 2005 23:49:31 +0100 From: "David Necas (Yeti)" To: "William D. Tallman" Message-ID: <20051227224931.GG29084@potato> References: <20051227082153.GA3358@olypen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051227082153.GA3358@olypen.com> User-Agent: Mutt/1.4.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:47:36 -0000 Please use better subjects than `Yet another question' and `Last post'. On Tue, Dec 27, 2005 at 12:21:53AM -0800, William D. Tallman wrote: > Wouldn't you know it. After all this time, I just happened to notice > the solution in the back of Pennington. Run nested instances of > gtk_main(). Running nested instances of gtk_main() is rarely needed. If I understand your problem, just construct your auxiliary windows and show them with gtk_widget_show[_all](). That's all. Delete everything main-loop related (except from main app code). By default, windows are automatically destroyed by Gtk+ on delete event. You can connect your own callback to perform additional actions, but if you only need them destroyed that Just Works. If your auxiliary windows are dialogs and you want to run them modally, use gtk_dialog_run() (this in fact involves a nested main loop, but it's hidden and you do not need to care about it). Yeti -- That's enough. From tristan.van.berkom@gmail.com Tue Dec 27 22:46:36 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF5033B0803 for ; Tue, 27 Dec 2005 22:46:36 -0500 (EST) 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 14190-03 for ; Tue, 27 Dec 2005 22:46:34 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by menubar.gnome.org (Postfix) with ESMTP id D9EC23B1129 for ; Tue, 27 Dec 2005 21:39:19 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 8so1455215nzo for ; Tue, 27 Dec 2005 18:39:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=GNf8uCpCSF8RGq7u/DySFMGobGuoaGZWnRA5OWeB26vfDbprcg4w9ZqMPDpWTEjfw4TDwDHovkTjNCNLj7i+QoAMghv45gKnJ3i4sAOCWhqMtLpBRFt1IvdW30x6pWMtL8igJESy/gzWFLTwoW/SAvz1rQF1Dpq32ZfUDfc32UE= Received: by 10.64.180.14 with SMTP id c14mr2049987qbf; Tue, 27 Dec 2005 18:39:18 -0800 (PST) Received: from ?67.71.79.200? ( [67.71.79.200]) by mx.gmail.com with ESMTP id e13sm258415qba.2005.12.27.18.39.18; Tue, 27 Dec 2005 18:39:18 -0800 (PST) Message-ID: <43B1FC52.2070307@gnome.org> Date: Tue, 27 Dec 2005 21:45:38 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> In-Reply-To: <5c71e1440512271046v1de46d58n@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.574 tagged_above=-999 required=2 tests=[AWL=0.026, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.574 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 03:46:37 -0000 Yiannis wrote: > Hi, > > is it possible to have a widget (a toggle button in particular) act as > insensitive but look as it is sensitive. More specific is it possible to > have a toggle button act as insensitive once activated but look > sensitive, ie without the grey shade? Whatever you're doing, you're cheating ;-) you can: o Create a sample GtkToggleButton o Make copies of the GdkColor structs on widget->style.bg[GTK_STATE_NORMAL] (or is it ACTIVE ?), you might also want the .fg, .base & .text members. you'd want to do this post gtk_rc_parse(). o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg) (and friends) to set the sensitive graphic state onto the insensitive state. o gtk_widget_set_sensitive (widget, FASLE); Cheers, -Tristan From ihi.marzyciel@wp.pl Wed Dec 28 02:24:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 652803B097D; Wed, 28 Dec 2005 02:24:11 -0500 (EST) 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 01407-06; Wed, 28 Dec 2005 02:24:08 -0500 (EST) Received: from av4-vega.dc.sint.pl (av4-vega.dc.sint.pl [213.241.70.183]) by menubar.gnome.org (Postfix) with ESMTP id A07C73B093C; Wed, 28 Dec 2005 02:24:06 -0500 (EST) Received: from exb158.neoplus.adsl.tpnet.pl ([83.20.251.158]:3860 helo=[192.168.1.251]) by av4-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1ErVfH-0002Xx-5g; Wed, 28 Dec 2005 08:24:04 +0100 Message-ID: <43B23DA6.2060808@wp.pl> Date: Wed, 28 Dec 2005 08:24:22 +0100 From: =?UTF-8?B?UHJ6ZW15c8WCYXcgU3RhbmlzemV3c2tp?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------080704020609020802080005" X-Exiscan-AV-Host: av4-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.722 tagged_above=-999 required=2 tests=[AWL=-0.419, BAYES_00=-2.599, SPF_FAIL=1.142, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.722 X-Spam-Level: Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 07:24:11 -0000 This is a multi-part message in MIME format. --------------080704020609020802080005 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------080704020609020802080005 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------080704020609020802080005 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------080704020609020802080005-- From wtallman@olypen.com Wed Dec 28 03:01:06 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8BE003B0A45 for ; Wed, 28 Dec 2005 03:01:05 -0500 (EST) 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 04120-05 for ; Wed, 28 Dec 2005 03:00:59 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id 4EC893B0A3E for ; Wed, 28 Dec 2005 03:00:59 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1ErWF1-0000sR-A2 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:00:59 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBS80ubE022494 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:00:56 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 28 Dec 2005 00:00:56 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051228080056.GD19427@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <20051227082153.GA3358@olypen.com> <23025.80.126.242.36.1135753664.squirrel@webmail.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23025.80.126.242.36.1135753664.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.43 X-Spam-Level: Subject: Re: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:01:06 -0000 On Wed, Dec 28, 2005 at 08:07:44AM +0100, Richard Boaz wrote: > hi, > > there's another method you can employ to deal with these situations. > don't know all your gritty details, but perhaps it's relevant for you. > when i have dialogs and popups and such, i don't employ another > gtk_main(), rather, i make the dailog modal so that focus is fixed on the > dialog. once they user hits the enter/cancel key, i hide the dialog/popup > insteal of destroying it. that way, if the user needs to see it again, > you only need to show the widget instead of making it from scratch every > time. Considered that, thanks. These aren't informative, they're dialogue widgets of one or another kind, and I hadn't gotten the connection. They need to pass their information, do their thing, and then go away, as a new instance will be needed each time. I think. Also, I think they need not to be modal, because the user may want to consult other stuff in the process, and hanging things up would be a real Bad Idea. Finally got some response here, and its valuable! Thanks all, Bill Tallman From wtallman@olypen.com Wed Dec 28 03:03:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 632103B085A for ; Wed, 28 Dec 2005 03:03:32 -0500 (EST) 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 04529-02 for ; Wed, 28 Dec 2005 03:03:30 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id D20E93B07ED for ; Wed, 28 Dec 2005 03:03:29 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1ErWHS-0001xB-49 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:03:30 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBS83RBY022527 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:03:27 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 28 Dec 2005 00:03:27 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051228080327.GE19427@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <43B23DA6.2060808@wp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B23DA6.2060808@wp.pl> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.43 X-Spam-Level: Subject: Re: Last Post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:03:32 -0000 That response should have been private, sorry. Bill Tallman From odysseus.lost@gmail.com Wed Dec 28 09:21:58 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CB8F3B105D for ; Wed, 28 Dec 2005 09:21:58 -0500 (EST) 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 03014-06 for ; Wed, 28 Dec 2005 09:21:38 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by menubar.gnome.org (Postfix) with ESMTP id BB9CE3B0B52 for ; Wed, 28 Dec 2005 09:21:34 -0500 (EST) Received: by nproxy.gmail.com with SMTP id c2so507254nfe for ; Wed, 28 Dec 2005 06:21:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=U75Xp+LDkNCfX0l3oP7s9MBtBlliLov9slLrZB8Fw8OQc2mX3/vbkRKS4PBJYrUzqKZCsF04b8EvByS6HZTxKjLrWF600RyXO2/9GBs7TFnhCo3lCrz977WjONmofvdDn9HkuWQuBmhc3o+8j5h/7a83AaD+wWy70OoGu+US+pQ= Received: by 10.49.51.10 with SMTP id d10mr266777nfk; Wed, 28 Dec 2005 06:21:33 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 28 Dec 2005 06:21:33 -0800 (PST) Message-ID: <5c71e1440512280621w37c6e890i@mail.gmail.com> Date: Wed, 28 Dec 2005 16:21:33 +0200 From: Yiannis To: Tristan Van Berkom In-Reply-To: <43B1FC52.2070307@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16771_16989183.1135779693728" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.162 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 14:21:58 -0000 ------=_Part_16771_16989183.1135779693728 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28/12/05, Tristan Van Berkom wrote: > > Yiannis wrote: > > Hi, > > > > is it possible to have a widget (a toggle button in particular) act as > > insensitive but look as it is sensitive. More specific is it possible t= o > > have a toggle button act as insensitive once activated but look > > sensitive, ie without the grey shade? > > Whatever you're doing, you're cheating ;-) Yes, I know...., a necessity for visualisation reasons. :) you can: > o Make copies of the GdkColor structs on widget->style.bg > [GTK_STATE_NORMAL] > (or is it ACTIVE ?), you might also want the .fg, .base & .text > members. > you'd want to do this post gtk_rc_parse(). > o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, > sensitive_bg) > (and friends) to set the sensitive graphic state onto the > insensitive state. Cheers, with a first quick look to the documentation that will do the job..= . -- -- Yiannis ------=_Part_16771_16989183.1135779693728 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 28/12/05, Tristan Van Berkom <tristan.van.berkom@gmail.com> wrote:
Yiannis wrote:
> Hi,
>
> is it possible to have a widget = (a toggle button in particular) act as
> insensitive but look as it i= s sensitive. More specific is it possible to
> have a toggle button a= ct as insensitive once activated but look
> sensitive, ie without the grey shade?

Whatever you're doing= , you're cheating ;-)

Yes, I know...., a necessity for visualisation reasons. :)

you can= :
     o Make copies of the GdkColor structs on widg= et->style.bg[GTK_STATE_NORMAL]
       (or is it ACTIVE ?), you might als= o want the .fg, .base & .text members.
     = ;  you'd want to do this post gtk_rc_parse().
   &nb= sp; o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= )
       (and friends) to set the sensitive= graphic state onto the insensitive state.

Cheers, with a first quick look to the documentation that will do the job..= .



--
-- Yiannis ------=_Part_16771_16989183.1135779693728-- From tom.pinkas@gmail.com Wed Dec 28 07:53:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CA393B0789 for ; Wed, 28 Dec 2005 07:53:28 -0500 (EST) 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 27990-10 for ; Wed, 28 Dec 2005 07:53:26 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by menubar.gnome.org (Postfix) with ESMTP id C69FC3B07A6 for ; Wed, 28 Dec 2005 07:53:25 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n29so2042876nzf for ; Wed, 28 Dec 2005 04:53:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oDmI6wk3XENdrW6hGF+i2D/bEz+ng9eggTmL4bJGgIjyWJ5BhlEtDfR9PDT8/fUo42vwJs2zA9utkjaJjLis6PDuBQEqcuedswWwdpXNvuDspVogd8shIpy1uHkKrgtjr2tYaGcE82JYMPzLJBsDQhdEhwAcFHvCsjW8JTGEWMY= Received: by 10.36.250.48 with SMTP id x48mr5424244nzh; Wed, 28 Dec 2005 04:53:25 -0800 (PST) Received: by 10.36.5.2 with HTTP; Wed, 28 Dec 2005 04:53:25 -0800 (PST) Message-ID: <21fb55350512280453i15ef5065y202b3bace2874a5@mail.gmail.com> Date: Wed, 28 Dec 2005 13:53:25 +0100 From: Tom Pinkas To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8978_4087234.1135774405052" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.094 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -1.094 X-Spam-Level: X-Mailman-Approved-At: Wed, 28 Dec 2005 11:00:41 -0500 Subject: Touchpad doesn't work after starting a GTK application. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 12:53:28 -0000 ------=_Part_8978_4087234.1135774405052 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, when I start a GTK application, my touchpad stop working. After start X server and (not gnome) window manager touchpad working well. But after starting random GTK application (i.e. vim-gtk, mozilla-firefox, ...) it sto= p working. I'm using synaptics driver http://web.telia.com/~u89404340/touchpad/. I'm using Debian, X.Org 6.8.2, libgtk2.0 2.6.4-3.1 and libgtk1.2 1.2.10-17(but I think it doesn't matter - I tried several versions of X, libgtk even synaptics touchpad driver) on Acer Aspire 1353LC. Thanks in advance for any advices. Tom ------=_Part_8978_4087234.1135774405052 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,

when I start a GTK application, my touchpad stop working. After start X server and (not gnome) window manager touchpad working well. But after starting random GTK application (i.e. vim-gtk, mozilla-firefox, ...) it stop working. I'm using synaptics driver http://web.telia.com/= ~u89404340/touchpad/.

I'm using Debian, X.Org 6.8.2, libgtk2.0 2.6.4-3.1 and libgtk1.2 1.2.10-17 (but I think it doesn't matter - I tried several versions of X, libgtk even synaptics touchpad driver) on Acer Aspire 1353LC.

Thanks in advance for any advices.

Tom
------=_Part_8978_4087234.1135774405052-- From odysseus.lost@gmail.com Wed Dec 28 11:35:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D733B11E0 for ; Wed, 28 Dec 2005 11:35:16 -0500 (EST) 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 14025-04 for ; Wed, 28 Dec 2005 11:35:12 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.203]) by menubar.gnome.org (Postfix) with ESMTP id 1A3753B11AC for ; Wed, 28 Dec 2005 11:35:02 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so531799nfc for ; Wed, 28 Dec 2005 08:35:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=AA/+CvzQBTg4HzC9QnK8zd8vg1nzpw/fDQbPShpeNtgv7QfdpM9vuvarA/d5NVJ8Um45O+i8TJ1KDMRs8sbjtxSSxUil2gCSEMOEaZt3/mKrLIHQXOBzAraiPm0mcRqOhwO0x5q+J7HKRsryV/lht5mfbbbZrRKGATblamcp25o= Received: by 10.48.4.13 with SMTP id 13mr333514nfd; Wed, 28 Dec 2005 08:35:01 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 28 Dec 2005 08:35:00 -0800 (PST) Message-ID: <5c71e1440512280835m7410ddaaq@mail.gmail.com> Date: Wed, 28 Dec 2005 18:35:00 +0200 From: Yiannis To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <5c71e1440512280621w37c6e890i@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17231_32560008.1135787700949" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.339 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.339 X-Spam-Level: Cc: Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 16:35:16 -0000 ------=_Part_17231_32560008.1135787700949 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28/12/05, Yiannis wrote: > > > > On 28/12/05, Tristan Van Berkom wrote: > > > > Yiannis wrote: > > > Hi, > > > > > > is it possible to have a widget (a toggle button in particular) act a= s > > > insensitive but look as it is sensitive. More specific is it possible > > to > > > have a toggle button act as insensitive once activated but look > > > sensitive, ie without the grey shade? > > > > Whatever you're doing, you're cheating ;-) > > > > > you can: > > o Make copies of the GdkColor structs on widget->style.bg[GTK_STAT= E_NORMAL] > > > > (or is it ACTIVE ?), you might also want the .fg, .base & .text > > members. > > you'd want to do this post gtk_rc_parse(). > > o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, > > sensitive_bg) > > (and friends) to set the sensitive graphic state onto the > > insensitive state. > > GdkColor *sensitive_bg =3D widget->style.bg[GTK_STATE_NORMAL]; fails with the following error: error: request for member `bg' in something not a structure or union and the same error occurs with all the other members of the style structure.... Any ideas? -- -- Yiannis ------=_Part_17231_32560008.1135787700949 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 28/12/05, Yiannis <odysseu= s.lost@gmail.com> wrote:


On 28/12/05, Tristan Van Berkom < tristan.van.berkom@gmail.com> wrote:
Yiannis wrote:
> Hi,
>
> is it possible to have a widget = (a toggle button in particular) act as
> insensitive but look as it i= s sensitive. More specific is it possible to
> have a toggle button a= ct as insensitive once activated but look
> sensitive, ie without the grey shade?

Whatever you're doing= , you're cheating ;-)



you can= :
     o Make copies of the GdkCol= or structs on widget-> style.bg[GTK_STATE_NORMAL]
       (or is it ACTIVE ?), you might als= o want the .fg, .base & .text members.
     = ;  you'd want to do this post gtk_rc_parse().
   &nb= sp; o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= )
       (and friends) to set the sensitive= graphic state onto the insensitive state.

GdkColor *sensitive_bg =3D widget->style.bg[GTK_STATE_NORMAL];

fails with the following error:
error: request for member `bg' in something not a structure or union

and the same error occurs with all the other members of the style structure= ....

Any ideas?


--
-- Yiannis ------=_Part_17231_32560008.1135787700949-- From tristan.van.berkom@gmail.com Wed Dec 28 14:09:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 332783B14E9 for ; Wed, 28 Dec 2005 14:09:23 -0500 (EST) 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 29200-05 for ; Wed, 28 Dec 2005 14:09:19 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 30FF33B155D for ; Wed, 28 Dec 2005 14:08:39 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n29so2144347nzf for ; Wed, 28 Dec 2005 11:08:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=OP6Oe3eIhJcumfe7iE8FA3RyCs+htGI6pClC6L+kT1a8fRv6L1Uu7kgn5oPtr2qQwaCgNa+t4fHX8MVw72e2yhQKg9LrDK2g5Vdx6VQCTlAAJWz0jbaxprJdqCVHLJxhCga/9SdtM+JISlg+hIqBGUVrgz+XiIFzg7+3qMCtHjI= Received: by 10.65.197.10 with SMTP id z10mr3315814qbp; Wed, 28 Dec 2005 11:08:37 -0800 (PST) Received: from ?65.95.16.142? ( [65.95.16.142]) by mx.gmail.com with ESMTP id q14sm833212qbq.2005.12.28.11.08.35; Wed, 28 Dec 2005 11:08:36 -0800 (PST) Message-ID: <43B2E433.6020203@gnome.org> Date: Wed, 28 Dec 2005 14:14:59 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> In-Reply-To: <5c71e1440512280835m7410ddaaq@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 19:09:23 -0000 Yiannis wrote: [...] > GdkColor *sensitive_bg = widget->style.bg[GTK_STATE_NORMAL]; > > fails with the following error: > error: request for member `bg' in something not a structure or union > > and the same error occurs with all the other members of the style > structure.... > > Any ideas? Heh, I was just jotting it down from memory; I didn't actually expect it to compile out of the box ;-) If it says "in something not a structure or union", then it's probably: widget->style->bg[GTK_STATE_NORMAL]; if not, a closer look at gtkwidget.h & gtkstyle.h will clarify. Cheers, -Tristan From paul@linuxaudiosystems.com Wed Dec 28 14:57:08 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 706793B1705 for ; Wed, 28 Dec 2005 14:57:08 -0500 (EST) 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 01030-03 for ; Wed, 28 Dec 2005 14:57:04 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id E95C33B16E3 for ; Wed, 28 Dec 2005 14:56:57 -0500 (EST) Received: from dhin ([141.151.56.8]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IS800E504QVMBJ6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 28 Dec 2005 13:56:57 -0600 (CST) Date: Wed, 28 Dec 2005 14:59:47 -0500 From: Paul Davis In-reply-to: <43AF7FFB.1090201@coyotegulch.com> To: Scott Robert Ladd Message-id: <1135799987.4661.11.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <43AF7FFB.1090201@coyotegulch.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Rich text on a GnomeCanvas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 19:57:08 -0000 On Mon, 2005-12-26 at 00:30 -0500, Scott Robert Ladd wrote: > I'm working on an application using GTK+ 2.8.9, and I need to display > high-quality text on an anti-aliased GnomeCanvas. Since > GnomeCanvasRichText does work on an AA canvas, what are my options? > > Essentially, I'm annotating a graphic image with labels. I'd like some > of these labels to be in color, and others in italic or bold. > > Any suggestions? i would probably just use multiple text items, setting the properties of each one. one item per label, And You're Done (TM) --p From sibakhan@gmail.com Fri Dec 30 09:45:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B79773B1F26 for ; Fri, 30 Dec 2005 09:45:22 -0500 (EST) 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 06746-09 for ; Fri, 30 Dec 2005 09:45:19 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 21FAE3B1F7D for ; Fri, 30 Dec 2005 09:35:58 -0500 (EST) Received: by zproxy.gmail.com with SMTP id m7so1506109nzf for ; Fri, 30 Dec 2005 06:35:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=M+KZ4RzieYSX19pgy/ZdRIvesr85C0YkNWQjuytb1jMaFKt6wIfobBUqUTRiDjaywz/HsHNNv3pARd47YMTZ5LkRlQqo/gnkmiMY53D8mvIRNjsnjBMp/Oy/aT98sXjiVaQ/1RiilTVNzqEYVKwDzl6+5PqHIEHpzCxGfyH6jyE= Received: by 10.36.145.5 with SMTP id s5mr1602233nzd; Fri, 30 Dec 2005 06:35:57 -0800 (PST) Received: by 10.36.194.8 with HTTP; Fri, 30 Dec 2005 06:35:57 -0800 (PST) Message-ID: Date: Fri, 30 Dec 2005 14:35:57 +0000 From: ibrar ahmed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: popup menu settings on help button X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 14:45:22 -0000 Hello ALL, HAPPY NEW YEAR! I have a problem to set the popup menu on help button. This time popup menu showing on click event on button but i want to set the border of menu that display very near to the bottom of button. Ahmed From odysseus.lost@gmail.com Fri Dec 30 14:28:58 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 834FC3B2116 for ; Fri, 30 Dec 2005 14:28:58 -0500 (EST) 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 01640-03 for ; Fri, 30 Dec 2005 14:28:55 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by menubar.gnome.org (Postfix) with ESMTP id 9FE563B21EC for ; Fri, 30 Dec 2005 14:28:49 -0500 (EST) Received: by nproxy.gmail.com with SMTP id c31so743353nfb for ; Fri, 30 Dec 2005 11:28:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cCca16TKLWd/iZjJhV0zdOQHKP8LOMALHTPI+uQckipedFPZOmLJfiPUOPTHjCJ8UXRfQs7QtrQvjmSdHVlNQyhWZ+NWzOPZKhQ8zcNZ7Oc6Gt98JHb2uIwcvNdxkYku3qIKyiBkUloscEWE6j3NDaWxva4edcJLCgXDTnsBzY8= Received: by 10.48.250.8 with SMTP id x8mr442187nfh; Fri, 30 Dec 2005 11:28:47 -0800 (PST) Received: by 10.48.144.13 with HTTP; Fri, 30 Dec 2005 11:28:47 -0800 (PST) Message-ID: <5c71e1440512301128w6744bdaap@mail.gmail.com> Date: Fri, 30 Dec 2005 21:28:47 +0200 From: Yiannis To: Tristan Van Berkom In-Reply-To: <43B2E433.6020203@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24691_17171613.1135970927904" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> <43B2E433.6020203@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[AWL=-0.499, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.747 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 19:28:58 -0000 ------=_Part_24691_17171613.1135970927904 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry for posting back but my code failed.... :) On 28/12/05, Tristan Van Berkom wrote: > > > Heh, > I was just jotting it down from memory; I didn't actually > expect it to compile out of the box ;-) I don't expect answers out of the box.... :). I do check with the documentation and the source code.... :) So here we go..... Firstly let me paste Tristan's previous reply to this email too: Tristan said: you can: o Create a sample GtkToggleButton o Make copies of the GdkColor structs on widget->style.bg [GTK_STATE_NORMAL] (or is it ACTIVE ?), you might also want the .fg, .base & .text members. you'd want to do this post gtk_rc_parse(). o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= ) (and friends) to set the sensitive graphic state onto the insensitive state. o gtk_widget_set_sensitive (widget, FASLE); Now, what I tried so far has failed. Here we go: Modifying directly the values of widget->style: widget->style->bg[GTK_STATE_INSENSITIVE] =3D widget->style->bg[GTK_STATE_NORMAL]; widget->style->fg[GTK_STATE_INSENSITIVE] =3D widget->style->fg[GTK_STATE_NORMAL]; widget->style->base[GTK_STATE_INSENSITIVE] =3D widget->style->base[GTK_STATE_NORMAL]; widget->style->fg_rc[GTK_STATE_INSENSITIVE] =3D widget->style->fg_rc[GTK_STATE_NORMAL]; using the gtk_widget_modify_xx functions: gtk_widget_modify_bg(widget, GTK_STATE_INSENSITIVE, &(widget->style->bg[GTK_STATE_NORMAL])); gtk_widget_modify_fg(widget, GTK_STATE_INSENSITIVE, &(widget->style->fg[GTK_STATE_NORMAL])); gtk_widget_modify_base(widget, GTK_STATE_INSENSITIVE, &(widget->style->base[GTK_STATE_NORMAL])); gtk_widget_modify_text(widget, GTK_STATE_INSENSITIVE, &(widget->style->text[GTK_STATE_NORMAL])); Copying firstly the GtkStyle, modifying the new one and passing it back to the widget (using gtk_widget_set_style...) even if this method is not recommended in the API: GtkStyle *style =3D gtk_style_copy(widget->style); style->fg[GTK_STATE_INSENSITIVE] =3D style->fg[GTK_STATE_NORMAL]; style->bg[GTK_STATE_INSENSITIVE] =3D style->bg[GTK_STATE_NORMAL]; style->base[GTK_STATE_INSENSITIVE] =3D style->base[GTK_STATE_NORMAL]; gtk_widget_set_style(widget, style); Copying the GtkRcStyle and then using gtk_widget_modify_style to pass it back... according to the API this is the "recommended" method as subsequent calls to gtk_widget_modify_XX are cummulative leaving the rest of the attributes unchanged. GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget); rcstyle->bg[GTK_STATE_INSENSITIVE] =3D rcstyle->bg[GTK_STATE_NORMAL]; rcstyle->fg[GTK_STATE_INSENSITIVE] =3D rcstyle->fg[GTK_STATE_NORMAL]; rcstyle->base[GTK_STATE_INSENSITIVE] =3D rcstyle->base[GTK_STATE_NORMAL]; gtk_widget_modify_style(widget, rcstyle); In all cases I call thereafter gtk_widget_set_sensitive(widget, FALSE); to make the widget insensitive. However, none of the above works.... the colours of the insensitive widget are still the ones of an insensitive widget.... Any clues? The only thing I can think of is that I am not using the right attributes.... bg, fg, base.... however, I cannot find any documentation explaining each one of the members in the GtkStyle structure.... but the names are self-explanatory so they should be the correct ones.... One more thing I am not fully sure about is the RcStyle.... This is supposed some kind of file that is used to define a theme.... Does this affect the GtkStyle? Ie when I call GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget); what I am copying is the widget->style data structure or something else??? Because the function return GtkRcStyle* but I cannot find any GtkRcStyle structure in the gtkwidget.h definition. -- -- Yiannis ------=_Part_24691_17171613.1135970927904 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry for posting back but my code failed.... :)

On 28/12/05, Tristan Van Berkom= <tristan.van.berkom= @gmail.com > wrote:

Heh,
     I was just jotting it down from m= emory; I didn't actually
expect it to compile out of the box ;-)

I don't expect answers out of the box.... :). I do check with the documentation and the source code.... :) So here we go..... Firstly let me paste Tristan's previous reply to this email too:

Tristan said:
you can:
    o Create a sample GtkToggleButton
    o Make copies of the GdkColor structs on widget->style.bg= [GTK_STATE_NORMAL]
      (or is it ACTIVE ?), you might also want the .fg, .ba= se & .text members.
      you'd want to do this post gtk_rc_parse().
    o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, s= ensitive_bg)
      (and friends) to set the sensitive graphic state onto= the insensitive state.
    o gtk_widget_set_sensitive (widget, FASLE);


Now, what I tried so far has failed. Here we go:

Modifying directly the values of widget->style:

widget->style->bg[GTK_STATE_INSENSITIVE] =3D widget->style->bg[= GTK_STATE_NORMAL];
widget->style->fg[GTK_STATE_INSENSITIVE] =3D widget->style->fg[= GTK_STATE_NORMAL];
widget->style->base[GTK_STATE_INSENSITIVE] =3D widget->style->b= ase[GTK_STATE_NORMAL];
widget->style->fg_rc[GTK_STATE_INSENSITIVE] =3D widget->style->= fg_rc[GTK_STATE_NORMAL];

using the gtk_widget_modify_xx functions:
gtk_widget_modify_bg(widget, GTK_STATE_INSENSITIVE, &(widget->style-= >bg[GTK_STATE_NORMAL]));
gtk_widget_modify_fg(widget, GTK_STATE_INSENSITIVE, &(widget->style-= >fg[GTK_STATE_NORMAL]));
gtk_widget_modify_base(widget, GTK_STATE_INSENSITIVE, &(widget->styl= e->base[GTK_STATE_NORMAL]));
gtk_widget_modify_text(widget, GTK_STATE_INSENSITIVE, &(widget->styl= e->text[GTK_STATE_NORMAL]));


Copying firstly the GtkStyle, modifying the new one and passing it back to the widget (using gtk_widget_set_style...) even if this method is not recommended in the API:
GtkStyle *style =3D gtk_style_copy(widget->style);
style->fg[GTK_STATE_INSENSITIVE] =3D style->fg[GTK_STATE_NORMAL];
style->bg[GTK_STATE_INSENSITIVE] =3D style->bg[GTK_STATE_NORMAL];
style->base[GTK_STATE_INSENSITIVE] =3D style->base[GTK_STATE_NORMAL];=
gtk_widget_set_style(widget, style);


Copying the GtkRcStyle and then using gtk_widget_modify_style to pass it back... according to the API this is the "recommended" method = as subsequent calls to gtk_widget_modify_XX are cummulative leaving the rest of the attributes unchanged.

GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget);
rcstyle->bg[GTK_STATE_INSENSITIVE] =3D rcstyle->bg[GTK_STATE_NORMAL];=
rcstyle->fg[GTK_STATE_INSENSITIVE] =3D rcstyle->fg[GTK_STATE_NORMAL];=
rcstyle->base[GTK_STATE_INSENSITIVE] =3D rcstyle->base[GTK_STATE_NORM= AL];
gtk_widget_modify_style(widget, rcstyle);

In all cases I call thereafter
gtk_widget_set_sensitive(widget, FALSE);
to make the widget insensitive.

However, none of the above works.... the colours of the insensitive widget = are still the ones of an insensitive widget....

Any clues?

The only thing I can think of is that I am not using the right attributes.... bg, fg, base.... however, I cannot find any documentation explaining each one of the members in the GtkStyle structure.... but the names are self-explanatory so they should be the correct ones.... One more thing I am not fully sure about is the RcStyle.... This is supposed some kind of file that is used to define a theme.... Does this affect the GtkStyle? Ie when I call
GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget);
what I am copying is the widget->style data structure or something else??? Because the function return GtkRcStyle* but I cannot find any GtkRcStyle structure in the gtkwidget.h definition.





--
-- Yiannis ------=_Part_24691_17171613.1135970927904-- From tristan.van.berkom@gmail.com Fri Dec 30 16:02:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B5A693B2299 for ; Fri, 30 Dec 2005 16:02:50 -0500 (EST) 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 08798-06 for ; Fri, 30 Dec 2005 16:02:47 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 493563B2296 for ; Fri, 30 Dec 2005 16:02:47 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 8so2062192nzo for ; Fri, 30 Dec 2005 13:02:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MFXpCbQwYy0u9qK3GxORJFds0VHfHYFBo8DGUqqBgab5BHKHObfjvGIZ1nriBTGDLcVNfoBc+tzqruYtkyhYFSvY6HRNPaSfAwZef+hpPYuym4lylpV2VhHJdleNlcBuiEIhF72nu07nb2zD8PwcRRM1eeKMT8uDxG6x4KilI5s= Received: by 10.64.253.2 with SMTP id a2mr3567473qbi; Fri, 30 Dec 2005 13:02:46 -0800 (PST) Received: from ?70.48.111.138? ( [70.48.111.138]) by mx.gmail.com with ESMTP id e17sm1638450qbe.2005.12.30.13.02.46; Fri, 30 Dec 2005 13:02:46 -0800 (PST) Message-ID: <43B5A1FC.90501@gnome.org> Date: Fri, 30 Dec 2005 16:09:16 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> <43B2E433.6020203@gnome.org> <5c71e1440512301128w6744bdaap@mail.gmail.com> In-Reply-To: <5c71e1440512301128w6744bdaap@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=-0.020, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.543 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 21:02:50 -0000 Yiannis wrote: > Sorry for posting back but my code failed.... :) > [...] Try doing: static GdkColor *insensitive_colour = NULL; static GdkColor *normal_colour = NULL; /* ... When initializing ... */ label = gtk_label_new (""); insensitive_colour = gdk_color_copy (&(GTK_WIDGET (label)->style->fg[GTK_STATE_INSENSITIVE])); normal_colour = gdk_color_copy (&(GTK_WIDGET (label)->style->fg[GTK_STATE_NORMAL])); gtk_widget_destroy (label); /* ... When setting sensitive state, * or inside a "notify::sensitive" handler ... */ gtk_widget_modify_fg (GTK_WIDGET (widget), GTK_STATE_NORMAL, sensitive ? normal_colour : insensitive_colour); You could use the widget of choice of course to initialize your colours, it was a togglebutton you wanted ? anyway, this code should work :) Cheers, -Tristan From mikael.olenfalk@gmail.com Fri Dec 30 20:07:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75B933B23FF for ; Fri, 30 Dec 2005 20:07:43 -0500 (EST) 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 26073-07 for ; Fri, 30 Dec 2005 20:07:23 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by menubar.gnome.org (Postfix) with ESMTP id AAC4D3B23FA for ; Fri, 30 Dec 2005 20:07:09 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i30so20064wra for ; Fri, 30 Dec 2005 17:07:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hvGcUb9jxwcaRIXhvt6B2dGQr6w3lTJPbyg0VvMww13SAAmWrHFu0oUpTSSGW6X6Xkp5aclqYN011MxZXmy6GKL21R5Jk0QonU1vftlxwSfCJatNU/jVKRu0hEoJGfSa6SdQqWsev07Dl6ntjK09v5ZDnMg30wvwqm0J2N0e7Zk= Received: by 10.64.199.9 with SMTP id w9mr283667qbf; Fri, 30 Dec 2005 17:07:08 -0800 (PST) Received: by 10.64.185.8 with HTTP; Fri, 30 Dec 2005 17:07:08 -0800 (PST) Message-ID: Date: Sat, 31 Dec 2005 02:07:08 +0100 From: Mikael Olenfalk To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.581 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.581 X-Spam-Level: Subject: Creating a GTK Cheat Sheet Poster X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mikael.Olenfalk@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 01:07:43 -0000 Hi, I just started working on creating a poster-sized (A0, approx 120x90 cm) cheat sheet for GTK development. My plan is to show an application window in the middle of the poster with all widgets in it and then list the classes for each widget around this window. I think this will make development much easier for newbies (like myself), especially because code completion often is too overwhelming for using as a TIP for which function to use; and it doesn't describe signals as well. So I have started creating an initial design of the GtkWindow class, which you can have a look at at this address: https://mikael.is-a-geek.org/shared/public/gtk-window-test-001.png It would be great if some of you could give feedback on this, below is a list of things I am thinking about changing next (that is before I move on and create other classes as well): - the "Functions" section is overwhelming and actually useless for a fast-glance look up of any function; should I remove it completely or just remove all uncommon functions from it? As you can see I have already removed some functions (all functions for set/getting the properties, as well as some functions for framebuffer gtk) I am a complete GTK newbie so I do not know which functions are uncommon; if you have suggestions, they are very welcome. - I am thinking about removing the "gboolean" and "gint" (and other common types) in favour of easy-to-distinguishable icons - I am thinking about removing the "GtkWindow *window" parameter in all functions in favour of an icon for the instance - I am thinking about creating a section of "Static Functions" (e.g. gtk_window_list_toplevels(void)) Thanks in advance for any feedback! Happy New Year to everybody! Mikael Olenfalk From yeti@physics.muni.cz Sat Dec 31 06:56:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C778C3B263D for ; Sat, 31 Dec 2005 06:56:44 -0500 (EST) 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 00772-10 for ; Sat, 31 Dec 2005 06:56:41 -0500 (EST) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D97783B2631 for ; Sat, 31 Dec 2005 06:56:38 -0500 (EST) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBVBuZSO014680; Sat, 31 Dec 2005 12:56:36 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 9499D23E4F; Sat, 31 Dec 2005 12:56:35 +0100 (CET) Date: Sat, 31 Dec 2005 12:56:35 +0100 From: "David Necas (Yeti)" To: Mikael Olenfalk Message-ID: <20051231115635.GK29084@potato> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Creating a GTK Cheat Sheet Poster X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 11:56:44 -0000 On Sat, Dec 31, 2005 at 02:07:08AM +0100, Mikael Olenfalk wrote: > I just started working on creating a poster-sized (A0, approx 120x90 > cm) cheat sheet for GTK development. My plan is to show an application > window in the middle of the poster with all widgets in it and then > list the classes for each widget around this window. > > I think this will make development much easier for newbies (like > myself), especially because code completion often is too overwhelming > for using as a TIP for which function to use; and it doesn't describe > signals as well. I have a few comments, I could have more if I had a better idea how is it supposed to be used, that is how it intends to complement API (and other) documentation. In my opinion one should primarily optimize the access to full documentation: if I already have a symbol or class and I am more than one keystroke away from its documentation, something is wrong. If I know it approximately, I should be still able to get the best match by approximate search or get to the list of all symbols in the correct class quickly. What is not covered so well: - I want a method that does.../the name of signal emitted when... If skimming of the method/signal/... list [in full documentation I have one keystroke away] fails, fulltext search helps a lot (though I recall I was unable to find the method to set GtkFileChooser's directory because its description only talks about folders, not mentioning directory). The cheatsheet could help if it tried to group the methods by topic, because now the order is arbitrary like in the API docs. But again, I would prefer less arbitrary method order in API docs too. - I want a widget that does.../looks like... Something between Widget Gallery and Widgets and Objects chapter TOC in API documetation -- only better -- would help. This is something you could focus on: to enable to find the essential information quickly instead of listing hordes of incomprehensible parameters that people need to look up in full documetation anyway. - I have a conceptual problem, need to learn some programming idiom, a particular tweak, ... A cheatsheet is not the right place for these. > So I have started creating an initial design of the GtkWindow class, > which you can have a look at at this address: > > https://mikael.is-a-geek.org/shared/public/gtk-window-test-001.png > > It would be great if some of you could give feedback on this, It obviously misses one thing: parent class and implemented interfaces (maybe childs too). People have problems finding inherited features even in API documetation that explicitely links to parents and lists implemented interfaces. You can mitigate the confusion by logical grouping of e.g. GtkHBox, GtkVBox, and GtkBox together, but not fully. > - the "Functions" section is overwhelming and actually useless for a > fast-glance look up of any function; should I remove it completely or > just remove all uncommon functions from it? As you can see I have > already removed some functions (all functions for set/getting the > properties, as well as some functions for framebuffer gtk) I am a > complete GTK newbie so I do not know which functions are uncommon; if > you have suggestions, they are very welcome. I supposte you do not want to just print copies of Gtk+ header files to A0 poster. Therefore I would only keep the commonly needed. I agree it is not always clear which are which. > - I am thinking about removing the "GtkWindow *window" parameter in > all functions in favour of an icon for the instance Redundant information: - The first argument of each signal is the instance, the last is always user data. - The first argument of each method is the instance (functions that are not methods, or are static methods, can be listed separately) - Method names of GtkSomething always start with gtk_something_. Most of these are only consequences of object system implemented in the language instead of being part of the language. I am not sure how confusing it would be if you removed all the gtk_something_ prefixes and `self' arguments (for me not at all because I only add these decorations because of C, I think about them the OOP way, but YMMV). Yeti -- That's enough. From doodle202@yahoo.com Thu Dec 29 09:58:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3A9D73B06F9 for ; Thu, 29 Dec 2005 09:58:52 -0500 (EST) 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 17500-05 for ; Thu, 29 Dec 2005 09:58:50 -0500 (EST) Received: from web90104.mail.scd.yahoo.com (web90104.mail.scd.yahoo.com [66.218.94.75]) by menubar.gnome.org (Postfix) with SMTP id 285D63B1980 for ; Thu, 29 Dec 2005 09:58:50 -0500 (EST) Received: (qmail 25758 invoked by uid 60001); 29 Dec 2005 14:58:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yQ4aN++ho56nFOy/Go28z1RmF7Wxfu7s3iIe6sKfK4slrHdYkA1mNqbJpXT7UhVOzQOZBz30M9mmkIA3tHOlUGw3xDFtQRDXRR6z5BzFC+wDC832bKsANXY8M84i7clgRP8bgpCyoqdwkRKSonisvn6B61Chb9/Bsf5MQ1B1IAw= ; Message-ID: <20051229145849.25756.qmail@web90104.mail.scd.yahoo.com> Received: from [194.237.142.10] by web90104.mail.scd.yahoo.com via HTTP; Thu, 29 Dec 2005 06:58:49 PST Date: Thu, 29 Dec 2005 06:58:49 -0800 (PST) From: dipti sach To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.54 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -0.54 X-Spam-Level: X-Mailman-Approved-At: Mon, 02 Jan 2006 08:30:34 -0500 Subject: Glib Installation problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 14:58:52 -0000 Hello, I have downloaded glib-2.8.4 and i am trying to install it. It gives a configure error : configure: error: *** pkg-config not found. But pkg-config is installed and if i do $ whereis pkg-config It returns /usr/local/bin/pkg-config. It would be nice if i can get some help related to this. Im trying to install GIMP and hence trying to install the dependencies. I am using Linux distribution Sles9 Regards Dipti __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From lists@nabble.com Thu Dec 1 02:12:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C418C3B3675 for ; Thu, 1 Dec 2005 02:12:17 -0500 (EST) 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 31161-03 for ; Thu, 1 Dec 2005 02:12:15 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id E6D263B0803 for ; Thu, 1 Dec 2005 02:12:14 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Ehic2-0004Eo-IO for gtk-list@gnome.org; Wed, 30 Nov 2005 23:12:14 -0800 Message-ID: <1730004.post@talk.nabble.com> Date: Wed, 30 Nov 2005 23:12:14 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org In-Reply-To: <438DD14A.6030209@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_160_4410427.1133421134563" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 References: <1716370.post@talk.nabble.com> <438DC75A.5000706@gnome.org> <1716709.post@talk.nabble.com> <438DD14A.6030209@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.476 tagged_above=-999 required=2 tests=[BAYES_01, HTML_MESSAGE] X-Spam-Score: 1.476 X-Spam-Level: * Subject: Re: How to add callback to tell owner something X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 07:12:18 -0000 ------=_Part_160_4410427.1133421134563 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit sorry, I can only use glib1.2, so I can't use g_signal_emit(), g_signal_connect(), etc functions. Is there any other way for this problem? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/How-to-add-callback-to-tell-owner-something-t645553.html#a1730004 ------=_Part_160_4410427.1133421134563 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit sorry, I can only use glib1.2, so I can't use g_signal_emit(), g_signal_connect(), etc functions. Is there any other way for this problem?
Thanks

Sent from the Gtk+ - General forum at Nabble.com:
Re: How to add callback to tell owner something ------=_Part_160_4410427.1133421134563-- From kms@passback.co.uk Thu Dec 1 04:32:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ABEBA3B1597 for ; Thu, 1 Dec 2005 04:32:11 -0500 (EST) 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 09460-01 for ; Thu, 1 Dec 2005 04:32:08 -0500 (EST) Received: from gonzo.passback.co.uk (mailgate.passback.co.uk [62.49.46.202]) by menubar.gnome.org (Postfix) with ESMTP id 0CC213B1506 for ; Thu, 1 Dec 2005 04:32:08 -0500 (EST) Received: from animal.passback.co.uk (unknown [10.0.0.3]) by gonzo.passback.co.uk (Postfix) with ESMTP id 4FF1F2B005E for ; Thu, 1 Dec 2005 09:32:06 +0000 (GMT) From: Keith Sharp To: gtk-list@gnome.org In-Reply-To: <438C22CB.9060606@topazelectro.ru> References: <438C22CB.9060606@topazelectro.ru> Content-Type: text/plain Organization: Passback IT Consultancy Date: Thu, 01 Dec 2005 09:32:06 +0000 Message-Id: <1133429526.28075.4.camel@animal.passback.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Re: Icon in a tray - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 09:32:11 -0000 On Tue, 2005-11-29 at 12:43 +0300, Igor Gorbounov wrote: > Tell me, please, what widget (or anything else) can be used to represent > an application > by an icon in the tray (or notification area applet?)? I think you want libegg: http://cvs.gnome.org/viewcvs/libegg/ In particular, EggTrayIcon: http://cvs.gnome.org/viewcvs/libegg/libegg/tray/ Keith. From moodmonger@bk.ru Thu Dec 1 04:56:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3E04D3B14F9 for ; Thu, 1 Dec 2005 04:56:38 -0500 (EST) 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 11435-01 for ; Thu, 1 Dec 2005 04:56:36 -0500 (EST) Received: from mx3.mail.ru (mx3.mail.ru [194.67.23.149]) by menubar.gnome.org (Postfix) with ESMTP id 290D43B13A5 for ; Thu, 1 Dec 2005 04:56:35 -0500 (EST) Received: from [85.21.83.170] (port=18983 helo=[172.17.0.4]) by mx3.mail.ru with esmtp id 1EhlB3-000HK3-00; Thu, 01 Dec 2005 12:56:33 +0300 Message-ID: <438EC921.1060201@bk.ru> Date: Thu, 01 Dec 2005 12:57:53 +0300 From: Dmitry Konyshev User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Sirotkin References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: changing text colors in .gtkrc.mine X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 09:56:38 -0000 Alexander Sirotkin wrote: > Hey. > > Well... I'm going slightly mad after trying to change colors for > gnome-terminal for about 2 weeks or so. > This is unreal... > > The following very simple .gtkrc.mine file > > style "demiurg-test" = "bluecurve-default" > { > bg[NORMAL] = "#000000" > bg[ACTIVE] = "#000000" > fg[NORMAL] = "#ffffff" > text[NORMAL] = "#ffffff" > } > > class "GtkWidget" style "demiurg-test" > > well... I can't even say that it does not work, since it does work, > but for some very selected applications, for instance "winetools", > which I discovered accidentally since for most applications, like > gnome-terminal it does not !!! > > This is driving me crazy... I googled for hours and read every > documentation I could find, but could not resolve this mystery... > Any help would be appriciated. > > P.S. I'm using out of the box CentOS 4.2 distribution. > My understanding of this "mystery" is that style definition works in the most intuitive way: more specific widget selection for a style overrides less specific one. In other words, if you're setting a style for a concrete widget or widget class, this style overrides the style defined for all the widget types. Thus, your style definition for all the widget classes just gets overriden by more specific ones. wbr, Dmitry. From db5@hermes.net.au Fri Dec 2 07:00:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B61C73B3D2C for ; Fri, 2 Dec 2005 07:00:52 -0500 (EST) 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 16276-04 for ; Fri, 2 Dec 2005 07:00:51 -0500 (EST) Received: from blue.hermes.net.au (blue.hermes.net.au [203.35.8.194]) by menubar.gnome.org (Postfix) with ESMTP id 349903B3CF5 for ; Fri, 2 Dec 2005 07:00:50 -0500 (EST) Received: from cor9-ppp2126.hay.dialup.connect.net.au (IDENT:1003@cor9-ppp2126.hay.dialup.connect.net.au [61.68.40.94]) (authenticated bits=0) by blue.hermes.net.au (8.13.4/8.13.4) with ESMTP id jB2C0cdH013620 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 2 Dec 2005 23:00:48 +1100 From: Ian To: gtk-list@gnome.org Content-Type: text/plain Organization: Fog Watch Date: Fri, 02 Dec 2005 22:59:22 +1100 Message-Id: <1133524762.377.20.camel@ns.fogwatch.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.49 on 203.35.8.194 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: gnome-settings-daemon X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: db5@hermes.net.au List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 12:00:57 -0000 Dear GTK people I would like to be able to see me my GTK applications in IceWM using the assigned font properties without having to deliberately invoke gnome-font-properites or gnome-settings-daemon every time I boot. Some questions arise out of this. Presumably I should use gnome-settings-daemon, and not gnome-font-properties? If so, do I need a gnome-settings-daemon per login, or just once? If it is per login then presumably I would use ~/.xinitrc, but where for just once? /etc/X11/xinit/xinitrc.icewm? And ~/.gtkrc-2.0. How on earth does this relate to the settings made by gnome-font-properties? As you can see, I have had trouble with this subject. By all means just head me towards some documentation, I just couldn't find any. Thank you for any assistance you are able to provide. Regards Ian Slackware 10.1 From edward.robbins@tinyworld.co.uk Thu Dec 1 08:57:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 774E33B2383 for ; Thu, 1 Dec 2005 08:57:48 -0500 (EST) 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 04938-08 for ; Thu, 1 Dec 2005 08:57:46 -0500 (EST) Received: from mk-smarthost-2.mail.uk.tiscali.com (mk-smarthost-2.mail.uk.tiscali.com [212.74.114.38]) by menubar.gnome.org (Postfix) with ESMTP id A19C13B235B for ; Thu, 1 Dec 2005 08:57:43 -0500 (EST) Received: from illinois.rdg.ac.uk (HELO mk-cpfrontend.uk.tiscali.com) ([134.225.216.82]) by mk-smarthost-2.mail.uk.tiscali.com with ESMTP; 01 Dec 2005 13:57:42 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AAAAAN6MjkMJhQw Received: from [134.225.216.82] by mk-cpfrontend.uk.tiscali.com with HTTP; Thu, 1 Dec 2005 13:57:40 +0000 Date: Thu, 1 Dec 2005 13:57:40 +0000 Message-ID: <4366F1DA000B27A1@mk-cpfrontend-2.mail.uk.tiscali.com> In-Reply-To: <438DE97D.2090400@kernelconcepts.de> From: edward.robbins@tinyworld.co.uk To: "Florian Boor" , "Li Weichen" MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.751 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, TW_GT] X-Spam-Score: -1.751 X-Spam-Level: X-Mailman-Approved-At: Fri, 02 Dec 2005 11:57:49 -0500 Cc: linux-arm@lists.arm.linux.org.uk, gtk-list@gnome.org Subject: Re: Some basic questions about gtk/gtk+ in embedded system X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 13:57:48 -0000 >> 1. Does the gtk+ can be used as an embedded gui? > >It depends on the complexity of the application and on the amount of sto= rage >space and RAM you have on your device. But basically i'd say yes. There are >some >projects for user interfaces on mobile devices using GTK. (e.g. GPE - >http://gpe.handhelds.org and Maemo - http://maemo.org). > I prefer fltk - it is faster for embedded devices (but if your device is fast enough for gtk then fine). >> 3. Can it be compared to Qt/E or MiniGUI? What are the advantages and= >> disadvantages? > >GTK might be a little bit bigger than these two, but it is very powerful= >and >there are bindings for many languages available. I personally like GTK b= ecause >its native language is C instead of C++ and its good support for powerfu= l >themes. It is easy to develop applications on a desktop PC using the sam= e >API >like on your embedded device and if necessary you can port applications to >run >on that one easily. In addition to this GTK is LGPL licensed which is mu= ch >easier to deal with compared to the dual licensing crap for Qt/E. Agreed regarding licenses, but I much prefer C++ to C for this task... >Yes, mostly - you only need to get used to the constraints you have usin= g >an >object framework in C. It is a very good idea to have an API reference, witout >htis you are lost in a compley toolkit like GTK. Devhelp e.g. is very us= eful. ...because of the confusion this brings up. Although there are c++ bindin= gs for gtk I believe. Its all a matter of choice anyway ;). Have fun, Ed. ___________________________________________________________ Tiscali Broadband from 14.99 with free setup! http://www.tiscali.co.uk/products/broadband/ Christmas gift ideas and festive features - visit the Tiscali Christmas m= icrosite. http://www.tiscali.co.uk/christmas From demiourgos@gmail.com Thu Dec 1 09:45:42 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44A643B08DC for ; Thu, 1 Dec 2005 09:45:42 -0500 (EST) 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 09313-02 for ; Thu, 1 Dec 2005 09:45:40 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id 3AE8D3B16EA for ; Thu, 1 Dec 2005 09:45:40 -0500 (EST) Received: by xproxy.gmail.com with SMTP id s11so335121wxc for ; Thu, 01 Dec 2005 06:45:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=py27X+pHwtL5wXgu/ierOluQxR3IERoWBE0KBwtO/X5gTbvW3syH3/1Kf4pPsDNTGCTBL7cQxXA5gO2e/01Q0LMEbSeHpQcqR5YnX1O2dxeFYqHagUouDdo+80GVinDqlsbVj7J+raO0ux3HkcKS+Q4xDP1CyOtK099lLqGwYGA= Received: by 10.65.11.9 with SMTP id o9mr852671qbi; Thu, 01 Dec 2005 06:45:39 -0800 (PST) Received: by 10.65.72.17 with HTTP; Thu, 1 Dec 2005 06:45:39 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2005 16:45:39 +0200 From: Alexander Sirotkin To: Dmitry Konyshev In-Reply-To: <438EC921.1060201@bk.ru> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46274_20144663.1133448339371" References: <438EC921.1060201@bk.ru> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.112 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, RCVD_IN_SORBS] X-Spam-Score: 1.112 X-Spam-Level: * X-Mailman-Approved-At: Fri, 02 Dec 2005 11:57:49 -0500 Cc: gtk-list@gnome.org Subject: Re: changing text colors in .gtkrc.mine X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 14:45:42 -0000 ------=_Part_46274_20144663.1133448339371 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks. I thought about it too. In that case, the question is - how can I find the appropriate widget class for gnome-terminal, or any other application I would want to modify the theme for ? Thanks a lot. On 12/1/05, Dmitry Konyshev wrote: > > Alexander Sirotkin wrote: > > > Hey. > > > > Well... I'm going slightly mad after trying to change colors for > > gnome-terminal for about 2 weeks or so. > > This is unreal... > > > > The following very simple .gtkrc.mine file > > > > style "demiurg-test" =3D "bluecurve-default" > > { > > bg[NORMAL] =3D "#000000" > > bg[ACTIVE] =3D "#000000" > > fg[NORMAL] =3D "#ffffff" > > text[NORMAL] =3D "#ffffff" > > } > > > > class "GtkWidget" style "demiurg-test" > > > > well... I can't even say that it does not work, since it does work, > > but for some very selected applications, for instance "winetools", > > which I discovered accidentally since for most applications, like > > gnome-terminal it does not !!! > > > > This is driving me crazy... I googled for hours and read every > > documentation I could find, but could not resolve this mystery... > > Any help would be appriciated. > > > > P.S. I'm using out of the box CentOS 4.2 distribution. > > > My understanding of this "mystery" is that style definition works in the > most intuitive way: more specific widget selection for a style overrides > less specific one. In other words, if you're setting a style for a > concrete widget or widget class, this style overrides the style defined > for all the widget types. Thus, your style definition for all the widget > classes just gets overriden by more specific ones. > > wbr, Dmitry. > > -- Alexander Sirotkin ------=_Part_46274_20144663.1133448339371 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks.

I thought about it too. In that case, the question is - how can I find the appropriate widget class for gnome-terminal, or any other application I would want to modify the theme for ?

Thanks a lot.

On 12/1/05, Dmitry Konyshev <moodmonger@bk.ru> wrote:
Alexander Sirotkin wrote:

> Hey.
>
> Well... I'm goin= g slightly mad after trying to change colors for
> gnome-terminal for= about 2 weeks or so.
> This is unreal...
>
> The followi= ng very simple .gtkrc.mine file
>
> style "demiurg-test" =3D "bluecurve-default= "
> {
>         bg= [NORMAL] =3D "#000000"
>      = ;   bg[ACTIVE] =3D "#000000"
>   &= nbsp;     fg[NORMAL] =3D "#ffffff"
>         text[NORMAL] =3D &= quot;#ffffff"
> }
>
> class "GtkWidget" st= yle "demiurg-test"
>
> well... I can't even say that = it does not work, since it does work,
> but for some very selected applications, for instance "winetools&= quot;,
> which I discovered accidentally since for most applications,= like
> gnome-terminal it does not !!!
>
> This is drivin= g me crazy... I googled for hours and read every
> documentation I could find, but could not resolve this mystery...<= br>> Any help would be appriciated.
>
> P.S. I'm using out o= f the box CentOS 4.2 distribution.
>
My understanding of this &quo= t;mystery" is that style definition works in the
most intuitive way: more specific widget selection for a style override= s
less specific one. In other words, if you're setting a style for a
= concrete widget or widget class, this style overrides the style defined
for all the widget types. Thus, your style definition for all the widge= t
classes just gets overriden by more specific ones.

wbr, Dmitry.=




--
Alexander Sirot= kin ------=_Part_46274_20144663.1133448339371-- From atopo@ocv.org Fri Dec 2 16:15:10 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50DE83B111D for ; Fri, 2 Dec 2005 16:15:10 -0500 (EST) 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 31578-02 for ; Fri, 2 Dec 2005 16:15:08 -0500 (EST) Received: from rohrpostfix.ocv.org (62-99-167-52.static.adsl-line.inode.at [62.99.167.52]) by menubar.gnome.org (Postfix) with ESMTP id 504033B25C3 for ; Fri, 2 Dec 2005 16:15:07 -0500 (EST) Received: from shuttle (shuttle.ocv.org [192.168.0.101]) by rohrpostfix.ocv.org (8.13.0/8.12.11) with SMTP id jB2LF6dp017204 for ; Fri, 2 Dec 2005 22:15:06 +0100 (CET) From: "Alexander Topolanek" To: Date: Fri, 2 Dec 2005 22:15:45 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.001 tagged_above=-999 required=2 tests=[BAYES_40] X-Spam-Score: -0.001 X-Spam-Level: Subject: Build problems with gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 21:15:10 -0000 Hi, I'm trying to build gtk+ on my sony vaio N505SN (Mobile Pentium 2 CPU), which fails all the time with an "/bin/sh: line 1: 16977 Illegal instruction" in "/usr/src/gtk+-2.8.8/gtk/stock-icons". I've tried with gtk+ 2.8.8 and older versions. This is my compiler: gcc (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8). Any ideas? best regards Alexander From are.leistad@chello.no Sat Dec 3 11:38:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5C5B83B2B29 for ; Sat, 3 Dec 2005 11:38:44 -0500 (EST) 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 08999-05 for ; Sat, 3 Dec 2005 11:38:41 -0500 (EST) Received: from amsfep20-int.chello.nl (amsfep12-int.chello.nl [213.46.243.17]) by menubar.gnome.org (Postfix) with ESMTP id AE9383B2B68 for ; Sat, 3 Dec 2005 11:38:40 -0500 (EST) Received: from aredell ([84.209.254.99]) by amsfep20-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051203163828.ONVU13840.amsfep20-int.chello.nl@aredell> for ; Sat, 3 Dec 2005 17:38:28 +0100 Message-ID: <001901c5f827$f90207c0$0201a8c0@aredell> From: " Are Leistad" To: Date: Sat, 3 Dec 2005 17:38:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Antivirus: avast! (VPS 0544-0, 31.10.2005), Outbound message X-Antivirus-Status: Not-Tested X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: X-Mailman-Approved-At: Sat, 03 Dec 2005 11:40:41 -0500 Subject: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 16:38:44 -0000 Hello GTK list! I'm evaluating GTK+ as the GUI/windowing toolkit for an embedded project. After spending a long time reviewing various toolkits, GTK+ is the one candidate that has bubbled to the top. The other alternative is an existing proprietary toolkit which is quite good, but the effort reequired to maintain it could potentially be quite large. Being able to draw on, and perhaps eventually contribute to, the GTK communitys efforts is the main advantage for me in picking it up. So far the concept and the API seems fine and the fact that it's all in pure C is a big advantage. The one thing that makes me hesitate is the question about stability. By stability I mean lack of (serious) bugs and memory leaks. I've tried to research this on the net, but there's not much to find in the way of comments on, or assessements of, GTK+ stability. Since GTK+ uses a number of 3rd party libraries these must be factored in as well. The application in question is mission critical, and must be able to run for extended periods (weeks or more) without any kind of cumulative degradation of the performance. If GTK+ gets adopted it will preferably run without X, but rather use a framebuffer, so or GTK+ on DirectFB is a possibility. It is noted that GTKfb is no longer maintained. The target platform is a x86 (ITX) with Suse Linux 2.6, but Windows is used for parts of the development cycle and the application must be able to run there. The application is demanding it that it will employ a high number of widgets. Several thousands of GUI objects will be created, and several hundred of these may be exposed at any one time. Responsive interactivity and quick redrawing is important. To get a better handle on the suitability of GTK in this case, I ask the list members for subjective and objective comments on a few issues: - general stability of GTK+ (bugs/leaks)? - suitability of GTK+ for mission critical embedded application? - any hints and tips for this kind of GTK+ usage? - best GTK+ options for use with linux framebuffer? - performance with thousands visible/hidden widgets on a 500MHz system? - to use glade or not... potential problems/instabilities? - is there a minimal HTML rendering widget available (for a help system)? Any comments or pointers to information will be greatly appreciated. AL -- From ibr@radix50.net Sat Dec 3 17:01:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3D593B1A67 for ; Sat, 3 Dec 2005 17:01:40 -0500 (EST) 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 32023-02 for ; Sat, 3 Dec 2005 17:01:38 -0500 (EST) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by menubar.gnome.org (Postfix) with ESMTP id 84DE33B0960 for ; Sat, 3 Dec 2005 17:01:37 -0500 (EST) Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 3794D8D118 for ; Sat, 3 Dec 2005 23:01:36 +0100 (CET) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id 2C02D15D613 for ; Sat, 3 Dec 2005 23:01:36 +0100 (CET) Received: from alatau.radix50.net (dslb-084-057-003-020.pools.arcor-ip.net [84.57.3.20]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id EDB74C8B8B for ; Sat, 3 Dec 2005 23:01:34 +0100 (CET) Received: from alatau.radix50.net (localhost [127.0.0.1]) by alatau.radix50.net (8.13.4/8.13.4/Debian-2) with ESMTP id jB3M1SYq005649 for ; Sat, 3 Dec 2005 23:01:28 +0100 Received: (from ibr@localhost) by alatau.radix50.net (8.13.4/8.13.4/Submit) id jB3M1QFG005648 for gtk-list@gnome.org; Sat, 3 Dec 2005 23:01:26 +0100 Date: Sat, 3 Dec 2005 23:01:26 +0100 From: ibr@ata.cs.hun.edu.tr To: gtk-list@gnome.org Message-ID: <20051203220126.GA4730@radix50.net> References: <001901c5f827$f90207c0$0201a8c0@aredell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.828 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME] X-Spam-Score: -1.828 X-Spam-Level: Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 22:01:40 -0000 Hello Are, On Sat, Dec 03, 2005 at 05:38:17PM +0100, Are Leistad wrote: > - suitability of GTK+ for mission critical embedded application? You might be interested to investigate the behavior in the case of virtual memory exhaustion. As I looked at glib, I couldn't see an elegant way to pass that fact to the caller. E.g., g_list_append returns the new list head; if there is no memory available, the application is supposed to exit (please correct me if I'm wrong), which is not quite nice for an embedded app. A possible workaround could be calling some handler in your code, but I haven't looked at that. If you are interested, we could try to do that together. With kind regards, Baurzhan. From torriem@chem.byu.edu Sat Dec 3 23:08:00 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4156F3B189E for ; Sat, 3 Dec 2005 23:08:00 -0500 (EST) 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 21958-08 for ; Sat, 3 Dec 2005 23:07:58 -0500 (EST) Received: from mail.chem.byu.edu (mailchem.byu.edu [128.187.3.5]) by menubar.gnome.org (Postfix) with ESMTP id 783B63B11B5 for ; Sat, 3 Dec 2005 23:07:57 -0500 (EST) Received: from [192.168.108.50] ([192.168.108.50]) (authenticated bits=0) by mail.chem.byu.edu (8.12.10/8.12.10) with ESMTP id jB447r6U016654 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 3 Dec 2005 21:07:54 -0700 From: Michael Torrie To: Are Leistad In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> References: <001901c5f827$f90207c0$0201a8c0@aredell> Content-Type: text/plain Date: Sat, 03 Dec 2005 21:07:52 -0700 Message-Id: <1133669273.13402.115.camel@enterprise.local.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.53 on 192.168.200.10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 04:08:00 -0000 On Sat, 2005-12-03 at 17:38 +0100, Are Leistad wrote: > If GTK+ gets adopted it will preferably run without X, but rather > use a framebuffer, so or GTK+ on DirectFB is a possibility. > It is noted that GTKfb is no longer maintained. The target platform > is a x86 (ITX) with Suse Linux 2.6, but Windows is used for parts of > the development cycle and the application must be able to run there. > The application is demanding it that it will employ a high number > of widgets. Several thousands of GUI objects will be created, and > several hundred of these may be exposed at any one time. > Responsive interactivity and quick redrawing is important. Actually I think you'll find that running GTK on an embedded X-server works very well. In fact I think it's a much better idea than the framebuffer, since GTKfb really has to implement GTK plus the stuff X provides. If you check out the kdrive X server from www.freedesktop.org, I think you'll find it can be less than a mb in binary size and run fine on just a few mb of RAM. Not much larger with GTK/X than GTKfb. A tiny window manager, matchbox also works well for an embedded system with a small screen. When you say you are considering GTK for an embedded situation, I take it you're not meaning real-time or microcontroller, but a small, full- blown computer running a full protected-mode, virtual memory OS. If not, GTK simply can't work. GTK must have dynamic memory allocation available from the OS. I'm found based on my experience with GTK and with many GTK apps that the stable GTK libraries have no known memory leaks. In fact the underlying glib libraries are so well-written that I can in one of my app (over the course of months) build and destroy millions of dynamic tree stuctures containing glib objects (lists, strings, etc) and not one leak. It has been a while since a real memory leak has been discovered in the gui stuff in GTK. In fact most of the supposed leaks reported in recent months were really just the programmer not quite understanding how the reference counting and object destruction worked. Michael -- Michael Torrie From jcupitt@gmail.com Sun Dec 4 11:45:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F1173B4C84 for ; Sun, 4 Dec 2005 11:45:35 -0500 (EST) 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 26800-07 for ; Sun, 4 Dec 2005 11:45:32 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 0709C3B4CD4 for ; Sun, 4 Dec 2005 04:39:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id o37so731421nzf for ; Sun, 04 Dec 2005 01:39:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TvZs0D9/lWoH6KTHE824DvrR/uuRDozHSOx+VQzRQEMd65dHpnlN5qahZtz9zJrtLvGEKPrODq9GRl+N5Odzp+AWNBef4JXyP+0ociH3BlitfXBCwMKxIlyVNVYO2oXpkQ+FFFqzgq0rZ43Tbu54GiQapxldOSACC1JGvmQB/78= Received: by 10.64.195.11 with SMTP id s11mr2150797qbf; Sun, 04 Dec 2005 01:39:35 -0800 (PST) Received: by 10.65.15.14 with HTTP; Sun, 4 Dec 2005 01:39:35 -0800 (PST) Message-ID: <522c6460512040139u498f1560o848be7d5a4fb8fc0@mail.gmail.com> Date: Sun, 4 Dec 2005 09:39:35 +0000 From: John Cupitt To: Are Leistad In-Reply-To: <001901c5f827$f90207c0$0201a8c0@aredell> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001901c5f827$f90207c0$0201a8c0@aredell> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 16:45:35 -0000 On 12/3/05, Are Leistad wrote: > The one thing that makes me hesitate is the question about stability. > By stability I mean lack of (serious) bugs and memory leaks. I'm not embedded, but the GTK app I usually work on (medium sized? 250,000 lines) seems leak-free, according to valgrind. I've found three or four GTK crash bugs over the last five years, but they've been easy to patch around. Having the source to the whole GUI is just great. I've posted fixes to bugzilla and they've gone into GTK (and in to the next version) within a few days, usually. Something people have complained about is out of memory handling. GTK does not even attempt to do this: if malloc() fails, your program will promptly abort(). A possible fix is to keep some small-ish amount of RAM in reserve (1MB?) and to start using that when the system malloc() stops. That gives your program a little time to either save state and restart, or perhaps flush some caches or something and keep going. > - performance with thousands visible/hidden widgets on a 500MHz system? GTK used to feel fast on my 450MHz desktop machine 5 years ago. It's become a bit slower since then with the fancy new font system. It should be easy to do some benchmarks I guess. > - is there a minimal HTML rendering widget available (for a help system= )? Yes, there's gtkhtml2, though I've not used it. I think it just does plain HTML (ie. no CSS etc). From are.leistad@chello.no Sun Dec 4 11:08:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DFD43B5B5E for ; Sun, 4 Dec 2005 11:08:21 -0500 (EST) 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 21122-10 for ; Sun, 4 Dec 2005 11:08:19 -0500 (EST) Received: from amsfep19-int.chello.nl (amsfep11-int.chello.nl [213.46.243.19]) by menubar.gnome.org (Postfix) with ESMTP id 592963B5FC7 for ; Sun, 4 Dec 2005 10:45:06 -0500 (EST) Received: from aredell ([84.209.254.99]) by amsfep19-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051204154449.UTLE17379.amsfep19-int.chello.nl@aredell> for ; Sun, 4 Dec 2005 16:44:49 +0100 Message-ID: <002f01c5f8e9$a3b8e8c0$0201a8c0@aredell> From: " Are Leistad" To: Date: Sun, 4 Dec 2005 16:44:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Antivirus: avast! (VPS 0544-0, 31.10.2005), Outbound message X-Antivirus-Status: Not-Tested X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_TK] X-Spam-Score: -1.834 X-Spam-Level: X-Mailman-Approved-At: Sun, 04 Dec 2005 19:16:10 -0500 Subject: Re: Q: Suitability of GTK+ for critical embedded application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 16:08:22 -0000 Baurzhan wrote: > You might be interested to investigate the behavior in the case of > virtual memory exhaustion. As I looked at glib, I couldn't see an > elegant way to pass that fact to the caller. E.g., g_list_append returns > the new list head; if there is no memory available, the application is > supposed to exit (please correct me if I'm wrong), which is not quite > nice for an embedded app. A possible workaround could be calling some > handler in your code, but I haven't looked at that. If you are > interested, we could try to do that together. This is duly noted - can't have forced exits. This will have to be handled indeed. In this system there will be no VM. It will have a healthy amount of RAM though, probably 256MB of which at least half is available to the application. The memory usage is (must be!) controlled in that it is guaranteed to never exceed a known maximum, and a margin will be set off to allow for fragmentation. Of course getting to know what the usage of GTK is may be a challenge. This reminds me of another question: are there facilities in GTK for monitoring or logging resource usage? Or are there some information on actual usage available (per feature/subsystem/widget)? Our proprietary GUI tracks all malloc/free calls as well as keeping statistics for objects and events. This would be hard to live without. Michael Torrie wrote: > Actually I think you'll find that running GTK on an embedded X-server > works very well. It also looks like it's fastest with X. At least from this somewhat old but still interesting report: http://www.bluemug.com/research/linux_performance/index.shtml > A When you say you are considering GTK for an embedded situation, > I take it you're not meaning real-time or microcontroller Thats right. It's a full x86 ISA on the ITX form factor. There's no harddisks, only a FLASH IDE module. > I'm found based on my experience with GTK and with many GTK apps > that the stable GTK libraries have no known memory leaks. This sounds good. From Baurzhan and Michaels answers it's clear that I shall need to have a good look a glib though. John Cupitt wrote: > I'm not embedded, but the GTK app I usually work on (medium sized? > 250,000 lines) seems leak-free, according to valgrind. I'd say that's a fair sized application :) It's good to hear a report indicating good general integrity. > Something people have complained about is out of memory handling. Right. That seems to be a springning point. I would have though it obviously that graceful handling of memory exhaustion is a must have. > GTK used to feel fast on my 450MHz desktop machine 5 years ago. It's > become a bit slower since then with the fancy new font system. It > should be easy to do some benchmarks I guess. I need a GUI that feels fast on a 500MHZ system 5 years from now :) You're right of course, benchmarking is easy. I'll make a mock up of parts of the interface and see for myself. > Yes, there's gtkhtml2 I'll look that up, although CSS is really needed. I have a nearly completed one in the prorietary bin which will probably be used anyway. Baurzhan, Michael, John - Thank you very much for your responses! It's exacly the stuff I'm after. This matter will take some time to decide upon (there are others who have a say). I'll let you know which way it goes. In the mean time I'll watch for more comments on this. In any case, I need a new toolkit for general C and Ada programming and that is likely going to be GTK+. AL -- From ashley.maher@didymodesigns.com.au Mon Dec 5 00:40:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888FB3B1D1E for ; Mon, 5 Dec 2005 00:40:32 -0500 (EST) 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 29587-10 for ; Mon, 5 Dec 2005 00:40:29 -0500 (EST) Received: from mail.didymodesigns.com.au (unknown [203.132.226.82]) by menubar.gnome.org (Postfix) with SMTP id 55F303B1D62 for ; Mon, 5 Dec 2005 00:40:04 -0500 (EST) Received: (qmail 9705 invoked by alias); 5 Dec 2005 05:39:01 -0000 Received: from unknown (HELO gemini) (61.9.197.223) by ns2.didymodesigns.com.au with SMTP; 5 Dec 2005 05:39:01 -0000 From: ashley maher To: gtk-list@gnome.org Content-Type: text/plain Organization: Didymo Designs Date: Mon, 05 Dec 2005 16:39:52 +1100 Message-Id: <1133761192.9526.10.camel@gemini> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: gtklist pango stipple X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ashley.maher@didymodesigns.com.au List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 05:40:32 -0000 G'day, Using the gtk tree view tutorial I have been able to gain most of the functionality I need. I've been asked to include a stipple behind some cells. So I have attempted to do this. I was confident I could include this using pango markup. Unfortunately the text markup does not include a stipple attribute. There is, however, gdk_pango_renderer_set_stipple, which got me no where. I found teh stipple code in the demos for a text block. That didn't get me far. Is there any way to have a stipple behind text in a cell of a gtk list view? Hints on the direction to take appreciated. Regards, Ashley From fkater@googlemail.com Mon Dec 5 06:56:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A89D83B2D21 for ; Mon, 5 Dec 2005 06:56:17 -0500 (EST) 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 25083-03 for ; Mon, 5 Dec 2005 06:56:15 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by menubar.gnome.org (Postfix) with ESMTP id 18E943B2CFB for ; Mon, 5 Dec 2005 06:56:15 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i24so601413wra for ; Mon, 05 Dec 2005 03:56:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UFcAx2u118vMcHyAp9R0jege2XWZcg7Gibl0bXLYKZcCobP+clwnu8nhYUEHjqBnUrluL8l02dsTiH1PyMZV4PEwSgyfPCkOzbNN6zyDkVseHOBP26fWT724BMUIQ7DCZHHDKYNx4tT6GHESZFnfwnNuHmMB08D2wv9884A1+VE= Received: by 10.65.73.3 with SMTP id a3mr2622273qbl; Mon, 05 Dec 2005 03:56:14 -0800 (PST) Received: by 10.65.44.13 with HTTP; Mon, 5 Dec 2005 03:56:14 -0800 (PST) Message-ID: Date: Mon, 5 Dec 2005 12:56:14 +0100 From: Felix Kater To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: g_get_current_time() / win32: UTC instead of local time? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 11:56:17 -0000 Hi, I get the current hour of the day (0-23) like this: hour_of_the_day=3D my_gtimeval.tv_sec % (3600*24) / 3600 My windows timezone is set to UTC+1 =3D=3D GMT+1 =3D=3D CET, however, this = is not respected. What ever I select as the windows timezone the above formula calculates the same time (I guess UTC). How can I get the local hour? Thanks Felix From adnanx82@gmail.com Mon Dec 5 22:09:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D14CE3B1277 for ; Mon, 5 Dec 2005 22:09:13 -0500 (EST) 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 04343-06 for ; Mon, 5 Dec 2005 22:09:12 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by menubar.gnome.org (Postfix) with ESMTP id E4AC73B0EA6 for ; Mon, 5 Dec 2005 22:09:11 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i6so247917wra for ; Mon, 05 Dec 2005 19:09:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mCMV98HawWsDq9Xk091DVUmUWtjXFI85ao2wcu39yTPZ9iEMZV3jkYtH3V8Bc67MQfEwGAGMUvOF0iMr3b0MrWvDiPgN6ey3WcEhzFErMRrmROsUVrk1G79oTvVbvYfAPKV2GvrdxoX8dYGf2hDC4jkbm7NWI5+atXNU9n4TNzk= Received: by 10.54.136.4 with SMTP id j4mr1237110wrd; Mon, 05 Dec 2005 19:09:11 -0800 (PST) Received: by 10.54.134.1 with HTTP; Mon, 5 Dec 2005 19:09:10 -0800 (PST) Message-ID: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> Date: Mon, 5 Dec 2005 19:09:10 -0800 From: Adnan Dosa To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_201_25851401.1133838550960" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.006 tagged_above=-999 required=2 tests=[BAYES_00, FROM_ENDS_IN_NUMS, HTML_MESSAGE] X-Spam-Score: 2.006 X-Spam-Level: ** X-Spam-Flag: YES Subject: gtk application without x server? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 03:09:14 -0000 ------=_Part_201_25851401.1133838550960 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Is it possible to have a GTK application with windows that are not visible on the screen that can run without an X server? Ie the windows have their content rendered off-screen (in memory) and you can call window functions o= n it. I tried creating a window and called gtk_widget_hide() on it, but it doesn'= t work. Thanks, -Adnan. ------=_Part_201_25851401.1133838550960 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

Is it possible to have a GTK application with windows that are not visible on the screen that can run without an X server? Ie the windows have their content rendered off-screen (in memory) and you can call window functions on it.

I tried creating a window and called gtk_widget_hide() on it, but it doesn'= t work.

Thanks,

-Adnan.
------=_Part_201_25851401.1133838550960-- From jcupitt@gmail.com Wed Dec 7 06:32:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2BC163B3670 for ; Wed, 7 Dec 2005 06:32:28 -0500 (EST) 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 25840-01 for ; Wed, 7 Dec 2005 06:32:26 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by menubar.gnome.org (Postfix) with ESMTP id C20583B367E for ; Wed, 7 Dec 2005 06:32:25 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so490343wxc for ; Wed, 07 Dec 2005 03:32:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FIG7FVFMoOWqfYI0ZbYl/9VU8kEeeMEbqJ4/p7Jqg+p5zwW7Ft5m4QSb/mgPbXyFd5NRjGYVHkAdEJlqP0xV0xkVbo1t+j5SUCTq69DrlVGcBle/ACoiPZtRHPTvWyJuFuqlOTRuwmJ3kUaQkKFKjamEGUjl5IIZcrP6gAumbU8= Received: by 10.70.125.10 with SMTP id x10mr1679140wxc; Wed, 07 Dec 2005 03:32:24 -0800 (PST) Received: by 10.70.67.14 with HTTP; Wed, 7 Dec 2005 03:32:24 -0800 (PST) Message-ID: <522c6460512070332k7eba2418o233c76eaf2514277@mail.gmail.com> Date: Wed, 7 Dec 2005 11:32:24 +0000 From: John Cupitt To: Adnan Dosa In-Reply-To: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4de771cb0512051909m7a468e89h7a5b565e6dac3035@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.757 tagged_above=-999 required=2 tests=[BAYES_00, TW_DK, TW_GD, TW_GT] X-Spam-Score: -1.757 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk application without x server? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 11:32:30 -0000 On 12/6/05, Adnan Dosa wrote: > Is it possible to have a GTK application with windows that are not visib= le > on the screen that can run without an X server? No, GTK needs a display connection to work. You can use some of the lower level libraries like glib, gobject, gdkpixbuf etc without an X connection. From kasoftnew@yahoo.com Wed Dec 7 08:55:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DCD4A3B1402 for ; Wed, 7 Dec 2005 08:55:21 -0500 (EST) 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 05894-05 for ; Wed, 7 Dec 2005 08:55:14 -0500 (EST) Received: from web34603.mail.mud.yahoo.com (web34603.mail.mud.yahoo.com [209.191.68.137]) by menubar.gnome.org (Postfix) with SMTP id 088993B0F8E for ; Wed, 7 Dec 2005 08:55:12 -0500 (EST) Received: (qmail 2724 invoked by uid 60001); 7 Dec 2005 13:55:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=K1DvMazOY2TjYlHuchvCDtX+otSvWlVRtKhRof5GsXfQ6vgCLZYpxtFdhvn685Z5aWa4j8qONscYN2pEV1JMsQEsAA718yGO4IrpkljxNBFNSg9OmZ3dh4ZbCLiscqhAAd91hGSU0tRAINxbyj0nPTLxIYgtsxsK/PVfO4w6HIc= ; Message-ID: <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> Received: from [213.91.219.82] by web34603.mail.mud.yahoo.com via HTTP; Wed, 07 Dec 2005 05:55:11 PST Date: Wed, 7 Dec 2005 05:55:11 -0800 (PST) From: Stoyan karanfilov To: gtk-list@gnome.org In-Reply-To: <20051206170119.E86923B32F8@menubar.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.087 tagged_above=-999 required=2 tests=[BAYES_00, FORGED_YAHOO_RCVD] X-Spam-Score: -1.087 X-Spam-Level: Subject: Problem with compiling on SUSE 10 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 13:55:22 -0000 Hi, I wrote a small program that has been working and compiling on SUSE 9.2 (with gcc 3.x), but now same program does not link well on SUSE 10 (gcc 4). Here is the command line and error: gcc -Wall -g test_window.cpp -o test `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0` /tmp/cc4Mi4UX.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' I will appreciate any help. Sincerely: Stoyan Karanfilov __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From ygupta@gmail.com Wed Dec 7 09:02:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0890F3B0B09 for ; Wed, 7 Dec 2005 09:02:19 -0500 (EST) 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 06565-05 for ; Wed, 7 Dec 2005 09:02:16 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by menubar.gnome.org (Postfix) with ESMTP id C2E803B078C for ; Wed, 7 Dec 2005 09:02:15 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i13so580347wra for ; Wed, 07 Dec 2005 06:02:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=l2mkTykqhKgMQIKUIhUiwXT1bW+XZZ7phffwRYirw10wCTPgxvDVaAxEdVA0UXGmGbb7lH2Rfbz4vx6HUCaQWJf+qIhhtbvQ5rb2M7BzeeYBk9aKw6ebucnWQxGmld5xVMiCiDysPoOwea6UEqn7EgtdgnzTBh1IC0xbzJMCsuM= Received: by 10.65.20.1 with SMTP id x1mr1415848qbi; Wed, 07 Dec 2005 06:02:15 -0800 (PST) Received: by 10.64.10.16 with HTTP; Wed, 7 Dec 2005 06:02:15 -0800 (PST) Message-ID: Date: Wed, 7 Dec 2005 19:32:15 +0530 From: Yash Kumar Gupta To: Stoyan karanfilov In-Reply-To: <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33322_31433362.1133964135043" References: <20051206170119.E86923B32F8@menubar.gnome.org> <20051207135511.2722.qmail@web34603.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.411 tagged_above=-999 required=2 tests=[BAYES_00, MIME_BASE64_LATIN, TW_GT] X-Spam-Score: -1.411 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Problem with compiling on SUSE 10 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 14:02:19 -0000 ------=_Part_33322_31433362.1133964135043 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline VHJ5IHVzaW5nIGcrKyBpbnN0ZWFkIG9mIGdjYyBhbmQgdGhpbmdzIHdpbGwgYmUgZmluZS4KCkhv cGUgdGhpcyBoZWxwcyEhCllhc2gKCgpPbiAxMi83LzA1LCBTdG95YW4ga2FyYW5maWxvdiA8a2Fz b2Z0bmV3QHlhaG9vLmNvbT4gd3JvdGU6Cj4KPiBIaSwgSSB3cm90ZSBhIHNtYWxsIHByb2dyYW0g dGhhdCBoYXMgYmVlbiB3b3JraW5nIGFuZAo+IGNvbXBpbGluZyBvbiBTVVNFIDkuMiAod2l0aCBn Y2MgMy54KSwgYnV0IG5vdyBzYW1lCj4gcHJvZ3JhbSBkb2VzIG5vdCBsaW5rIHdlbGwgb24gU1VT RSAxMCAoZ2NjIDQpLiBIZXJlIGlzCj4gdGhlIGNvbW1hbmQgbGluZSBhbmQgZXJyb3I6Cj4KPiBn Y2MgLVdhbGwgLWcgdGVzdF93aW5kb3cuY3BwIC1vIHRlc3QgYHBrZy1jb25maWcKPiAtLWNmbGFn cyBndGsrLTIuMCAtLWxpYnMgZ3RrKy0yLjBgCj4KPiAvdG1wL2NjNE1pNFVYLm86KC5laF9mcmFt ZSsweDExKTogdW5kZWZpbmVkIHJlZmVyZW5jZQo+IHRvIGBfX2d4eF9wZXJzb25hbGl0eV92MCcK Pgo+IEkgd2lsbCBhcHByZWNpYXRlIGFueSBoZWxwLgo+Cj4gU2luY2VyZWx5OiBTdG95YW4gS2Fy YW5maWxvdgo+Cj4KPgo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f Xwo+IFlhaG9vISBEU0wgliBTb21ldGhpbmcgdG8gd3JpdGUgaG9tZSBhYm91dC4KPiBKdXN0ICQx Ni45OS9tby4gb3IgbGVzcy4KPiBkc2wueWFob28uY29tCj4KPiBfX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IGd0ay1saXN0IG1haWxpbmcgbGlzdAo+IGd0 ay1saXN0QGdub21lLm9yZwo+IGh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3RpbmZv L2d0ay1saXN0Cj4K ------=_Part_33322_31433362.1133964135043 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: base64 Content-Disposition: inline PGRpdj5UcnkgdXNpbmcgZysrIGluc3RlYWQgb2YgZ2NjIGFuZCB0aGluZ3Mgd2lsbCBiZSBmaW5l LjwvZGl2Pgo8ZGl2PiZuYnNwOzwvZGl2Pgo8ZGl2PkhvcGUgdGhpcyBoZWxwcyEhPC9kaXY+Cjxk aXY+WWFzaDxicj48YnI+Jm5ic3A7PC9kaXY+CjxkaXY+PHNwYW4gY2xhc3M9ImdtYWlsX3F1b3Rl Ij5PbiAxMi83LzA1LCA8YiBjbGFzcz0iZ21haWxfc2VuZGVybmFtZSI+U3RveWFuIGthcmFuZmls b3Y8L2I+ICZsdDs8YSBocmVmPSJtYWlsdG86a2Fzb2Z0bmV3QHlhaG9vLmNvbSI+a2Fzb2Z0bmV3 QHlhaG9vLmNvbTwvYT4mZ3Q7IHdyb3RlOjwvc3Bhbj4KPGJsb2NrcXVvdGUgY2xhc3M9ImdtYWls X3F1b3RlIiBzdHlsZT0iUEFERElORy1MRUZUOiAxZXg7IE1BUkdJTjogMHB4IDBweCAwcHggMC44 ZXg7IEJPUkRFUi1MRUZUOiAjY2NjIDFweCBzb2xpZCI+SGksIEkgd3JvdGUgYSBzbWFsbCBwcm9n cmFtIHRoYXQgaGFzIGJlZW4gd29ya2luZyBhbmQ8YnI+Y29tcGlsaW5nIG9uIFNVU0UgOS4yICh3 aXRoIGdjYyAzLngpLCBidXQgbm93IHNhbWUKPGJyPnByb2dyYW0gZG9lcyBub3QgbGluayB3ZWxs IG9uIFNVU0UgMTAgKGdjYyA0KS4gSGVyZSBpczxicj50aGUgY29tbWFuZCBsaW5lIGFuZCBlcnJv cjo8YnI+PGJyPmdjYyAtV2FsbCAtZyB0ZXN0X3dpbmRvdy5jcHAgLW8gdGVzdCBgcGtnLWNvbmZp Zzxicj4tLWNmbGFncyBndGsrLTIuMCAtLWxpYnMgZ3RrKy0yLjBgPGJyPjxicj4vdG1wL2NjNE1p NFVYLm86KC5laF9mcmFtZSsweDExKTogdW5kZWZpbmVkIHJlZmVyZW5jZQo8YnI+dG8gYF9fZ3h4 X3BlcnNvbmFsaXR5X3YwJzxicj48YnI+SSB3aWxsIGFwcHJlY2lhdGUgYW55IGhlbHAuPGJyPjxi cj5TaW5jZXJlbHk6IFN0b3lhbiBLYXJhbmZpbG92PGJyPjxicj48YnI+PGJyPl9fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXzxicj5ZYWhvbyEgRFNMIJYgU29tZXRoaW5n IHRvIHdyaXRlIGhvbWUgYWJvdXQuPGJyPkp1c3QgJDE2Ljk5L21vLiBvciBsZXNzLgo8YnI+PGEg aHJlZj0iaHR0cDovL2RzbC55YWhvby5jb20iPmRzbC55YWhvby5jb208L2E+PGJyPjxicj5fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXzxicj5ndGstbGlzdCBt YWlsaW5nIGxpc3Q8YnI+PGEgaHJlZj0ibWFpbHRvOmd0ay1saXN0QGdub21lLm9yZyI+Z3RrLWxp c3RAZ25vbWUub3JnPC9hPjxicj48YSBocmVmPSJodHRwOi8vbWFpbC5nbm9tZS5vcmcvbWFpbG1h bi9saXN0aW5mby9ndGstbGlzdCI+Cmh0dHA6Ly9tYWlsLmdub21lLm9yZy9tYWlsbWFuL2xpc3Rp bmZvL2d0ay1saXN0PC9hPjxicj48L2Jsb2NrcXVvdGU+PC9kaXY+PGJyPgo= ------=_Part_33322_31433362.1133964135043-- From kitana.ash@gmail.com Wed Dec 7 14:50:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org. Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89E723B3854 for ; Wed, 7 Dec 2005 14:50:54 -0500 (EST) 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 03851-09 for ; Wed, 7 Dec 2005 14:50:50 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id E91273B382C for ; Wed, 7 Dec 2005 14:50:48 -0500 (EST) Received: by zproxy.gmail.com with SMTP id z3so437312nzf for ; Wed, 07 Dec 2005 11:50:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mWgMnyuw9besNhE70aMrGLIyGMP/Bg1PvtsfYXnMxwFOJ8ImFP7GVMeHZ8lCXGN98yK+EeikgFKU/uK9LMrM97IVnHMepAkuJ3bLLxWM+pct1CsMuPZdw5ARb/1V7+cStDc9HK3MiBga40ba7fk8u0nw09xe6VYHlJ/ElUnZOJE= Received: by 10.36.25.18 with SMTP id 18mr1867139nzy; Wed, 07 Dec 2005 11:50:47 -0800 (PST) Received: by 10.36.66.17 with HTTP; Wed, 7 Dec 2005 11:50:47 -0800 (PST) Message-ID: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> Date: Wed, 7 Dec 2005 13:50:47 -0600 From: Susan Jimenez To: gtk-list@gnome.org. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2570_33193076.1133985047902" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.126 tagged_above=-999 required=2 tests=[BAYES_01, HTML_MESSAGE, PLING_PLING] X-Spam-Score: 2.126 X-Spam-Level: ** X-Spam-Flag: YES Cc: Subject: PLEASE HELP ME!!!! X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 19:50:54 -0000 ------=_Part_2570_33193076.1133985047902 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This place.....is so confusing.It started out,my just wanting to install a new GIMP....NOW I have to come to GTK to get a new Runtime Enviornment!But....how do you download it?I keep looking and looking....I know were the downloads are....but they just give me pages!!!!WTF!?!?!?! I'm used to the window popping up asking to "Save" or "Run" but all I get here is some page with all these links and stuff!!!Can someone PLEASE help me!I've never been so confused!!!! -- ~Kitana Ash~ ------=_Part_2570_33193076.1133985047902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
This place.....is so confusing.It started out,my just wanting to insta= ll a new GIMP....NOW I have to come to GTK to get a new Runtime Enviornment= !But....how do you download it?I keep looking and looking....I know were th= e downloads are....but they just give me pages!!!!WTF!?!?!?!
I'm used to the window popping up asking to "Save" or "= Run" but all I get here is some page with all these links and stuff!!!= Can someone PLEASE help me!I've never been so confused!!!!

--
~Kitana Ash~
------=_Part_2570_33193076.1133985047902-- From csaavedra@alumnos.utalca.cl Wed Dec 7 15:05:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EF723B0FE2 for ; Wed, 7 Dec 2005 15:05:35 -0500 (EST) 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 05457-04 for ; Wed, 7 Dec 2005 15:05:34 -0500 (EST) Received: from mail.inf.tu-dresden.de (mail.inf.tu-dresden.de [141.76.2.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CCB43B0F0E for ; Wed, 7 Dec 2005 15:05:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.inf.tu-dresden.de (8.12.10/8.12.10) with ESMTP id jB7K5Uup018762; Wed, 7 Dec 2005 21:05:30 +0100 (CET) Received: from mail.inf.tu-dresden.de ([127.0.0.1]) by localhost (mail.inf.tu-dresden.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18528-01; Wed, 7 Dec 2005 21:05:30 +0100 (CET) Received: from dijkstra.wh8.tu-dresden.de (B202a.WH8.tu-dresden.de [141.30.225.153]) by mail.inf.tu-dresden.de (8.12.10/8.12.10) with ESMTP id jB7K5TnW018750; Wed, 7 Dec 2005 21:05:29 +0100 (CET) From: Claudio Saavedra To: Susan Jimenez In-Reply-To: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> References: <673b26370512071150i55b0b273g6530a00348d71a5@mail.gmail.com> Content-Type: text/plain Date: Wed, 07 Dec 2005 21:05:27 +0100 Message-Id: <1133985927.19619.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd_new at inf.tu-dresden.de X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.338 tagged_above=-999 required=2 tests=[BAYES_00, PLING_PLING] X-Spam-Score: -1.338 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: PLEASE HELP ME!!!! X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 20:05:35 -0000 On Wed, 2005-12-07 at 13:50 -0600, Susan Jimenez wrote: > This place.....is so confusing.It started out,my just wanting to > install a new GIMP....NOW I have to come to GTK to get a new Runtime > Enviornment!But....how do you download it?I keep looking and > looking....I know were the downloads are....but they just give me > pages!!!!WTF!?!?!?! > I'm used to the window popping up asking to "Save" or "Run" but all I > get here is some page with all these links and stuff!!!Can someone > PLEASE help me!I've never been so confused!!!! Dear Kitana, Please breath, sit, and relax. Then, click the link above, and wait 5 seconds. http://prdownloads.sourceforge.net/gimp-win/gtk% 2B-2.6.9-setup.zip?use_mirror=switch Your "save, run" dialog will appear. Greetings, Claudio -- Claudio Saavedra From jborrone@saa.ars.usda.gov Wed Dec 7 18:08:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE9923B1944 for ; Wed, 7 Dec 2005 18:08:50 -0500 (EST) 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 21339-02 for ; Wed, 7 Dec 2005 18:08:48 -0500 (EST) Received: from saa.ars.usda.gov (saa.ars.usda.gov [199.133.64.246]) by menubar.gnome.org (Postfix) with ESMTP id 1093B3B1984 for ; Wed, 7 Dec 2005 18:08:47 -0500 (EST) Received: from (199.133.64.246) by DA32USMDGW1_AVS01.usda.gov via smtp id 6eed_e967635c_6742_11da_941f_001143d36648; Wed, 07 Dec 2005 17:00:04 +0000 Received: from SAA-GATE-MTA by saa.ars.usda.gov with Novell_GroupWise; Wed, 07 Dec 2005 18:08:44 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Wed, 07 Dec 2005 18:08:10 -0500 From: "James Borrone" To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 23:08:51 -0000 I am trying to determine how to find the following files, they are not presently on my machine and ws wondering if they are downloadable. libgdk.a libglib.a libgmodule.a libgtk.a I am not a programmer, and have very limited knowledge of the UNIX/LINUX environment,, so basically if your mom wold not understand what you are writing neither would I. I am just trying to get a program to work, and it needs to find these files. Thanks James Borrone From hdnews@gawab.com Wed Dec 7 18:47:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5784E3B3617 for ; Wed, 7 Dec 2005 18:47:20 -0500 (EST) 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 24766-08 for ; Wed, 7 Dec 2005 18:47:18 -0500 (EST) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by menubar.gnome.org (Postfix) with ESMTP id E13783B2787 for ; Wed, 7 Dec 2005 18:47:17 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr12.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB7NlGJL098795 for ; Thu, 8 Dec 2005 00:47:17 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jB7NlFfo008026 for ; Thu, 8 Dec 2005 00:47:16 +0100 Message-ID: <4397747F.7080403@gawab.com> Date: Thu, 08 Dec 2005 00:47:11 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: reference count of textbuffer increases with each paste? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 23:47:20 -0000 L.S., I'm experiencing the following on WIN32: When I do Copy; Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste From within the same gtktextbuffer, I see a dramatic increase of the reference count of the GtkTextBuffer. If I do analogous: Copy from notepad; Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste, Paste I see no increase of the reference count at all. Is this a feature or a bug of GtkTextBuffer? Best whishes, Hans Oesterholt-Dijkema From xyberblue@gmail.com Wed Dec 7 20:51:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B9B43B27B6 for ; Wed, 7 Dec 2005 20:51:45 -0500 (EST) 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 32608-06 for ; Wed, 7 Dec 2005 20:51:43 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by menubar.gnome.org (Postfix) with ESMTP id 3D8803B27DE for ; Wed, 7 Dec 2005 20:51:43 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 67so877720wri for ; Wed, 07 Dec 2005 17:51:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=k2H24N/572wmkB+oZDwzGRnJKOpUPaBgLyy7ZpVpbCYk8YMUOFxOaM+Rrp19xOTGisrY/0vyc8jKpg3t7hLQtRm0CqMcIO1ATyac0axFJ/XjA7nrrfbAN8nQy+nbU2Rc9u/s+GnffGmm63yy31T9I0CGL0eDAAgBfA87hIcxeB8= Received: by 10.54.135.3 with SMTP id i3mr1313878wrd; Wed, 07 Dec 2005 17:51:42 -0800 (PST) Received: by 10.54.156.19 with HTTP; Wed, 7 Dec 2005 17:51:42 -0800 (PST) Message-ID: <45ea3f390512071751k2c954d0xf0cf19b377aaeef5@mail.gmail.com> Date: Thu, 8 Dec 2005 09:51:42 +0800 From: Xyber Blue To: James Borrone In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6229_18974535.1134006702458" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 01:51:45 -0000 ------=_Part_6229_18974535.1134006702458 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Those are the static libraries for gtk and glib. You can find these files o= n /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk. You can create these files by downloading the gtk source at www.gtk.org On 12/8/05, James Borrone wrote: > > I am trying to determine how to find the following files, they are not > presently on my machine and ws wondering if they are downloadable. > > libgdk.a > libglib.a > libgmodule.a > libgtk.a > > I am not a programmer, and have very limited knowledge of the UNIX/LINUX > environment,, so basically if your mom wold not understand what you are > writing neither would I. I am just trying to get a program to work, and > it needs to find these files. > > Thanks > > James Borrone > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ------=_Part_6229_18974535.1134006702458 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Those are the static libraries for gtk and glib. You can find these files on /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk.

You can create these files by downloading the gtk source at www.gtk.org

On = 12/8/05, James Borrone < jborrone@saa.ars.usda.gov> wrote:
I am trying to determine how to find the foll= owing files, they are not
presently on my machine and ws wondering if they are downloadable.
<= br>libgdk.a
libglib.a
libgmodule.a
libgtk.a

I am not a prog= rammer, and have very limited knowledge of the UNIX/LINUX
environment,, = so basically if your mom wold not understand what you are
writing neither would I.  I am just trying to get a program t= o work, and
it needs to find these files.

Thanks

James Bor= rone
_______________________________________________
gtk-list mailing= list
gtk-list@gnome.org
http://mail.gnome.org/mail= man/listinfo/gtk-list

------=_Part_6229_18974535.1134006702458-- From igorbounov@topazelectro.ru Thu Dec 8 00:00:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 309CE3B2866 for ; Thu, 8 Dec 2005 00:00:56 -0500 (EST) 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 12529-07 for ; Thu, 8 Dec 2005 00:00:53 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id D61653B2907 for ; Thu, 8 Dec 2005 00:00:16 -0500 (EST) Received: (qmail 5763 invoked by uid 7801); 8 Dec 2005 04:55:33 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.087314 secs); 08 Dec 2005 04:55:33 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.087314 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 8 Dec 2005 04:55:32 -0000 Message-ID: <4397BDF1.6080701@topazelectro.ru> Date: Thu, 08 Dec 2005 08:00:33 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_TK] X-Spam-Score: -1.834 X-Spam-Level: Cc: Subject: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 05:00:56 -0000 Tell me, please, if there is any way to get a Win API application instance handle in a gtkmm application just as it is needed in this function: HWND MCIWndCreate(HWND hwndParent, HINSTANCE hInstance, DWORD dwStyle, LPSTR szFile); Igor Gorbounov From sibakhan@gmail.com Thu Dec 8 04:02:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDC5E3B39C9 for ; Thu, 8 Dec 2005 04:02:43 -0500 (EST) 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 28193-02 for ; Thu, 8 Dec 2005 04:02:39 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.206]) by menubar.gnome.org (Postfix) with ESMTP id 12B213B39BB for ; Thu, 8 Dec 2005 04:02:34 -0500 (EST) Received: by xproxy.gmail.com with SMTP id h28so881646wxd for ; Thu, 08 Dec 2005 01:02:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MK4iyhN/0eTD3x7wBboL8iwmqwCSSSGGLGO4MOQg6PcZ5lf54pVw0BbYu/uEDR7rfl4CSiPF2ky6IOncZYsDwkC/3DLqw+te5uFDCUBK56CWJuMVJcdpMbNnG26T9PW8DIEjProATN0mkYJEYwjEzztgIOhn2NMKE/eOdlJmAgM= Received: by 10.70.11.15 with SMTP id 15mr3482303wxk; Thu, 08 Dec 2005 01:02:33 -0800 (PST) Received: by 10.70.10.13 with HTTP; Thu, 8 Dec 2005 01:02:33 -0800 (PST) Message-ID: Date: Thu, 8 Dec 2005 09:02:33 +0000 From: ibrar ahmed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Question X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 09:02:44 -0000 hello all, I have problem to load a pixmap with text in combobox. i have done like this but there is warning which is write down. store =3D gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING); =09=09icon =3D gdk_pixbuf_new_from_file("Compression_Settings16.ico", &erro= r); =09=09=09gtk_list_store_append (store, &iter); =09 =09gtk_list_store_set (store, &iter, =09=09=09 PIXBUF_COL, icon, =09=09=09 TEXT_COL, "C:/", =09=09=09 -1); GLib-GObject-WARNING **: unable to set property `text' of type `gchararray' from value of type `GdkPixbuf' Output is display center of the combobox, how i can control it also. thanx for any query! Ahmed From gnome-gtk-list@m.gmane.org Thu Dec 8 07:42:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB2063B3A9F for ; Thu, 8 Dec 2005 07:42:16 -0500 (EST) 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 11951-04 for ; Thu, 8 Dec 2005 07:42:14 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 14F693B3AA3 for ; Thu, 8 Dec 2005 07:42:14 -0500 (EST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1EkL51-0001ZI-Uv for gtk-list@gnome.org; Thu, 08 Dec 2005 13:40:59 +0100 Received: from oasis.sbet.com ([193.111.204.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2005 13:40:59 +0100 Received: from met by oasis.sbet.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Dec 2005 13:40:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-list@gnome.org From: Dmitry Met Date: Thu, 08 Dec 2005 14:09:39 +0200 Lines: 10 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: oasis.sbet.com User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: gtk and image and memory leak X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 12:42:17 -0000 Hello. I am trying to write simle gtk apllication like screensaver. I have an animated gif of size 3.8 megs with 140 frames. I need simple show this animationa in one window. After application starts, program gets all free memory (300 megs) and runs slowly. I was read all posts contain word "image", "animation" and understand that i need big amount of memory and good CPU. But what is the basic configuration of computer? I need to show in cycle 8-10 animations (animated gifs or jpegs in cycle). And maybe matter is that i am use python gtk? Thanks for any response. From emeyer@eskimo.com Wed Dec 7 14:12:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D45D3B37DC for ; Wed, 7 Dec 2005 14:12:45 -0500 (EST) 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 00798-08 for ; Wed, 7 Dec 2005 14:12:42 -0500 (EST) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.62]) by menubar.gnome.org (Postfix) with ESMTP id 835843B2942 for ; Wed, 7 Dec 2005 14:12:42 -0500 (EST) Received: from 24-136-4-5.demp-bsr1.chi-demp.il.cable.rcn.com (HELO [192.168.1.101]) ([24.136.4.5]) by smtp02.mrf.mail.rcn.net with ESMTP; 07 Dec 2005 14:12:39 -0500 X-IronPort-AV: i="3.99,226,1131339600"; d="scan'208"; a="181197978:sNHT30223896" Message-ID: <43973428.30106@eskimo.com> Date: Wed, 07 Dec 2005 13:12:40 -0600 From: Eddie Meyer User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: X-Mailman-Approved-At: Thu, 08 Dec 2005 08:34:55 -0500 Subject: Announcement: Building new C resource - There is a forum to discuss GTK+ programming X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 19:12:45 -0000 Hi all, First, a little background -- I am in the process of teaching myself how to program in C. While doing this, I decided that I would try and give back to the Internet community by building some C resources on my homepage. Note: My homepage is only a couple of months old, so don't expect too much from it at this point. I came across GTK+ as a great library to use while programming in C. I intend to add a link to the GTK+ website from my 'C Programming Page'. My website also includes a forum area (which is only one week old) -- It already had a forum dedicated to C program, but I thought you guys might like to know that I just created a dedicated forum for discussions related to GTK+ programming. Please feel free to check it out. I thought you might like to know that this resource was available. To the GTK+ team, thanks for all your hard work on this library. Thanks Eddie -- Eddie Meyer Homepage: http://www.eskimo.com/~emeyer From jborrone@saa.ars.usda.gov Thu Dec 8 12:34:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB2AB3B2A07 for ; Thu, 8 Dec 2005 12:34:58 -0500 (EST) 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 03416-09 for ; Thu, 8 Dec 2005 12:34:57 -0500 (EST) Received: from saa.ars.usda.gov (saa.ars.usda.gov [199.133.64.246]) by menubar.gnome.org (Postfix) with ESMTP id 5D83B3B2258 for ; Thu, 8 Dec 2005 12:34:56 -0500 (EST) Received: from (199.133.64.246) by DA32USMDGW1_AVS01.usda.gov via smtp id 6b22_6f8be49a_67dd_11da_9eba_001143d36648; Thu, 08 Dec 2005 11:26:12 +0000 Received: from SAA-GATE-MTA by saa.ars.usda.gov with Novell_GroupWise; Thu, 08 Dec 2005 12:34:54 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Thu, 08 Dec 2005 12:34:37 -0500 From: "James Borrone" To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part6042B6BD.0__=" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Subject: Fwd: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 17:34:59 -0000 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part6042B6BD.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --=__Part6042B6BD.0__= Content-Type: message/rfc822 Date: Thu, 08 Dec 2005 12:32:08 -0500 From: "James Borrone" To: Cc: Subject: Re: lost files Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I tried that. After installing GTK, I tried launching the program, and it came up with the same error message, that it could not find those files. I looked for the files in the installed GTK program, and could not locate them james >>> Xyber Blue 12/07/05 8:51 PM >>> Those are the static libraries for gtk and glib. You can find these files on /usr/lib directory since linux distros bundled already these packages and that if you installed the gtk. You can create these files by downloading the gtk source at www.gtk.org On 12/8/05, James Borrone wrote: > > I am trying to determine how to find the following files, they are not > presently on my machine and ws wondering if they are downloadable. > > libgdk.a > libglib.a > libgmodule.a > libgtk.a > > I am not a programmer, and have very limited knowledge of the UNIX/LINUX > environment,, so basically if your mom wold not understand what you are > writing neither would I. I am just trying to get a program to work, and > it needs to find these files. > > Thanks > > James Borrone > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=__Part6042B6BD.0__=-- From ragnacruxer@gmail.com Thu Dec 8 17:37:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 801D43B1A8C for ; Thu, 8 Dec 2005 17:37:54 -0500 (EST) 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 24759-04 for ; Thu, 8 Dec 2005 17:37:46 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by menubar.gnome.org (Postfix) with ESMTP id 9D4FC3B1C07 for ; Thu, 8 Dec 2005 17:37:26 -0500 (EST) Received: by nproxy.gmail.com with SMTP id h2so246289nfe for ; Thu, 08 Dec 2005 14:37:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:organization:x-mailer:mime-version:content-type; b=UXX9aZr4efZWFRNJSTOxQnFyfwtmdRKFlW7FJy5AgKbVI8xSlto38qXkkXbIVSW/GBJb/3v2yNTK7XQSTDRXG6LhXyx8Hpfn6jRm6x0CBJIkbkfxpQ555kliFTlK5w+KI+fQamI9K2kWw2QmYqUoLZqSYMUYzodVg803BXzrgHU= Received: by 10.48.219.16 with SMTP id r16mr359075nfg; Thu, 08 Dec 2005 14:37:25 -0800 (PST) Received: from eleclipse ( [87.7.22.158]) by mx.gmail.com with ESMTP id r34sm740423nfc.2005.12.08.14.37.24; Thu, 08 Dec 2005 14:37:25 -0800 (PST) Date: Thu, 8 Dec 2005 23:37:24 +0100 From: Stefano Esposito To: gtk-app-devel-list@gnome.org Message-Id: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> Organization: - X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 22:37:55 -0000 --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, in my app i need to implement a spreedsheet-like widget (i.e. a GtkTreeView= with a GtkListStore which shows a number of empty lines to be filled by th= e user). Any hints? --=20 "Solo due cose sono infinite: l'universo e la stupidit=E0 umana... e per qu= anto riguarda l'universo non sono sicuro" Albert Einstein # GnuPG/PGP Key Id: 0x5646B7D4 --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmLWq2LRRrlZGt9QRAqi+AJ9aSbIIwThOQXhulkWQ6p+DiFDiSQCeLktb pquGnFCtBn/bJBAwa/qdq18= =dOzH -----END PGP SIGNATURE----- --Signature=_Thu__8_Dec_2005_23_37_24_+0100_F_JcI+YBLWR+RUfH-- From ragnacruxer@gmail.com Thu Dec 8 19:43:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 505B83B16F3 for ; Thu, 8 Dec 2005 19:43:40 -0500 (EST) 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 01547-04 for ; Thu, 8 Dec 2005 19:43:37 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 280FF3B1463 for ; Thu, 8 Dec 2005 19:43:36 -0500 (EST) Received: by zproxy.gmail.com with SMTP id l1so788567nzf for ; Thu, 08 Dec 2005 16:43:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:organization:x-mailer:mime-version:content-type; b=o8emjuIaLu8y53rNMJdqxDCI5fNSfV33jTNAM9O4q93zASjd59Wfz24W4lfhmmdrBoCje6JwklcCBaVPCGZ8TwU3Qtb41HpJYn+OaBEOqEbBEC9iNRcZUcHu5vGATKjcUjbzb5dYR1qJapckJTtulxi8GfwO6cjuwCqrdAH31KU= Received: by 10.64.203.5 with SMTP id a5mr3394104qbg; Thu, 08 Dec 2005 16:43:35 -0800 (PST) Received: from eleclipse ( [87.7.22.158]) by mx.gmail.com with ESMTP id o32sm723772qbe.2005.12.08.16.43.06; Thu, 08 Dec 2005 16:43:32 -0800 (PST) Date: Fri, 9 Dec 2005 01:42:55 +0100 From: Stefano Esposito To: Adrian Feiguin Message-Id: <20051209014255.7bd92b52.ragnacruxer@gmail.com> In-Reply-To: <4398C3E8.5090806@kitp.ucsb.edu> References: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> <4398C3E8.5090806@kitp.ucsb.edu> Organization: - X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.8; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 00:43:40 -0000 --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 08 Dec 2005 15:38:16 -0800 Adrian Feiguin wrote: > Check out gtksheet. It's part of gtkextra : http://gtkextra.sourceforge.n= et > Enjoy, > That's excatly what I was looking for. Thanks for the tip :) Bye Stefano --=20 "Solo due cose sono infinite: l'universo e la stupidit=E0 umana... e per qu= anto riguarda l'universo non sono sicuro" Albert Einstein # GnuPG/PGP Key Id: 0x5646B7D4 --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmNMY2LRRrlZGt9QRAnfHAKCB7PcP5fjl/fZAY7wclyjRi1hcAgCdGr5M +HKLHU/Pwai9kgvw+E0ogUA= =h04G -----END PGP SIGNATURE----- --Signature=_Fri__9_Dec_2005_01_42_55_+0100_v0nPPiuXSxW7D28I-- From xyberblue@gmail.com Thu Dec 8 21:04:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2B6E3B0841 for ; Thu, 8 Dec 2005 21:04:16 -0500 (EST) 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 06702-10 for ; Thu, 8 Dec 2005 21:04:14 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id E29943B0A16 for ; Thu, 8 Dec 2005 21:04:13 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 67so1146548wri for ; Thu, 08 Dec 2005 18:04:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=nZQKtc3AKTlDUR4TuZcy5SuDAiiXLRT4082VHQqyVy1iaMUre2pfbXMaortTZ+4IQ/VUdjHboClxiZU3byDyrehdre74GJg2305wBxq0KDgwqsEC6LR1VjjKen3IJyNMnH3+GK9wSJ8CxbzQGLA+KLrioiQ+D5pZnFWGVQEElS8= Received: by 10.54.80.1 with SMTP id d1mr3970705wrb; Thu, 08 Dec 2005 18:04:12 -0800 (PST) Received: by 10.54.156.19 with HTTP; Thu, 8 Dec 2005 18:04:12 -0800 (PST) Message-ID: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> Date: Fri, 9 Dec 2005 10:04:12 +0800 From: Xyber Blue To: James Borrone In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17764_32144746.1134093852604" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 02:04:17 -0000 ------=_Part_17764_32144746.1134093852604 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you post how you install gtk into your linux??? usually, the default is to the /usr/local/lib... Try this export LD_LIBRARY_PATH=3D{path_to_gtk_prefix}/lib On 12/9/05, James Borrone wrote: > > > > > ---------- Forwarded message ---------- > From: "James Borrone" > To: > Date: Thu, 08 Dec 2005 12:32:08 -0500 > Subject: Re: lost files > I tried that. After installing GTK, I tried launching the program, and > it came up with the same error message, that it could not find those > files. I looked for the files in the installed GTK program, and could > not locate them > > james > > >>> Xyber Blue 12/07/05 8:51 PM >>> > Those are the static libraries for gtk and glib. You can find these > files on > /usr/lib directory since linux distros bundled already these packages > and > that if you installed the gtk. > > You can create these files by downloading the gtk source at www.gtk.org > > On 12/8/05, James Borrone wrote: > > > > I am trying to determine how to find the following files, they are not > > presently on my machine and ws wondering if they are downloadable. > > > > libgdk.a > > libglib.a > > libgmodule.a > > libgtk.a > > > > I am not a programmer, and have very limited knowledge of the > UNIX/LINUX > > environment,, so basically if your mom wold not understand what you > are > > writing neither would I. I am just trying to get a program to work, > and > > it needs to find these files. > > > > Thanks > > > > James Borrone > > _______________________________________________ > > 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 > > > ------=_Part_17764_32144746.1134093852604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can you post how you install gtk into your linux???

usually, the default is to the /usr/local/lib...
Try this

export LD_LIBRARY_PATH=3D{path_to_gtk_prefix}/lib
On 12/9/05, James Borrone <= jborrone@saa.ars.usda.gov&= gt; wrote:


---------- Forwarded message ----------
From: "James Borrone"= ; < jborrone@saa.ars.usda.gov&= gt;
To: <xyberblue@gmail.com>
Date: Thu, 08 Dec 2005 12:32:08 -0500
Subject: Re: lost files<= br> I tried that.  After installing GTK, I tried launching the progra= m, and
it came up with the same error message, that it could not find th= ose
files.  I looked for the files in the installed GTK progra= m, and could
not locate them

james

>>> Xyber Blue <
xyberblue@gmail.com> 12/07/05 8:51 PM &g= t;>>
Those are the static libraries for gtk and glib. You can find= these
files on
/usr/lib directory since linux distros bundled already thes= e packages
and
that if you installed the gtk.

You can create t= hese files by downloading the gtk source at www.gtk.org

On 12/8/05, James Borrone <jborrone@saa.ars.usda.gov> wrote:
>
= > I am trying to determine how to find the following files, they are not
> presently on my machine and ws wondering if they are downloadable.=
>
> libgdk.a
> libglib.a
> libgmodule.a
> li= bgtk.a
>
> I am not a programmer, and have very limited knowled= ge of the
UNIX/LINUX
> environment,, so basically if your mom wold not unde= rstand what you
are
> writing neither would I.  I am jus= t trying to get a program to work,
and
> it needs to find these fi= les.
>
> Thanks
>
> James Borrone
> _________________= ______________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>



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



------=_Part_17764_32144746.1134093852604-- From igorbounov@topazelectro.ru Fri Dec 9 00:01:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D89CC3B11A1 for ; Fri, 9 Dec 2005 00:01:44 -0500 (EST) 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 17598-03 for ; Fri, 9 Dec 2005 00:01:41 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 2B5053B10CA for ; Fri, 9 Dec 2005 00:01:40 -0500 (EST) Received: (qmail 21215 invoked by uid 7801); 9 Dec 2005 04:56:55 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.096261 secs); 09 Dec 2005 04:56:55 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.096261 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 04:56:54 -0000 Message-ID: <43990FC4.1030408@topazelectro.ru> Date: Fri, 09 Dec 2005 08:01:56 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: Subject: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 05:01:45 -0000 Hi, All! I need to implement some kind of movie player in my gtk+ win32 app. Any hints, please? Igor Gorbounov From jean.brefort@normalesup.org Fri Dec 9 02:30:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3942C3B3CA7 for ; Fri, 9 Dec 2005 02:30:17 -0500 (EST) 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 26372-01 for ; Fri, 9 Dec 2005 02:30:15 -0500 (EST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id ABF523B3CA2 for ; Fri, 9 Dec 2005 02:30:14 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id C15134AB4F; Fri, 9 Dec 2005 08:30:13 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: Xyber Blue In-Reply-To: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> References: <45ea3f390512081804o2c040903j7fdf7e25c766b093@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 09 Dec 2005 08:26:22 +0100 Message-Id: <1134113183.8441.5.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Re: lost files X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 07:30:17 -0000 lib*.a are static libraries which are useful when building a statistically linked executable. They are not used at run time. Many distribs ship them in dev packages. Le vendredi 09 décembre 2005 à 10:04 +0800, Xyber Blue a écrit : > Can you post how you install gtk into your linux??? > > usually, the default is to the /usr/local/lib... > Try this > > export LD_LIBRARY_PATH={path_to_gtk_prefix}/lib > On 12/9/05, James Borrone wrote: > > > > ---------- Forwarded message ---------- > From: "James Borrone" < jborrone@saa.ars.usda.gov> > To: > Date: Thu, 08 Dec 2005 12:32:08 -0500 > Subject: Re: lost files > I tried that. After installing GTK, I tried launching the > program, and > it came up with the same error message, that it could not find > those > files. I looked for the files in the installed GTK program, > and could > not locate them > > james > > >>> Xyber Blue 12/07/05 8:51 PM >>> > Those are the static libraries for gtk and glib. You can find > these > files on > /usr/lib directory since linux distros bundled already these > packages > and > that if you installed the gtk. > > You can create these files by downloading the gtk source at > www.gtk.org > > On 12/8/05, James Borrone wrote: > > > > I am trying to determine how to find the following files, > they are not > > presently on my machine and ws wondering if they are > downloadable. > > > > libgdk.a > > libglib.a > > libgmodule.a > > libgtk.a > > > > I am not a programmer, and have very limited knowledge of > the > UNIX/LINUX > > environment,, so basically if your mom wold not understand > what you > are > > writing neither would I. I am just trying to get a program > to work, > and > > it needs to find these files. > > > > Thanks > > > > James Borrone > > _______________________________________________ > > 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 > > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From murrayc@murrayc.com Fri Dec 9 03:13:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 245C73B1908; Fri, 9 Dec 2005 03:13:13 -0500 (EST) 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 29441-05; Fri, 9 Dec 2005 03:13:10 -0500 (EST) Received: from webmail3.sd.dreamhost.com (webmail3.sd.dreamhost.com [64.111.100.15]) by menubar.gnome.org (Postfix) with ESMTP id 13B683B0F4F; Fri, 9 Dec 2005 03:13:10 -0500 (EST) Received: from webmail.murrayc.com (localhost [127.0.0.1]) by webmail3.sd.dreamhost.com (Postfix) with ESMTP id 0CE1C140EB; Fri, 9 Dec 2005 00:13:07 -0800 (PST) Received: from 217.72.192.194 (SquirrelMail authenticated user murrayc@murrayc.com) by webmail.murrayc.com with HTTP; Fri, 9 Dec 2005 09:13:07 +0100 (CET) Message-ID: <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> In-Reply-To: <43990FC4.1030408@topazelectro.ru> References: <43990FC4.1030408@topazelectro.ru> Date: Fri, 9 Dec 2005 09:13:07 +0100 (CET) From: "Murray Cumming" To: "Igor Gorbounov" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 08:13:13 -0000 > Hi, All! > I need to implement some kind of movie player in my gtk+ win32 app. Any > hints, please? > Igor Gorbounov You could see Totem's source code. Really, someone should work on the gstreamer C++ bindings. Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From igorbounov@topazelectro.ru Fri Dec 9 04:13:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6DB73B140B for ; Fri, 9 Dec 2005 04:13:16 -0500 (EST) 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 02016-05 for ; Fri, 9 Dec 2005 04:13:11 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 1783B3B0B51 for ; Fri, 9 Dec 2005 04:13:10 -0500 (EST) Received: (qmail 12632 invoked by uid 7801); 9 Dec 2005 09:08:25 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.090423 secs); 09 Dec 2005 09:08:25 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.090423 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 09:08:24 -0000 Message-ID: <43994AB6.2090705@topazelectro.ru> Date: Fri, 09 Dec 2005 12:13:26 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Murray Cumming References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> In-Reply-To: <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:13:16 -0000 Murray Cumming wrote: > [...] > >You could see Totem's source code. > > Thanks, i've almost forgotten about this player. >Really, someone should work on the gstreamer C++ bindings. > > > I've read recently that Arpad Gereoffy, the author of Mplayer, intended to propose the mplayer's API as a standard for movie player API in Linuxes. I've tried hard but haven't found any glimpse of documentation for mplayer API. But mplayer is a great application. What about totem - it seems to me very weak as compared with mplayer. Perhaps it just cannot implement most of gstreamer's movie features. Igor Gorbounov From igorbounov@topazelectro.ru Fri Dec 9 04:18:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3EA7E3B3CD1 for ; Fri, 9 Dec 2005 04:18:32 -0500 (EST) 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 02433-08 for ; Fri, 9 Dec 2005 04:18:28 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 110543B08EC for ; Fri, 9 Dec 2005 04:18:20 -0500 (EST) Received: (qmail 13431 invoked by uid 7801); 9 Dec 2005 09:13:36 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.087315 secs); 09 Dec 2005 09:13:36 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.087315 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 9 Dec 2005 09:13:34 -0000 Message-ID: <43994BED.7080204@topazelectro.ru> Date: Fri, 09 Dec 2005 12:18:37 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: GTKMM Lists , gtk-list References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> <43994AB6.2090705@topazelectro.ru> In-Reply-To: <43994AB6.2090705@topazelectro.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 09:18:32 -0000 Igor Gorbounov wrote: > [...] > What about totem - it seems to me very weak as compared with mplayer. > Perhaps it just > cannot implement most of gstreamer's movie features. > Sorry, it is based on xine. Igor Gorbounov From zboszor@freemail.hu Fri Dec 9 08:22:26 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 360D83B3EEA for ; Fri, 9 Dec 2005 08:22:26 -0500 (EST) 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 23980-10 for ; Fri, 9 Dec 2005 08:22:22 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id DF1D33B3E71 for ; Fri, 9 Dec 2005 08:22:21 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id E3CB5891753 for ; Fri, 9 Dec 2005 15:24:45 +0100 (CET) Message-ID: <43998C8A.3080404@freemail.hu> Date: Fri, 09 Dec 2005 14:54:18 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 13:22:26 -0000 Hi, I need to find out whether an instance of a program is already running and possibly unminimize it or bring it above any other windows, so I can prevent an application started again. Is is possible using GTK-1.2, or GTK-2.x, and how? Thanks in advance, Zoltán Böszörményi From mpsuzuki@hiroshima-u.ac.jp Fri Dec 9 09:37:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 528D23B4B22 for ; Fri, 9 Dec 2005 09:37:14 -0500 (EST) 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 31846-08 for ; Fri, 9 Dec 2005 09:37:12 -0500 (EST) Received: from localhost.localnet (P061198174230.ppp.prin.ne.jp [61.198.174.230]) by menubar.gnome.org (Postfix) with SMTP id B5D173B3F74 for ; Fri, 9 Dec 2005 09:37:08 -0500 (EST) Received: (qmail 11585 invoked by alias); 9 Dec 2005 14:36:30 -0000 Received: (qmail 11573 invoked by uid 7791); 9 Dec 2005 14:36:25 -0000 Received: from unknown (HELO centri) (127.0.0.1) by 0 with SMTP; 9 Dec 2005 14:36:25 -0000 Date: Fri, 9 Dec 2005 23:36:25 +0900 From: mpsuzuki@hiroshima-u.ac.jp To: Zoltan Boszormenyi Message-Id: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> In-Reply-To: <43998C8A.3080404@freemail.hu> References: <43998C8A.3080404@freemail.hu> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.948 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, RCVD_IN_DYNABLOCK, RCVD_IN_SORBS, TW_GT] X-Spam-Score: 0.948 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:37:16 -0000 Hi On Fri, 09 Dec 2005 14:54:18 +0100 Zoltan Boszormenyi wrote: >I need to find out whether an instance of a program is already running >and possibly unminimize it or bring it above any other windows, so >I can prevent an application started again. >Is is possible using GTK-1.2, or GTK-2.x, and how? I'm afraid gtk does not have support for that. I think it's role of task manager for desktop (possibly you want to know whether the program is running on same desktop - not on same computer, and reordering of window is the role of desktop manager, not GUI toolkit like GTK). Thus, there might be something helpful in GNOME. However, I don't know you want to use GNOME or anything else. Regards, mpsuzuki From ygupta@gmail.com Fri Dec 9 09:52:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 199BA3B4000 for ; Fri, 9 Dec 2005 09:52:28 -0500 (EST) 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 00977-05 for ; Fri, 9 Dec 2005 09:52:26 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by menubar.gnome.org (Postfix) with ESMTP id 21F803B3FC8 for ; Fri, 9 Dec 2005 09:52:26 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 58so1504587wri for ; Fri, 09 Dec 2005 06:52:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=RfetHiOKs2vHO9JrkmLgkATokfbWMNcmssD9dwHDIKY0V8gA3buTs/4I4+q7G+U5AY7HhIyQgWiTxjRpw5m+dT6w/iOlI50MKgS/4FqBJyVFTLG+qAnxCa+bg7ks0d1YIPpKZAbATkQ1poiUdY7nAvxz46u+Rvl9lhkj8QECK+U= Received: by 10.64.184.10 with SMTP id h10mr3936472qbf; Fri, 09 Dec 2005 06:52:25 -0800 (PST) Received: by 10.64.10.16 with HTTP; Fri, 9 Dec 2005 06:52:25 -0800 (PST) Message-ID: Date: Fri, 9 Dec 2005 20:22:25 +0530 From: Yash Kumar Gupta To: Zoltan Boszormenyi In-Reply-To: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5074_28041844.1134139945341" References: <43998C8A.3080404@freemail.hu> <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.089 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_GT] X-Spam-Score: 1.089 X-Spam-Level: * Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 14:52:28 -0000 ------=_Part_5074_28041844.1134139945341 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is possible using the Xlibrary , that is to say, we need to get the registered handle of any application (if already running) from the X server and if it is not available, we need to register the same so that future instances can find it out by querying X server. Most of the GUI applications on linux use this mechanism to get the already running instance of the same application so that any future instance can connect to it and present the window again to the user. -Yash On 12/9/05, mpsuzuki@hiroshima-u.ac.jp wrote: > > Hi > > On Fri, 09 Dec 2005 14:54:18 +0100 > Zoltan Boszormenyi wrote: > >I need to find out whether an instance of a program is already running > >and possibly unminimize it or bring it above any other windows, so > >I can prevent an application started again. > >Is is possible using GTK-1.2, or GTK-2.x, and how? > > I'm afraid gtk does not have support for that. > I think it's role of task manager for desktop > (possibly you want to know whether the program > is running on same desktop - not on same computer, > and reordering of window is the role of desktop > manager, not GUI toolkit like GTK). > Thus, there might be something helpful in GNOME. > However, I don't know you want to use GNOME or > anything else. > > Regards, > mpsuzuki > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ------=_Part_5074_28041844.1134139945341 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
This is possible using the Xlibrary , that is to say, we need to get t= he registered handle of any application (if already running) from the X ser= ver and if it is not available, we need to register the same so that future= instances can find it out by querying X server.
Most of the GUI applications on linux use this mechanism to get the al= ready running instance of the same application so that any future instance = can connect to it and present the window again to the user.
 
-Yash

 
On 12/9/05, = mpsuzuki@hiroshima-u.ac.jp <mpsuzuki@hiroshima-= u.ac.jp > wrote:
Hi

On Fri, 09 Dec 2005 14= :54:18 +0100
Zoltan Boszormenyi < zboszor@freemail.hu> wrote:
>I need to find out whether an ins= tance of a program is already running
>and possibly unminimize it or = bring it above any other windows, so
>I can prevent an application st= arted again.
>Is is possible using GTK-1.2, or GTK-2.x, and how?

I'm afrai= d gtk does not have support for that.
I think it's role of task manager = for desktop
(possibly you want to know whether the program
is running= on same desktop - not on same computer,
and reordering of window is the role of desktop
manager, not GUI too= lkit like GTK).
Thus, there might be something helpful in GNOME.
Howe= ver, I don't know you want to use GNOME or
anything else.

Regards= ,
mpsuzuki
_______________________________________________
gtk-list= mailing list
gtk-list@gnome.org
http://ma= il.gnome.org/mailman/listinfo/gtk-list

------=_Part_5074_28041844.1134139945341-- From zboszor@freemail.hu Fri Dec 9 10:21:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1036D3B4BDA for ; Fri, 9 Dec 2005 10:21:15 -0500 (EST) 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 03556-10 for ; Fri, 9 Dec 2005 10:21:13 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id 8A4AA3B3FE8 for ; Fri, 9 Dec 2005 10:21:12 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id 439F78913D8; Fri, 9 Dec 2005 17:23:45 +0100 (CET) Message-ID: <4399A86B.6020101@freemail.hu> Date: Fri, 09 Dec 2005 16:53:15 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: mpsuzuki@hiroshima-u.ac.jp References: <43998C8A.3080404@freemail.hu> <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> In-Reply-To: <20051209233625.2156df3c.mpsuzuki@hiroshima-u.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: [gtk-list] How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 15:21:15 -0000 Hi, mpsuzuki@hiroshima-u.ac.jp írta: >Hi > >On Fri, 09 Dec 2005 14:54:18 +0100 >Zoltan Boszormenyi wrote: > > >>I need to find out whether an instance of a program is already running >>and possibly unminimize it or bring it above any other windows, so >>I can prevent an application started again. >>Is is possible using GTK-1.2, or GTK-2.x, and how? >> >> > >I'm afraid gtk does not have support for that. >I think it's role of task manager for desktop >(possibly you want to know whether the program > is running on same desktop - not on same computer, > and reordering of window is the role of desktop > manager, not GUI toolkit like GTK). > > Yes, I would like to know whether a program is started on the same X display. >Thus, there might be something helpful in GNOME. >However, I don't know you want to use GNOME or >anything else. > > And yes again, the program I would like to modify uses the gnome 1.x libraries and was created with Glade 0.6.x. The program's main window is a GnomeApp, and there are two properties (WM Class and WM Name) that I can set in Glade. I guess these could be used to find out whether a window is registered (still running) on the X display I try to run the second instance. The question is how? Best regards, Zoltán Böszörményi From yinglcs@aim.com Fri Dec 9 12:05:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CAD243B4D37 for ; Fri, 9 Dec 2005 12:05:17 -0500 (EST) 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 13471-04 for ; Fri, 9 Dec 2005 12:05:15 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id B82BE3B4D51 for ; Fri, 9 Dec 2005 12:02:26 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.111.58452867 (57870) for ; Fri, 9 Dec 2005 12:02:22 -0500 (EST) Received: from MBLK-M17 (mblk-m17.mblk.aol.com [64.12.136.50]) by air-ia01.mail.aol.com (v108.32) with ESMTP id MAILINIA14-e20e4399b89b16f; Fri, 09 Dec 2005 12:02:22 -0500 Date: Fri, 09 Dec 2005 12:02:19 -0500 From: yinglcs@aim.com Message-Id: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by MBLK-M17.sysops.aol.com (64.12.136.50) with HTTP (WebMailUI); Fri, 09 Dec 2005 12:02:19 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 64.12.136.50 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.659 tagged_above=-999 required=2 tests=[BAYES_01, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -0.659 X-Spam-Level: Subject: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:05:18 -0000 Hi, Can someone please tell me how t reparent a widget from a GdkWindow to a GdkDrawable? Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mleisher@crl.NMSU.Edu Fri Dec 9 12:07:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 832113B4D6C for ; Fri, 9 Dec 2005 12:07:59 -0500 (EST) 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 13917-03 for ; Fri, 9 Dec 2005 12:07:57 -0500 (EST) Received: from crl.NMSU.Edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id 39E333B4DA2 for ; Fri, 9 Dec 2005 12:06:30 -0500 (EST) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.NMSU.Edu (8.13.4/8.13.4) with ESMTP id jB9H67Y4027972; Fri, 9 Dec 2005 10:06:08 -0700 (MST) Message-ID: <4399BA00.9080405@crl.nmsu.edu> Date: Fri, 09 Dec 2005 10:08:16 -0700 From: Mark Leisher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zoltan Boszormenyi References: <43998C8A.3080404@freemail.hu> In-Reply-To: <43998C8A.3080404@freemail.hu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1206/Thu Dec 8 12:56:45 2005 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:07:59 -0000 Zoltan Boszormenyi wrote: > Hi, > > I need to find out whether an instance of a program is already running > and possibly unminimize it or bring it above any other windows, so > I can prevent an application started again. > Is is possible using GTK-1.2, or GTK-2.x, and how? > The following procedure is an old X11 trick. It will not work on Windows. 0. Add code to your program to handle GDK_SELECTION_CLEAR events. See 5 below for what this code should do. 1. At startup of the program, create an atom with gdk_intern_atom(). 2. Use gdk_selection_owner_get() on the atom. 3. If the selection owner is NULL, then call gdk_selection_owner_set() with the time_ parameter set to GDK_CURRENT_TIME and the send_event parameter set to FALSE. 4. Else, there is a valid owner of the atom, so the program is already running. Assert ownership of the selection with gdk_selection_owner_set() again. This causes the running application to lose ownership and call the code to handle GDK_SELECTION_CLEAR events. Then exit. 5. The code to handle GDK_SELECTION_CLEAR events should do 2 things: A. If minimized, unminimize. B. Assert ownership of the selection again. This doesn't work on Windows because the GDK selection API apparently only works within applications and not globally like they do in X11. -- --------------------------------------------------------------------------- Mark Leisher Computing Research Lab A sneer is the weapon of the weak. New Mexico State University -- James Russell Lowell (1819-1891) Box 30001, MSC 3CRL Las Cruces, NM 88003 From tristan.van.berkom@gmail.com Fri Dec 9 12:23:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30D1A3B4CD1 for ; Fri, 9 Dec 2005 12:23:21 -0500 (EST) 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 15323-09 for ; Fri, 9 Dec 2005 12:23:16 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by menubar.gnome.org (Postfix) with ESMTP id 8728A3B1EF4 for ; Fri, 9 Dec 2005 12:23:11 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 69so1309032wri for ; Fri, 09 Dec 2005 09:23:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=oNvEpTDc/HribKaRHC28vvb2UQlwyodLIMgrB5nG6OIjptMRb8H/ckOoxFSRyJd3eLycOHdXFhy1/1O5IUMq3EGOuKXt/XWYyLXGLSU/KWIkFw7mKhEnIQ00Oc6vyxJKKOdu0yR7IMZBHbSvAE76FB5JokufLCgf6EHnjE809Y0= Received: by 10.64.184.10 with SMTP id h10mr4087608qbf; Fri, 09 Dec 2005 09:23:10 -0800 (PST) Received: from ?70.48.173.143? ( [70.48.173.143]) by mx.gmail.com with ESMTP id m3sm164948qbe.2005.12.09.09.23.02; Fri, 09 Dec 2005 09:23:05 -0800 (PST) Message-ID: <4399BEBD.6040009@gnome.org> Date: Fri, 09 Dec 2005 12:28:29 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> In-Reply-To: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:23:22 -0000 yinglcs@aim.com wrote: > Hi, > > Can someone please tell me how t reparent a widget from a GdkWindow to a > GdkDrawable? You cant, a GdkWindow & GdkDrawable can not be parents of any objects since they are not GtkContainers. What exactly do you want to do ? Cheers, -Tristan From flaviothunder@terra.com.br Fri Dec 9 12:29:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59ACB3B070F for ; Fri, 9 Dec 2005 12:29:11 -0500 (EST) 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 16167-09 for ; Fri, 9 Dec 2005 12:29:09 -0500 (EST) Received: from loncoche.terra.com.br (loncoche.terra.com.br [200.176.10.196]) by menubar.gnome.org (Postfix) with ESMTP id A84BA3B0E11 for ; Fri, 9 Dec 2005 12:29:08 -0500 (EST) Received: from mubende.terra.com.br (mubende.terra.com.br [200.176.10.8]) by loncoche.terra.com.br (Postfix) with ESMTP id 3430AD503E9; Fri, 9 Dec 2005 15:29:07 -0200 (BRST) X-Terra-Karma: -2% X-Terra-Hash: 6bb09e581ba1b1ffe7d6b79c61089ecf Received-SPF: pass (mubende.terra.com.br: domain of terra.com.br designates 200.176.10.8 as permitted sender) client-ip=200.176.10.8; envelope-from=flaviothunder@terra.com.br; helo=[192.168.1.133]; Received: from [192.168.1.133] (unknown [200.196.242.80]) (authenticated user flaviothunder) by mubende.terra.com.br (Postfix) with ESMTP id D531B2480FA; Fri, 9 Dec 2005 15:29:06 -0200 (BRST) Message-ID: <4399BEE1.7060206@terra.com.br> Date: Fri, 09 Dec 2005 15:29:05 -0200 From: =?ISO-8859-1?Q?Fl=E1vio_Alberto_Lopes_Soares?= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> In-Reply-To: <8C7CAF97327E13D-FC4-EF8C@MBLK-M17.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Reparent a widget to a GdkDrawable X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 17:29:11 -0000 In GTK FAQ theres an explanation about this look at : http://www.gtk.org/faq/#AEN636 Good luck Flavio Alberto Lopes Soares flaviothunder@terra.com.br yinglcs@aim.com escreveu: > Hi, > > Can someone please tell me how t reparent a widget from a GdkWindow to > a GdkDrawable? > > Thank you. > ________________________________________________________________________ > Check Out the new free AIM(R) Mail -- 2 GB of storage and > industry-leading spam and email virus protection. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > > From yinglcs@aim.com Fri Dec 9 16:59:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 79B8A3B0F4E for ; Fri, 9 Dec 2005 16:59:23 -0500 (EST) 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 05890-10 for ; Fri, 9 Dec 2005 16:59:17 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id 730953B0F6C for ; Fri, 9 Dec 2005 16:59:16 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.bf.65e569ed (57873) for ; Fri, 9 Dec 2005 16:59:09 -0500 (EST) Received: from mblk-r33 (mblk-r33.mblk.aol.com [152.163.179.23]) by air-ia02.mx.aol.com (v108.32) with ESMTP id MAILINIA23-e2114399fe2dba; Fri, 09 Dec 2005 16:59:09 -0500 Date: Fri, 09 Dec 2005 16:59:09 -0500 From: yinglcs@aim.com Message-Id: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by mblk-r33.sysops.aol.com (152.163.179.23) with HTTP (WebMailUI); Fri, 09 Dec 2005 16:59:09 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 152.163.179.23 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.123 tagged_above=-999 required=2 tests=[BAYES_00, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -1.123 X-Spam-Level: Subject: How can I save the pixel of a GdkWindow/GdkWidget to a file? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 21:59:23 -0000 Hi, Can someone please tell me can I save the pixel of a GdkWindow/GdkWidget to a file? The only think I find is saving from a GdkDrawable (the 2 functions below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow? GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL, gd, NULL, 0, 0, 0, 0, w, h); gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL); Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From mclasen@redhat.com Fri Dec 9 19:09:13 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 18D8A3B0836; Fri, 9 Dec 2005 19:09:10 -0500 (EST) 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 16308-03; Fri, 9 Dec 2005 19:09:08 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 617263B095C; Fri, 9 Dec 2005 19:09:07 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBA097AS009625; Fri, 9 Dec 2005 19:09:07 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA091V31551; Fri, 9 Dec 2005 19:09:01 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA091428721; Fri, 9 Dec 2005 19:09:01 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Dec 2005 19:09:00 -0500 Message-Id: <1134173340.3214.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.834 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_XD] X-Spam-Score: -1.834 X-Spam-Level: Cc: Subject: GTK+ 2.8.9 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 00:09:13 -0000 GTK+ 2.8.9 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.9.tar.bz2 md5sum: e7a94132ae6353106c80cd4a1106a368 gtk+-2.8.9.tar.gz md5sum: 3f89f4f32d60d39e8d1d0fde241d629c This is a bugfix release in the 2.8.x series. What is GTK+ ============ GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development. GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. Where to get more information about GTK+ ======================================== Information about GTK+ including links to documentation can be found at: http://www.gtk.org/ An installation guide for GTK+ 2.8 is found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Common questions: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html http://www.gtk.org/faq/ Overview of Changes from GTK+ 2.8.8 to GTK+ 2.8.9 ================================================= * Bugs fixed: 321560 File chooser filter behaves weird [Bogdan Nicula, Federico Mena Quintero] 317999 2.8.4 to 2.8.6: sound-juicer crash, fileselector assertions [Sebastian Bacher] 322569 On unsetting the Model, GtkTreeView does not clear it's associated TreeSelection [Milosz Derezynski] 322998 Crash on selecting a file of null mime-type [Sadrul Habib Chowdhury] 323024 gtktoolbutton leaks a pixbuf [Paolo Borelli] 323209 GdkEvent leaked in gtktreeview.c / gtk_tree_view_key_press [Crispin Flowerday] 323073 Typo in trap_activate_cb() [Sadrul Habib Chowdhury] 323045 gtkcalendar.c: The identifier is already declared. [Kazuki Iwamoto] 323386 gtk_menu_attach_to_widget() does not take NULL detacher [Jorn Baayen] 307196 Unhinted fonts are measured incorrectly and drawing problems occur as a result [Alex Jones, Behdad Esfahbod] 316310 unwanted scrolling in recent gtk [Paolo Borelli] 322019 Toolbars without icons are invisible in icon-only mode [Ross Burton] 323077 Search-entry in the TreeView not working properly [Sadrul Habib Chowdhury] 323475 gtktoolbutton.c:562: warning: 'image' is used uninitialized in this function [Ross Burton] 323577 reference count of textbuffer increases with each paste 323629 gtk_selection_data_get_uris leaks memory [Markku Vire] * Other changes - Remove GMemChunk from public header files to support building against GLib 2.10 [Matthias Clasen] - Report errors in option parsing [Matthias] - Merge upstream xdgmime changes to handle duplicate glob patterns [Matthias] Matthias Clasen From mclasen@redhat.com Fri Dec 9 19:17:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82BFC3B11D0; Fri, 9 Dec 2005 19:17:09 -0500 (EST) 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 17382-03; Fri, 9 Dec 2005 19:17:06 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 10E473B102C; Fri, 9 Dec 2005 19:17:04 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBA0H3hV011399; Fri, 9 Dec 2005 19:17:03 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA0H3V00433; Fri, 9 Dec 2005 19:17:03 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBA0H3429253; Fri, 9 Dec 2005 19:17:03 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Fri, 09 Dec 2005 19:17:02 -0500 Message-Id: <1134173822.3214.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: GLib 2.9.1 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 00:17:09 -0000 GLib 2.9.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9/ http://ftp.gnome.org/pub/GNOME/sources/glib/2.9/ glib-2.9.1.tar.bz2 md5sum: f4817f7e0546f8d4b37c20b6ceca69ad glib-2.9.1.tar.gz md5sum: 2f214411d591a1ba910fb3acc356903c This is the second development release leading up to GLib 2.10. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.8. If you have problems, you'll need to reinstall GLib 2.8.4. * GLib 2.10 will be source and binary compatible with the GLib 2.8.x series; however, the new API additions in GLib 2.9.1 are not yet finalized, so there may be incompatibities between this release and the final 2.10 release. * Remaining issues for GLib 2.10 can be found with the following bugzilla query: http://bugzilla.gnome.org/buglist.cgi?product=glib&target_milestone=2.10 +API+Freeze&&target_milestone=2.10 +Freeze&bug_status=NEW&bug_status=UNCONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED * Bugs should be reported to http://bugzilla.gnome.org. About GLib ========== GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.9.0 to GLib 2.9.1 ================================================= * Memory management - The slice allocator is implemented [Tim Janik] - g_slice_free_chain() has been renamed to g_slice_free_chain_with_offset() [Tim, Behdad Esfahbod] - Mem chunks are deprecated [Matthias Clasen] * Data structures - Hash tables are refcounted, and have a boxed type [Tim] * Thread support - Support for Solaris threads has been removed [Sebastian Wilhelmi, Andrew Paprocki] - g_async_queue_sort(), g_async_queue_push_sorted() have been added to allow GAsyncQueue to be used as a priority queue, together with the corresponding _unlocked variants [Martyn Russell] * GObject: - The concept of a floating initial reference has been moved from GtkObject to GObject [Tim] * Win32 changes: - Make g_rename() replace existing files [Tor Lillqvist] * Misc new API: - G_GUINT64_CONSTANT macro to define guint64 constants [Andrew Paprocki] - G_GNUC_WARN_UNUSED_RESULT macro to instruct the compiler to emit a warning if the value returned by a function is ignored. [Arjan van de Ven, Alex Larsson] - GList and GSList now have sort functions which take an extra user data argument [Martyn Russell] - g_param_spec_ref_sink() has been added for consistency [Tim] * $LOGNAME is respected when determining user data. [Laszlo Peter] * Other changes and bug fixes [Tim, Matthias, Behdad, Christian Persch, Benedikt Meurer, Andrew Paprocki, Kazuki Iwamoto, Alexis S. L. Carvalho, Stanislav Brabec, Andreas Schwab, Kalle Vahlman] * Documentation - Deprecation warnings carry version information [Matthias] - The slice allocator has been documented [Matthias, Tim] - Other improvements [Morten Welinder] Matthias Clasen From aolexiy@gmail.com Sat Dec 10 05:45:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 594A43B131E for ; Sat, 10 Dec 2005 05:45:54 -0500 (EST) 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 26544-04 for ; Sat, 10 Dec 2005 05:45:52 -0500 (EST) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.203]) by menubar.gnome.org (Postfix) with ESMTP id 86BC43B0937 for ; Sat, 10 Dec 2005 05:45:51 -0500 (EST) Received: by uproxy.gmail.com with SMTP id a2so75503ugf for ; Sat, 10 Dec 2005 02:45:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ucCXue9gyoWUB9LItJYUSjcc1oDkcAsZpZIbHR6Ui17h9/g1S5bR7e4uBMpIQYMDdMRcaL8aOBJmVNCvburDnVjKhRw/CJJh2R5EOYV5C3N8T/xGIf0VOpMKPKRI1DfkUc9dcs9B90JgrJeKhv/53Qs2mbz8lbbidGQ9O4dkDIU= Received: by 10.66.184.5 with SMTP id h5mr271928ugf; Sat, 10 Dec 2005 02:45:50 -0800 (PST) Received: from ?82.207.125.179? ( [82.207.125.179]) by mx.gmail.com with ESMTP id j3sm1046882ugd.2005.12.10.02.45.49; Sat, 10 Dec 2005 02:45:50 -0800 (PST) Message-ID: <439AB2D9.5040301@gmail.com> Date: Sat, 10 Dec 2005 12:50:01 +0200 From: Olexiy Avramchenko User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: yinglcs@aim.com References: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> In-Reply-To: <8C7CB22EAE5E4CF-F74-60DB@mblk-r33.sysops.aol.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_XI] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: How can I save the pixel of a GdkWindow/GdkWidget to a file? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 10:45:54 -0000 yinglcs@aim.com wrote: > Hi, > > Can someone please tell me can I save the pixel of a > GdkWindow/GdkWidget to a file? > > The only think I find is saving from a GdkDrawable (the 2 functions > below). But how can I get a GdkDrawable from a GdkWidget/GdkWindow? There's no GdkWidget. GtkWidget has a pointer to corresponding drawable: GTK_WIDGET(widget)->window It can be NULL, however. > GdkPixbuf* pixBuf = gdk_pixbuf_get_from_drawable (NULL, > gd, NULL, 0, 0, 0, 0, w, h); > > gdk_pixbuf_save (pixBuf, "snapshot.png", "png", &err, NULL); I'd do the following: gboolean save_pixels (GtkWidget *widget, const gchar *fname) { GdkPixbuf *pixbuf; g_return_val_if_fail (GTK_IS_WIDGET (widget) && fname != NULL, FALSE); if (widget->window != NULL) { gboolean res; /* it's typical for the widget to have no its own window, so you must specify the region it covers in the parent's window such an information is stored in GtkWidget::allocation */ pixbuf = gdk_pixbuf_get_from_drawable ( NULL, widget->window, NULL, widget->allocation.x, widget->allocation.y, 0, 0, widget->allocation.width, widget->allocation.height, ); g_return_val_if_fail (pixbuf != NULL, FALSE); res = gdk_pixbuf_save (pixbuf, fname, "png", NULL); g_object_unref (pixbuf); return res; } return FALSE; } PS: I've typed the code just in mail client, some typos are possible ;) Olexiy From afeiguin@kitp.ucsb.edu Thu Dec 8 18:39:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45E403B06D4; Thu, 8 Dec 2005 18:39:55 -0500 (EST) 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 29286-01; Thu, 8 Dec 2005 18:39:52 -0500 (EST) Received: from fed1rmmtao07.cox.net (fed1rmmtao07.cox.net [68.230.241.32]) by menubar.gnome.org (Postfix) with ESMTP id 0356A3B1834; Thu, 8 Dec 2005 18:39:52 -0500 (EST) Received: from [192.168.2.2] (really [68.227.87.239]) by fed1rmmtao02.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051208233709.RKKL17006.fed1rmmtao02.cox.net@[192.168.2.2]>; Thu, 8 Dec 2005 18:37:09 -0500 Received: from 127.0.0.1 (AVG SMTP 7.1.371 [267.13.13/195]); Thu, 08 Dec 2005 15:38:17 -0800 Message-ID: <4398C3E8.5090806@kitp.ucsb.edu> Date: Thu, 08 Dec 2005 15:38:16 -0800 From: Adrian Feiguin User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en To: Stefano Esposito References: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> In-Reply-To: <20051208233724.7bd9d2d5.ragnacruxer@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_GT] X-Spam-Score: -1.811 X-Spam-Level: X-Mailman-Approved-At: Sat, 10 Dec 2005 14:07:34 -0500 Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: Spreedsheet X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 23:39:55 -0000 Check out gtksheet. It's part of gtkextra : http://gtkextra.sourceforge.net Enjoy, Stefano Esposito wrote: >Hi all, > >in my app i need to implement a spreedsheet-like widget (i.e. a GtkTreeView with a GtkListStore which shows a number of empty lines to be filled by the user). Any hints? > > > >------------------------------------------------------------------------ > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/195 - Release Date: 12/8/2005 From murrayc@murrayc.com Sat Dec 10 15:13:57 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1B5183B2CD8; Sat, 10 Dec 2005 15:13:57 -0500 (EST) 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 09070-04; Sat, 10 Dec 2005 15:13:54 -0500 (EST) Received: from jareth.dreamhost.com (jareth.dreamhost.com [66.33.198.201]) by menubar.gnome.org (Postfix) with ESMTP id 037BB3B1EAA; Sat, 10 Dec 2005 15:13:54 -0500 (EST) Received: from [192.168.1.101] (p5498DE13.dip.t-dialin.net [84.152.222.19]) by jareth.dreamhost.com (Postfix) with ESMTP id 3FDDA78090; Sat, 10 Dec 2005 12:12:06 -0800 (PST) From: Murray Cumming To: Igor Gorbounov In-Reply-To: <43994BED.7080204@topazelectro.ru> References: <43990FC4.1030408@topazelectro.ru> <3843.217.72.192.194.1134115987.squirrel@webmail.murrayc.com> <43994AB6.2090705@topazelectro.ru> <43994BED.7080204@topazelectro.ru> Content-Type: text/plain Date: Sat, 10 Dec 2005 21:11:49 +0100 Message-Id: <1134245509.8150.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.911 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT] X-Spam-Score: -1.911 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: mplayer in a gtk application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2005 20:13:57 -0000 On Fri, 2005-12-09 at 12:18 +0300, Igor Gorbounov wrote: > Igor Gorbounov wrote: > > > [...] > > What about totem - it seems to me very weak as compared with mplayer. > > Perhaps it just > > cannot implement most of gstreamer's movie features. > > > Sorry, it is based on xine. No, it uses gstreamer by default. For questions about gstreamer, there is a gstreamer mailing list. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From raphtee@gmail.com Sat Dec 10 20:43:30 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBE353B525C for ; Sat, 10 Dec 2005 20:43:29 -0500 (EST) 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 01916-01 for ; Sat, 10 Dec 2005 20:43:27 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id F09373B2EAE for ; Sat, 10 Dec 2005 20:43:26 -0500 (EST) Received: by xproxy.gmail.com with SMTP id t5so826696wxc for ; Sat, 10 Dec 2005 17:43:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=QHE9mfh9JyN3bJ8nvQwRg2YafbtZDNN6imZU7uwXy5DpBg9Kx6pv982ik9Uw01Lkw8AQz+NE90rzxpqbTAjaq9XQhw4wcL9CmW3spsbfeR/ynv5HlJqOwQpEAh25i/+x30hfAb9am2sipKe1sHxm3sAHFhwuGNpCRn1ALQUAP44= Received: by 10.70.100.17 with SMTP id x17mr6527762wxb; Sat, 10 Dec 2005 17:43:26 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id i39sm6290765wxd.2005.12.10.17.43.25; Sat, 10 Dec 2005 17:43:25 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 10 Dec 2005 20:43:21 -0500 Message-Id: <1134265401.3160.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: GIOChannel issues X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 01:43:30 -0000 Hello, I am trying to use GIOChannel in order to use sockets in a simple way (I am trying to get notification on events like read and disconnect). Anyway, here is the code that creates the GIOCHannel void on_ListenButton_clicked (GtkButton *button, gpointer user_data) { GtkWidget *text = lookup_widget(GTK_WIDGET(button), "StatusText"); // create the listening socket int sockfd, new_fd; struct sockaddr_in my_addr; struct sockaddr_in their_addr; int sin_size; if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); exit(1); } my_addr.sin_family = AF_INET; my_addr.sin_port = htons(1352); my_addr.sin_addr.s_addr = INADDR_ANY; bzero(&(my_addr.sin_zero), 8); if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) == -1) { perror("bind"); exit(1); } if (listen(sockfd, 5) == -1) { perror("listen"); exit(1); } gtk_entry_set_text(GTK_ENTRY(text), "Listening"); sin_size = sizeof(struct sockaddr_in); if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size)) == -1) { perror("accept"); } // we got a socket so set text box gtk_entry_set_text(GTK_ENTRY(text), "Connection accepted"); // now create GIOChannel from connection GIOChannel *iochannel = g_io_channel_unix_new(new_fd); // now add to main event loop GtkWidget *window = lookup_widget(GTK_WIDGET(button), "MainWindow"); g_io_add_watch(iochannel, G_IO_IN, (GIOFunc *) &ReceiveData, (gpointer) window); // now close the listener close(sockfd); } The function g_io_watch() ties to the G_IO_IN (there is data to read on the socket) event to the function ReceiveData that is defined as gboolean ReceiveData(GIOChannel *source, GIOCondition condition, gpointer data) { gchar buf[500]; int bytes_read; GtkWidget *text = NULL; GQuark quark; GError *error = NULL; gint sd; g_print("data received\n"); text = lookup_widget(GTK_WIDGET(data), "StatusText"); gtk_entry_set_text(GTK_ENTRY(text), "received data"); sd = g_io_channel_unix_get_fd(source); bytes_read = recv(sd, buf, 500, 0); if(bytes_read == -1) { g_print("error\n"); } else { buf[bytes_read] = '\0'; g_print("buf = %s\n", buf); text = lookup_widget(GTK_WIDGET(data), "ReceivedText"); gtk_entry_set_text(GTK_ENTRY(text), buf); } return TRUE; } The problem is this. If the client closes the connection then I get a flood of empty buffers and the ReceiveData() function is repeatedly called. What could cause this weird behavior? Travis Miller From zboszor@freemail.hu Sun Dec 11 12:05:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 653013B168F for ; Sun, 11 Dec 2005 12:05:55 -0500 (EST) 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 14045-06 for ; Sun, 11 Dec 2005 12:05:52 -0500 (EST) Received: from szolnok.dunaweb.hu (unknown [212.40.101.252]) by menubar.gnome.org (Postfix) with ESMTP id 748F33B12B8 for ; Sun, 11 Dec 2005 12:05:33 -0500 (EST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id C66BA8918B6; Sun, 11 Dec 2005 19:08:12 +0100 (CET) Message-ID: <439C63EF.2050402@freemail.hu> Date: Sun, 11 Dec 2005 18:37:51 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: Mark Leisher References: <43998C8A.3080404@freemail.hu> <4399BA00.9080405@crl.nmsu.edu> In-Reply-To: <4399BA00.9080405@crl.nmsu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 17:05:55 -0000 Thanks for the answer, although I still have problems with this. Mark Leisher írta: > Zoltan Boszormenyi wrote: > >> Hi, >> >> I need to find out whether an instance of a program is already running >> and possibly unminimize it or bring it above any other windows, so >> I can prevent an application started again. >> Is is possible using GTK-1.2, or GTK-2.x, and how? >> > > The following procedure is an old X11 trick. It will not work on Windows. > > 0. Add code to your program to handle GDK_SELECTION_CLEAR events. See > 5 below for what this code should do. > > 1. At startup of the program, create an atom with gdk_intern_atom(). > > 2. Use gdk_selection_owner_get() on the atom. > > 3. If the selection owner is NULL, then call gdk_selection_owner_set() > with the time_ parameter set to GDK_CURRENT_TIME and the send_event > parameter set to FALSE. My problem is, the owner this call returns is always NULL. This has something to do with the fact that the actual owner is a window in another process. There is this call: GdkWindow *gdk_window_foreign_new(GdkNativeWindow anid) This GdkNativeWindow is a native X Window ID or HWND on Windows. I seem to have to call this, wrap a foreign window into a GdkWindow before gdk_selection_owner_set() can give me sensible return value. But how can I tell the XID of a window created from another process? Sorry, I don't know too much about low level Xlib programming... > 4. Else, there is a valid owner of the atom, so the program is already > running. Assert ownership of the selection with > gdk_selection_owner_set() again. This causes the running application > to lose ownership and call the code to handle GDK_SELECTION_CLEAR > events. Then exit. > > 5. The code to handle GDK_SELECTION_CLEAR events should do 2 things: > A. If minimized, unminimize. > B. Assert ownership of the selection again. > > This doesn't work on Windows because the GDK selection API apparently > only works within applications and not globally like they do in X11. From chris@cvine.freeserve.co.uk Sun Dec 11 14:25:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AF6043B1505 for ; Sun, 11 Dec 2005 14:25:40 -0500 (EST) 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 29280-01 for ; Sun, 11 Dec 2005 14:25:38 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id 9DE183B0A28 for ; Sun, 11 Dec 2005 14:25:37 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3207.me.freeserve.com (SMTP Server) with ESMTP id 5F36B9000088; Sun, 11 Dec 2005 20:25:34 +0100 (CET) Received: from boulder.homenet (user-2208.lns2-c7.dsl.pol.co.uk [84.65.168.160]) by mwinf3207.me.freeserve.com (SMTP Server) with ESMTP id 21D759000087; Sun, 11 Dec 2005 20:25:34 +0100 (CET) X-ME-UUID: 20051211192534138.21D759000087@mwinf3207.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id jBBJPSSY001382; Sun, 11 Dec 2005 19:25:28 GMT From: Chris Vine To: gtk-list@gnome.org, raphtee@gmail.com Date: Sun, 11 Dec 2005 19:25:28 +0000 User-Agent: KMail/1.9 References: <1134265401.3160.7.camel@localhost.localdomain> In-Reply-To: <1134265401.3160.7.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512111925.28518.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: Re: GIOChannel issues X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 19:25:40 -0000 On Sunday 11 December 2005 01:43, Travis Miller wrote: > Hello, > > I am trying to use GIOChannel in order to use sockets in a simple way (I > am trying to get notification on events like read and disconnect). > Anyway, here is the code that creates the GIOCHannel > > void > on_ListenButton_clicked (GtkButton *button, > gpointer user_data) > { > GtkWidget *text = lookup_widget(GTK_WIDGET(button), > "StatusText"); > > // create the listening socket > int sockfd, new_fd; > struct sockaddr_in my_addr; > struct sockaddr_in their_addr; > int sin_size; > > if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { > perror("socket"); > exit(1); > } > > my_addr.sin_family = AF_INET; > my_addr.sin_port = htons(1352); > my_addr.sin_addr.s_addr = INADDR_ANY; > bzero(&(my_addr.sin_zero), 8); > > if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct > sockaddr)) == -1) { > perror("bind"); > exit(1); > } > > > if (listen(sockfd, 5) == -1) { > perror("listen"); > exit(1); > } > gtk_entry_set_text(GTK_ENTRY(text), "Listening"); > > sin_size = sizeof(struct sockaddr_in); > if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, > &sin_size)) == -1) { > perror("accept"); > } > > // we got a socket so set text box > gtk_entry_set_text(GTK_ENTRY(text), "Connection accepted"); > > // now create GIOChannel from connection > GIOChannel *iochannel = g_io_channel_unix_new(new_fd); > > // now add to main event loop > GtkWidget *window = lookup_widget(GTK_WIDGET(button), > "MainWindow"); > g_io_add_watch(iochannel, G_IO_IN, (GIOFunc *) &ReceiveData, > (gpointer) window); > > > // now close the listener > close(sockfd); > > } > > The function g_io_watch() ties to the G_IO_IN (there is data to read on > the socket) event to the function ReceiveData that is defined as > > gboolean ReceiveData(GIOChannel *source, GIOCondition condition, > gpointer data) > { > gchar buf[500]; > int bytes_read; > GtkWidget *text = NULL; > GQuark quark; > GError *error = NULL; > gint sd; > > > > g_print("data received\n"); > text = lookup_widget(GTK_WIDGET(data), "StatusText"); > gtk_entry_set_text(GTK_ENTRY(text), "received data"); > > sd = g_io_channel_unix_get_fd(source); > > bytes_read = recv(sd, buf, 500, 0); > > if(bytes_read == -1) { > g_print("error\n"); > } > else { > buf[bytes_read] = '\0'; > g_print("buf = %s\n", buf); > text = lookup_widget(GTK_WIDGET(data), "ReceivedText"); > gtk_entry_set_text(GTK_ENTRY(text), buf); > } > > return TRUE; > } > > The problem is this. If the client closes the connection then I get a > flood of empty buffers and the ReceiveData() function is repeatedly > called. What could cause this weird behavior? I cannot see where you disconnect the callback. The easiest way to do that is to call g_io_channel_unref() on the iochannel pointer immediately after you have called g_io_add_watch() on it. g_io_channel_unix_new() returns a GIOChannel object with a reference count of one. g_io_add_watch() adds a further reference count - if you decrement it by 1, the callback will be disconnected and the relevant GSource object removed as soon either the callback returns FALSE or you call g_source_remove() on the return value of g_io_add_watch() - so detect the closing of the socket by the peer in the callback (read()/recv() returning 0 and/or the G_IO_HUP condition arising in your 'condition' variable) and return FALSE upon that occurring, or store the return value of g_io_add_watch() and call g_source_remove() on it. For the result you mention to occur, it appears therefore that specifying the G_IO_IN condition flag in g_io_add_watch() will cause the callback to be called even if the the socket is in error condition or the socket is closed, without actually specifying the G_IO_HUP or G_IO_ERR flags. Chris From wtallman@olypen.com Sun Dec 11 19:41:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8710F3B27D3 for ; Sun, 11 Dec 2005 19:41:22 -0500 (EST) 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 23131-04 for ; Sun, 11 Dec 2005 19:41:19 -0500 (EST) Received: from olypen1.olypen.com (olypen1.olypen.com [208.200.248.250]) by menubar.gnome.org (Postfix) with ESMTP id 9E7163B2625 for ; Sun, 11 Dec 2005 19:41:12 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen1.olypen.com with esmtp() (Exim 4.43) id 1Elbk8-0000QD-JM for gtk-list@gnome.org; Sun, 11 Dec 2005 16:40:40 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBC0ejha031930 for gtk-list@gnome.org; Sun, 11 Dec 2005 16:40:45 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Sun, 11 Dec 2005 16:40:45 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051212004045.GA31796@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Gtk marshallers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 00:41:22 -0000 This is a plea for someone to do a bit of mentoring. Here's the situation: I've got a fairly good-sized C application that I've developed for a specific purpose, and now it looks like it could easily be extended to a class of such purposes. This application works, as do many, on the CLI with a boat-load of applicable arguments. It produces textual output that can be used in a variety of ways. I can cobble up code in gtk to present nice GUI interfaces that will create an argument string to send to the C code. I can write gtk code that can present the output in a suitable variety of ways. What I cannot seem to do is wrap my head around how to get the gtk code to communicate with the C code. I've read the gtk docs on signal marshallers, and it's just not making sense to me. I'm still using gtk-1.2, with the notion that I probably should get that up and running, and then rewrite however necessary for each newer edition of gtk until I've got code for the latest. Would someone who really knows this stuff be so kind as to mentor me off list on this. I figure off list is better, as I would guess that 1.2 is no longer relevant to the readers of this list. Thanks all for reading, Bill Tallman From raphtee@gmail.com Sun Dec 11 19:53:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88D803B1EA9 for ; Sun, 11 Dec 2005 19:53:38 -0500 (EST) 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 24121-02 for ; Sun, 11 Dec 2005 19:53:36 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by menubar.gnome.org (Postfix) with ESMTP id 1B1663B1264 for ; Sun, 11 Dec 2005 19:53:36 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i23so1269950wra for ; Sun, 11 Dec 2005 16:53:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=kBFUObki7ywPcdFlpibskeHbfUN4vyfrlh6/AgZyuAUNlLJbXMEr3rtaK41lFjtXuzVQ+K2ZnTnUehq+/wSzMjAWkipN4Jqd/Qaci6JS7Tw8EwO2aQsGlsRIc6id8f0faFUlcA83vPItHd6jAW1wDPdmFe7cFCkPJ4yE5xXp4pQ= Received: by 10.54.86.4 with SMTP id j4mr120069wrb; Sun, 11 Dec 2005 16:52:40 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id 29sm7702726wrl.2005.12.11.16.53.34; Sun, 11 Dec 2005 16:53:34 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Sun, 11 Dec 2005 19:53:22 -0500 Message-Id: <1134348802.24814.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 00:53:38 -0000 I have another GLib question. Currently I am writing some code that needs to perform some calculations every second. SO I want the function called every second. So rather than using setitimer to create a SIGALRM event that registering a function with sigaction() would catch, I thought I could use the g_timeout_add() function in GLib. However I found after playing with it that if I set it to 1 second then after 1 second it calls the function. At the end of the function (if I return TRUE from the function) it then sets up to call the function again in second. So for a function that takes say 100 - 200 milliseconds to complete, I find that I get the behavior that my function is not called every second but more like every 1.1 - 1.2 seconds. I undertsnad that gtk_timeout_add() is deprecated so is there another option (or should I just use the standard setitimer() function)? Travis Miller From ben@benjohnson.net Sun Dec 11 20:51:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 628623B0757 for ; Sun, 11 Dec 2005 20:51:32 -0500 (EST) 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 29086-04 for ; Sun, 11 Dec 2005 20:51:29 -0500 (EST) Received: from server017.dfw.nationwide.net (server017.dfw.nationwide.net [206.123.129.80]) by menubar.gnome.org (Postfix) with SMTP id 5AB5F3B155D for ; Sun, 11 Dec 2005 20:51:29 -0500 (EST) Received: (qmail 7179 invoked from network); 12 Dec 2005 01:51:28 -0000 Received: from sense-sea-megasub-1-814.oz.net (HELO rose) (216.39.170.53) by 206.123.129.9 with SMTP; Mon, 12 Dec 2005 01:51:28 +0000 Received: from localhost (localhost [127.0.0.1]) by rose (Postfix) with ESMTP id 53826E4072 for ; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Received: from rose ([127.0.0.1]) by localhost (rose [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15257-08 for ; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Received: by rose (Postfix, from userid 1000) id 1EDF5E4074; Sun, 11 Dec 2005 17:51:27 -0800 (PST) Date: Sun, 11 Dec 2005 17:51:26 -0800 From: Ben Johnson To: gtk-list Message-ID: <20051212015126.GB2576@rose.benjohnson.net> Mail-Followup-To: Ben Johnson , gtk-list References: <1134348802.24814.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134348802.24814.4.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at learninginaction.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Re: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 01:51:32 -0000 On Sun, Dec 11, 2005 at 07:53:22PM -0500, Travis Miller wrote: > I have another GLib question. Currently I am writing some code that > needs to perform some calculations every second. SO I want the function > called every second. So rather than using setitimer to create a SIGALRM > event that registering a function with sigaction() would catch, I > thought I could use the g_timeout_add() function in GLib. However I > found after playing with it that if I set it to 1 second then after 1 > second it calls the function. At the end of the function (if I return > TRUE from the function) it then sets up to call the function again in > second. So for a function that takes say 100 - 200 milliseconds to > complete, I find that I get the behavior that my function is not called > every second but more like every 1.1 - 1.2 seconds. I undertsnad that > gtk_timeout_add() is deprecated so is there another option (or should I > just use the standard setitimer() function)? is g_timeout_add() deprecated? I don't see anything about that in my documentation. I've used both POSIX signals and the g_timeout stuff to run "timers". Regular POSIX signals are nice because they're more truly asynchronous. They're bad because you can't manipulate any gtk widgets (the gtk state) from a POSIX signal callback, because you're likely to receive the interrupt during a non-thread-safe section. This is the reason I stick with the g_timeout stuff. I think the best way to deal with your issue is to NOT use the automatic restart feature you're using (return TRUE from the callback). Instead, look to see how much time has passed since the last time the callback ran and use gtk_timeout_add() with an adjusted timeout value. keep in mind that there is no guarantee that that the timer will fire "on time". it will fire as soon as possible, and only during main loop. So, if one of your functions takes several seconds to complete a task and doesn't allow gtk events to be processed, your g_timeout callback will not be called for those several seconds. I think this is similar to how POSIX signals work, but they're a little more reliable. :) - Ben From tml@iki.fi Mon Dec 12 04:34:29 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AEE543B0CDB; Mon, 12 Dec 2005 04:34:29 -0500 (EST) 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 29020-03; Mon, 12 Dec 2005 04:34:27 -0500 (EST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id BA0153B09E6; Mon, 12 Dec 2005 04:34:26 -0500 (EST) Received: from pettson.tml.iki.fi (MMMDXXVI.tun.saunalahti.fi [213.169.5.226]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id D8652103D3A; Mon, 12 Dec 2005 11:34:22 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17309.17444.383000.400602@gargle.gargle.HOWL> Date: Mon, 12 Dec 2005 11:34:28 +0200 To: Igor Gorbounov In-Reply-To: <4397BDF1.6080701@topazelectro.ru> References: <4397BDF1.6080701@topazelectro.ru> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 09:34:29 -0000 Igor Gorbounov writes: > Tell me, please, if there is any way to get a Win API application > instance handle in a gtkmm application GetModuleHandle(NULL) ? (I think "application instance" is Windows 3.x terminology, but the MCIWndCreate() docs say "handle to the module", to presumably GetModuleHandle() is what you want. --tml From ztuylek@inonu.edu.tr Mon Dec 12 04:54:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D977B3B3475 for ; Mon, 12 Dec 2005 04:54:54 -0500 (EST) 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 30784-10 for ; Mon, 12 Dec 2005 04:54:42 -0500 (EST) Received: from inonu.edu.tr (unknown [193.140.142.6]) by menubar.gnome.org (Postfix) with ESMTP id 3E6963B2611 for ; Mon, 12 Dec 2005 04:53:49 -0500 (EST) Received: from inonu.edu.tr (localhost [127.0.0.1]) by inonu.edu.tr (Postfix) with ESMTP id 08B40EC109 for ; Mon, 12 Dec 2005 11:53:19 +0200 (EET) Received: from [193.140.142.252] (unknown [193.140.142.252]) by inonu.edu.tr (Postfix) with ESMTP id E4694EC102 for ; Mon, 12 Dec 2005 11:53:18 +0200 (EET) Message-ID: <439D48AA.2000602@inonu.edu.tr> Date: Mon, 12 Dec 2005 11:53:46 +0200 From: ztuylek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 09:54:55 -0000 From florian.boor@kernelconcepts.de Mon Dec 12 05:52:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 48F4D3B2FBD for ; Mon, 12 Dec 2005 05:52:18 -0500 (EST) 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 03179-09 for ; Mon, 12 Dec 2005 05:52:15 -0500 (EST) Received: from gateway.kernelconcepts.de (dns.kernelconcepts.de [212.60.202.194]) by menubar.gnome.org (Postfix) with ESMTP id 1CB723B3442 for ; Mon, 12 Dec 2005 05:52:15 -0500 (EST) Received: from thunder.kc.de ([192.168.2.128] ident=fuchs) by gateway.kernelconcepts.de with asmtp (Exim 3.35 #1 (Debian)) id 1Ell7R-0006k4-00; Mon, 12 Dec 2005 11:41:21 +0100 Message-ID: <439D5654.20701@kernelconcepts.de> Date: Mon, 12 Dec 2005 11:52:04 +0100 From: Florian Boor User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zoltan Boszormenyi References: <43998C8A.3080404@freemail.hu> In-Reply-To: <43998C8A.3080404@freemail.hu> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: gtk-list Subject: Re: How can I find out if a program is already running X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 10:52:18 -0000 Hi, Zoltan Boszormenyi wrote: > I need to find out whether an instance of a program is already running > and possibly unminimize it or bring it above any other windows, so > I can prevent an application started again. > Is is possible using GTK-1.2, or GTK-2.x, and how? as long as you are using X11 you can use libstartup-notification. Greetings Florian -- The dream of yesterday Florian Boor is the hope of today Tel: 0271-771091-14 and the reality of tomorrow. Fax: 0271-771091-19 [Robert Hutchings Goddard, 1904] florian.boor@kernelconcepts.de 6C 44 30 4C 43 20 6B 61 16 07 0F AA E6 97 70 A8 From yinglcs@aim.com Mon Dec 12 10:59:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D4593B53E9 for ; Mon, 12 Dec 2005 10:59:24 -0500 (EST) 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 02840-06 for ; Mon, 12 Dec 2005 10:59:16 -0500 (EST) Received: from imo-d06.mx.aol.com (imo-d06.mx.aol.com [205.188.157.38]) by menubar.gnome.org (Postfix) with ESMTP id 760F23B53E0 for ; Mon, 12 Dec 2005 10:59:01 -0500 (EST) Received: from yinglcs@aim.com by imo-d06.mx.aol.com (mail_out_v38_r6.3.) id h.29a.199f50c (57870) for ; Mon, 12 Dec 2005 10:58:57 -0500 (EST) Received: from FWM-M09 (fwm-m09.webmail.aol.com [64.12.168.73]) by air-ia01.mail.aol.com (v108.32) with ESMTP id MAILINIA14-e20e439d9e4117d; Mon, 12 Dec 2005 10:58:57 -0500 Date: Mon, 12 Dec 2005 10:58:57 -0500 From: yinglcs@aim.com Message-Id: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 24.13.168.31 by FWM-M09.sysops.aol.com (64.12.168.73) with HTTP (WebMailUI); Mon, 12 Dec 2005 10:58:57 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 64.12.168.73 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.123 tagged_above=-999 required=2 tests=[BAYES_00, MSGID_FROM_MTA_HEADER, NO_REAL_NAME] X-Spam-Score: -1.123 X-Spam-Level: Subject: How can I find out the text of an entry in a ComboBox X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 15:59:24 -0000 Hi, How can I find out the text of an entry in a ComboBox if I only know the index of that entry? Regards, ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From martyn@imendio.com Mon Dec 12 13:07:39 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D71B3B2747 for ; Mon, 12 Dec 2005 13:07:39 -0500 (EST) 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 17047-10 for ; Mon, 12 Dec 2005 13:07:37 -0500 (EST) Received: from holken.mikan.net (holken.mikan.net [195.43.255.228]) by menubar.gnome.org (Postfix) with ESMTP id 74B163B13ED for ; Mon, 12 Dec 2005 13:07:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by holken.mikan.net (Postfix) with ESMTP id B307D12C01 for ; Mon, 12 Dec 2005 19:07:32 +0100 (CET) Received: from holken.mikan.net ([127.0.0.1]) by localhost (holken.mikan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32418-09 for ; Mon, 12 Dec 2005 19:07:29 +0100 (CET) Received: from nemesis (host81-159-197-244.range81-159.btcentralplus.com [81.159.197.244]) by holken.mikan.net (Postfix) with ESMTP id DD12612C17 for ; Mon, 12 Dec 2005 19:07:28 +0100 (CET) From: Martyn Russell To: gtk-list@gnome.org In-Reply-To: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> References: <8C7CD4C182BE1DF-B54-45A2@FWM-M09.sysops.aol.com> Content-Type: text/plain Organization: Imendio AB Date: Mon, 12 Dec 2005 18:15:45 +0000 Message-Id: <1134411345.2716.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at holken.mikan.net X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.888 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -1.888 X-Spam-Level: Subject: Re: How can I find out the text of an entry in a ComboBox X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: martyn@imendio.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 18:07:39 -0000 On Mon, 2005-12-12 at 10:58 -0500, yinglcs@aim.com wrote: > How can I find out the text of an entry in a ComboBox if I only know > the index of that entry? Try: gtk_combo_box_get_active_text (); Or something like: model = gtk_combo_box_get_model (combobox); path = gtk_tree_path_new_from_indices (0, -1); gtk_tree_model_get_iter (model, &iter, path); gtk_tree_model_get (model, &iter, 0, &str, -1); gtk_tree_path_free (path); g_free (str); -- Regards, Martyn From Robert.Thorpe@antenova.com Mon Dec 12 14:04:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D9FE3B2727 for ; Mon, 12 Dec 2005 14:04:53 -0500 (EST) 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 22988-03 for ; Mon, 12 Dec 2005 14:04:51 -0500 (EST) Received: from lhuumrelay3.mail.eu.uu.net (lhuumrelay3.lnd.ops.eu.uu.net [62.189.58.19]) by menubar.gnome.org (Postfix) with ESMTP id 4D4723B09B3 for ; Mon, 12 Dec 2005 14:04:49 -0500 (EST) Received: from antenova.com ([193.128.174.131]) by lhuumrelay3.mail.eu.uu.net (8.13.3/8.13.3) with ESMTP id jBCJ4l8e026962 for ; Mon, 12 Dec 2005 19:04:47 GMT X-Authenticated-As: none Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Mon, 12 Dec 2005 19:05:22 -0000 Message-ID: <062347F5EA06184999273868C1B4FD7F84231C@server.Antenova.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Win32 API HInstance and gtk+ - how? Thread-Index: AcX+/3Oc91rAz0BiRW+r28gipi0CQQATiU8g From: "Robert Thorpe" To: "gtk-list" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: RE: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 19:04:54 -0000 The normal way to get the app instance is to do GetWindowLong (hwnd, GWL_HINSTANCE) But hInstance and prevInstance aren't very useful these days, they cannot be used to check if a program is already running as it could be on Win-16. The normal way is to do that is to use FindWindow with the window class and Window name as NULL. > -----Original Message----- > From: gtk-list-bounces@gnome.org=20 > [mailto:gtk-list-bounces@gnome.org] On Behalf Of Tor Lillqvist > Sent: 12 December 2005 09:34 > To: Igor Gorbounov > Cc: gtk-list; GTKMM Lists > Subject: Win32 API HInstance and gtk+ - how? >=20 > Igor Gorbounov writes: > > Tell me, please, if there is any way to get a Win API=20 > application > instance handle in a gtkmm application >=20 > GetModuleHandle(NULL) ?=20 >=20 > (I think "application instance" is Windows 3.x terminology, but the > MCIWndCreate() docs say "handle to the module", to presumably > GetModuleHandle() is what you want. >=20 > --tml >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 From mleisher@crl.NMSU.Edu Mon Dec 12 17:00:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 84F1A3B0DE1 for ; Mon, 12 Dec 2005 17:00:38 -0500 (EST) 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 07901-08 for ; Mon, 12 Dec 2005 17:00:36 -0500 (EST) Received: from crl.NMSU.Edu (crl.NMSU.Edu [128.123.1.33]) by menubar.gnome.org (Postfix) with ESMTP id 585BB3B06BD for ; Mon, 12 Dec 2005 17:00:34 -0500 (EST) Received: from [128.123.1.131] (IDENT:1145@osiris [128.123.1.131]) by crl.NMSU.Edu (8.13.4/8.13.4) with ESMTP id jBCM0GZA007980 for ; Mon, 12 Dec 2005 15:00:16 -0700 (MST) Message-ID: <439DF391.5040406@crl.nmsu.edu> Date: Mon, 12 Dec 2005 15:02:57 -0700 From: Mark Leisher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: multipart/mixed; boundary="------------000901020002000703030603" X-Virus-Scanned: ClamAV 0.87.1/1209/Mon Dec 12 08:48:01 2005 on crl X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Possible problem with gdk_selection_get_owner() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 22:00:38 -0000 This is a multi-part message in MIME format. --------------000901020002000703030603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Attached are two small programs, gtk.c and x11.c. Both are meant to demonstrate how to use a GdkAtom/Atom to determine if an instance of a program is already running (Linux/Unix). The x11.c code works fine. The gtk.c code always returns NULL when gdk_selection_get_owner() is called, but the SelectionClear event is actually dispatched when gdk_selection_owner_set() is called the second time the program is run. Am I missing something or is this expected behavior? How the programs are supposed to be run: 1. Run the first one in the background: % ./x11 & 2. When the program is run again, it is supposed to print something about another copy already running and exit: % ./x11 -- --------------------------------------------------------------------------- Mark Leisher Computing Research Lab A sneer is the weapon of the weak. New Mexico State University -- James Russell Lowell (1819-1891) Box 30001, MSC 3CRL Las Cruces, NM 88003 --------------000901020002000703030603 Content-Type: text/plain; name="gtk.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="gtk.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPGd0ay9n dGsuaD4KCnN0YXRpYyBHZGtBdG9tIHJ1bm5pbmcgPSAwOwoKc3RhdGljIGdib29sZWFuCnNl bGNsZWFyKEd0a1dpZGdldCAqdywgR2RrRXZlbnRTZWxlY3Rpb24gKmV2LCBncG9pbnRlciBk YXRhKQp7CiAgICBnZGtfc2VsZWN0aW9uX293bmVyX3NldCh3LT53aW5kb3csIGV2LT5zZWxl Y3Rpb24sIEdES19DVVJSRU5UX1RJTUUsIEZBTFNFKTsKCiAgICByZXR1cm4gVFJVRTsKfQoK c3RhdGljIHZvaWQKZG9uZShHdGtXaWRnZXQgKndpZGdldCwgZ3BvaW50ZXIgZGF0YSkKewog ICAgZ2RrX3NlbGVjdGlvbl9vd25lcl9zZXQoMCwgcnVubmluZywgR0RLX0NVUlJFTlRfVElN RSwgRkFMU0UpOwogICAgZ3RrX21haW5fcXVpdCgpOwogICAgZXhpdCgwKTsKfQoKaW50Cm1h aW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgR3RrV2lkZ2V0ICp3LCAqYjsKCiAg ICBndGtfaW5pdCgmYXJnYywgJmFyZ3YpOwoKICAgIHJ1bm5pbmcgPSBnZGtfYXRvbV9pbnRl cm4oIlBST0dfUlVOTklORyIsIFRSVUUpOwoKICAgIGlmIChnZGtfc2VsZWN0aW9uX293bmVy X2dldChydW5uaW5nKSAhPSAwKSB7CiAgICAgICAgcHJpbnRmKCIlczogYWxyZWFkeSBydW5u aW5nLlxuIiwgZ19nZXRfcHJnbmFtZSgpKTsKICAgICAgICBnZGtfc2VsZWN0aW9uX293bmVy X3NldCgwLCBydW5uaW5nLCBHREtfQ1VSUkVOVF9USU1FLCBUUlVFKTsKICAgICAgICByZXR1 cm4gMTsKICAgIH0KCiAgICB3ID0gZ3RrX3dpbmRvd19uZXcoR1RLX1dJTkRPV19UT1BMRVZF TCk7CiAgICBnX3NpZ25hbF9jb25uZWN0KEdfT0JKRUNUKHcpLCAic2VsZWN0aW9uLWNsZWFy LWV2ZW50IiwKICAgICAgICAgICAgICAgICAgICAgR19DQUxMQkFDSyhzZWxjbGVhciksIDAp OwoKICAgIGd0a193aW5kb3dfc2V0X3RpdGxlKEdUS19XSU5ET1codyksICJBbSBJIEFscmVh ZHkgUnVubmluZz8iKTsKICAgIGdfc2lnbmFsX2Nvbm5lY3QoR19PQkpFQ1QodyksICJkZXN0 cm95IiwgR19DQUxMQkFDSyhndGtfbWFpbl9xdWl0KSwgMCk7CiAgICBnX3NpZ25hbF9jb25u ZWN0KEdfT0JKRUNUKHcpLCAiZGVsZXRlX2V2ZW50IiwgR19DQUxMQkFDSyhndGtfbWFpbl9x dWl0KSwwKTsKCiAgICBiID0gZ3RrX2J1dHRvbl9uZXdfd2l0aF9sYWJlbCgiRXhpdCIpOwog ICAgZ3RrX3dpZGdldF9zZXRfc2l6ZV9yZXF1ZXN0KGIsIDEwMCwgMTAwKTsKICAgIGdfc2ln bmFsX2Nvbm5lY3QoR19PQkpFQ1QoYiksICJjbGlja2VkIiwgR19DQUxMQkFDSyhkb25lKSwg MCk7CiAgICBndGtfY29udGFpbmVyX2FkZChHVEtfQ09OVEFJTkVSKHcpLCBiKTsKCiAgICBn dGtfd2lkZ2V0X3Nob3dfYWxsKHcpOwoKICAgIC8qCiAgICAgKiBPd24gdGhlIHNlbGVjdGlv bi4KICAgICAqLwogICAgZ2RrX3NlbGVjdGlvbl9vd25lcl9zZXQody0+d2luZG93LCBydW5u aW5nLCBHREtfQ1VSUkVOVF9USU1FLCBUUlVFKTsKCiAgICBndGtfbWFpbigpOwoKICAgIHJl dHVybiAwOwp9Cg== --------------000901020002000703030603 Content-Type: text/plain; name="x11.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="x11.c" I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxYMTEvWGxpYi5oPgoKI2RlZmluZSBBTExF VkVOVE1BU0tTIChLZXlQcmVzc01hc2t8S2V5UmVsZWFzZU1hc2t8QnV0dG9uUHJlc3NNYXNr fFwKICAgICAgICAgICAgICAgICAgICAgICBCdXR0b25SZWxlYXNlTWFza3xFbnRlcldpbmRv d01hc2t8TGVhdmVXaW5kb3dNYXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBQb2ludGVy TW90aW9uTWFza3xQb2ludGVyTW90aW9uSGludE1hc2t8XAogICAgICAgICAgICAgICAgICAg ICAgIEJ1dHRvbjFNb3Rpb25NYXNrfEJ1dHRvbjJNb3Rpb25NYXNrfEJ1dHRvbjNNb3Rpb25N YXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBCdXR0b240TW90aW9uTWFza3xCdXR0b241 TW90aW9uTWFza3xCdXR0b25Nb3Rpb25NYXNrfFwKICAgICAgICAgICAgICAgICAgICAgICBL ZXltYXBTdGF0ZU1hc2t8RXhwb3N1cmVNYXNrfFZpc2liaWxpdHlDaGFuZ2VNYXNrfFwKICAg ICAgICAgICAgICAgICAgICAgICBTdHJ1Y3R1cmVOb3RpZnlNYXNrfFJlc2l6ZVJlZGlyZWN0 TWFza3xcCiAgICAgICAgICAgICAgICAgICAgICAgU3Vic3RydWN0dXJlTm90aWZ5TWFza3xT dWJzdHJ1Y3R1cmVSZWRpcmVjdE1hc2t8XAogICAgICAgICAgICAgICAgICAgICAgIEZvY3Vz Q2hhbmdlTWFza3xQcm9wZXJ0eUNoYW5nZU1hc2t8Q29sb3JtYXBDaGFuZ2VNYXNrfFwKICAg ICAgICAgICAgICAgICAgICAgICBPd25lckdyYWJCdXR0b25NYXNrKQoKaW50Cm1haW4odm9p ZCkKewogICAgaW50IGRvbmU7CiAgICBEaXNwbGF5ICpkOwogICAgQXRvbSBydW5uaW5nOwog ICAgV2luZG93IHdpbiwgcm9vdDsKICAgIFhFdmVudCBldjsKCiAgICBkID0gWE9wZW5EaXNw bGF5KCIiKTsKCiAgICByb290ID0gRGVmYXVsdFJvb3RXaW5kb3coZCk7CgogICAgd2luID0g WENyZWF0ZVdpbmRvdyhkLCByb290LCAxMCwgMTAsIDEwMCwgMTAwLCAyLAogICAgICAgICAg ICAgICAgICAgICAgICBDb3B5RnJvbVBhcmVudCwgSW5wdXRPdXRwdXQsIENvcHlGcm9tUGFy ZW50LAogICAgICAgICAgICAgICAgICAgICAgICAwLCAwKTsKICAgIFhTZWxlY3RJbnB1dChk LCB3aW4sIEFMTEVWRU5UTUFTS1MpOwogICAgWE1hcFdpbmRvdyhkLCB3aW4pOwoKICAgIHJ1 bm5pbmcgPSBYSW50ZXJuQXRvbShkLCAiUFJPR19SVU5OSU5HIiwgVHJ1ZSk7CgogICAgaWYg KFhHZXRTZWxlY3Rpb25Pd25lcihkLCBydW5uaW5nKSA9PSAwKSB7CiAgICAgICAgcHJpbnRm KCJPd25pbmcgcHJvcGVydHkuXG4iKTsKICAgICAgICBYU2V0U2VsZWN0aW9uT3duZXIoZCwg cnVubmluZywgd2luLCBDdXJyZW50VGltZSk7CiAgICB9IGVsc2UgewogICAgICAgIFhTZXRT ZWxlY3Rpb25Pd25lcihkLCBydW5uaW5nLCAwLCBDdXJyZW50VGltZSk7CiAgICAgICAgWERl c3Ryb3lXaW5kb3coZCwgd2luKTsKICAgICAgICBYQ2xvc2VEaXNwbGF5KGQpOwogICAgICAg IHByaW50ZigiQW5vdGhlciBpbnN0YW5jZSBpcyBydW5uaW5nLlxuIik7CiAgICAgICAgcmV0 dXJuIDA7CiAgICB9CgogICAgZG9uZSA9IDA7CiAgICB3aGlsZSAoIWRvbmUpIHsKICAgICAg ICBYTmV4dEV2ZW50KGQsICZldik7CiAgICAgICAgc3dpdGNoIChldi50eXBlKSB7CiAgICAg ICAgICBjYXNlIFNlbGVjdGlvbkNsZWFyOgogICAgICAgICAgICBYU2V0U2VsZWN0aW9uT3du ZXIoZCwgcnVubmluZywgd2luLCBDdXJyZW50VGltZSk7CiAgICAgICAgICAgIGJyZWFrOwog ICAgICAgICAgY2FzZSBLZXlSZWxlYXNlTWFzazoKICAgICAgICAgICAgZG9uZSA9IDE7CiAg ICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgIH0KCiAgICBYU2V0U2VsZWN0aW9uT3du ZXIoZCwgcnVubmluZywgMCwgQ3VycmVudFRpbWUpOwogICAgWENsb3NlRGlzcGxheShkKTsK ICAgIHJldHVybiAwOwp9Cg== --------------000901020002000703030603-- From shafer@realmsys.com Mon Dec 12 20:23:51 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 074293B555D for ; Mon, 12 Dec 2005 20:23:51 -0500 (EST) 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 24128-06 for ; Mon, 12 Dec 2005 20:23:49 -0500 (EST) Received: from ba.realmsys.com (207.88.121.47.ptr.us.xo.net [207.88.121.47]) by menubar.gnome.org (Postfix) with ESMTP id A618B3B1905 for ; Mon, 12 Dec 2005 20:23:48 -0500 (EST) Received: from [10.100.6.214] (unknown [66.239.3.2]) by ba.realmsys.com (Spam Firewall) with ESMTP id AB6843014F for ; Mon, 12 Dec 2005 18:23:47 -0700 (MST) From: Andrew Shafer To: gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Dec 2005 18:22:00 -0700 Message-Id: <1134436920.7358.12.camel@baraka.inrealm.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Barracuda Spam Firewall at realmsys.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Subject: Double buffering while moving in a 'fixed' X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 01:23:51 -0000 I know what I'm doing is against all things holy, but maybe someone else thought about this before. I have a GtkFixed container that I'm using to do little layout. Inside the fixed I have components. Components can be any widget and they are also associated with a shape mask. I collect all the widgets and masks, then draw them into the fixed and mask them to get a shaped window. (the components make use of 'normal' layout tools, like V/Hbox etc.) Now I want to move pieces around in an animated fashion cause I'm crazy like that. It all works, but I get a little flicker as you would expect if you aren't double buffering. Is there some strategy that would allow me to smooth out the drawing while still retaining the individual GdkWindows on my components and children so they can catch events? Any ideas? Anyone ever played with anything like this using gtk? Regards Andrew Shafer From lists@nabble.com Mon Dec 12 21:30:29 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D8B243B0E44 for ; Mon, 12 Dec 2005 21:30:29 -0500 (EST) 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 28512-01 for ; Mon, 12 Dec 2005 21:30:28 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 576B93B5856 for ; Mon, 12 Dec 2005 21:30:21 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Elzvo-0004Gr-Mp for gtk-list@gnome.org; Mon, 12 Dec 2005 18:30:20 -0800 Message-ID: <1916845.post@talk.nabble.com> Date: Mon, 12 Dec 2005 18:30:20 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_542_16328830.1134441020703" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.096 tagged_above=-999 required=2 tests=[BAYES_30, HTML_MESSAGE] X-Spam-Score: 2.096 X-Spam-Level: ** X-Spam-Flag: YES Subject: how to add an icon to the item in my list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 02:30:30 -0000 ------=_Part_542_16328830.1134441020703 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I use gtk+1.2; the list as the following: GtkWidget* list = gtk_list_new(); GList* viewList = ...; gtk_list_append_items(GTK_LIST(list), viewList); my question is: how to add an icon(.png, .xpm, etc) to the current selected item in the list? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/how-to-add-an-icon-to-the-item-in-my-list-t731785.html#a1916845 ------=_Part_542_16328830.1134441020703 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit I use gtk+1.2;
the list as the following:
    GtkWidget* list = gtk_list_new();
    GList* viewList = ...;
    gtk_list_append_items(GTK_LIST(list), viewList);

my question is:
    how to add an icon(.png, .xpm, etc) to the current selected item in the list?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
how to add an icon to the item in my list ------=_Part_542_16328830.1134441020703-- From ramachandracs@rediffmail.com Mon Dec 12 22:58:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1FCD63B2725 for ; Mon, 12 Dec 2005 22:58:23 -0500 (EST) 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 01591-02 for ; Mon, 12 Dec 2005 22:58:21 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.136]) by menubar.gnome.org (Postfix) with SMTP id 3467D3B1864 for ; Mon, 12 Dec 2005 22:58:19 -0500 (EST) Received: (qmail 10266 invoked by uid 510); 13 Dec 2005 03:58:08 -0000 Date: 13 Dec 2005 03:58:08 -0000 Message-ID: <20051213035808.10265.qmail@webmail62.rediffmail.com> Received: from unknown (59.92.135.217) by rediffmail.com via HTTP; 13 dec 2005 03:58:08 -0000 MIME-Version: 1.0 From: "Ramachandra CS" To: gtk-list@gnome.org Content-type: multipart/alternative; boundary="Next_1134446288---0-203.199.83.136-10251" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.277 tagged_above=-999 required=2 tests=[BAYES_20, HTML_MESSAGE, MSGID_FROM_MTA_HEADER] X-Spam-Score: 2.277 X-Spam-Level: ** X-Spam-Flag: YES Subject: Warning :*****: When I run GTK Application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ramachandra CS List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 03:58:23 -0000 This is a multipart mime message --Next_1134446288---0-203.199.83.136-10251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0A=A0 I am facing some problems when i run my GTK Applications. = And also when i click on any widget, it display the Gdk-WARNING, but the ap= plication works fine some times. =0A =0A So Can u suggest me some i= deas to correct these problems. And the following are the Gdk-WARNINGS.....= .........................=0A=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-885= 9-1': No such file or directory=0A=0A(tcsetup:903): Gdk-WARNING **: Error c= onverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'I= SO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conve= rting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8= 859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error convertin= g from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-= 1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fr= om UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' i= s not supported=0AEXEC FAILED!=0A=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fro= m UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is= not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UT= F-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not= supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 = to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not sup= ported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to S= TRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not support= ed=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRIN= G: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0AEXEC FAILED!=0A= =0A=0A=0A=0ARegards,=0A-r=0A --Next_1134446288---0-203.199.83.136-10251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A Hi,
=0A
=0A    I am facing some problems when i run= my GTK Applications. And also when i click on any widget, it display the G= dk-WARNING, but the application works fine some times.
=0A   =
=0A    So Can u suggest me some ideas to correct these pro= blems. And the following are the Gdk-WARNINGS..............................=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1': No such fil= e or directory
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Erro= r converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to= 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A(tcsetup:903= ): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from c= haracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup= :903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fr= om character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcs= etup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversio= n from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A= (tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conve= rsion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: C= onversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
= =0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING= : Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to ST= RING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supporte= d
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 t= o STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supp= orted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF= -8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not = supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from= UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is = not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting = from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1'= is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-885= 9-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error con= verting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO= -8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error= converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to = 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A
=0A
= =0A
=0ARegards,
=0A-r
=0A=0A

=0A

=0A=0A --Next_1134446288---0-203.199.83.136-10251-- From mclasen@redhat.com Mon Dec 12 23:23:27 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 858613B0986; Mon, 12 Dec 2005 23:23:27 -0500 (EST) 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 03391-08; Mon, 12 Dec 2005 23:23:25 -0500 (EST) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id C184E3B230F; Mon, 12 Dec 2005 23:23:22 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jBD4NMXo029797; Mon, 12 Dec 2005 23:23:22 -0500 Received: from lacrosse.corp.redhat.com (lacrosse.corp.redhat.com [172.16.52.154]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBD4NH109250; Mon, 12 Dec 2005 23:23:17 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by lacrosse.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jBD4NGc27296; Mon, 12 Dec 2005 23:23:16 -0500 From: Matthias Clasen To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Date: Mon, 12 Dec 2005 23:23:15 -0500 Message-Id: <1134447796.2597.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2 (2.4.2-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.988 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -1.988 X-Spam-Level: Cc: Subject: Pango 1.11.1 released X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gnome-hackers@gnome.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 04:23:28 -0000 Behdad stayed up all night to finish Pango 1.11.1 before leaving for the holidays. Thanks, Behdad ! Pango 1.11.1 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.9 http://ftp.gnome.org/pub/GNOME/sources/pango/1.11 pango-1.11.1.tar.bz2 c6255bba9bb738a564716fd57b7cc546 pango-1.11.1.tar.gz af6d609510fe5c0d35a3f8f863135b7c This is the second development release leading up to 1.12. Overview of changes between 1.11.0 and 1.11.1 ============================================= * ATSUI support for the cairo backend. [Anders Carlsson] * Fixed a couple of regressions with font size and scaling. * Draw a dashed empty box on missing glyphs for cairo-fc backend. * Support OpenType features for basic (Latin/Greek/...) module. * Support swash feature in Arabic module. * Misc bug fixes. * Misc documentation improvements. Optimizations: * Cache GObject private data in PangoFcFont.priv [Federico Mena Quintero] * Add a constant-sized light-weight cache for glyph extents. * Use g_slice_* instead of GMemChunk in mini-fribidi. December 12, 2005 Matthias From igorbounov@topazelectro.ru Tue Dec 13 00:23:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 037923B5940 for ; Tue, 13 Dec 2005 00:23:44 -0500 (EST) 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 08391-10 for ; Tue, 13 Dec 2005 00:23:42 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id ABD3E3B5943 for ; Tue, 13 Dec 2005 00:23:40 -0500 (EST) Received: (qmail 28165 invoked by uid 7801); 13 Dec 2005 05:18:48 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.086862 secs); 13 Dec 2005 05:18:48 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.086862 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 13 Dec 2005 05:18:47 -0000 Message-ID: <439E5AEE.3060700@topazelectro.ru> Date: Tue, 13 Dec 2005 08:23:58 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tor Lillqvist References: <4397BDF1.6080701@topazelectro.ru> <17309.17444.383000.400602@gargle.gargle.HOWL> In-Reply-To: <17309.17444.383000.400602@gargle.gargle.HOWL> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.757 tagged_above=-999 required=2 tests=[BAYES_00, TW_GT, TW_LQ, TW_TK] X-Spam-Score: -1.757 X-Spam-Level: Cc: gtk-list , GTKMM Lists Subject: Re: Win32 API HInstance and gtk+ - how? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 05:23:44 -0000 Tor Lillqvist wrote: >Igor Gorbounov writes: > > Tell me, please, if there is any way to get a Win API application > > instance handle in a gtkmm application > >GetModuleHandle(NULL) ? > > > Yes, Vinzenz Feenstra has suggested this function last week and it helped. Thanks to all, who answered my question. Igor Gorbounov > > > From slackcub@gmail.com Tue Dec 13 02:37:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6AFCE3B0DD1 for ; Tue, 13 Dec 2005 02:37:07 -0500 (EST) 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 27110-07 for ; Tue, 13 Dec 2005 02:37:05 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id AE2E63B27B3 for ; Tue, 13 Dec 2005 02:37:03 -0500 (EST) Received: by zproxy.gmail.com with SMTP id i28so1669756nzi for ; Mon, 12 Dec 2005 23:37:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:mime-version:content-disposition:content-type:content-transfer-encoding:message-id:from; b=n+GgVx9KTsfO8G4Z/TAOSEJFfQAgvbL0/4fUW9nbQC9QwcRgrWg44EJTuIjkOm1FHNfzp9gB/PM+SdvMWgnBrtHQud/myX2WoMPZ4GkMInOvk6YhNULJVPHlZwgQ4RUw/LE1i+fEoDW9cily12EHz7Yjji7p/Y16U/3tMg3oRgg= Received: by 10.36.148.15 with SMTP id v15mr6987751nzd; Mon, 12 Dec 2005 23:37:02 -0800 (PST) Received: from pitr.largegeek.com ( [68.252.72.79]) by mx.gmail.com with ESMTP id 23sm3974370nzn.2005.12.12.23.37.02; Mon, 12 Dec 2005 23:37:02 -0800 (PST) To: gtk-list@gnome.org Date: Tue, 13 Dec 2005 01:40:38 -0600 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200512130140.38985.largegeek@largegeek.com> From: Largegeek X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.811 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS, TW_KG] X-Spam-Score: -1.811 X-Spam-Level: Subject: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: largegeek@largegeek.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 07:37:07 -0000 I am trying to upgrade my version of gtk+ because I want to upgrade gimp. At least, that was the original version but now it has become an all consuming mission because I have been trying on and off for a couple weeks now with no success. I just installed the following libraries: atk 1.10.1 cairo 1.0.2 glib 2.8.4 pango 1.10.1 originally I had needed to keep my old version of glib on here because I was having other programs break with version 2.8.4 of glib. Mainly unresolved symbol issues. but whenever I would try to run configure on gtk+ it would say that pkgconfig reported v2.8.4 of glib, but it found my old one. After unsuccessfully trying to figure that problem out, I gave up and decided that I would just rebuild the programs that didn't work with the new glib version Now I'm getting an error said that configure can't link to the pango libraries, when I know I have them installed in /usr/local. Any help would be greatly appreciated! David largegeek@largegeek.com From diego@otello.alma.unibo.it Tue Dec 13 05:10:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C845C3B1A82 for ; Tue, 13 Dec 2005 05:10:17 -0500 (EST) 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 07471-07 for ; Tue, 13 Dec 2005 05:10:15 -0500 (EST) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id 5864F3B1B3F for ; Tue, 13 Dec 2005 05:10:12 -0500 (EST) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id 269E4DCAA1 for ; Tue, 13 Dec 2005 06:33:34 -0500 (EST) Message-ID: <439E9780.1010706@otello.alma.unibo.it> Date: Tue, 13 Dec 2005 10:42:24 +0100 From: Diego Zuccato User-Agent: Mozilla Thunderbird 1.0.7-3mdk (X11/20051015) X-Accept-Language: it, en MIME-Version: 1.0 Cc: gtk-list References: <1134348802.24814.4.camel@localhost.localdomain> <20051212015126.GB2576@rose.benjohnson.net> In-Reply-To: <20051212015126.GB2576@rose.benjohnson.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: Subject: Re: timers X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 10:10:17 -0000 Ben Johnson wrote: > keep in mind that there is no guarantee that that the timer will fire > "on time". it will fire as soon as possible, and only during main loop. > So, if one of your functions takes several seconds to complete a task > and doesn't allow gtk events to be processed, your g_timeout callback > will not be called for those several seconds. I think this is similar > to how POSIX signals work, but they're a little more reliable. :) If this behaviour is not what he wants, he should fallback to multithreading (w/ all the gdk_threads_enter/leave stuff). BYtE, Diego. From DANIELLLANO@terra.es Tue Dec 13 06:53:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E45EC3B1965 for ; Tue, 13 Dec 2005 06:53:47 -0500 (EST) 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 16686-01 for ; Tue, 13 Dec 2005 06:53:45 -0500 (EST) Received: from csmtpout3.frontal.correo (webmail.terra.es [213.4.149.12]) by menubar.gnome.org (Postfix) with ESMTP id 8DFDA3B5B59 for ; Tue, 13 Dec 2005 06:51:26 -0500 (EST) Received: from cps2 (213.4.149.20) by csmtpout3.frontal.correo (7.2.056.2) id 42D549260045D8C3 for gtk-list@gnome.org; Tue, 13 Dec 2005 12:50:30 +0100 Received: from [213.4.149.67] by correo2.terra.es with HTTP (authenticated as danielllano@terra.es); Tue, 13 Dec 2005 12:51:25 +0100 Message-ID: <33365135.1134474685252.JavaMail.root@cps2> Date: Tue, 13 Dec 2005 12:51:25 +0100 (MET) From: "DANIELLLANO@terra.es" To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.48 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_KG=0.077] X-Spam-Score: -0.48 X-Spam-Level: Subject: Re: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: DANIELLLANO@terra.es List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 11:53:48 -0000 Largegeek wrote: > I am trying to upgrade my version of gtk+ because I want to upgrade gimp.= At=20 > least, that was the original version but now it has become an all consumi= ng=20 > mission because I have been trying on and off for a couple weeks now with= no=20 > success. >=20 > I just installed the following libraries: > atk 1.10.1 > cairo 1.0.2 > glib 2.8.4 > pango 1.10.1 >=20 > originally I had needed to keep my old version of glib on here because I = was=20 > having other programs break with version 2.8.4 of glib. Mainly unresolved= =20 > symbol issues. but whenever I would try to run configure on gtk+ it=20 would say=20 > that pkgconfig reported v2.8.4 of glib, but it found my old one. After=20 > unsuccessfully trying to figure that problem out, I gave up and decided t= hat=20 > I would just rebuild the programs that didn't work with the new glib vers= ion > Now I'm getting an error said that configure can't link to the pango=20 > libraries, when I know I have them installed in /usr/local.=20 What version of gimp are you trying to install? Debian already has gimp-2.2.9 (and updated versions of the needed libraries= ) so you may want to stick to Debian testing or unstable if you are not doing hardcore=20 development. http://packages.debian.org/gimp Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. From flaviothunder@terra.com.br Tue Dec 13 08:09:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 587493B3A6B for ; Tue, 13 Dec 2005 08:09:43 -0500 (EST) 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 23700-05 for ; Tue, 13 Dec 2005 08:09:41 -0500 (EST) Received: from birao.terra.com.br (birao.terra.com.br [200.176.10.197]) by menubar.gnome.org (Postfix) with ESMTP id 6A49D3B5BEF for ; Tue, 13 Dec 2005 08:02:52 -0500 (EST) Received: from bucavu.terra.com.br (bucavu.terra.com.br [200.176.10.6]) by birao.terra.com.br (Postfix) with ESMTP id 8939C108C1F6 for ; Tue, 13 Dec 2005 11:02:50 -0200 (BRST) X-Terra-Karma: -2% X-Terra-Hash: 465a2d885378875f40a9d804dad371cf Received-SPF: pass (bucavu.terra.com.br: domain of terra.com.br designates 200.176.10.6 as permitted sender) client-ip=200.176.10.6; envelope-from=flaviothunder@terra.com.br; helo=[192.168.1.133]; Received: from [192.168.1.133] (unknown [200.196.242.80]) (authenticated user flaviothunder) by bucavu.terra.com.br (Postfix) with ESMTP id 6B8A0153C125 for ; Tue, 13 Dec 2005 11:02:50 -0200 (BRST) Message-ID: <439EC679.4050600@terra.com.br> Date: Tue, 13 Dec 2005 11:02:49 -0200 From: =?ISO-8859-1?Q?Fl=E1vio_Alberto_Lopes_Soares?= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: pt-br, pt MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.692 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_PASS=-0.001] X-Spam-Score: -0.692 X-Spam-Level: Subject: configure_event not sended X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 13:09:44 -0000 Hello all, I'm developing an application using GTK2 + libglade for use in a x86 embedded system, I'm compiled the gtk2, libglade2, pango, xft2, fontconfig, freetype, glib2 X 4.5.99.8 and kdrive small X (I will choose what X I will use) without problems to install in my target system. In my Debian Sarge system with the default libraries the application runs OK, but when I run my program in target system (Geode 300MHz Processor, chipset NSC5330) with the compiled libs it not calls the callback function connected to "configure_event" signal for the main window, but other signals as "pressed" signal for the buttons works OK. What can be the problem ? What are the libraries that "handle" the "configure_event" signal ? Thanks for any help Flavio Alberto Lopes Soares flaviothunder@terra.com.br From jcupitt@gmail.com Tue Dec 13 08:49:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57CB83B39BA for ; Tue, 13 Dec 2005 08:49:01 -0500 (EST) 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 27838-02 for ; Tue, 13 Dec 2005 08:48:58 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by menubar.gnome.org (Postfix) with ESMTP id 0AB6C3B2500 for ; Tue, 13 Dec 2005 08:48:57 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so2027279wxc for ; Tue, 13 Dec 2005 05:48:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sZTTlEoutfyzHiKfHj3VVb/8dmzOwNm22uTuR4pe9VqnahQt3C4THVwO/QAxaUl118dVNErtsOzvD/9K04zxv98KjCt9SiYolgn23+iUOW1zhlA/TB+kUXtUpzJo7XoOs+gk6/mnTLqOmY4cSSibLKO+ixgS2aaHZcW6D4egewc= Received: by 10.70.59.15 with SMTP id h15mr204537wxa; Tue, 13 Dec 2005 05:48:56 -0800 (PST) Received: by 10.70.67.14 with HTTP; Tue, 13 Dec 2005 05:48:56 -0800 (PST) Message-ID: <522c6460512130548q289ece64g670fef61d91f54e1@mail.gmail.com> Date: Tue, 13 Dec 2005 13:48:56 +0000 From: John Cupitt To: Andrew Shafer In-Reply-To: <1134436920.7358.12.camel@baraka.inrealm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134436920.7358.12.camel@baraka.inrealm.net> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Double buffering while moving in a 'fixed' X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 13:49:01 -0000 On 12/13/05, Andrew Shafer wrote: > Inside the fixed I have components. Components can be any widget and > they are also associated with a shape mask. I collect all the widgets > and masks, then draw them into the fixed and mask them to get a shaped > window. (the components make use of 'normal' layout tools, like V/Hbox > etc.) > > It all works, but I get a little flicker as you would expect if you > aren't double buffering. I do something like this in my app, except without the shaped windows. I have a fixed containing a lot of eventboxes, then each eventbox containing a vbox with my contents. I don't animate programatically much, but I do have the eventboxes draggable with the mouse. It seems to work OK (even on win32!) and there's no visible flicker. Some screenshots here: http://www.vips.ecs.soton.ac.uk/screenshots.php?page=3DVersion+7-10 John From diego@otello.alma.unibo.it Tue Dec 13 09:46:21 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D201C3B0F25 for ; Tue, 13 Dec 2005 09:46:20 -0500 (EST) 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 02345-05 for ; Tue, 13 Dec 2005 09:46:17 -0500 (EST) Received: from otello.alma.unibo.it (otello.alma.unibo.it [137.204.24.163]) by menubar.gnome.org (Postfix) with ESMTP id C73D23B3A74 for ; Tue, 13 Dec 2005 09:44:38 -0500 (EST) Received: from [127.0.0.1] (unknown [137.204.24.163]) by otello.alma.unibo.it (Postfix) with ESMTP id B0FE712218B for ; Tue, 13 Dec 2005 11:35:58 -0500 (EST) Message-ID: <439EDE63.60806@otello.alma.unibo.it> Date: Tue, 13 Dec 2005 15:44:51 +0100 From: Diego Zuccato User-Agent: Mozilla Thunderbird 1.0.7-3mdk (X11/20051015) X-Accept-Language: it, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Subject: Can't handle events from combobox? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 14:46:21 -0000 Hello all. I'm having troubles trying to catch keyboard events from a combobox. What I'm doing is a simple g_signal_connect(G_OBJECT(combo), "key_press_event", G_CALLBACK(reset_combo), NULL); just after setting the model and before selecting (eventually) a default for that combo. reset_combo() just prints an asterisk and returns. But I can't get that damned asterisk printed :( "Standard" controls work as expected, but my callback is never called. Can't see the difference between my grabbing and the grab done by Gtk+ internally in the GtkComboBox source. Any hint? Something obvious I couldn't see? Tks, Diego. From slackcub@gmail.com Tue Dec 13 10:36:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AD56D3B3B32 for ; Tue, 13 Dec 2005 10:36:43 -0500 (EST) 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 08592-10 for ; Tue, 13 Dec 2005 10:36:41 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by menubar.gnome.org (Postfix) with ESMTP id EF7643B3B3D for ; Tue, 13 Dec 2005 10:36:04 -0500 (EST) Received: by zproxy.gmail.com with SMTP id l1so1772309nzf for ; Tue, 13 Dec 2005 07:36:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-disposition:content-type:content-transfer-encoding:message-id:from; b=NbQevIUltPbbdWSPCpXz76u85jeMtddWMZX6ObRcMASTUPeiWFpL6kWvG8B+r+LQI6arysfi2BsltUvCif6bbA3cVkC/i83XtQi5MkSwN4OLR1QEPlDKcLYNnAu3CakFb13FdlonKAOmYh1FEw9N7qybluPH10yYRywnofdtqGg= Received: by 10.36.20.6 with SMTP id 6mr7416282nzt; Tue, 13 Dec 2005 07:36:03 -0800 (PST) Received: from pitr.largegeek.com ( [68.252.72.79]) by mx.gmail.com with ESMTP id 22sm3190108nzn.2005.12.13.07.35.59; Tue, 13 Dec 2005 07:36:00 -0800 (PST) To: gtk-list@gnome.org Date: Tue, 13 Dec 2005 09:39:38 -0600 User-Agent: KMail/1.6.2 References: <33365135.1134474685252.JavaMail.root@cps2> In-Reply-To: <33365135.1134474685252.JavaMail.root@cps2> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200512130939.39260.largegeek@largegeek.com> From: Largegeek X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.446 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_KG=0.077] X-Spam-Score: -2.446 X-Spam-Level: Subject: Re: upgrading gtk+ X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: largegeek@largegeek.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 15:36:43 -0000 I'm trying to install gimp 2.2.9 I am not running Debian, I have Slackware 9.1. I know it's an old version,= I=20 just really don't feel like doing a complete upgrade of it right now. On Tuesday 13 December 2005 05:51, DANIELLLANO@terra.es wrote: > Largegeek wrote: > > I am trying to upgrade my version of gtk+ because I want to upgrade gim= p. > > At least, that was the original version but now it has become an all > > consuming mission because I have been trying on and off for a couple > > weeks now with no success. > > > > I just installed the following libraries: > > atk 1.10.1 > > cairo 1.0.2 > > glib 2.8.4 > > pango 1.10.1 > > > > originally I had needed to keep my old version of glib on here because I > > was having other programs break with version 2.8.4 of glib. Mainly > > unresolved symbol issues. but whenever I would try to run configure on > > gtk+ it > > would say > > > that pkgconfig reported v2.8.4 of glib, but it found my old one. After > > unsuccessfully trying to figure that problem out, I gave up and decided > > that I would just rebuild the programs that didn't work with the new gl= ib > > version Now I'm getting an error said that configure can't link to the > > pango libraries, when I know I have them installed in /usr/local. > > What version of gimp are you trying to install? > > Debian already has gimp-2.2.9 (and updated versions of the needed > libraries) so you may want to stick to Debian testing or unstable if you > are not doing hardcore > development. > http://packages.debian.org/gimp > > > > Prueba el Nuevo Correo Terra; Seguro, R=C3=A1pido, Fiable. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yinglcs@aim.com Tue Dec 13 11:44:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0A19F3B0A24 for ; Tue, 13 Dec 2005 11:44:04 -0500 (EST) 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 15888-02 for ; Tue, 13 Dec 2005 11:43:57 -0500 (EST) Received: from imo-m19.mx.aol.com (imo-m19.mx.aol.com [64.12.137.11]) by menubar.gnome.org (Postfix) with ESMTP id 82B223B0917 for ; Tue, 13 Dec 2005 11:43:56 -0500 (EST) Received: from yinglcs@aim.com by imo-m19.mx.aol.com (mail_out_v38_r6.3.) id h.1f0.48eb5bd5 (57874) for ; Tue, 13 Dec 2005 11:43:49 -0500 (EST) Received: from FWM-R06 (fwm-r06.webmail.aol.com [152.163.211.134]) by air-ia02.mx.aol.com (v108.32) with ESMTP id MAILINIA24-e212439efa4410; Tue, 13 Dec 2005 11:43:49 -0500 Date: Tue, 13 Dec 2005 11:43:48 -0500 From: yinglcs@aim.com Message-Id: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> X-MB-Message-Source: WebUI X-MB-Message-Type: User Received: from 199.177.12.5 by FWM-R06.sysops.aol.com (152.163.211.134) with HTTP (WebMailUI); Tue, 13 Dec 2005 11:43:48 -0500 X-Mailer: AIM WebMail 15106 Content-Type: text/plain; charset="us-ascii"; format=flowed MIME-Version: 1.0 To: gtk-list@gnome.org X-AOL-IP: 152.163.211.134 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.637 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, MSGID_FROM_MTA_HEADER=0, NO_REAL_NAME=0.961, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -1.637 X-Spam-Level: Subject: Find the font of a Widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 16:44:04 -0000 Hi, Can you please tell me how can I which font a widget is using programmically? I can only find this funtion, which just modify the font: gtk_widget_modify_font. Thank you. ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. From paul@linuxaudiosystems.com Tue Dec 13 15:20:30 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3F3353B3A93 for ; Tue, 13 Dec 2005 15:20:30 -0500 (EST) 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 04174-03 for ; Tue, 13 Dec 2005 15:20:24 -0500 (EST) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id D86A43B2A7A for ; Tue, 13 Dec 2005 15:19:53 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRG0063PDT4LE26@vms040.mailsrvcs.net> for gtk-list@gnome.org; Tue, 13 Dec 2005 14:19:53 -0600 (CST) Date: Tue, 13 Dec 2005 15:22:29 -0500 From: Paul Davis In-reply-to: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> To: yinglcs@aim.com Message-id: <1134505349.13653.103.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <8C7CE1B8694B442-1248-C68@FWM-R06.sysops.aol.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.467 tagged_above=-999 required=2 tests=[AWL=-0.022, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.467 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Find the font of a Widget X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:20:30 -0000 GtkStyle* style = gtk_widget_get_style(widget); PangoFontDescription* font = style->font; or something like that. i use gtkmm (C++) note that styles are not necessarily set up until after a widget has been realized, because they can be affected by the screen the widget is displayed on. --p From inittab@sdf.lonestar.org Tue Dec 13 15:39:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AE2753B2B57 for ; Tue, 13 Dec 2005 15:39:37 -0500 (EST) 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 05895-06 for ; Tue, 13 Dec 2005 15:39:35 -0500 (EST) Received: from sdf.lonestar.org (ol.freeshell.ORG [192.94.73.20]) by menubar.gnome.org (Postfix) with ESMTP id 5CF743B29CD for ; Tue, 13 Dec 2005 15:39:27 -0500 (EST) Received: from sdf.lonestar.org (IDENT:inittab@freeshell.ORG [192.94.73.30]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id jBDKdHW6011219 for ; Tue, 13 Dec 2005 20:39:17 GMT Received: (from inittab@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id jBDKdHnA019848 for gtk-list@gnome.org; Tue, 13 Dec 2005 20:39:17 GMT Date: Tue, 13 Dec 2005 20:39:17 +0000 From: Greg Schenzel To: gtk-list@gnome.org Message-ID: <20051213203917.GA16628@SDF.LONESTAR.ORG> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.31 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.31 X-Spam-Level: X-Mailman-Approved-At: Wed, 14 Dec 2005 08:50:02 -0500 Subject: ComboBoxText set_editable equivalent X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: inittab@unixdev.net List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 20:39:37 -0000 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable To Whom It May Concern, I'm using gtkmm to build a C++ video stream converter. There are several fields which only need be edited under certain format profiles. Most of these fields are Gtk::ComboBoxText widgets. I need an equivalent for set_editable to prevent the user from selecting a nonsensical combination, but I am unable to find it. In short, what is the best practice to grey-out a ComboBoxText widget? Thanks in Advance, - Greg S. P.S. Please CC me at inittab AT unixdev.net. --=20 Greg Schenzel: inittab@unixdev.net UNIX Administrator, IP Networking Specialist WWW: inittab.netizenweb.com, www.unixdev.net ICQ: 57800324, Yahoo: idle_resonance, AIM: Idle Resonance --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (NetBSD) iD8DBQFDnzF12ua/BJvbazcRAuStAKCf2H6lfne1GxmLmPObSVT9mHPWiwCdFUsl V8s15+jUJcWl1OfOp1W3pE8= =EEM9 -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq-- From zvi.sebrow@verizon.net Wed Dec 14 10:27:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3878D3B3E94; Wed, 14 Dec 2005 10:27:49 -0500 (EST) 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 31045-10; Wed, 14 Dec 2005 10:27:47 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id 51B193B3E24; Wed, 14 Dec 2005 10:27:19 -0500 (EST) Received: from OFFICEPC1 ([151.205.166.142]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRH003S8UWCQCM1@vms048.mailsrvcs.net>; Wed, 14 Dec 2005 09:26:38 -0600 (CST) Date: Wed, 14 Dec 2005 10:26:37 -0500 From: "Zvi Sebrow" To: , Message-id: <00cb01c600c2$c6b53e60$4000a8c0@OFFICEPC1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_00C8_01C60098.DD718070" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.909 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: 1.909 X-Spam-Level: * Cc: Subject: GtkComboEntryBox, tabs and focus X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 15:27:50 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00C8_01C60098.DD718070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there a way to set up a GtkComboEntryBox so that if the user hits the TAB key (while editing text in the EntryBox), the focus would not be grabbed by the down-arrow-box of=20 the ComboBox but rather the next Widget in the window?=20 Zvi ------=_NextPart_000_00C8_01C60098.DD718070 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is there a way to set up a GtkComboEntryBox so that = if=20 the
user hits the TAB key (while editing text=20 in the EntryBox),
 the focus would not be = grabbed by=20 the down-arrow-box of
the ComboBox but rather the next Widget in = the window? 
 
Zvi
------=_NextPart_000_00C8_01C60098.DD718070-- From napoleone1981@gmail.com Wed Dec 14 17:29:41 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A775B3B127E for ; Wed, 14 Dec 2005 17:29:41 -0500 (EST) 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 07676-04 for ; Wed, 14 Dec 2005 17:29:38 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by menubar.gnome.org (Postfix) with ESMTP id 556463B0D69 for ; Wed, 14 Dec 2005 17:29:38 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 13so223373nzp for ; Wed, 14 Dec 2005 14:29:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oUAtw54RXcNUcE7FujNvn5xGZHbwmwfeypesvM7k/4jzUlZrA6+GAaWbOG4ILxatkK9BB/kdNPOJs99Vgemd2F/jxKK1xusuBJCVlBxhhJ5FUoYtCNNo4oc1QkDnfETBiiyCHQU9b5pg9UMOKiCi7v8oSZOfmhFNE36wRgt/4hw= Received: by 10.65.139.11 with SMTP id r11mr811945qbn; Wed, 14 Dec 2005 14:29:37 -0800 (PST) Received: by 10.65.252.20 with HTTP; Wed, 14 Dec 2005 14:29:37 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 23:29:37 +0100 From: "N@poleone" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.532 tagged_above=-999 required=2 tests=[AWL=0.068, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.532 X-Spam-Level: Subject: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 22:29:41 -0000 Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()= ': error: argument of type `gint (dialogAcquisizione::)(void*)' does not match `gboolean (*)(void*)' The code is (all in the same class): #include gint dialogAcquisizione::acquisisci(gpointer data) { std::cout << "Sto acquisendo...\n"; return (TRUE); } void dialogAcquisizione::on_okbutton2_clicked() { std::cout << "Intercettato l'evento di ok\n" << "Inzializzo il timer\n"; guint timer_id; timer_id =3D gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); //this.hide(); } Why??? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Wed Dec 14 22:38:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EBC1A3B0E7D for ; Wed, 14 Dec 2005 22:38:06 -0500 (EST) 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 29657-06 for ; Wed, 14 Dec 2005 22:38:02 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id 09E973B0BBB for ; Wed, 14 Dec 2005 22:38:02 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRI00KJVSRBT1O4@vms048.mailsrvcs.net> for gtk-list@gnome.org; Wed, 14 Dec 2005 21:38:01 -0600 (CST) Date: Wed, 14 Dec 2005 22:40:39 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134618039.7539.9.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.517 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 03:38:07 -0000 On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > Hi, > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > is the same...). I'm using C++... > The error is: > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > match `gboolean (*)(void*)' > > The code is (all in the same class): > > #include > > gint dialogAcquisizione::acquisisci(gpointer data) this should return gboolean. > { > std::cout << "Sto acquisendo...\n"; > return (TRUE); > } > > void dialogAcquisizione::on_okbutton2_clicked() > { > std::cout << "Intercettato l'evento di ok\n" > << "Inzializzo il timer\n"; > guint timer_id; > timer_id = > gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); > //this.hide(); > } > > Why??? > -- > Ciao da > N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) > "Le battaglie si vincono con gli uomini che si hanno, non con quelli che > si vorrebbero" (Napoleone Bonaparte) > "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) > "Le donne possono avere bambini...gli uomini computers" (Anonimo) > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From ramachandracs@rediffmail.com Wed Dec 14 23:09:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BE6173B0011 for ; Wed, 14 Dec 2005 23:09:37 -0500 (EST) 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 32121-07 for ; Wed, 14 Dec 2005 23:09:35 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.147]) by menubar.gnome.org (Postfix) with SMTP id 4F09C3B07C0 for ; Wed, 14 Dec 2005 23:09:32 -0500 (EST) Received: (qmail 15283 invoked by uid 510); 15 Dec 2005 04:08:57 -0000 Date: 15 Dec 2005 04:08:57 -0000 Message-ID: <20051215040857.15281.qmail@webmail25.rediffmail.com> Received: from unknown (59.92.155.231) by rediffmail.com via HTTP; 15 dec 2005 04:08:57 -0000 MIME-Version: 1.0 From: "Ramachandra CS" To: "gtk_list" Content-type: multipart/mixed; boundary="Next_1134619737---0-203.199.83.147-15278" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.97 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, HTML_10_20=1.351, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0, TW_GT=0.077] X-Spam-Score: -0.97 X-Spam-Level: Subject: Fwd: Warning :*****: When I run GTK Application X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ramachandra CS List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 04:09:37 -0000 This is a multipart mime message --Next_1134619737---0-203.199.83.147-15278 Content-type: multipart/alternative; boundary="Next_1134619737---1-203.199.83.147-15278" This is a multipart mime message --Next_1134619737---1-203.199.83.147-15278 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0A=0A=0ANote: Forwarded message attached=0A=0A-- Original Message --= =0A=0AFrom: "Ramachandra CS" =0ATo: gtk-list@= gnome.org=0ASubject: Warning :*****: When I run GTK Application=0A --Next_1134619737---1-203.199.83.147-15278 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0A
=0A
=0ANote: Forwarded message attached
=0A=0A-- Original Message --
=0A
=0AFrom: "Ramachandra CS" &= lt;ramachandracs@rediffmail.com>
=0ATo: gtk-list@gnome.org
=0ASubj= ect: Warning :*****: When I run GTK Application
=0A=0A

=0A

=0A=
=0A --Next_1134619737---1-203.199.83.147-15278-- --Next_1134619737---0-203.199.83.147-15278 Content-type: message/rfc822 MIME-Version: 1.0 Message-ID: <20051213035808.10265.qmail@webmail62.rediffmail.com> From: "Ramachandra CS" To: gtk-list@gnome.org Subject: Warning :*****: When I run GTK Application Content-Type: multipart/mixed; boundary="===============1428433415==" This is a multipart mime message --===============1428433415== Content-type: multipart/alternative; boundary="Next_1134446288---0-203.199.83.136-10251" This is a multipart mime message --Next_1134446288---0-203.199.83.136-10251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0A=0A=A0 I am facing some problems when i run my GTK Applications. = And also when i click on any widget, it display the Gdk-WARNING, but the ap= plication works fine some times. =0A =0A So Can u suggest me some i= deas to correct these problems. And the following are the Gdk-WARNINGS.....= .........................=0A=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-885= 9-1': No such file or directory=0A=0A(tcsetup:903): Gdk-WARNING **: Error c= onverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'I= SO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conve= rting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8= 859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error convertin= g from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-= 1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fr= om UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' i= s not supported=0AEXEC FAILED!=0A=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting fro= m UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is= not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UT= F-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not= supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 = to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not sup= ported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to S= TRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not support= ed=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRIN= G: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported= =0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING:= Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported=0AEXEC FAILED!=0A= =0A=0A=0A=0ARegards,=0A-r=0A --Next_1134446288---0-203.199.83.136-10251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A Hi,
=0A
=0A    I am facing some problems when i run= my GTK Applications. And also when i click on any widget, it display the G= dk-WARNING, but the application works fine some times.
=0A   =
=0A    So Can u suggest me some ideas to correct these pro= blems. And the following are the Gdk-WARNINGS..............................=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1': No such fil= e or directory
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting= from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1= ' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conver= ting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-88= 59-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error co= nverting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'IS= O-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Erro= r converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to= 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A(tcsetup:903= ): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from c= haracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup= :903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fr= om character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcs= etup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversio= n from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A= (tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conve= rsion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: C= onversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
= =0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STR= ING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to= STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not suppo= rted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-= 8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not s= upported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from = UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is n= ot supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting f= rom UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' = is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converti= ng from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859= -1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error conv= erting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-= 8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error = converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to '= ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Er= ror converting from UTF-8 to STRING: Conversion from character set 'UTF-8' = to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **= : Error converting from UTF-8 to STRING: Conversion from character set 'UTF= -8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNIN= G **: Error converting from UTF-8 to STRING: Conversion from character set = 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WA= RNING **: Error converting from UTF-8 to STRING: Conversion from character = set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903): Gd= k-WARNING **: Error converting from UTF-8 to STRING: Conversion from charac= ter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:903)= : Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from ch= aracter set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcsetup:= 903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion fro= m character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(tcse= tup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion= from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
=0A(= tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conver= sion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A
= =0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING: Co= nversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
=0A=
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to STRING= : Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 to ST= RING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supporte= d
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF-8 t= o STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supp= orted
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from UTF= -8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not = supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting from= UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is = not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error converting = from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1'= is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error convert= ing from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-885= 9-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error con= verting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO= -8859-1' is not supported
=0A
=0A(tcsetup:903): Gdk-WARNING **: Error= converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to = 'ISO-8859-1' is not supported
=0AEXEC FAILED!
=0A
=0A
=0A
= =0A
=0ARegards,
=0A-r
=0A=0A

=0A

=0A=0A --Next_1134446288---0-203.199.83.136-10251-- --===============1428433415== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list --===============1428433415==-- --Next_1134619737---0-203.199.83.147-15278-- From napoleone1981@gmail.com Thu Dec 15 03:24:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 053953B09DE for ; Thu, 15 Dec 2005 03:24:43 -0500 (EST) 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 16480-05 for ; Thu, 15 Dec 2005 03:24:40 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 2AE3B3B12AB for ; Thu, 15 Dec 2005 03:24:36 -0500 (EST) Received: by zproxy.gmail.com with SMTP id x7so324686nzc for ; Thu, 15 Dec 2005 00:24:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VarLhpl1OBxpO1q2ihoRGM4MpUPJZUQes57n5Mw8A6P8b0kjizTb9V9dGwVsOjePYT7jsLU1qwnk2raAjY8pH91MTVExO/yEyFn/ujKi19tUsLgX7Ks0Sv0JgpFoZq6D+GBgTc1UC7+o6JVQXvIWzThyceay6Z4NnOlHPyLEzEY= Received: by 10.65.75.3 with SMTP id c3mr302974qbl; Thu, 15 Dec 2005 00:24:35 -0800 (PST) Received: by 10.65.252.20 with HTTP; Thu, 15 Dec 2005 00:24:35 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 09:24:35 +0100 From: "N@poleone" To: paul@linuxaudiosystems.com In-Reply-To: <1134618039.7539.9.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134618039.7539.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.542 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.542 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 08:24:43 -0000 2005/12/15, Paul Davis : > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > > Hi, > > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > > is the same...). I'm using C++... > > The error is: > > > > In member function `virtual void dialogAcquisizione::on_okbutton2_click= ed()': > > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > > match `gboolean (*)(void*)' > > > > The code is (all in the same class): > > > > #include > > > > gint dialogAcquisizione::acquisisci(gpointer data) > > this should return gboolean. > I resolved defining the function as static... -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From napoleone1981@gmail.com Wed Dec 14 09:39:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C6C493B07BB for ; Wed, 14 Dec 2005 09:39:56 -0500 (EST) 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 26251-03 for ; Wed, 14 Dec 2005 09:39:54 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by menubar.gnome.org (Postfix) with ESMTP id C69D73B3D3D for ; Wed, 14 Dec 2005 09:39:27 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i12so401477wra for ; Wed, 14 Dec 2005 06:39:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=L++9lHaIlew3AxXuWEMYxz5pRxhlje9E+04MsVQgSPikCyWsFCTPYAAtHQ/ELBxKeeRLYMr0B2MLI9Rwa0E2iMsEI8UkSJjh4pSiqelYdM+f0lF9fEx1xRQ6oueHuA5sObEIsY4XzoA0UQOGSk0Cv3db7Da5GoORa0Dq+NZGPi4= Received: by 10.64.91.18 with SMTP id o18mr441810qbb; Wed, 14 Dec 2005 06:39:25 -0800 (PST) Received: by 10.65.252.20 with HTTP; Wed, 14 Dec 2005 06:39:25 -0800 (PST) Message-ID: Date: Wed, 14 Dec 2005 15:39:25 +0100 From: "N@poleone" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[AWL=0.077, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.523 X-Spam-Level: X-Mailman-Approved-At: Thu, 15 Dec 2005 09:03:02 -0500 Subject: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 14:39:57 -0000 Hi, I can't compile using gtk_timeout_add (or g_timeout_add, the problem is the same...). I'm using C++... The error is: In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()= ': error: argument of type `gint (dialogAcquisizione::)(void*)' does not match `gboolean (*)(void*)' The code is (all in the same class): #include gint dialogAcquisizione::acquisisci(gpointer data) { =09std::cout << "Sto acquisendo...\n"; =09return (TRUE); } void dialogAcquisizione::on_okbutton2_clicked() { =09std::cout << "Intercettato l'evento di ok\n" =09=09=09<< "Inzializzo il timer\n"; =09guint timer_id; =09timer_id =3D gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acqui= sisci,NULL); =09//this.hide(); } Why??? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Thu Dec 15 09:27:31 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 386FD3B1DD3 for ; Thu, 15 Dec 2005 09:27:31 -0500 (EST) 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 20405-01 for ; Thu, 15 Dec 2005 09:27:29 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 44BAF3B1D03 for ; Thu, 15 Dec 2005 09:27:29 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRJ00GAVMTMH9S5@vms046.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Dec 2005 08:27:26 -0600 (CST) Date: Thu, 15 Dec 2005 09:30:02 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134657002.7539.28.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1134618039.7539.9.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.477 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.477 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 14:27:31 -0000 On Thu, 2005-12-15 at 09:24 +0100, N@poleone wrote: > 2005/12/15, Paul Davis : > > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: > > > Hi, > > > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > > > is the same...). I'm using C++... > > > The error is: > > > > > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > > > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > > > match `gboolean (*)(void*)' > > > > > > The code is (all in the same class): > > > > > > #include > > > > > > gint dialogAcquisizione::acquisisci(gpointer data) > > > > this should return gboolean. > > > > I resolved defining the function as static... wow, somehow i completely missed out on the C++ part. amazing. why are you not using gtkmm ? this allows you to use a fully C++ idiom (or several of them) with GTK. its very, very, very nice. and where its not nice, that's GTK's fault :) --p From jean.brefort@normalesup.org Thu Dec 15 11:16:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 944413B27AF for ; Thu, 15 Dec 2005 11:16:38 -0500 (EST) 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 30293-04 for ; Thu, 15 Dec 2005 11:16:33 -0500 (EST) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 561593B27BE for ; Thu, 15 Dec 2005 11:16:22 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id 7C0AD6CC06; Thu, 15 Dec 2005 17:16:21 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: "N@poleone" In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Thu, 15 Dec 2005 17:12:11 +0100 Message-Id: <1134663131.9201.9.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.909 tagged_above=-999 required=2 tests=[AWL=-0.379, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.909 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 16:16:43 -0000 Le mercredi 14 décembre 2005 à 15:39 +0100, N@poleone a écrit : > Hi, > I can't compile using gtk_timeout_add (or g_timeout_add, the problem > is the same...). I'm using C++... > The error is: > > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()': > error: argument of type `gint (dialogAcquisizione::)(void*)' does not > match `gboolean (*)(void*)' > > The code is (all in the same class): > > #include > > gint dialogAcquisizione::acquisisci(gpointer data) > { > std::cout << "Sto acquisendo...\n"; > return (TRUE); > } > > void dialogAcquisizione::on_okbutton2_clicked() > { > std::cout << "Intercettato l'evento di ok\n" > << "Inzializzo il timer\n"; > guint timer_id; > timer_id = gtk_timeout_add(5000,(GtkFunction)dialogAcquisizione::acquisisci,NULL); > //this.hide(); > } > > Why??? You cannot use a C++ class method directly in gtk_timeout_add. One way to do that is: void cb_timeout (dialogAcquisizione *dialog) { dialog->acquisici(NULL); // do you really need an argument? } ... timer_id = gtk_timeout_add(5000,G_CALLBACK (cb_timeout), this); From napoleone1981@gmail.com Thu Dec 15 11:58:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6BD593B2642 for ; Thu, 15 Dec 2005 11:58:15 -0500 (EST) 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 01705-04 for ; Thu, 15 Dec 2005 11:58:13 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by menubar.gnome.org (Postfix) with ESMTP id 3CA3C3B2813 for ; Thu, 15 Dec 2005 11:57:54 -0500 (EST) Received: by zproxy.gmail.com with SMTP id z31so419070nzd for ; Thu, 15 Dec 2005 08:57:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R5ns24oNzpmd7Viml1PKNEazTKkWtq4XCc/PbSfgUtetnk84QTpviZajdxQhFCNWSFO/TJ1dpRTatm09ZiKZSlY5IgfZ/Hdpb+i5hCtX0mJvIdIMtLW2KNKlcBIO4znFxIIkvrf4W8gKpIoa2WqDVErt/tD4sP07qNZbgEor8gg= Received: by 10.65.160.11 with SMTP id m11mr1153352qbo; Thu, 15 Dec 2005 08:57:53 -0800 (PST) Received: by 10.65.252.20 with HTTP; Thu, 15 Dec 2005 08:57:53 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 17:57:53 +0100 From: "N@poleone" To: paul@linuxaudiosystems.com In-Reply-To: <1134657002.7539.28.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1134618039.7539.9.camel@localhost.localdomain> <1134657002.7539.28.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.473 tagged_above=-999 required=2 tests=[AWL=-0.027, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.473 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 16:58:15 -0000 2005/12/15, Paul Davis : > On Thu, 2005-12-15 at 09:24 +0100, N@poleone wrote: > > 2005/12/15, Paul Davis : > > > On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote: [CUT] > > > > I resolved defining the function as static... > > > wow, somehow i completely missed out on the C++ part. amazing. > > why are you not using gtkmm ? this allows you to use a fully C++ idiom > (or several of them) with GTK. its very, very, very nice. and where its > not nice, that's GTK's fault :) > > --p I'm using gtkmm, but I couldn't find the same function in gtkmm, so I found that in gtk. Theres is a g_timeout_add function also for gtkmm?? -- Ciao da N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@yahoo.it) "Le battaglie si vincono con gli uomini che si hanno, non con quelli che si vorrebbero" (Napoleone Bonaparte) "Le cose che possiedi prima o poi ti possiedono..." (Fight Club) "Le donne possono avere bambini...gli uomini computers" (Anonimo) From paul@linuxaudiosystems.com Thu Dec 15 12:19:54 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 87FB63B2C76 for ; Thu, 15 Dec 2005 12:19:54 -0500 (EST) 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 04002-06 for ; Thu, 15 Dec 2005 12:19:52 -0500 (EST) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by menubar.gnome.org (Postfix) with ESMTP id CD70A3B2A41 for ; Thu, 15 Dec 2005 12:12:27 -0500 (EST) Received: from dhin ([68.162.97.56]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRJ00EGAUGP6KW5@vms048.mailsrvcs.net> for gtk-list@gnome.org; Thu, 15 Dec 2005 11:12:27 -0600 (CST) Date: Thu, 15 Dec 2005 12:15:05 -0500 From: Paul Davis In-reply-to: To: "N@poleone" Message-id: <1134666905.7539.40.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1134618039.7539.9.camel@localhost.localdomain> <1134657002.7539.28.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.031, BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Spam-Score: -2.476 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_timeout_add problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 17:19:54 -0000 > > why are you not using gtkmm ? this allows you to use a fully C++ idiom > > (or several of them) with GTK. its very, very, very nice. and where its > > not nice, that's GTK's fault :) > > > > --p > > I'm using gtkmm, but I couldn't find the same function in gtkmm, so I > found that in gtk. > Theres is a g_timeout_add function also for gtkmm?? Glib::signal_timeout().connect (mem_fun (object, &SomeObject::method), msecs); From control.h@gmail.com Thu Dec 15 14:47:34 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EEEC73B2AD7 for ; Thu, 15 Dec 2005 14:47:33 -0500 (EST) 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 17591-01 for ; Thu, 15 Dec 2005 14:47:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 8B53E3B2CE2 for ; Thu, 15 Dec 2005 14:47:30 -0500 (EST) Received: by zproxy.gmail.com with SMTP id x7so463784nzc for ; Thu, 15 Dec 2005 11:47:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KOS4o0Mkx7tm1uwYAmoDdS+PvxrDvqKJ0ATgdoBgsUXundksjyB31ldhf4SkEKfFMVrwCyqs8vAy5Gg3gxikiqDv2dd8gBakKkbwhM6YE4pXBxGSJxiCwhcbjl8qgFyOTxmyP0lURfdoZyBkGKl9oYYmSPBMwkfv5uhYtk/QOnA= Received: by 10.64.242.4 with SMTP id p4mr409845qbh; Thu, 15 Dec 2005 11:47:28 -0800 (PST) Received: by 10.64.204.13 with HTTP; Thu, 15 Dec 2005 11:47:26 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 20:47:26 +0100 From: control H To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: force configure-event X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 19:47:34 -0000 Hi all, in my app I connect an "event" callback to a button. From within this callback I try to force a "configure-event" for a gtdrawingarea by calling gtk_widget_queue_draw(drawing_area). However, this signal is never emitted, therefore the drawingarea never gets redrawn. Any ideas why? From riboaz@xs4all.nl Thu Dec 15 16:18:25 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A1E33B2131 for ; Thu, 15 Dec 2005 16:18:25 -0500 (EST) 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 26131-08 for ; Thu, 15 Dec 2005 16:18:21 -0500 (EST) Received: from smtp-vbr8.xs4all.nl (smtp-vbr8.xs4all.nl [194.109.24.28]) by menubar.gnome.org (Postfix) with ESMTP id 9F3983B20D8 for ; Thu, 15 Dec 2005 16:18:20 -0500 (EST) Received: from webmail.xs4all.nl (dovemail1.xs4all.nl [194.109.26.3]) by smtp-vbr8.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBFLICL7050685 for ; Thu, 15 Dec 2005 22:18:16 +0100 (CET) (envelope-from riboaz@xs4all.nl) Received: from 80.126.242.36 (SquirrelMail authenticated user riboaz) by webmail.xs4all.nl with HTTP; Thu, 15 Dec 2005 22:18:16 +0100 (CET) Message-ID: <22449.80.126.242.36.1134681496.squirrel@webmail.xs4all.nl> In-Reply-To: References: Date: Thu, 15 Dec 2005 22:18:16 +0100 (CET) From: "Richard Boaz" To: gtk-list@gnome.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Re: force configure-event X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 21:18:25 -0000 > Hi all, > > in my app I connect an "event" callback to a button. From within this > callback I try to force a "configure-event" for a gtdrawingarea by calling > gtk_widget_queue_draw(drawing_area). However, this signal is never > emitted, therefore the drawingarea never gets redrawn. > > Any ideas why? hi, configure-event is called upon initial exposure of the drawing area and changes in dimension (and probably more). gtk_widget_queue_draw() will invoke the expose-event callback you have defined for the drawing area. one paradigm for managing this type of situation: - in the configure event, call the routine responsible for making the drawing - in the drawing routine, draw everything to a pixmap. last line of code is gtk_widget_queue_draw() on the drawing area the pixmap should be rendered to. - in the expose event, do nothing (in terms of drawing) except draw the pixmap to the drawing area following this allows you to call your drawing routines from within the program itself, always resulting in a refresh of the drawing area. ciao, richard From zboszor@freemail.hu Thu Dec 15 20:19:46 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E4BE3B2D14 for ; Thu, 15 Dec 2005 20:19:46 -0500 (EST) 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 12416-10 for ; Thu, 15 Dec 2005 20:19:41 -0500 (EST) Received: from linux.dunaweb.hu (linux.dunaweb.hu [62.77.196.1]) by menubar.gnome.org (Postfix) with ESMTP id 5B6FB3B1384 for ; Thu, 15 Dec 2005 20:19:41 -0500 (EST) Received: from localhost (linux.dunaweb.hu [127.0.0.1]) by linux.dunaweb.hu (Postfix) with ESMTP id E033F8E057F for ; Fri, 16 Dec 2005 02:19:39 +0100 (CET) Received: from linux.dunaweb.hu ([127.0.0.1]) by localhost (linux.dunaweb.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27729-02 for ; Fri, 16 Dec 2005 02:19:34 +0100 (CET) Received: from szolnok.dunaweb.hu (unknown [192.168.3.154]) by linux.dunaweb.hu (Postfix) with ESMTP id 61AD88E0539 for ; Fri, 16 Dec 2005 02:19:33 +0100 (CET) Received: from [81.17.177.202] (host-81-17-177-202.dunaweb.hu [81.17.177.202]) by szolnok.dunaweb.hu (Postfix) with ESMTP id 9F3B78913CC for ; Fri, 16 Dec 2005 02:19:25 +0100 (CET) Message-ID: <43A21DBA.6060405@freemail.hu> Date: Fri, 16 Dec 2005 02:51:54 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at dunaweb.hu X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: Linking both GTK-1.2 and GTK-2.x libs X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 01:19:46 -0000 Hi, I have a GTK-1.2 application and I would like to use the RLIB reporting engine. Problem is, RLIB uses GLIB-2.x internally. Is it possible to link together both GTK/GLIB versions together and have it working? What I have done is that I wrapped all RLIB calls into an own library, so my reporting library can include different set of include headers ( and ) as the main application and it compiles nicely. However, RLIB opens it's lower level DBMS accessor modules with e.g. g_module_open("libr-odbc", 2). It seems that it finds the wrong version of the function, strace shows it tries to dlopen /usr/lib64/libr-odbc instead of /usr/lib64/libr-odbc.so. The whole stuff works nicely in another fully GTK-2.x application, g_module_open() in GLIB-2.x finds the correct shared library name even on Windows. I "fixed" it with creating a symlink but then it crashes elsewhere, I guess it comes from the same problem. If linking together GTK-1.2 and GTK-2.x can be done, how? Best regards, Zoltán Böszörményi From raphtee@gmail.com Thu Dec 15 21:14:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BBA583B0D53 for ; Thu, 15 Dec 2005 21:14:04 -0500 (EST) 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 16008-09 for ; Thu, 15 Dec 2005 21:14:02 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by menubar.gnome.org (Postfix) with ESMTP id C8EB83B0C62 for ; Thu, 15 Dec 2005 21:14:01 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so694213wxc for ; Thu, 15 Dec 2005 18:14:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=XPkOt0MwaPEu8C7ponuKXIP6Poq0MeKH9ImEPasckqnrCFrRj8dm+OIw6Q4Mbqj5KwmYz9jjUlUMBKJbZyeuajSBYWzzllwuJkwAwECVwshmS/xLZZLyU7xSDaNN+YxXUwqB2JgBVtBtBpVYIIToJ6J2TMuB+ccgMIurlqrZhCI= Received: by 10.70.74.20 with SMTP id w20mr224557wxa; Thu, 15 Dec 2005 18:13:58 -0800 (PST) Received: from ?192.168.0.100? ( [216.15.33.239]) by mx.gmail.com with ESMTP id i20sm3764426wxd.2005.12.15.18.13.58; Thu, 15 Dec 2005 18:13:58 -0800 (PST) From: Travis Miller To: gtk-list@gnome.org Content-Type: text/plain Date: Thu, 15 Dec 2005 21:13:56 -0500 Message-Id: <1134699236.1450.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: To kill a GThread X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raphtee@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:14:04 -0000 Hi, I am trying to figure out how to kill a GThread that I created using g_thread_create(). I couldn't find anything in DevHelp that would indicate a way to kill a thread. It seems the only way is to signal the thread and have the thread call g_thread_exit() itself. Is there a way to kill a thread from another thread directly? Travis Miller From chris@cvine.freeserve.co.uk Fri Dec 16 04:43:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2B5093B115E for ; Fri, 16 Dec 2005 04:43:09 -0500 (EST) 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 15009-04 for ; Fri, 16 Dec 2005 04:43:05 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id ECAFD3B0D40 for ; Fri, 16 Dec 2005 04:43:00 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3213.me.freeserve.com (SMTP Server) with ESMTP id B8837B000084; Fri, 16 Dec 2005 10:42:59 +0100 (CET) Received: from boulder.homenet (user-865.l5.c1.dsl.pol.co.uk [84.66.3.97]) by mwinf3213.me.freeserve.com (SMTP Server) with ESMTP id 92730B000086; Fri, 16 Dec 2005 10:42:59 +0100 (CET) X-ME-UUID: 20051216094259599.92730B000086@mwinf3213.me.freeserve.com Received: from localhost (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.12.10/8.12.10) with ESMTP id jBG9gxAN000792; Fri, 16 Dec 2005 09:42:59 GMT From: Chris Vine To: gtk-list@gnome.org, raphtee@gmail.com Date: Fri, 16 Dec 2005 09:42:59 +0000 User-Agent: KMail/1.9 References: <1134699236.1450.6.camel@localhost.localdomain> In-Reply-To: <1134699236.1450.6.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512160942.59380.chris@cvine.freeserve.co.uk> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.264 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.264 X-Spam-Level: Cc: Subject: Re: To kill a GThread X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 09:43:09 -0000 On Friday 16 December 2005 02:13, Travis Miller wrote: > Hi, > > I am trying to figure out how to kill a GThread that I created using > g_thread_create(). I couldn't find anything in DevHelp that would > indicate a way to kill a thread. It seems the only way is to signal the > thread and have the thread call g_thread_exit() itself. Is there a way > to kill a thread from another thread directly? You would have to write some implementation-specific code. If you know that the underlying implementation is pthreads, you could get the thread id of the thread you want to cancel and call pthread_cancel() on it, after calling pthread_cleanup_push() or pthread_cleanup_pop() as necessary to ensure the cancelled thread cleans up its resources (such as memory allocated on the heap). I believe Windows has a similar call, but I do not know its name, nor whether it chooses a similar set of cancellation points. Chris From ztuylek@inonu.edu.tr Fri Dec 16 05:51:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 830CC3B006B for ; Fri, 16 Dec 2005 05:51:48 -0500 (EST) 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 20532-05 for ; Fri, 16 Dec 2005 05:51:46 -0500 (EST) Received: from inonu.edu.tr (unknown [193.140.142.6]) by menubar.gnome.org (Postfix) with ESMTP id 40DCF3B0C38 for ; Fri, 16 Dec 2005 05:51:37 -0500 (EST) Received: from inonu.edu.tr (localhost [127.0.0.1]) by inonu.edu.tr (Postfix) with ESMTP id DFD9EEC229 for ; Fri, 16 Dec 2005 12:51:23 +0200 (EET) Received: from [193.140.142.252] (unknown [193.140.142.252]) by inonu.edu.tr (Postfix) with ESMTP id C91ABEC225 for ; Fri, 16 Dec 2005 12:51:23 +0200 (EET) Message-ID: <43A29C22.5050005@inonu.edu.tr> Date: Fri, 16 Dec 2005 12:51:14 +0200 From: ztuylek User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.124 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, RCVD_IN_WHOIS_INVALID=2.234] X-Spam-Score: 1.124 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 10:51:48 -0000 From lists@nabble.com Thu Dec 15 21:22:47 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A322F3B144F for ; Thu, 15 Dec 2005 21:22:47 -0500 (EST) 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 16739-07 for ; Thu, 15 Dec 2005 21:22:45 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 56A8E3B0A13 for ; Thu, 15 Dec 2005 21:22:44 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1En5F5-0001C3-V1 for gtk-list@gnome.org; Thu, 15 Dec 2005 18:22:44 -0800 Message-ID: <1968302.post@talk.nabble.com> Date: Thu, 15 Dec 2005 18:22:43 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org In-Reply-To: <1916845.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_417_6830323.1134699763957" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 References: <1916845.post@talk.nabble.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.565 X-Spam-Level: X-Mailman-Approved-At: Fri, 16 Dec 2005 08:14:29 -0500 Subject: Re: how to add an icon to the item in my list X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 02:22:47 -0000 ------=_Part_417_6830323.1134699763957 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit help -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/how-to-add-an-icon-to-the-item-in-my-list-t731785.html#a1968302 ------=_Part_417_6830323.1134699763957 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit help

Sent from the
Gtk+ - General forum at Nabble.com:
Re: how to add an icon to the item in my list ------=_Part_417_6830323.1134699763957-- From yeajchao@yahoo.com.cn Sat Dec 17 23:28:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 132343B19AB for ; Sat, 17 Dec 2005 23:28:12 -0500 (EST) 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 11230-01 for ; Sat, 17 Dec 2005 23:28:07 -0500 (EST) Received: from web15108.mail.cnb.yahoo.com (web15108.mail.cnb.yahoo.com [202.165.103.77]) by menubar.gnome.org (Postfix) with SMTP id 1BB053B0C13 for ; Sat, 17 Dec 2005 23:28:06 -0500 (EST) Received: (qmail 82543 invoked by uid 60001); 18 Dec 2005 04:28:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JCKDec8fdb08yTXoGqD7YkdldKF1JfsMDsP1GgySZhjDIep6euwm9h72DCOhG03k1EK3Wcqs011kzmgdCrYu34EUhaD5dCUaYjPGah82FLEfeG2YQVQwgHXzyWLFbenep9ndB6ReWaPRhVk+hnZIyCWXTKZ69laEfxEPcmshXHE= ; Message-ID: <20051218042803.82541.qmail@web15108.mail.cnb.yahoo.com> Received: from [159.226.165.155] by web15108.mail.cnb.yahoo.com via HTTP; Sun, 18 Dec 2005 12:28:03 CST Date: Sun, 18 Dec 2005 12:28:03 +0800 (CST) From: yeajchao To: gtk-app , gtk-list MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.909 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: 1.909 X-Spam-Level: * Cc: Subject: question about combo X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:28:12 -0000 hello all In my application,i use combo in somewhere the problem is when i click on it he popup a list when i move mouse on the list the selected highligth don't move accordingly what can i do ? any help would be much appreciate __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com From yeajchao@yahoo.com.cn Sat Dec 17 23:49:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 559393B1989 for ; Sat, 17 Dec 2005 23:49:12 -0500 (EST) 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 12804-06 for ; Sat, 17 Dec 2005 23:49:08 -0500 (EST) Received: from web15102.mail.cnb.yahoo.com (web15102.mail.cnb.yahoo.com [202.165.103.71]) by menubar.gnome.org (Postfix) with SMTP id 18B553B161A for ; Sat, 17 Dec 2005 23:49:07 -0500 (EST) Received: (qmail 621 invoked by uid 60001); 18 Dec 2005 04:49:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X5Qn5T1sSyQv0Ja9Vgzvw9BNqLBxfgmf0dWHXpyFQF6dkikX8f8N9djdlfumCkkENs8HlajtQnTw2NsFPbYBd8I/D8D4YBPRYih6EC+bpl3V4O+9UUkEntPZUhrbP1ljHEezHnAi2Rp46926gwy1Bhy+vgVPMUi4BXD5VjrM69Q= ; Message-ID: <20051218044905.619.qmail@web15102.mail.cnb.yahoo.com> Received: from [159.226.165.155] by web15102.mail.cnb.yahoo.com via HTTP; Sun, 18 Dec 2005 12:49:05 CST Date: Sun, 18 Dec 2005 12:49:05 +0800 (CST) From: yeajchao To: gtk-app , gtk-list MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.782 tagged_above=-999 required=2 tests=[AWL=-1.127, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708] X-Spam-Score: 0.782 X-Spam-Level: Cc: Subject: about draw color line or polygon X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 04:49:12 -0000 kello all i want draw line or my own widget with color how can i draw a polygon with color ,and in the polygon, the color are not the same ,the coloe in the polygon have setp change from red to green any help would be much appreciate __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com From meyerro3@msu.edu Sun Dec 18 14:00:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC4CE3B2887 for ; Sun, 18 Dec 2005 14:00:22 -0500 (EST) 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 19539-05 for ; Sun, 18 Dec 2005 14:00:19 -0500 (EST) Received: from sys22.mail.msu.edu (sys22.mail.msu.edu [35.9.75.122]) by menubar.gnome.org (Postfix) with ESMTP id 783F63B2814 for ; Sun, 18 Dec 2005 14:00:12 -0500 (EST) Received: from meyerro3 by sys22.mail.msu.edu with local (Exim 4.52 #1) id 1Eo3lT-00010H-JW for gtk-list@gnome.org; Sun, 18 Dec 2005 14:00:11 -0500 From: "Robert Steven Meyer" To: gtk-list@gnome.org Date: Sun, 18 Dec 2005 14:00:11 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: Errors on first compile -- base.c X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 19:00:23 -0000 I've been following the tutorial and ran into a ton of errors on my first compile. I'm assuming since i made it this far, that I didn't screw up the install but this is the first time i've ever messed around with GTK and I am without a doubt new to all of this. Here is what terminal spit out at me... $ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33, from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33, from /usr/include/gtk-2.0/gdk/gdkcairo.h:24, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from base.c:1: /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: warning: data definition has no type or storage class /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: warning: data definition has no type or storage class /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: error: syntax error befor e ‘G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32, from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33, from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkobject.h:207: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkobject.h:207: warning: data definition has no type o r storage class /usr/include/gtk-2.0/gtk/gtkobject.h:210: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkobject.h:210: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33, from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkwidget.h:447: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkwidget.h:447: warning: data definition has no type o r storage class /usr/include/gtk-2.0/gtk/gtkwidget.h:719: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkwidget.h:719: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtkbin.h:32, from /usr/include/gtk-2.0/gtk/gtkwindow.h:33, from /usr/include/gtk-2.0/gtk/gtkdialog.h:32, from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkcontainer.h:174: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:174: warning: data definition has no typ e or storage class /usr/include/gtk-2.0/gtk/gtkcontainer.h:178: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:178: warning: data definition has no typ e or storage class /usr/include/gtk-2.0/gtk/gtkcontainer.h:182: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcontainer.h:182: warning: data definition has no typ e or storage class In file included from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28, from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkdialog.h:141: error: syntax error before ‘G_GNUC_NUL L_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkdialog.h:141: warning: data definition has no type o r storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:32, from base.c:1: /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: warning: data definition has no ty pe or storage class In file included from /usr/include/gtk-2.0/gtk/gtkcelllayout.h:26, from /usr/include/gtk-2.0/gtk/gtk.h:49, from base.c:1: /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: error: syntax error before ‘G_ GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: warning: data definition has n o type or storage class /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: error: syntax error before ‘G_ GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: warning: data definition has n o type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:49, from base.c:1: /usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: error: syntax error before ‘G_GNUC_ NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: warning: data definition has no typ e or storage class In file included from /usr/include/gtk-2.0/gtk/gtkcombobox.h:25, from /usr/include/gtk-2.0/gtk/gtk.h:65, from base.c:1: /usr/include/gtk-2.0/gtk/gtktreeview.h:170: error: syntax error before ‘G_GNUC_N ULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktreeview.h:170: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:82, from base.c:1: /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: error: syntax error before ‘ G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: warning: data definition has no type or storage class /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: error: syntax error before ‘ G_GNUC_NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: warning: data definition has no type or storage class In file included from /usr/include/gtk-2.0/gtk/gtk.h:158, from base.c:1: /usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: warning: data definition has no ty pe or storage class /usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: error: syntax error before ‘G_GNUC _NULL_TERMINATED’ /usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: warning: data definition has no ty pe or storage class From dbasald@libero.it Mon Dec 19 06:13:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A3B23B077A for ; Mon, 19 Dec 2005 06:13:01 -0500 (EST) 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 29197-05 for ; Mon, 19 Dec 2005 06:12:58 -0500 (EST) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by menubar.gnome.org (Postfix) with ESMTP id B81A03B0971 for ; Mon, 19 Dec 2005 06:12:57 -0500 (EST) Received: from localhost (172.16.1.79) by smtp1.libero.it (7.0.027-DD01) id 439D8FC3009FE6D4 for gtk-list@gnome.org; Mon, 19 Dec 2005 12:12:57 +0100 Received: from smtp2.libero.it ([172.16.1.97]) by localhost (asav1.libero.it [193.70.192.150]) (amavisd-new, port 10024) with ESMTP id 10316-03 for ; Mon, 19 Dec 2005 12:12:56 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp2.libero.it (7.0.027-DD01) id 431C3B20011A7DF9 for gtk-list@gnome.org; Mon, 19 Dec 2005 12:12:56 +0100 Date: Mon, 19 Dec 2005 12:12:56 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "dbasald@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 82.48.216.104 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.576 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077, TW_PG=0.077] X-Spam-Score: -0.576 X-Spam-Level: Subject: gtk_object bad signal X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 11:13:01 -0000 hi all I'm new of GTK+ pogramming. I'm tring to develp an application in linux w= ritten in C with GTK 2.8 libraries. This app is interfaced with a database, reads data from it and create a G= UI. I made a GTK object for detection of database UPDATEs, I mean: when the D= Bmanager receives an UPDATE command from a connection it starts a RULE th= at emits a signal. My object has a p_thread looping over a SELECT that checks for DBmanager signals. After detection of DB signal emission my ob= ject emits an own gtk-signal (named disp-signal). This last gtk-signal is connected to a function for GUI updating by a g_s= ignal_connect(). Same function is also called by one other g_signal_connect() activted by = a button_press_event. This two connections are because the user can change values shown in GUI = but s/he is allowed to comeback to batabase settings. If the user saves some new values all other clients pr= ograms have to update their GUI. The problem is here: if I click te button the GUI is updated correctly bu= t when the "updateGUIfunction" is called by my object signal the program crashes after a few updates. The c= rash comes with an Xlib error shown into stderr. After that the program objects not updated appears to = work fine but all the widget areas destroyed and newed comes hidden. Sometimes I get a GTK_DRAWABLE failed e= rror like following: (prova_gnome2:10237): Gdk-CRITICAL **: gdk_drawable_get_size: assertion `= GDK_IS_DRAWABLE (drawable)' failed (prova_gnome2:10237): Gdk-CRITICAL **: gdk_window_invalidate_rect: assert= ion `window !=3D NULL' failed It could be due to my signal interface not well initialized: it don't ret= urn user_data like a gtk-button (I don't know why, I followed on-line gtk examples) but I tried to use th= e gtk button signal included in child field of my object with same result= s. Please help me! thanks, Daniele B. The following code is my object for database signal detection and usage i= nto the program: /************************************************************************= *** * pgmonitorr.h ************************************************************************= ****/ #ifdef HAVE_CONFIG_H # include #endif #ifndef __PGMONITORR_H__ #define __PGMONITORR_H__ #include #include "libpq-fe.h" G_BEGIN_DECLS #define PGMONITORR_TYPE (pgmonitorr_get_type ()) #define PGMONITORR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PG= MONITORR_TYPE, Pgmonitorr)) #define PGMONITORR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PGM= ONITORR_TYPE, PgmonitorrClass)) #define IS_PGMONITORR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PG= MONITORR_TYPE)) #define IS_PGMONITORR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PGM= ONITORR_TYPE)) #define PGMONITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PGM= ONITORR, PgmonitorrClass)) typedef struct _Pgmonitorr Pgmonitorr; typedef struct _PgmonitorrClass PgmonitorrClass; struct _Pgmonitorr { GtkBin parent; GtkWidget *child; gchar conninfo[500]; gchar segnale[50]; PGconn *async_conn; pthread_t monitor_t; //GThread *monitor_t; }; struct _PgmonitorrClass { GtkBinClass parent_class; void (* pgmonitorr) (Pgmonitorr *pgm); }; GType pgmonitorr_get_type (void); GtkWidget* pgmonitorr_new (char * conninfo, char * segnal= e); void pgmonitorr_clear (Pgmonitorr *pgm); G_END_DECLS #endif /* __PGMONITORR_H__ */ /************************************************************************= *** * pgmonitorr.c ************************************************************************= ****/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include "pgmonitorr.h" #include "libpq-fe.h" // libreria di intergaccia col postgres enum { DISP_SIGNAL, LAST_SIGNAL }; static guint pgmonitorr_signals[LAST_SIGNAL] =3D { 0 }; static void pgmonitorr_class_init (PgmonitorrClass *klass); static void pgmonitorr_init (Pgmonitorr *pgm); static void enable_pgmonitor (Pgmonitorr *pgm); GType pgmonitorr_get_type (void) { static GtkType pgm_type =3D 0; if (!pgm_type) { static const GtkTypeInfo pgm_info =3D { "PGmonitorr", sizeof (Pgmonitorr), sizeof (PgmonitorrClass), (GtkClassInitFunc) pgmonitorr_class_init, (GtkObjectInitFunc) pgmonitorr_init, /* reserved_1 */ NULL, /* reserved_2 */ NULL, (GtkClassInitFunc) NULL, }; pgm_type =3D gtk_type_unique (GTK_TYPE_BIN, &pgm_info); } fprintf (stderr,"pgmonitorr: gettype\n"); return pgm_type; } static void pgmonitorr_class_init (PgmonitorrClass *class) { GtkObjectClass *object_class; object_class =3D (GtkObjectClass*) class; pgmonitorr_signals[DISP_SIGNAL] =3D g_signal_new ("disp_signal", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_FIRST | G_SIGNAL_AC= TION, G_STRUCT_OFFSET (PgmonitorrClass= , pgmonitorr), NULL, NULL, g_cclosure_marshal_VOID__VOID, /*gtk_signal_default_marshaller,*/ GTK_TYPE_NONE, 0); fprintf (stderr,"pgmonitorr: class_init\n"); } static void pgmonitorr_init (Pgmonitorr *pgm) { pgm->child =3D NULL; g_snprintf (pgm->conninfo,500, "%s",""); g_snprintf (pgm->segnale,50, "%s",""); fprintf (stderr, "pgmonitorr: init\n"); } GtkWidget* pgmonitorr_new (char * rconninfo, char * rsegnale) { Pgmonitorr * pgm =3D g_object_new (pgmonitorr_get_type (), NULL); pgm->child =3D GTK_WIDGET(gtk_button_new()); gtk_container_add(GTK_CONTAINER(pgm),GTK_WIDGET(pgm->child)); g_snprintf (pgm->conninfo, 500, "%s",rconninfo); g_snprintf (pgm->segnale, 50, "%s",rsegnale); pthread_create (&(pgm->monitor_t), NULL, (gpointer)enable_pgmonitor, (gp= ointer)pgm); fprintf (stderr,"pgmonitorr: new OK!\n"); return GTK_WIDGET (pgm); } void pgmonitorr_clear (Pgmonitorr *pgm) { printf ("eseguo chiudi_conn Pgmonitor2\n"); pthread_cancel(pgm->monitor_t); pthread_join (pgm->monitor_t,0); PQfinish(pgm->async_conn); } static void enable_pgmonitor(Pgmonitorr *pgm) { int sock; fd_set input_mask; gchar nome[30]; PGresult *res; PGnotify *notify; gchar comando[50]; fprintf (stderr, "pgmonitorr: pthread 1 \n"); pgm->async_conn =3D PQconnectdb(pgm->conninfo); g_snprintf (comando,50, "LISTEN %s;", pgm->segnale); res =3D PQexec(pgm->async_conn, comando); if (PQresultStatus(res) !=3D PGRES_COMMAND_OK) { fprintf(stderr, "LISTEN command failed: %s", PQerrorMessa= ge(pgm->async_conn)); PQclear(res); PQfinish (pgm->async_conn); exit (1); } PQclear(res); fprintf (stderr, "pgmonitorr: pthread 2 \n"); sock =3D PQsocket(pgm->async_conn); for (;;) { fprintf (stderr,"for pgmonitor enable\n"); FD_ZERO(&input_mask); FD_SET(sock, &input_mask); if (sock < 0) { fprintf (stderr, "socket error\n"); break; // shouldn't happen } if (select(sock + 1, &input_mask, NULL, NULL, NULL) < 0) { fprintf(stderr, "select() failed: %s\n", strerror(errno)); PQfinish (pgm->async_conn); } // Now check for input PQconsumeInput(pgm->async_conn); while ((notify =3D PQnotifies(pgm->async_conn)) !=3D NULL) { g_snprintf (nome,30, "%s", notify->relname); fprintf(stderr,"ASYNC NOTIFY of '%s' received from backend pid %d\n",n= ome, notify->be_pid); PQfreemem(notify); g_signal_emit (pgm,pgmonitorr_signals[DISP_SIGNAL], 0); } } fprintf (stderr, "errore pgmonitorr\n"); pgmonitorr_clear (pgm); } /************************************************ *callback.c ***********************/ GtkWidget *monitor_disp=3DNULL; monitor_disp =3D pgmonitorr_new(conninfo->str, "disponibile"); gtk_widget_set_name(monitor_disp,"monitor_disp"); gtk_box_pack_start(GTK_BOX (hbox_generale1),monitor_disp,FALSE,FALSE,0);= g_signal_connect(G_OBJECT(annulla_button),"button_press_event", G_CALLBACK(ins_piatti_modifica_listino), (int*)id_rep); g_signal_connect(G_OBJECT(monitor_disp), "disp_signal", G_CALLBACK(aux_ins_piatti_modifica_listino), id_rep); void aux_ins_piatti_modifica_listino (GtkWidget *elemento, int id_rep) { ins_piatti_modifica_listino(elemento,NULL,id_rep); } void ins_piatti_modifica_listino executes some lookups, destroy a part of= gui and remake it (gtk_vbox_new() ... gtk_spinbutton_new ... gtk_entry_n= ew ...) From mistrial@libero.it Mon Dec 19 15:11:55 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 849673B2C86 for ; Mon, 19 Dec 2005 15:11:55 -0500 (EST) 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 14308-02 for ; Mon, 19 Dec 2005 15:11:52 -0500 (EST) Received: from smtp6.libero.it (smtp6.libero.it [193.70.192.59]) by menubar.gnome.org (Postfix) with ESMTP id AE0D33B2F1C for ; Mon, 19 Dec 2005 15:09:02 -0500 (EST) Received: from localhost (172.16.1.75) by smtp6.libero.it (7.0.027-DD01) id 439D919300A8B054 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:54 +0100 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav17.libero.it [193.70.193.4]) (amavisd-new, port 10024) with ESMTP id 08822-08 for ; Mon, 19 Dec 2005 21:08:53 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp3.libero.it (7.0.027-DD01) id 431C39E0011B2506 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:53 +0100 Date: Mon, 19 Dec 2005 21:08:53 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.202 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MISSING_SUBJECT=1.816, TW_GT=0.077] X-Spam-Score: 1.202 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:11:55 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:14:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8FAB43B2EE1 for ; Mon, 19 Dec 2005 15:14:23 -0500 (EST) 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 14566-06 for ; Mon, 19 Dec 2005 15:14:21 -0500 (EST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by menubar.gnome.org (Postfix) with ESMTP id 1BC873B2E80 for ; Mon, 19 Dec 2005 15:11:33 -0500 (EST) Received: from localhost (172.16.1.48) by smtp3.libero.it (7.0.027-DD01) id 439D911000A21016 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:40 +0100 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav8.libero.it [193.70.193.94]) (amavisd-new, port 10024) with ESMTP id 06212-08-6 for ; Mon, 19 Dec 2005 21:08:39 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp3.libero.it (7.0.027-DD01) id 431C39E0011B24E2 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:08:39 +0100 Date: Mon, 19 Dec 2005 21:08:39 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.202 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MISSING_SUBJECT=1.816, TW_GT=0.077] X-Spam-Score: 1.202 X-Spam-Level: * Subject: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:14:23 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:15:00 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 88A493B2EF1 for ; Mon, 19 Dec 2005 15:15:00 -0500 (EST) 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 14673-08 for ; Mon, 19 Dec 2005 15:14:57 -0500 (EST) Received: from smtp5.libero.it (smtp5.libero.it [193.70.192.55]) by menubar.gnome.org (Postfix) with ESMTP id D85E53B2EF3 for ; Mon, 19 Dec 2005 15:12:18 -0500 (EST) Received: from localhost (172.16.1.8) by smtp5.libero.it (7.0.027-DD01) id 439D918400A89E5C for gtk-list@gnome.org; Mon, 19 Dec 2005 21:12:17 +0100 Received: from smtp1.libero.it ([172.16.1.97]) by localhost (asav9.libero.it [193.70.192.87]) (amavisd-new, port 10024) with ESMTP id 13776-04-2 for ; Mon, 19 Dec 2005 21:12:17 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp1.libero.it (7.0.027-DD01) id 431C3A42011BF9A2 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:12:17 +0100 Date: Mon, 19 Dec 2005 21:12:16 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.036 tagged_above=-999 required=2 tests=[AWL=-0.422, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.036 X-Spam-Level: Subject: Forgotten graphic with gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:15:00 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:16:06 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CE8043B2E48 for ; Mon, 19 Dec 2005 15:16:06 -0500 (EST) 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 14815-07 for ; Mon, 19 Dec 2005 15:16:04 -0500 (EST) Received: from smtp5.libero.it (smtp5.libero.it [193.70.192.55]) by menubar.gnome.org (Postfix) with ESMTP id 4A94C3B2DFD for ; Mon, 19 Dec 2005 15:13:57 -0500 (EST) Received: from localhost (172.16.1.81) by smtp5.libero.it (7.0.027-DD01) id 439D918400A8A70E for gtk-list@gnome.org; Mon, 19 Dec 2005 21:13:56 +0100 Received: from smtp20.libero.it ([172.16.1.77]) by localhost (asav22.libero.it [193.70.193.9]) (amavisd-new, port 10024) with ESMTP id 25919-12-20 for ; Mon, 19 Dec 2005 21:13:55 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp20.libero.it (7.0.027-DD01) id 431C3BFF0116942B for gtk-list@gnome.org; Mon, 19 Dec 2005 21:13:55 +0100 Date: Mon, 19 Dec 2005 21:13:55 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.983 tagged_above=-999 required=2 tests=[AWL=-0.369, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -0.983 X-Spam-Level: Subject: Forgotten graphic with gtk X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:16:07 -0000 ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; From mistrial@libero.it Mon Dec 19 15:21:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 527683B08DD for ; Mon, 19 Dec 2005 15:21:30 -0500 (EST) 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 15372-06 for ; Mon, 19 Dec 2005 15:21:27 -0500 (EST) Received: from smtp4.libero.it (smtp4.libero.it [193.70.192.54]) by menubar.gnome.org (Postfix) with ESMTP id 3F7F83B2EBD for ; Mon, 19 Dec 2005 15:16:26 -0500 (EST) Received: from localhost (172.16.1.75) by smtp4.libero.it (7.0.027-DD01) id 439D910600A944A3 for gtk-list@gnome.org; Mon, 19 Dec 2005 21:16:25 +0100 Received: from smtp0.libero.it ([172.16.1.76]) by localhost (asav17.libero.it [193.70.193.4]) (amavisd-new, port 10024) with ESMTP id 14572-01-2 for ; Mon, 19 Dec 2005 21:16:24 +0100 (CET) Received: from libero.it (172.16.1.81) by smtp0.libero.it (7.0.027-DD01) id 439064B400299DFE for gtk-list@gnome.org; Mon, 19 Dec 2005 21:16:24 +0100 Date: Mon, 19 Dec 2005 21:16:24 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: multipart/mixed; boundary="_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835" From: "mistrial@libero.it" To: "gtk-list" X-XaM3-API-Version: 4.3 (R1) (B3pl11) X-SenderIP: 80.117.56.234 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.333 tagged_above=-999 required=2 tests=[AWL=-0.719, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.333 X-Spam-Level: Subject: Forgotten graphic with a gtk program X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:21:32 -0000 --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable ciao First of all I make excuses myself for my English not too much correcte= d. I write in order to speak you to you about a problem that I have foun= d with my first program written in C with gtk. I have written the algorithm in order to resolve the puzzle and have set = up all the graphical interface but when start the simulation does not vis= ualize me in real Time the graphic regarding the algorithm that is under.= I enclose the code of my program with the hope that someone can gives som= e council to me. In order to see something i enclose a little png that it must be include = in the program folder. Regards Michele *************************************************************************= ** #include #include #define DISCHI 64 #include //variabili e strutture globali gint valoreAnelloDrag,rigaAnelloDrag,colonnaAnelloDrag; gint controllo=3D0,servizio; gint disk=3D64; gint asta[DISCHI][3]; GtkWidget *event_box[DISCHI][3]; GdkPixbuf *imaPixbuf[DISCHI]; GtkWidget *ringSenzaRef[DISCHI],*ring[DISCHI]; GtkWidget *oggettoFinestra; GtkWidget *vbox3; GtkWidget *hbox5; GtkWidget *label3; GtkWidget *entry1; GtkWidget *SIMULA; GtkWidget *ESCI; GtkWidget *tabella; enum { TARGET_STRING, TARGET_ROOTWIN }; static GtkTargetEntry target_table[] =3D { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; static guint n_targets =3D sizeof(target_table) / sizeof(target_table[0])= ; //prototipi di funzione int puntatore_testa_colonna(int); int fineDelGioco(void); void disegna(void); void inizializza(void); void resettaCol(int); void quick_message (gchar *); void dohanoi(gint, gint, gint, gint); void on_SIMULA_clicked (GtkButton *button, gpointer user_data) { GError **ERR2=3D0; gint i,j,servizio; gdouble x2; gchar *text; //GtkWidget *entry =3D lookup_widget (GTK_WIDGET(button), "ENTRY"); text=3D(gchar*)gtk_entry_get_text(GTK_ENTRY(entry1)); disk=3Datoi(text); g_print("\n\ndisk=3D%d\n\n",disk); gint N=3Ddisk; gint DA=3D0, A=3D2,USANDO=3D1; //Caricamento immagini dinamico for (i=3D1;i<=3Ddisk;i++){ //equazione retta che passa da A(8,64) e B(20,3) per ottenere la larghe= zza dell'anello x2=3D-0.2*disk+20.51; //funzione che carica un pixbuf da un file e lo scala con un fattore ch= e decido io.La larghezza e' ottenuta pensando ad un iperbole equilatera. imaPixbuf[i]=3Dgdk_pixbuf_new_from_file_at_scale("ring.png",(320/disk)*= i,x2,FALSE,ERR2); //carico nel widget ringSenzaRef il pixbuf appena creato ringSenzaRef[i]=3Dgtk_image_new_from_pixbuf(imaPixbuf[i]); //carico in ring la referenza appena stanziata ring[i]=3Dg_object_ref(ringSenzaRef[i]); }; //creazione disegno e struttura dinamico for (i=3D0;i<=3Ddisk-1;i++){ for (j=3D0;j<=3D2;j++){ //le immagini non possono ricevere eventi percio' le inseriremo in un = event box event_box[i][j]=3Dgtk_event_box_new (); gtk_table_attach_defaults (GTK_TABLE (tabella), event_box[i][j], j,j+1= ,i,i+1); }; }; resettaCol(1); resettaCol(2); inizializza(); disegna(); dohanoi(N, DA, A,USANDO); //Visualizzazione gtk_widget_show_all (oggettoFinestra); }; void on_ESCI_clicked (GtkButton *button, gpointer user_data) { gtk_main_quit(); } //MAIN int main( int argc,char *argv[] ){ gtk_init (&argc, &argv); oggettoFinestra =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (oggettoFinestra), ("Towers of Hanoi 0= .1b")); vbox3 =3D gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (oggettoFinestra), vbox3); hbox5 =3D gtk_hbox_new (TRUE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox3), hbox5, FALSE, FALSE, 0); label3 =3D gtk_label_new (("Numero Anelli")); gtk_widget_show (label3); gtk_box_pack_start (GTK_BOX (hbox5), label3, FALSE, FALSE, 0); gtk_widget_set_size_request (label3, 107, -1); entry1 =3D gtk_entry_new (); gtk_widget_show (entry1); gtk_box_pack_start (GTK_BOX (hbox5), entry1, FALSE, FALSE, 0); gtk_widget_set_size_request (entry1, 41, -1); SIMULA =3D gtk_button_new_with_mnemonic (("Simula")); gtk_widget_show (SIMULA); gtk_box_pack_start (GTK_BOX (hbox5), SIMULA, FALSE, FALSE, 0); ESCI =3D gtk_button_new_with_mnemonic (("Esci")); gtk_widget_show (ESCI); gtk_box_pack_start (GTK_BOX (hbox5), ESCI, FALSE, FALSE, 0); tabella =3D gtk_table_new (3, 3, TRUE); gtk_widget_show (tabella); gtk_box_pack_start (GTK_BOX (vbox3), tabella, TRUE, FALSE, 0); // segnali PULSANTI g_signal_connect ((gpointer) SIMULA, "clicked", G_CALLBACK (on_SIMULA_clicked), NULL); g_signal_connect ((gpointer) ESCI, "clicked", G_CALLBACK (on_ESCI_clicked), NULL); gtk_widget_show_all (oggettoFinestra); //Loop gtk_main (); return 0; }; //FUNZIONI int puntatore_testa_colonna(int colonnaDaEsaminare){ gint i,j,parz,h; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nIl primo elemento della col %d e' %d con indice%d", colonnaDaEsaminare, asta[i+1][(gint)colonnaDaEsaminare],i+1); parz=3Di+1; break; }; }; if(asta[disk-1][(gint)colonnaDaEsaminare]=3D=3D0){ g_print("\nLa colonna %d e' vuota",colonnaDaEsaminare); parz=3Ddisk-1; }; if(asta[0][(gint)colonnaDaEsaminare]!=3D0){ g_print("\nLa colonna %d e' piena",colonnaDaEsaminare); parz=3D0; }; return parz; }; void resettaCol(int colonnaDaResettare){ gint i,h,j; for (i=3D0;i<=3Ddisk-1;i++) { h=3Dasta[i][colonnaDaResettare]; if(h!=3D0) { gtk_container_remove (GTK_CONTAINER (event_box[i][colonnaDaResettar= e]), ring[h]); }; }; }; void inizializza(void){ gint i,j,h; //carico gli anelli per iniziare nell'event box della prima asta e tolgo= il flag da controllo in modo che //carichi dischi solo all'inizio della partita if(controllo=3D=3D0){ //inserisco gli anelli nella prima asta for(i=3D0;i<=3Ddisk-1;i++) { asta[i][0]=3Di+1; asta[i][1]=3D0; asta[i][2]=3D0; }; }; }; void disegna(void){ gint i,j,h; //stampo a schermo la matrice del gioco per questioni di servizio g_print("controllo%d\n",controllo); for (i=3D0;i<=3Ddisk-1;i++) {g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; //disegno lo stato del gioco in base allo stato degli array for (i=3D0;i<=3Ddisk-1;i++) { for(j=3D0;j<=3D2;j++) { h=3Dasta[i][j]; if(h!=3D0) { gtk_container_add (GTK_CONTAINER (event_box[i][j]), ring[h]); }; }; }; }; void quick_message (gchar *message) { GtkWidget *dialog, *label; /* Create the widgets */ dialog =3D gtk_dialog_new_with_buttons ("Message", oggettoFinestra, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL); label =3D gtk_label_new (message); /* Ensure that the dialog box is destroyed when the user responds. */ g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog); /* Add the label, and show everything we've added to the dialog. */ gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); gtk_widget_show_all (dialog); }; void dohanoi(gint N, gint da, gint a, gint usando){ int i,j,h,parz; if (N > 0){ dohanoi(N-1,da,usando,a); g_print("\n\nmuovo da %d --> a %d\n",da,a); sleep(1); for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][da]=3D=3D0){ parz=3Di+1; //salvo in h la posizione dell'anello da rimuovere(il valore contenuto= nell'array riflette l'indice del vettore che contiene gli anelli) h=3Dasta[parz][da]; //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nel= la sezione DROP valoreAnelloDrag=3Dh; rigaAnelloDrag=3Dparz; //setto a 0 l'elemento trovato asta[parz][da]=3D0; //rimuovo l'anello dal container gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); break; }; }; //se non trova niente nel for vuol dire che sto togliendo il primo an= ello di un asta if(asta[0][da]!=3D0){ h=3Dasta[0][da]; valoreAnelloDrag=3Dasta[0][da]; asta[0][da]=3D0; //ora rimuovo il widget anello dall'event box gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); }; for(i=3Ddisk-1;i>=3D0;i--){ if(asta[i][a]=3D=3D0){ asta[i][a]=3DvaloreAnelloDrag; //aggiungo l'anello al container gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnell= oDrag]); break; }; }; for (i=3D0;i<=3Ddisk-1;i++){ g_print("\n"); for (j=3D0;j<=3D2;j++){ g_print("%4d",asta[i][j]); }; }; dohanoi(N-1,usando,a,da); }; }; --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835 Content-Type: image/png; name="=?iso-8859-1?Q?ring.png?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?iso-8859-1?Q?ring.png?=" iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAIAAABwJOjsAAAACXBIWXMAAAsTAAALEwEAmpwY AAAAB3RJTUUH1QsZCjcMQMBn8QAAAB10RVh0Q29tbWVudABDcmVhdGVkIHdpdGggVGhlIEdJ TVDvZCVuAAABvUlEQVRIx7WV74oTQRDEf90zmzN/1AjnF303wSf3BaJylzuSTWa6/LCzG05F JWYHFmahqOouumvs86cvZuTMesP2rZkzxzkc2O91PlEKEhG4hBlmuDGT6nQUl3t2B3AnJfwX 4aGsP3H9G8CnxgLAjDz4nDMpW0qYEYE7ZqMnfmEfLlcAUsYdd5ITIoI8qHYdXcfd3YXCnYjG NTkhXQlYLOg6agWg4kZeLkmJxcI2G7bvLAIfrRMYhHBDNIuuA+Ss08mEcqUWQuTXbyxnVivu 39uHj5iBGgtgw6dGIa4EfP9mkhYLO5+oQVTyakXXsV6z3XJ/b3PNs/T8bBHqE7USwcwLNPVt RLxYAZ/GQZp1hXFr8k14KKHW3yzxTXVHvVHFBwc8zdzxqHqxuv3Mryqazy2hWyE+b8c26kW0 KXMgAsVfIvf/p9pGt9vrMLU/8z5d0nuwNp96SiGCV0u+7nSTnHoBgFp5eGC3035P3xNVtZIf 93Ln1Bsoqt0kmSeARC1yt8NBjw88PaucKQUgHw94Aill6zrd5C0aAFKLhwjVyuGovqeciUqI XApJnJ1y5ni8zev7UxQOFZRCLU01gh8mL2LUToM1CgAAAABJRU5ErkJggg== --_=__=_XaM3_.1135023384.2A.280486.42.16081.52.42.007.31835-- From tvb@gnome.org Mon Dec 19 15:32:48 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 27E103B0A90 for ; Mon, 19 Dec 2005 15:32:48 -0500 (EST) 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 16759-02 for ; Mon, 19 Dec 2005 15:32:42 -0500 (EST) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 903E83B1E27 for ; Mon, 19 Dec 2005 15:30:29 -0500 (EST) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 3A74A15983; Mon, 19 Dec 2005 15:26:08 -0500 (EST) Message-ID: <43A728B4.5070701@gnome.org> Date: Mon, 19 Dec 2005 16:40:04 -0500 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "mistrial@libero.it" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599] X-Spam-Score: -2.541 X-Spam-Level: Cc: gtk-list Subject: Re: (no subject) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 20:32:48 -0000 mistrial@libero.it wrote: > ciao > First of all I make excuses myself for my English not too much corrected. I write in order to speak you to you about a problem that I have found with my first program written in C with gtk. > I have written the algorithm in order to resolve the puzzle and have set up all the graphical interface but when start the simulation does not visualize me in real Time the graphic regarding the algorithm that is under. > I enclose the code of my program with the hope that someone can gives some council to me. You need to read this: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html [...] > void dohanoi(gint N, gint da, gint a, gint usando){ > int i,j,h,parz; > > if (N > 0){ > > dohanoi(N-1,da,usando,a); > g_print("\n\nmuovo da %d --> a %d\n",da,a); > sleep(1); > for(i=disk-1;i>=0;i--){ > if(asta[i][da]==0){ > parz=i+1; > //salvo in h la posizione dell'anello da rimuovere(il valore contenuto nell'array riflette l'indice del vettore che contiene gli anelli) > h=asta[parz][da]; > //salvo il numero dell'anello in valoreAnelloDrag.Mi servira' dopo nella sezione DROP > valoreAnelloDrag=h; > rigaAnelloDrag=parz; > //setto a 0 l'elemento trovato > asta[parz][da]=0; > //rimuovo l'anello dal container > gtk_container_remove (GTK_CONTAINER (event_box[parz][da]), ring[h]); > break; > }; > }; > //se non trova niente nel for vuol dire che sto togliendo il primo anello di un asta > if(asta[0][da]!=0){ > h=asta[0][da]; > valoreAnelloDrag=asta[0][da]; > asta[0][da]=0; > //ora rimuovo il widget anello dall'event box > gtk_container_remove (GTK_CONTAINER (event_box[0][da]), ring[h]); > }; > for(i=disk-1;i>=0;i--){ > if(asta[i][a]==0){ > > asta[i][a]=valoreAnelloDrag; > //aggiungo l'anello al container > gtk_container_add (GTK_CONTAINER (event_box[i][a]), ring[valoreAnelloDrag]); > break; > }; > }; > for (i=0;i<=disk-1;i++){ > g_print("\n"); > for (j=0;j<=2;j++){ > g_print("%4d",asta[i][j]); > }; > }; > dohanoi(N-1,usando,a,da); > }; > }; What you need to do, is remove "sleep (1)" and replace it with "return", and then deal with the catastrophy that follows :) i.e. You need to break down your algorythm into itterations and return to the event loop so that GTK+ can process events. You can use something like g_timeout_add() to do this. Cheers, -Tristan From post@talura.dk Tue Dec 20 09:42:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BDACC3B1D5C for ; Tue, 20 Dec 2005 09:42:44 -0500 (EST) 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 06348-08 for ; Tue, 20 Dec 2005 09:42:42 -0500 (EST) Received: from talura.dk (unknown [62.61.141.145]) by menubar.gnome.org (Postfix) with ESMTP id 69FF03B1D63 for ; Tue, 20 Dec 2005 09:42:41 -0500 (EST) Received: from [62.61.141.145] (unknown [62.61.141.145]) by talura.dk (Postfix) with ESMTP id 24C2429D648 for ; Tue, 20 Dec 2005 15:42:40 +0100 (CET) Message-ID: <43A8185F.4090207@talura.dk> Date: Tue, 20 Dec 2005 15:42:39 +0100 From: Egon Andersen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 14:42:44 -0000 Hi, I've just downloaded and installed the pre-build GTK+ for windows Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ Now I experienced that I get a border on my window, eventhough I've set gtk_window_set_decorated(x, FALSE) for the window. I also experienced that the transparent image that I had before, now got a black background. In the previous 2.6.x that I used, the window had no border and the background was transparent as expected. I've read the API document and I don't se that anything should have changed in this area from 2.6.x to 2.8.8 I've also searched the bug-tracker for bug-reports on 'decorated', but none seems to relate to this problem. My program looks like this: gtk_window_set_decorated(GTK_WINDOW (splash_screen), FALSE); /* Get the transparent image shape the window accordingly */ visual = gdk_visual_get_system (); colormap = gdk_colormap_new(visual, TRUE); pixmap = gdk_pixmap_colormap_create_from_xpm(NULL, colormap, &mask, NULL, file); /* Shape the window according to image */ gtk_widget_shape_combine_mask(splash_screen, mask, 0, 0); image = gtk_image_new_from_pixmap (pixmap, NULL); gtk_widget_show (image); gtk_container_add (GTK_CONTAINER (splash_screen), image); Is it only me that has experienced this problem? Or have I missed something in my code that has now been working without problems for 2-3 years now. Best regards Egon Andersen From tml@iki.fi Tue Dec 20 09:55:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A12643B1DBE for ; Tue, 20 Dec 2005 09:55:01 -0500 (EST) 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 07708-01 for ; Tue, 20 Dec 2005 09:54:59 -0500 (EST) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by menubar.gnome.org (Postfix) with ESMTP id 930943B069A for ; Tue, 20 Dec 2005 09:54:56 -0500 (EST) Received: from pettson.tml.iki.fi (MMDLXXIX.tun.saunalahti.fi [213.169.2.179]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 653F7DC621; Tue, 20 Dec 2005 16:54:53 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17320.6971.560000.721289@gargle.gargle.HOWL> Date: Tue, 20 Dec 2005 16:54:51 +0200 To: Egon Andersen In-Reply-To: <43A8185F.4090207@talura.dk> References: <43A8185F.4090207@talura.dk> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.356 tagged_above=-999 required=2 tests=[AWL=-0.046, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.356 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 14:55:01 -0000 Egon Andersen writes: > I've just downloaded and installed the pre-build GTK+ for windows > Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ Try GTK+ 2.8.9 from ftp.gtk.org. I don't know what 2.8.8-rc2 is. Ask the gladewin32 people about that. > I've read the API document and I don't se that anything should have > changed in this area from 2.6.x to 2.8.8 Read the ChangeLog. 2005-11-27 Tor Lillqvist Once again rework Win32 window decoration code. Doesn't break #104514. The dialogs in gtk-demo now have the same decorations and behaviour as on X11. Tried to fix #322516 but it seems very hard to make the trivial sample program there behave as expected. --tml From post@talura.dk Tue Dec 20 11:18:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7E6C53B1AF7 for ; Tue, 20 Dec 2005 11:18:07 -0500 (EST) 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 16157-10 for ; Tue, 20 Dec 2005 11:18:05 -0500 (EST) Received: from talura.dk (unknown [62.61.141.145]) by menubar.gnome.org (Postfix) with ESMTP id BBB813B1AB9 for ; Tue, 20 Dec 2005 11:17:50 -0500 (EST) Received: from [62.61.141.145] (unknown [62.61.141.145]) by talura.dk (Postfix) with ESMTP id 91D5029D648 for ; Tue, 20 Dec 2005 17:17:48 +0100 (CET) Message-ID: <43A82EAC.1020506@talura.dk> Date: Tue, 20 Dec 2005 17:17:48 +0100 From: Egon Andersen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org References: <43A8185F.4090207@talura.dk> <17320.6971.560000.721289@gargle.gargle.HOWL> In-Reply-To: <17320.6971.560000.721289@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.488 tagged_above=-999 required=2 tests=[AWL=-0.043, BAYES_00=-2.599, TW_GT=0.077, TW_LQ=0.077] X-Spam-Score: -2.488 X-Spam-Level: Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 16:18:07 -0000 Tor Lillqvist wrote: > Egon Andersen writes: > > I've just downloaded and installed the pre-build GTK+ for windows > > Gtk-win32-2.8.8-rc2 from http://gladewin32.sourceforge.net/ > > Try GTK+ 2.8.9 from ftp.gtk.org. I don't know what 2.8.8-rc2 is. Ask > the gladewin32 people about that. > > > I've read the API document and I don't se that anything should have > > changed in this area from 2.6.x to 2.8.8 > > Read the ChangeLog. > > 2005-11-27 Tor Lillqvist > > Once again rework Win32 window decoration code. Doesn't break > #104514. The dialogs in gtk-demo now have the same decorations and > behaviour as on X11. Tried to fix #322516 but it seems very hard > to make the trivial sample program there behave as expected. Where do I find the ChangeLog? Do you have a url for the ChangeLog you refer to? I've only been able to find the reference to #322516 in the GTK+ 2.8.8 release announcement (I would have thought that I could have found #322516 in the bug-tracker by searching for decorated or decoration, but apparently not...) And it seems that #322516 is closed by WONTFIX, so I don't see why it should be any better to use GTK+ 2.8.9 instead of GTK+ 2.8.8 in relation to this problem? BTW The reason I use the pre-build from http://gladewin32.sourceforge.net/ is that it is a "all in one" package and simple to install for others. Best regards Egon Andersen From tml@iki.fi Tue Dec 20 11:33:05 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 04C0E3B1DA7 for ; Tue, 20 Dec 2005 11:33:05 -0500 (EST) 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 17668-06 for ; Tue, 20 Dec 2005 11:33:00 -0500 (EST) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by menubar.gnome.org (Postfix) with ESMTP id 71C593B08F7 for ; Tue, 20 Dec 2005 11:32:10 -0500 (EST) Received: from pettson.tml.iki.fi (MMDLXXIX.tun.saunalahti.fi [213.169.2.179]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 4D3FC104579; Tue, 20 Dec 2005 18:32:07 +0200 (EET) From: Tor Lillqvist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17320.12805.529000.547351@gargle.gargle.HOWL> Date: Tue, 20 Dec 2005 18:32:05 +0200 To: Egon Andersen In-Reply-To: <43A82EAC.1020506@talura.dk> References: <43A8185F.4090207@talura.dk> <17320.6971.560000.721289@gargle.gargle.HOWL> <43A82EAC.1020506@talura.dk> X-Mailer: VM 7.17 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.419 tagged_above=-999 required=2 tests=[AWL=0.045, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.419 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_decorated(x, FALSE) X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2005 16:33:05 -0000 Egon Andersen writes: > Where do I find the ChangeLog? In the source code. > And it seems that #322516 is closed by WONTFIX, so I don't see why > it should be any better to use GTK+ 2.8.9 instead of GTK+ 2.8.8 in > relation to this problem? Did you try? It's not particularily useful to use something else than the latest version when reporting bugs. --tml From leadbala@rediffmail.com Wed Dec 21 02:49:01 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 89EBC3B2C19 for ; Wed, 21 Dec 2005 02:49:01 -0500 (EST) 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 27233-06 for ; Wed, 21 Dec 2005 02:48:58 -0500 (EST) Received: from rediffmail.com (unknown [203.199.83.42]) by menubar.gnome.org (Postfix) with SMTP id 2D35F3B2BBA for ; Wed, 21 Dec 2005 02:45:54 -0500 (EST) Received: (qmail 28255 invoked by uid 510); 21 Dec 2005 07:45:37 -0000 Date: 21 Dec 2005 07:45:37 -0000 Message-ID: <20051221074537.28254.qmail@webmail55.rediffmail.com> Received: from unknown (220.225.137.242) by rediffmail.com via HTTP; 21 dec 2005 07:45:37 -0000 MIME-Version: 1.0 From: "Bala Murugan" To: gtk-list@gnome.org Content-type: multipart/alternative; boundary="Next_1135151137---0-203.199.83.42-28251" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.993 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, DNS_FROM_RFC_ABUSE=0.2, HTML_IMAGE_ONLY_28=1.9, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0, TW_GT=0.077] X-Spam-Score: 1.993 X-Spam-Level: * Subject: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bala Murugan List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 07:49:01 -0000 This is a multipart mime message --Next_1135151137---0-203.199.83.42-28251 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0AHi gtk users developpers,=0AIam new to LINUX and I am using suse 10 = in my intel based box. I wish to install a molecular dynamics program ghemi= ca (from open source community) I got the following error:=0A bio-42:/home/= bala/2downloads/ghemical-gms-1.01.07 # ./configure=0Achecking build system = type... i686-pc-linux-gnu=0Achecking host system type... i686-pc-linux-gnu= =0Achecking for gcc... gcc=0Achecking for C compiler default output file na= me... a.out=0Achecking whether the C compiler works... yes=0Achecking wheth= er we are cross compiling... no=0Achecking for suffix of executables...=0Ac= hecking for suffix of object files... o=0Achecking whether we are using the= GNU C compiler... yes=0Achecking whether gcc accepts -g... yes=0Achecking = for gcc option to accept ANSI C... none needed=0Achecking for g++... g++=0A= checking whether we are using the GNU C++ compiler... yes=0Achecking whethe= r g++ accepts -g... yes=0Achecking how to run the C preprocessor... gcc -E= =0Achecking how to run the C++ preprocessor... g++ -E=0Achecking for a BSD-= compatible install... /usr/bin/install -c=0Achecking for ranlib... ranlib= =0Achecking for ar... /usr/bin/ar=0Achecking for sh... /bin/sh=0Achecking w= hether make sets $(MAKE)... yes=0Achecking whether build environment is san= e... yes=0Achecking for gtk-config... no=0Achecking for GTK - version >=3D = 0.99.7... no=0A*** The gtk-config script installed by GTK could not be foun= d=0A*** If GTK was installed in PREFIX, make sure PREFIX/bin is in=0A*** yo= ur path, or set the GTK_CONFIG environment variable to the=0A*** full path = to gtk-config.=0Aconfigure: error: Cannot find proper gtk version=0Abio-42:= /home/bala/2downloads/ghemical-gms-1.01.07 #=0Awhen I issued rpm -qa gtk I = have recieved the following;=0Agtk-1.2.10-888=0AI have installed developer = packages too to the system.=0ACould anybody guide me from this point.=0ATha= nks in advance.=0A=0A=0A=0AYours truly,=0D=0AP.BalaMurugan.=0D=0A=0D=0A----= ----------------------------------------------=0D=0A"Science is built up of= facts, as a house is built up of stones,but an accumulation of facts is no= more a science than a heap of stones is a house"-Henri Poincare --Next_1135151137---0-203.199.83.42-28251 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A 
=0AHi gtk users developpers,
=0AIam new to LINUX and I = am using suse 10 in my intel based box. I wish to install a molecular dynam= ics program ghemica (from open source community) I got the following error:=
=0A bio-42:/home/bala/2downloads/ghemical-gms-1.01.07 # ./configure
= =0Achecking build system type... i686-pc-linux-gnu
=0Achecking host syst= em type... i686-pc-linux-gnu
=0Achecking for gcc... gcc
=0Achecking f= or C compiler default output file name... a.out
=0Achecking whether the = C compiler works... yes
=0Achecking whether we are cross compiling... no=
=0Achecking for suffix of executables...
=0Achecking for suffix of o= bject files... o
=0Achecking whether we are using the GNU C compiler... = yes
=0Achecking whether gcc accepts -g... yes
=0Achecking for gcc opt= ion to accept ANSI C... none needed
=0Achecking for g++... g++
=0Ache= cking whether we are using the GNU C++ compiler... yes
=0Achecking wheth= er g++ accepts -g... yes
=0Achecking how to run the C preprocessor... gc= c -E
=0Achecking how to run the C++ preprocessor... g++ -E
=0Acheckin= g for a BSD-compatible install... /usr/bin/install -c
=0Achecking for ra= nlib... ranlib
=0Achecking for ar... /usr/bin/ar
=0Achecking for sh..= . /bin/sh
=0Achecking whether make sets $(MAKE)... yes
=0Achecking wh= ether build environment is sane... yes
=0Achecking for gtk-config... no<= BR>=0Achecking for GTK - version >=3D 0.99.7... no
=0A*** The gtk-con= fig script installed by GTK could not be found
=0A*** If GTK was install= ed in PREFIX, make sure PREFIX/bin is in
=0A*** your path, or set the GT= K_CONFIG environment variable to the
=0A*** full path to gtk-config.
= =0Aconfigure: error: Cannot find proper gtk version
=0Abio-42:/home/bala= /2downloads/ghemical-gms-1.01.07 #
=0Awhen I issued rpm -qa gtk I have r= ecieved the following;
=0Agtk-1.2.10-888
=0AI have installed develope= r packages too to the system.
=0ACould anybody guide me from this point.=
=0AThanks in advance.
=0A
=0A=0A

=0A=0A=0AYours truly,=0D
= =0AP.BalaMurugan.=0D
=0A=0D
=0A--------------------------------------= ------------=0D
=0A"Science is built up of facts, as a&nb= sp;house is built up of stones,but an accumulation of f= acts is no more a science than a heap of stones is=  a house"-Henri Poincare

=0A=0A --Next_1135151137---0-203.199.83.42-28251-- From wtallman@olypen.com Wed Dec 21 03:35:51 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 34DCD3B2CAA for ; Wed, 21 Dec 2005 03:35:51 -0500 (EST) 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 00511-03 for ; Wed, 21 Dec 2005 03:35:47 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id 67AA23B2C56 for ; Wed, 21 Dec 2005 03:35:42 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1EozRk-0004G1-9o for gtk-list@gnome.org; Wed, 21 Dec 2005 00:35:40 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBL8ZbCf016524 for gtk-list@gnome.org; Wed, 21 Dec 2005 00:35:37 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 21 Dec 2005 00:35:37 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051221083537.GA16245@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <20051221074537.28254.qmail@webmail55.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051221074537.28254.qmail@webmail55.rediffmail.com> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.388 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.388 X-Spam-Level: Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 08:35:51 -0000 On Wed, Dec 21, 2005 at 07:45:37AM -0000, Bala Murugan wrote: > checking for GTK - version >= 0.99.7... no > *** The gtk-config script installed by GTK could not be found > *** If GTK was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the GTK_CONFIG environment variable to the > *** full path to gtk-config. The part you should read. Find out where gtk-config is on your installation. Make a symlink from there to where the application needs it to be. Recompile. Eventually, one discovers that these guys who roll up these tarballs are pretty sharp, and what they tell you to do is most often exactly what you need to do. Notice the asterisks preceeding the explanation. They are there to call your attention to what you need to read. Now, how do you know what $PREFIX is? What you do is 'grep -n PREFIX configure', and then go to the line numbers and see what PREFIX is. Most often it's /usr/local. So what are you looking for? It's listed in the first line: gtk-config, and it's called a script. So where is it on your system? Do 'slocate gtk-config', and you'll probably find it somewhere like /usr/bin. So you do 'file /usr/bin/gtk-config', and you find out that gtk-config is a Bourne shell script text executable. That's what you're looking for. Problem is, your configure file doubtless already knows to look in /usr/bin, and hasn't found it. What happens when 'slocate gtk-config' turns up empty? That's when you ask rpm to list the files, and it will tell you where it is, if indeed you have it. Hint: learn the shell commands. Using them will tell you everything you need to know, and will allow you to perform most, if not all, tasks your system will ever require. ---------------- You're new to Linux, and it can be a bit daunting. The key is to read what the system tells you word for word and make sure you actually understand what it's telling you. Most folk reread this stuff three or four times to make sure they actually see what is there. It gets easier once you get used to it, and when you've run one of these systems for a while, you'll wonder how you ever managed to use anything else. Oh, and the convention is that you install all compiled applications at the local level. That's /usr/local, which mirrors /usr in most particulars. Make symlinks as necessary and it'll "just work". Good luck, Bill Tallman From odysseus.lost@gmail.com Wed Dec 21 11:16:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AB0A23B2283 for ; Wed, 21 Dec 2005 11:16:55 -0500 (EST) 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 19918-07 for ; Wed, 21 Dec 2005 11:16:52 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by menubar.gnome.org (Postfix) with ESMTP id CA2453B2231 for ; Wed, 21 Dec 2005 11:16:50 -0500 (EST) Received: by nproxy.gmail.com with SMTP id l36so65487nfa for ; Wed, 21 Dec 2005 08:16:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=R9blqin9fFiDhqBbmC7+JD/dlPVhTwHcAvMhY95qjHPNnmoql15hukct7nXpnWeaOims8O9ch3iNDwD9BDkT4VuxUm7aagZ3HwsoJ6YlSeCkJ7CZuFX4BW//r3yu+jvO5npgX+kwj+71IhrDocayUWZILwc7IGBxwxIonQZ2ahQ= Received: by 10.48.250.8 with SMTP id x8mr41202nfh; Wed, 21 Dec 2005 08:16:47 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 21 Dec 2005 08:16:47 -0800 (PST) Message-ID: <5c71e1440512210816se307023r@mail.gmail.com> Date: Wed, 21 Dec 2005 16:16:47 +0000 From: Yiannis To: Bala Murugan In-Reply-To: <20051221074537.28254.qmail@webmail55.rediffmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6371_4022306.1135181807935" References: <20051221074537.28254.qmail@webmail55.rediffmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.462 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.462 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 16:16:56 -0000 ------=_Part_6371_4022306.1135181807935 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On 21 Dec 2005 07:45:37 -0000, Bala Murugan wrote= : > > > Hi gtk users developpers, > Iam new to LINUX and I am using suse 10 in my intel based box. I wish to > install a molecular dynamics program ghemica (from open source community)= I > got the following error: > *** The gtk-config script installed by GTK could not be found > *** If GTK was installed in PREFIX, make sure PREFIX/bin is in > *** your path, or set the GTK_CONFIG environment variable to the > *** full path to gtk-config. > configure: error: Cannot find proper gtk version > first of all this is not a question regarding Gtk... You better ask such a question on a linux forum.... simply because you will get much more help an= d much faster.... In a few words if you are coming from windows.... then you would have probably heard about the registry.... Well, let's say for a minute that Linux has such a registry as well, but has nothing to do with the windows one.... This is simply a file that tells your system where to find some things.... This registry depends on your shell (yes that thing that looks like a dos command line). Let's say for a min that you are using a bash shell... Then you should have a .bashrc file, .bash_history, maybe a .bash_profile, etc... Have a look at them and probably you want to edit the .bashrc. You need to set some environment variables. So for example the warning saying to add PREFIX/bin would be and assume tha= t your prefix (ie the path you installed gtk) is: /home/foo/gtk/bin. You shoudl add to your "registry" file the following: PATH=3D$PATH:/home/foo/gtk/bin and then either "resource" the file $ source or close down the shell and open a new one.... Similary you need to setup the other environment variables such as the CPAT= H and C_INCLUDE_PATH, LIBRARY_PATH and LIBRARY, and maybe some others needed by your program. Better if you post your questions to a linux forum (eg. www.linuxquestions.org OR www.linuxforum.com OR www.linuxforums.org just to name a few) -- -- Yiannis ------=_Part_6371_4022306.1135181807935 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
On 21 Dec 2005 07:45:37 -0000, Bala Murugan <leadbala@rediffmail.com> wrote:

 
Hi gtk users developpers,
Iam new to LINUX and I am using suse 10 in my intel based box. I wish to install a molecular dynamics program ghemica (from open source community) I got the following error:
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find proper gtk version


first of all this is not a question regarding Gtk... You better ask such a question on a linux forum.... simply because you will get much more help and much faster.... In a few words if you are coming from windows.... then you would have probably heard about the registry.... Well, let's say for a minute that Linux has such  a registry as well, but has nothing to do with the windows one.... This is simply a file that tells your system where to find some things.... This registry depends on your shell (yes that thing that looks like a dos command line). Let's say for a min that you are using a bash shell... Then you should have a .bashrc file, .bash_history, maybe a .bash_profile, etc... Have a look at them and probably you want to edit the .bashrc. You need to set some environment variables.
So for example the warning saying to add PREFIX/bin would be and assume that your prefix (ie the path you installed gtk) is: /home/foo/gtk/bin. You shoudl add to your "registry" file the following:
PATH=3D$PATH:/home/foo/gtk/bin

and then either "resource" the file
$ source <filename>
or close down the shell and open a new one....
Similary you need to setup the other environment variables such as the CPATH and C_INCLUDE_PATH, LIBRARY_PATH and LIBRARY, and maybe some others needed by your program. Better if you post your questions to a linux forum (eg. www.linuxquestio= ns.org OR www.linuxforum.com = OR www.linuxforums.org just to name= a few)
 



--
-- Yiannis ------=_Part_6371_4022306.1135181807935-- From tvb@gnome.org Wed Dec 21 11:31:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E35CD3B1F98 for ; Wed, 21 Dec 2005 11:31:51 -0500 (EST) 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 21802-02 for ; Wed, 21 Dec 2005 11:31:49 -0500 (EST) Received: from mail.touchtunes.com (mail.touchtunes.com [207.96.182.162]) by menubar.gnome.org (Postfix) with ESMTP id 725DB3B301D for ; Wed, 21 Dec 2005 11:30:29 -0500 (EST) Received: from [192.168.0.138] (unknown [192.168.0.138]) by mail.touchtunes.com (Postfix) with ESMTP id 432B515A49; Wed, 21 Dec 2005 11:25:52 -0500 (EST) Message-ID: <43A99376.1090300@gnome.org> Date: Wed, 21 Dec 2005 12:40:06 -0500 From: Tristan Van Berkom User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <20051221074537.28254.qmail@webmail55.rediffmail.com> <5c71e1440512210816se307023r@mail.gmail.com> In-Reply-To: <5c71e1440512210816se307023r@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.52 tagged_above=-999 required=2 tests=[AWL=0.002, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.52 X-Spam-Level: Cc: Bala Murugan , gtk-list@gnome.org Subject: Re: gtk-config regarding X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 16:31:52 -0000 Yiannis wrote: > Hi, > On 21 Dec 2005 07:45:37 -0000, Bala Murugan wrote: > >> >>Hi gtk users developpers, >>Iam new to LINUX and I am using suse 10 in my intel based box. I wish to >>install a molecular dynamics program ghemica (from open source community) I >>got the following error: >>*** The gtk-config script installed by GTK could not be found >>*** If GTK was installed in PREFIX, make sure PREFIX/bin is in >>*** your path, or set the GTK_CONFIG environment variable to the >>*** full path to gtk-config. >>configure: error: Cannot find proper gtk version >> I dont know how suse works, but with redhat (or systems that use rpm), you usually have a "package.rpm" and a "package-devel.rpm". The typical user isnt going to compile stuff on his/her machine, so they dont need gtk+ header files etc (i.e. the -devel.rpm package). The program you want to install needs to have the old GTK+-1.2 libraries, the devel package of GTK+-1.2 will have the gtk-config program which will report the current version etc... installing GTK+-1.2 (development files) will fix your problem Just remember, if you dont have GTK+-1.2 devel files, you probably dont have the header files etc for any other libraries that your program requires, so you'll need header files etc for every library that your program depends on. Cheers, -Tristan From rajesh.banginwar@intel.com Wed Dec 21 13:26:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D24403B0A6F for ; Wed, 21 Dec 2005 13:26:52 -0500 (EST) 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 01486-01 for ; Wed, 21 Dec 2005 13:26:48 -0500 (EST) Received: from orsfmr003.jf.intel.com (fmr18.intel.com [134.134.136.17]) by menubar.gnome.org (Postfix) with ESMTP id C65693B1099 for ; Wed, 21 Dec 2005 13:26:35 -0500 (EST) Received: from orsfmr100.jf.intel.com (orsfmr100.jf.intel.com [10.7.209.16]) by orsfmr003.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc, v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id jBLIQZ6u023777 for ; Wed, 21 Dec 2005 18:26:35 GMT Received: from orsmsxvs040.jf.intel.com (orsmsxvs040.jf.intel.com [192.168.65.206]) by orsfmr100.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc, v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id jBLIOmVr015440 for ; Wed, 21 Dec 2005 18:26:35 GMT Received: from orsmsx332.amr.corp.intel.com ([192.168.65.60]) by orsmsxvs040.jf.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005122110263416134 for ; Wed, 21 Dec 2005 10:26:34 -0800 Received: from orsmsx402.amr.corp.intel.com ([192.168.65.208]) by orsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 21 Dec 2005 10:26:34 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Dec 2005 10:26:34 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Announcing LSB Desktop specifications preview release Thread-Index: AcYGXBKoG+GvkVl/TmqdZKZPpqsMww== From: "Banginwar, Rajesh" To: X-OriginalArrivalTime: 21 Dec 2005 18:26:34.0948 (UTC) FILETIME=[12D71040:01C6065C] X-Scanned-By: MIMEDefang 2.52 on 10.7.209.16 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.583 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, TW_BJ=0.077, TW_BP=0.077, TW_BX=0.077, TW_IB=0.077] X-Spam-Score: -0.583 X-Spam-Level: Subject: Announcing LSB Desktop specifications preview release X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 18:26:53 -0000 Hello,=09 Today we are announcing the preview release of LSB desktop 3.1 specifications. This is a fairly complete version of LSB desktop specification for wider review. We are targeting the first release candidate for the same in the middle of next month.=20 The complete specification is available at: http://www.linuxbase.org/spec/booksets/LSB-Desktop/LSB-Desktop.html This specification is based on the following libraries and versions. 1. GTK toolkit module: The module only specification for GTK is available at: http://www.linuxbase.org/spec/book/Toolkit_Gtk/Toolkit_Gtk.html It is based on the following libraries and versions. a. Glib version 2.6.6 b. ATK version 1.9.0 c. Pango version 1.8.2 d. GTK version 2.6.10 We will really appreciate feedback from GTK developers and users at least on this part of the spec.=20 2. XML module: The module only specification is available at http://www.linuxbase.org/spec/book/XML/XML.html a. libxml2 version 2.6.22 3. Graphics-Ext module: The module only specification is available at http://www.linuxbase.org/spec/book/Graphics-Ext/Graphics-Ext.html a. libpng12 library version 1.2.8 b. libjpeg library version 6b Please note that if a distro has an older version of library, it may not be able to pass LSB desktop certification. E.g. libxml2 2.6.20 does not have certain symbols that 2.6.22 provides. Please note some of the specification work currently in-progress (E.g. PNG and JPEG).=20 Kindly review the specification and submit your feedback. The preferred method is LSB bugzilla at http://bugs.linuxbase.org/ What may be added before official release-candidate: 1. libQt: Currently Trolltech is working on creating the specification for this toolkit. As they complete the required technical work, decision will be made regarding including libQt in LSB desktop specification. This decision relies on timely completion of libQt specs work and licensing criteria resolution. 2. fontconfig and libfontconfig: Currently the technical work is ongoing and based on when it is finished, LSB desktop specification (specifically Graphics-Ext module) will be updated. Thanks, -Rajesh Banginwar LSB desktop lead. From hdnews@gawab.com Wed Dec 21 17:30:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A1383B09E0 for ; Wed, 21 Dec 2005 17:30:52 -0500 (EST) 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 23531-03 for ; Wed, 21 Dec 2005 17:30:49 -0500 (EST) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by menubar.gnome.org (Postfix) with ESMTP id 9A7EF3B30F3 for ; Wed, 21 Dec 2005 17:29:58 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBLMTvA5069279 for ; Wed, 21 Dec 2005 23:29:57 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBLMTufo026298 for ; Wed, 21 Dec 2005 23:29:56 +0100 Message-ID: <43A9D761.2070400@gawab.com> Date: Wed, 21 Dec 2005 23:29:53 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.714 tagged_above=-999 required=2 tests=[AWL=-1.312, BAYES_05=-1.11, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -0.714 X-Spam-Level: Subject: cairo drawing and fonts X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:30:52 -0000 Hello there, Just wondering. Is there a way use pango font descriptions, etc for cairo contexts to draw text? Thanks in advance for your answers, -- Hans From andrew@openldev.org Wed Dec 21 17:39:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98FA23B197F for ; Wed, 21 Dec 2005 17:39:43 -0500 (EST) 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 24244-03 for ; Wed, 21 Dec 2005 17:39:41 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id 27AB13B07BD for ; Wed, 21 Dec 2005 17:39:41 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 14:39:25 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: andrew@openldev.org To: Cc: Message-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.64 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.64 X-Spam-Level: Subject: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:39:43 -0000 Recently I have been working on dynamically loading libraries for my applic= ation=0D=0Awith GModule. I have a source file that contains this function:= =0D=0A=0D=0AG_MODULE_EXPORT PluginState init (Plugin *p)=0D=0A{=0D=0A /* D= o something */=0D=0A}=0D=0A=0D=0AA library is created with libtool with the= parameters '-module' and '-avoid-version'=0D=0Apassed to it in the Makefil= e.am. I then try to access it with this code:=0D=0A=0D=0AGModule *module;= =0D=0Amodule =3D g_module_open (library, G_MODULE_BIND_LAZY);=0D=0Aif (!mod= ule)=0D=0A error (g_module_error());=0D=0Aelse=0D=0A if (!g_module_symbol= (module, "init", (gpointer*)&init)=0D=0A error (g_module_error());=0D= =0A=0D=0AI've gone through the API docs a few times as well as some code fr= om=0D=0Avarious other open source projects, but cannot figure out what I am= =0D=0Ascrewing up. I know it is probably something stupid, but any help wou= ld =0D=0Abe much appreciated. Thanks!=0D=0A=0D=0A---=0D=0AAndrew Krause From andrew@openldev.org Wed Dec 21 17:42:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 238A83B1F29 for ; Wed, 21 Dec 2005 17:42:59 -0500 (EST) 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 24681-02 for ; Wed, 21 Dec 2005 17:42:57 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id 49EAF3B1A11 for ; Wed, 21 Dec 2005 17:42:41 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 14:42:22 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: andrew@openldev.org To: Cc: Message-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.608 tagged_above=-999 required=2 tests=[AWL=0.032, BAYES_00=-2.599, NO_REAL_NAME=0.961, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.608 X-Spam-Level: Subject: re: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 22:42:59 -0000 > Recently I have been working on dynamically loading libraries for my appl= ication=0D=0A> with GModule. I have a source file that contains this functi= on:=0D=0A> =0D=0A> G_MODULE_EXPORT PluginState init (Plugin *p)=0D=0A> {=0D= =0A> /* Do something */=0D=0A> }=0D=0A> =0D=0A> A library is created with= libtool with the parameters '-module' and '-avoid-version'=0D=0A> passed t= o it in the Makefile.am. I then try to access it with this code:=0D=0A> =0D= =0A> GModule *module;=0D=0A> module =3D g_module_open (library, G_MODULE_BI= ND_LAZY);=0D=0A> if (!module)=0D=0A> error (g_module_error());=0D=0A> els= e=0D=0A> if (!g_module_symbol (module, "init", (gpointer*)&init)=0D=0A> = error (g_module_error());=0D=0A> =0D=0A> I've gone through the API docs = a few times as well as some code from=0D=0A> various other open source proj= ects, but cannot figure out what I am=0D=0A> screwing up. I know it is prob= ably something stupid, but any help would =0D=0A> be much appreciated. Than= ks!=0D=0A=0D=0AOh crap! I forgot to put the error I'm getting. In any case,= I'm getting this=0D=0Aerror from the second g_module_error() call:=0D=0A= =0D=0A`init': /usr/lib/libplugin.so: undefined symbol: init=0D=0A=0D=0ASorr= y about that!=0D=0A=0D=0A---=0D=0AAndrew Krause From andrew@openldev.org Wed Dec 21 18:20:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 268433B16B4 for ; Wed, 21 Dec 2005 18:20:44 -0500 (EST) 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 28372-08 for ; Wed, 21 Dec 2005 18:20:41 -0500 (EST) Received: from sith.myinternetwebhost.com (sith.myinternetwebhost.com [69.90.236.40]) by menubar.gnome.org (Postfix) with ESMTP id A81933B066A for ; Wed, 21 Dec 2005 18:20:40 -0500 (EST) MIME-Version: 1.0 Date: Wed, 21 Dec 2005 15:20:25 -0800 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "Andrew Krause" To: Cc: Message-ID: <08cd7f3797224d6caf40b1e9834474ca@openldev.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.088 tagged_above=-999 required=2 tests=[AWL=0.513, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.088 X-Spam-Level: Subject: re: g_module_symbol error X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrew@openldev.org List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 23:20:44 -0000 Nevermind. I just forgot to use extern "C" ... I knew it was something stup= id.=0D=0A=0D=0A---=0D=0AAndrew Krause From igorbounov@topazelectro.ru Thu Dec 22 00:04:40 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8296F3B324A for ; Thu, 22 Dec 2005 00:04:40 -0500 (EST) 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 19044-07 for ; Thu, 22 Dec 2005 00:04:37 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 824AE3B3257 for ; Thu, 22 Dec 2005 00:04:35 -0500 (EST) Received: (qmail 6007 invoked by uid 7801); 22 Dec 2005 04:59:30 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.084827 secs); 22 Dec 2005 04:59:30 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.084827 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 22 Dec 2005 04:59:29 -0000 Message-ID: <43AA33F7.4050302@topazelectro.ru> Date: Thu, 22 Dec 2005 08:04:55 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtkmm-list@gnome.org, gtk-list Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.525 tagged_above=-999 required=2 tests=[AWL=0.075, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.525 X-Spam-Level: Cc: Subject: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:04:40 -0000 Hi, All! I need any hints about using Gdk::Window::add_filter(GdkFilterFunc function, gpointer data) or gdk_window_add_filter(...), in particular what this filter function looks like and how those gpointer data are made. Igor Gorbounov From lists@nabble.com Thu Dec 22 00:28:26 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 175D13B324A for ; Thu, 22 Dec 2005 00:28:26 -0500 (EST) 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 20776-05 for ; Thu, 22 Dec 2005 00:28:23 -0500 (EST) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by menubar.gnome.org (Postfix) with ESMTP id 07A023B12C9 for ; Thu, 22 Dec 2005 00:28:22 -0500 (EST) Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1EpJ01-0000iS-2T for gtk-list@gnome.org; Wed, 21 Dec 2005 21:28:21 -0800 Message-ID: <2055454.post@talk.nabble.com> Date: Wed, 21 Dec 2005 21:28:21 -0800 (PST) From: "rion10 (sent by Nabble.com)" To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_836_20938963.1135229301072" X-Nabble-Sender: Nabble Forums X-Nabble-From: rion10 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.295 tagged_above=-999 required=2 tests=[AWL=-0.190, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.295 X-Spam-Level: Subject: How to select an list item without focus X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rion10 List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:28:26 -0000 ------=_Part_836_20938963.1135229301072 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following: gtk_list_select_item(GTK_LIST(MyList), ItemIndex); //select this item gtk_list_scroll_vertical(GTK_LIST(MyList), GTK_SCROLL_STEP_FORWARD, 0); // scroll the vertical bar after this, the focus moves from the button to the item which is selected now. and How to select an list item without focus? Thanks -- Sent from the Gtk+ - General forum at Nabble.com: http://www.nabble.com/How-to-select-an-list-item-without-focus-t789612.html#a2055454 ------=_Part_836_20938963.1135229301072 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: 7bit there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following:
    gtk_list_select_item(GTK_LIST(MyList), ItemIndex);  //select this item
    gtk_list_scroll_vertical(GTK_LIST(MyList),
                               GTK_SCROLL_STEP_FORWARD,
                               0);  // scroll the vertical bar

after this, the focus moves from the button to the item which is selected now.

and How to select an list item without focus?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
How to select an list item without focus ------=_Part_836_20938963.1135229301072-- From wtallman@olypen.com Thu Dec 22 01:31:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1B6023B136C for ; Thu, 22 Dec 2005 01:31:19 -0500 (EST) 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 25030-02 for ; Thu, 22 Dec 2005 01:31:16 -0500 (EST) Received: from olypen2.olypen.com (olypen2.olypen.com [208.200.248.249]) by menubar.gnome.org (Postfix) with ESMTP id EB7CE3B3286 for ; Thu, 22 Dec 2005 01:31:10 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen2.olypen.com with esmtp() (Exim 4.43) id 1EpJyo-00049i-QF for gtk-list@gnome.org; Wed, 21 Dec 2005 22:31:11 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBM6V8nE001949 for gtk-list@gnome.org; Wed, 21 Dec 2005 22:31:08 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 21 Dec 2005 22:31:08 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051222063108.GA887@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <2055454.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2055454.post@talk.nabble.com> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.426 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.426 X-Spam-Level: Subject: List procedure question. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 06:31:19 -0000 A question, please, from a coding newbie. I'm building a front end for an ephemeris engine, and I've begun with a simple entry window for terrestrial data to obtain a position listing. Some while back I asked for some mentoring on connecting Gtk to C code; I've resolved that issue by planning the communication via structs and temp files. So I'm off and crawling, only to fetch aground in the midst of this first file. It's several hundred lines of code now, and so would be a bit much to post here. Is it acceptable to post a URL instead? Thanks, Bill Tallman From murrayc@murrayc.com Thu Dec 22 03:37:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23FD63B3300; Thu, 22 Dec 2005 03:37:24 -0500 (EST) 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 00834-01; Thu, 22 Dec 2005 03:37:18 -0500 (EST) Received: from toby.dreamhost.com (toby.dreamhost.com [66.33.193.58]) by menubar.gnome.org (Postfix) with ESMTP id 2D3A73B32F2; Thu, 22 Dec 2005 03:37:01 -0500 (EST) Received: from [10.1.9.84] (grossetto.webde.de [217.72.192.194]) by toby.dreamhost.com (Postfix) with ESMTP id DB33A15E655; Thu, 22 Dec 2005 00:36:59 -0800 (PST) From: Murray Cumming To: Igor Gorbounov In-Reply-To: <43AA33F7.4050302@topazelectro.ru> References: <43AA33F7.4050302@topazelectro.ru> Content-Type: text/plain Date: Thu, 22 Dec 2005 09:36:57 +0100 Message-Id: <1135240617.23355.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.57 tagged_above=-999 required=2 tests=[AWL=0.029, BAYES_00=-2.599] X-Spam-Score: -2.57 X-Spam-Level: Cc: gtk-list , gtkmm-list@gnome.org Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 08:37:24 -0000 On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote: > Hi, All! > I need any hints about using Gdk::Window::add_filter(GdkFilterFunc > function, gpointer data) or > gdk_window_add_filter(...), in particular what this filter function > looks like and how those > gpointer data are made. > Igor Gorbounov The data is some "state" information (such as a pointer to a C++ class instance) that will be passed to the callback function. This hasn't been wrapped as a sigc::slot<>, probably because I couldn't see when it would be useful. The documentation says "This is a low-level operation and makes it easy to break GDK and/or GTK+, so you have to know what you're doing" and that scares me a bit. This would be easy for someone to wrap properly. See the other SignalProxy_* classes in the .ccg files. A patch would be welcome. -- Murray Cumming murrayc@murrayc.com www.murrayc.com www.openismus.com From igorbounov@topazelectro.ru Thu Dec 22 04:09:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 579963B332E for ; Thu, 22 Dec 2005 04:09:53 -0500 (EST) 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 03753-08 for ; Thu, 22 Dec 2005 04:09:51 -0500 (EST) Received: from mail2.topazelectro.ru (mail2.topazelectro.ru [80.72.233.120]) by menubar.gnome.org (Postfix) with SMTP id 86EE63B3310 for ; Thu, 22 Dec 2005 04:09:15 -0500 (EST) Received: (qmail 28562 invoked by uid 7801); 22 Dec 2005 09:04:10 -0000 Received: from 192.168.0.112 by smbserver (envelope-from , uid 570) with qmail-scanner-1.25 (clamdscan: 0.83/716. Clear:RC:1(192.168.0.112):. Processed in 0.095872 secs); 22 Dec 2005 09:04:10 -0000 X-Qmail-Scanner-Mail-From: igorbounov@topazelectro.ru via smbserver X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.0.112):. Processed in 0.095872 secs) Received: from gorbunov.topaz.home (HELO ?192.168.0.112?) (192.168.0.112) by smbserver.topaz.home with SMTP; 22 Dec 2005 09:04:09 -0000 Message-ID: <43AA6D50.6070404@topazelectro.ru> Date: Thu, 22 Dec 2005 12:09:36 +0300 From: Igor Gorbounov User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Murray Cumming References: <43AA33F7.4050302@topazelectro.ru> <1135240617.23355.18.camel@localhost.localdomain> In-Reply-To: <1135240617.23355.18.camel@localhost.localdomain> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.493 tagged_above=-999 required=2 tests=[AWL=0.030, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GD=0.077] X-Spam-Score: -2.493 X-Spam-Level: Cc: gtk-list , gtkmm-list@gnome.org Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 09:09:53 -0000 Murray Cumming wrote: >On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote: > > >>Hi, All! >>I need any hints about using Gdk::Window::add_filter(GdkFilterFunc >>function, gpointer data) or >>gdk_window_add_filter(...), in particular what this filter function >>looks like and how those >>gpointer data are made. >> Igor Gorbounov >> >> > >The data is some "state" information (such as a pointer to a C++ class >instance) that will be passed to the callback function. > >This hasn't been wrapped as a sigc::slot<>, probably because I couldn't >see when it would be useful. [...] > The situation is such that I use a winapi mplayer and pass to it a gdk_window handle, and next, when that player stops it sends an awfull winapi message in some crazy winapi way, and I've almost broke my brains in an effort to get this message. This add_filter method was designed to catch those messages, but how - no one has wrote an example. As far as I could find in Google, Tor Lillquist had added this filter in about gtk+ 2.2.x. Igor Gorbounov From Alessandro.Abrami@elettra.trieste.it Thu Dec 22 04:44:09 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 799953B33B4 for ; Thu, 22 Dec 2005 04:44:09 -0500 (EST) 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 06668-01 for ; Thu, 22 Dec 2005 04:44:06 -0500 (EST) Received: from elettra.trieste.it (mail1.elettra.trieste.it [140.105.4.201]) by menubar.gnome.org (Postfix) with ESMTP id AD6163B1F72 for ; Thu, 22 Dec 2005 04:43:31 -0500 (EST) Received: from [140.105.3.173] (account alessandro.abrami HELO [127.0.0.1]) by elettra.trieste.it (CommuniGate Pro SMTP 4.3.8) with ESMTPA id 10429035; Thu, 22 Dec 2005 10:44:38 +0100 Message-ID: <43AA7539.8040901@elettra.trieste.it> Date: Thu, 22 Dec 2005 10:43:21 +0100 From: Alessandro Abrami User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en, it MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.522 X-Spam-Level: X-Mailman-Approved-At: Thu, 22 Dec 2005 09:05:05 -0500 Subject: Notebook and Scrolled windows: X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 09:44:09 -0000 Hi, I'm been working on scrolled windows within a notebook and just like Bob McCallister, see his mail: Notebook and Scrolled windows: bug? * /From/: Bob McCallister * /To/: gtk-list gnome org * /Subject/: Notebook and Scrolled windows: bug? * /Date/: Tue, 01 Jun 2004 15:24:11 -0400 I have the same problem: only the scrolled window onto the first notebook page has the scroolbar functioning, while the scrolled window onto the second page doesn't. I compiled his code on my debian machine, and, again, the same problem. I saw the answer of Russell Shaw in this mail-list, but I currently have: ||/ Name Version Description +++-=========================-=========================-================================================================== ii libgtk2.0-0 2.6.4-3 The GTK+ graphical user interface library ii libgtk2.0-bin 2.6.4-3 The programs for the GTK+ graphical user interface library ii libgtk2.0-common 2.6.4-3 Common files for the GTK+ graphical user interface library ii libgtk2.0-dev 2.6.4-3 Development files for the GTK+ library May someone give me help? Thanks, Alessandro From corey.burger@gmail.com Thu Dec 22 14:10:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 314083B25B8 for ; Thu, 22 Dec 2005 14:10:04 -0500 (EST) 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 26787-02 for ; Thu, 22 Dec 2005 14:10:00 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by menubar.gnome.org (Postfix) with ESMTP id CDB283B0CC3 for ; Thu, 22 Dec 2005 14:09:50 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so172187nfc for ; Thu, 22 Dec 2005 11:09:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=kNldlZVoMP2m5QEcWj/fgn4jNFmc07hxCTmyuAknY64aoFUwaBdXOH9QZIbhvsVJHAncG6DxGyUBkIL/9wXCYlHvhebm5KlBwqqUf6t5K9+Hc7nxvsii/vDJ1ODTGxpzVyhywn5HXwRETLbhXpS/a6efxiJQayP2BXOilWKkiog= Received: by 10.48.4.9 with SMTP id 9mr105619nfd; Thu, 22 Dec 2005 11:09:49 -0800 (PST) Received: by 10.48.233.11 with HTTP; Thu, 22 Dec 2005 11:09:49 -0800 (PST) Message-ID: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> Date: Thu, 22 Dec 2005 11:09:49 -0800 From: Corey Burger To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: chipx86@chipx86.com, David Trowbridge Subject: A new spelling world order X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:10:04 -0000 Hey all, I was speaking with the maintainers of libsexy about the possiblity of moving the libsexy spelling widget into gtk+. IMHO, the UI for libsexy is probably the best one I have seen yet, allowing nearly seamless spell checking. However, I am not a technical pserson and thus am not familiar with what is needed to get this stuff into gtk+. Here is the conversation with David Trowbridge, "Well, opening up a dialogue with the gtk+ developers about it would be a good first step. While I've certainly caught everything obvious, I'd be pretty surprised if SexySpellEntry was 100% bug free right now, so lots of testing would be good; I'm not sure about the actual requirements and procedures for getting a widget into gtk+, but quality is obviously paramount. Beyond that, I don't have any other ideas at the moment." Cheers, Corey From andrew@openldev.org Thu Dec 22 14:45:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 189D83B263A for ; Thu, 22 Dec 2005 14:45:45 -0500 (EST) 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 29292-10 for ; Thu, 22 Dec 2005 14:45:32 -0500 (EST) Received: from f05n15.cac.psu.edu (unknown [128.118.141.100]) by menubar.gnome.org (Postfix) with ESMTP id 27C573B244A for ; Thu, 22 Dec 2005 14:45:32 -0500 (EST) Received: from [207.255.12.78] (207-255-12-078-dhcp.jst.pa.atlanticbb.net [207.255.12.78]) by f05n15.cac.psu.edu (8.13.2/8.13.2) with ESMTP id jBMJirbg147658; Thu, 22 Dec 2005 14:44:54 -0500 Message-ID: <43AB0254.2060802@openldev.org> Date: Thu, 22 Dec 2005 14:45:24 -0500 From: Andrew Krause User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Corey Burger References: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> In-Reply-To: <348bd6da0512221109v4f9cec05g7cb1b50cb7bfebf3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: chipx86@chipx86.com, David Trowbridge , gtk-list@gnome.org Subject: Re: A new spelling world order X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 19:45:45 -0000 Corey Burger wrote: >Hey all, > >I was speaking with the maintainers of libsexy about the possiblity of >moving the libsexy spelling widget into gtk+. IMHO, the UI for libsexy >is probably the best one I have seen yet, allowing nearly seamless >spell checking. However, I am not a technical pserson and thus am not >familiar with what is needed to get this stuff into gtk+. > I would be all for this! It would be a wonderful thing to be able to have spellchecking provided universally to any widget that we use. It would help the user because it would become consistent across all of Gnome. --- Andrew Krause andrew@openldev.org www.openldev.org From dkasak@nusconsulting.com.au Thu Dec 22 17:38:38 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F2CB3B171F for ; Thu, 22 Dec 2005 17:38:38 -0500 (EST) 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 09726-05 for ; Thu, 22 Dec 2005 17:38:36 -0500 (EST) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 6A3A43B1648 for ; Thu, 22 Dec 2005 17:38:34 -0500 (EST) Received: from [10.146.1.180] (ayahuasca.nusconsulting.com.au [10.146.1.180]) by screamer.nusconsulting.com.au (8.13.4/8.13.4) with ESMTP id jBMMcqUL002301 for ; Fri, 23 Dec 2005 09:38:52 +1100 Message-ID: <43AB2955.2080100@nusconsulting.com.au> Date: Fri, 23 Dec 2005 09:31:49 +1100 From: Daniel Kasak User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051029) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Canit-Stats-ID: 357512 - fec4e925678e X-Antispam-Training: Train as spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=357512&m=fec4e925678e X-Antispam-Training: Train as non-spam: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=357512&m=fec4e925678e X-Antispam-Training: Cancel training: http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=357512&m=fec4e925678e X-Scanned-By: CanIt (www . canit . ca) on 10.146.0.254 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.572 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.572 X-Spam-Level: Subject: Performance under Citrix & WAN? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 22:38:38 -0000 Greetings. I'm beginning on a project that I would like to do in GTK ( Perl GTK, actually ). The app will be running on 50 different sites, on a WAN over DSL, and inside Citrix :) We're mainly considering the Citrix option for ease of installation / maintenance. It's not a particularly graphically intensive app - it will mainly be a single form ( large though ) for entering stuff into a database. Has anyone used a GTK application under the above setup? What is performance like? I'm not all that familiar with Citrix, so I'm not exactly sure what it will run like. I assume that it does some intelligent compression of standard Windows widgets for performance over a network. Can I expect decent performance for GTK? Thanks :) Dan From david@avoncliff.com Thu Dec 22 18:42:18 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 415793B0BA7 for ; Thu, 22 Dec 2005 18:42:18 -0500 (EST) 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 13171-08 for ; Thu, 22 Dec 2005 18:42:15 -0500 (EST) Received: from trajan.ag-netcom.net (www.ag-netcom.net [212.58.137.10]) by menubar.gnome.org (Postfix) with ESMTP id 60C4A3B0BE1 for ; Thu, 22 Dec 2005 18:42:15 -0500 (EST) Received: from [192.168.0.2] (dsl-217-155-44-202.zen.co.uk [217.155.44.202]) by trajan.ag-netcom.net (8.12.8p1/8.12.8) with ESMTP id jBMNgEpl044030 for ; Thu, 22 Dec 2005 23:42:14 GMT (envelope-from david@avoncliff.com) Message-ID: <43AB37EA.3090100@avoncliff.com> Date: Thu, 22 Dec 2005 23:34:02 +0000 From: David Stevenson User-Agent: Mozilla Thunderbird 1.0 (X11/20050219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=0.039, BAYES_00=-2.599] X-Spam-Score: -2.561 X-Spam-Level: Subject: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 23:42:18 -0000 Hi I have a problem, and am not sure where to ask, so if this is the wrong place please advise. I am using tiff files that are 9000x6000 pixels black and white. ( they are schematic drawings intended to print A0 size ) I calculate this as just under 8meg at 1 bit per pixel, however when I open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which pushes my 256meg Macmini into swapping and makes the files unusable. I thought the problem could be with the files claiming to be 24bit colour although only using mono, but from a quick look at the headers I think they are 1 bit / pixel. Can anyone confirm the memory use for black and white tiffs. David From jcupitt@gmail.com Fri Dec 23 05:23:42 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E0AB3B0A93 for ; Fri, 23 Dec 2005 05:23:42 -0500 (EST) 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 21886-10 for ; Fri, 23 Dec 2005 05:23:37 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by menubar.gnome.org (Postfix) with ESMTP id 680343B09D9 for ; Fri, 23 Dec 2005 05:23:37 -0500 (EST) Received: by xproxy.gmail.com with SMTP id r21so600038wxc for ; Fri, 23 Dec 2005 02:23:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gfHCBamJJJ2NrIB4XzgFBfiwMV+AoyLrqrHWDoeymltyzaqGydK72InEsHClAPp6Q+VdOVuR0BDJ7XlUlEbrQsPsR6cXcEOxskas6xp0JX4N0W4PX4B9oKD1F5cnhRgLtSN7McffJNkYicYCVhIyQXb/4KF1HsmtB8j2eC/wuSY= Received: by 10.70.94.5 with SMTP id r5mr3108341wxb; Fri, 23 Dec 2005 02:23:36 -0800 (PST) Received: by 10.70.67.14 with HTTP; Fri, 23 Dec 2005 02:23:36 -0800 (PST) Message-ID: <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> Date: Fri, 23 Dec 2005 10:23:36 +0000 From: John Cupitt To: David Stevenson In-Reply-To: <43AB37EA.3090100@avoncliff.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43AB37EA.3090100@avoncliff.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.567 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.567 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 10:23:42 -0000 On 12/22/05, David Stevenson wrote: > I am using tiff files that are 9000x6000 pixels black and white. > ( they are schematic drawings intended to print A0 size ) > I calculate this as just under 8meg at 1 bit per pixel, however when I > open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which > pushes my 256meg Macmini into swapping and makes the files unusable. I did some tests with a 10k x 10k pixel 1 bit image on my laptop. gimp needs just over 200MB of RAM, so I guess they represent the image as 8 bits per pixel plus a bit. eog needs about 350MB, so they might be using RGBA. I maintain an image processing package called nip and it needs just over 30MB to view and manipulate the image. But it's not a paint program and can be tricky to use :-( if you're curious, you can download from: http://www.vips.ecs.soton.ac.uk/ John From hdnews@gawab.com Fri Dec 23 06:07:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3D3F03B1FC2 for ; Fri, 23 Dec 2005 06:07:24 -0500 (EST) 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 25221-05 for ; Fri, 23 Dec 2005 06:07:22 -0500 (EST) Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by menubar.gnome.org (Postfix) with ESMTP id B28B03B1B29 for ; Fri, 23 Dec 2005 06:06:35 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr17.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBNB6XF1041560 for ; Fri, 23 Dec 2005 12:06:34 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBNB6Wfo030182 for ; Fri, 23 Dec 2005 12:06:32 +0100 Message-ID: <43ABDA35.5010008@gawab.com> Date: Fri, 23 Dec 2005 12:06:29 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.469 tagged_above=-999 required=2 tests=[AWL=-0.578, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708] X-Spam-Score: -1.469 X-Spam-Level: Subject: cairo support for Postscript/PDF X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 11:07:24 -0000 L.S., Am I right if I conclude that cairo support for postscript is not included with Gtk? Or is this just a glade-win32.sf.net omission? Thanks in advance for your answers, -- Hans Oesterholt From david@avoncliff.com Fri Dec 23 08:41:41 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 153D43B095B for ; Fri, 23 Dec 2005 08:41:41 -0500 (EST) 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 04071-07 for ; Fri, 23 Dec 2005 08:41:38 -0500 (EST) Received: from trajan.ag-netcom.net (www.ag-netcom.net [212.58.137.10]) by menubar.gnome.org (Postfix) with ESMTP id 196383B10C2 for ; Fri, 23 Dec 2005 08:41:38 -0500 (EST) Received: from [192.168.0.2] (dsl-217-155-44-202.zen.co.uk [217.155.44.202]) by trajan.ag-netcom.net (8.12.8p1/8.12.8) with ESMTP id jBNDfapl052387; Fri, 23 Dec 2005 13:41:36 GMT (envelope-from david@avoncliff.com) Message-ID: <43ABFC0C.5050706@avoncliff.com> Date: Fri, 23 Dec 2005 13:30:52 +0000 From: David Stevenson User-Agent: Mozilla Thunderbird 1.0 (X11/20050219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Cupitt References: <43AB37EA.3090100@avoncliff.com> <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> In-Reply-To: <522c6460512230223n7a1b571ax1573ac502bae0d80@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.565 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599] X-Spam-Score: -2.565 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Tiff monchrome memory usage X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 13:41:41 -0000 John Cupitt wrote: > On 12/22/05, David Stevenson wrote: > >>I am using tiff files that are 9000x6000 pixels black and white. >>( they are schematic drawings intended to print A0 size ) >>I calculate this as just under 8meg at 1 bit per pixel, however when I >>open in Gimp or Eye of Gnome they seem to use over 200meg of ram, which >>pushes my 256meg Macmini into swapping and makes the files unusable. > > > I did some tests with a 10k x 10k pixel 1 bit image on my laptop. gimp > needs just over 200MB of RAM, so I guess they represent the image as 8 > bits per pixel plus a bit. eog needs about 350MB, so they might be > using RGBA. > > I maintain an image processing package called nip and it needs just > over 30MB to view and manipulate the image. But it's not a paint > program and can be tricky to use :-( if you're curious, you can > download from: > > http://www.vips.ecs.soton.ac.uk/ > > John > Thanks John, I have emerged nip2 and now I can view my drawings no problem. David From riboaz@xs4all.nl Fri Dec 23 10:29:10 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 097193B0F66 for ; Fri, 23 Dec 2005 10:29:10 -0500 (EST) 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 12805-10 for ; Fri, 23 Dec 2005 10:29:07 -0500 (EST) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by menubar.gnome.org (Postfix) with ESMTP id B4A433B0820 for ; Fri, 23 Dec 2005 10:29:06 -0500 (EST) Received: from webmail.xs4all.nl (dovemail7.xs4all.nl [194.109.26.9]) by smtp-vbr9.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBNFT5f0038870; Fri, 23 Dec 2005 16:29:05 +0100 (CET) (envelope-from riboaz@xs4all.nl) Received: from 80.127.22.34 (SquirrelMail authenticated user riboaz) by webmail.xs4all.nl with HTTP; Fri, 23 Dec 2005 16:29:05 +0100 (CET) Message-ID: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> Date: Fri, 23 Dec 2005 16:29:05 +0100 (CET) From: "Richard Boaz" To: gtk-list@gnome.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.43 X-Spam-Level: Subject: gtk_window_set_focus() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 15:29:10 -0000 hi, I have an app to draw seismograms on the screen. When the user hits the "Next" button, the app goes away and reads the next batch of traces for display, does various statistics, plots the output to an internal pixmap and then renders this to the screen; depending on the number of files to be read, this could take a fair amount of time (up to a minute). no problems there. One issue that came up over time (when actually unleashed to the end users...) was that when the program was away reading the files, user events (e.g., mouse click) would get caught and (maybe) cause problems since the program was not in the proper state to process this event properly. I got around this by introducing an invisible widget used to grab focus while the program is off reading and processing files, and then ungrabbing this focus once the program's processing is complete, thus disallowing any user events to be propogated to the widget receiving the user event. This also works just fine. However, this has now introduced a new problem. If the user has the mouse over the Next button (to read traces), clicks this button (thus invoking the file processing described above), and doesn't move the mouse off this button, when the program returns (ungrabbing focus of my invisible widget), focus is not reset to this button. (Clicking this button again has no effect; focussing somewhere else and returning to this button results in a working button.) To get around this, then, I tried to use gtk_window_get_focus() to save the widget having focus at the moment my internal processing is invoked, and then returning this focus to this saved widget when the process is complete, via the following function: void focusLock(int lockCmd) { static GtkWidget *oldFocus; switch(lockCmd) { case LOCK: oldFocus = gtk_window_get_focus(topWindow); gtk_grab_add(invisible); break; case UNLOCK: gtk_grab_remove(invisible); gtk_window_set_focus(topWindow, oldFocus); // tried also gtk_widget_grab_focus(): also no effect break; } } However, using this code, the focus is not reset back to the oldFocus widget; there is no change in the problem behaviour. In order to be able to press the button a second time, I must still move the mouse away from the button and back over it. So, I'm wondering, first, is there a way to achieve my above-stated goals some other (better) way? Second, if the above methodology is okay, why does the gtk_window_set_focus() call above not result in the focus being returned to the widget having focus before my program stole it with gtk_grab_add()? Thanks for any ideas in advance, I'm finding myself in a loop of solve one problem and I simply make another needing solving. cheers, richard boaz From jcupitt@gmail.com Fri Dec 23 10:37:31 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23A6A3B1070 for ; Fri, 23 Dec 2005 10:37:31 -0500 (EST) 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 13753-01 for ; Fri, 23 Dec 2005 10:37:28 -0500 (EST) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by menubar.gnome.org (Postfix) with ESMTP id D5E4D3B1B7B for ; Fri, 23 Dec 2005 10:37:22 -0500 (EST) Received: by xproxy.gmail.com with SMTP id h29so433815wxd for ; Fri, 23 Dec 2005 07:37:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WxcqcfSnfd+5TjXmBQsZE+xZYW79ZenXmVTgV+bF8sTcygZH5aYn2QUMheMdlaqd+VVGciZUZSVeRquQ/IFoGuBu0fuK1B8DNp57zxPHwtPYiO6jfkUScxByya293l938Fb8Bpyzxix+91PIwy9Vn1FHmmU0/O56vy58ujNlKzs= Received: by 10.70.53.1 with SMTP id b1mr3379721wxa; Fri, 23 Dec 2005 07:37:22 -0800 (PST) Received: by 10.70.67.14 with HTTP; Fri, 23 Dec 2005 07:37:22 -0800 (PST) Message-ID: <522c6460512230737s65f41743r9da9604706535654@mail.gmail.com> Date: Fri, 23 Dec 2005 15:37:22 +0000 From: John Cupitt To: Richard Boaz In-Reply-To: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <12555.80.127.22.34.1135351745.squirrel@webmail.xs4all.nl> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.567 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.567 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: gtk_window_set_focus() X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 15:37:31 -0000 Hi, On 12/23/05, Richard Boaz wrote: > One issue that came up over time (when actually unleashed to the end > users...) was that when the program was away reading the files, user > events (e.g., mouse click) would get caught and (maybe) cause problems > since the program was not in the proper state to process this event > properly. > > I got around this by introducing an invisible widget used to grab focus > while the program is off reading and processing files, and then ungrabbin= g > this focus once the program's processing is complete, thus disallowing an= y > user events to be propogated to the widget receiving the user event. Thi= s > also works just fine. How about popping up a modal dialog saying "Procesing, please wait ...". The dialog will receive all mouse and keyboard events and they won't get queued on your main window. When processing finishes, pop down the dialog and your app will still be as it was. I guess a better solution would be to thread your program and display a %complete bar, but I imagine that would be more work. John From zvi.sebrow@verizon.net Fri Dec 23 13:54:59 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2938F3B2774 for ; Fri, 23 Dec 2005 13:54:59 -0500 (EST) 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 28538-03 for ; Fri, 23 Dec 2005 13:54:56 -0500 (EST) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by menubar.gnome.org (Postfix) with ESMTP id 9EC1B3B2735 for ; Fri, 23 Dec 2005 13:54:54 -0500 (EST) Received: from OFFICEPC1 ([151.205.177.118]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRY002F7SJGSLR7@vms044.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 12:54:54 -0600 (CST) Date: Fri, 23 Dec 2005 13:55:00 -0500 From: "Zvi Sebrow" To: Message-id: <019301c607f2$605b3cf0$4000a8c0@OFFICEPC1> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="----=_NextPart_000_0190_01C607C8.771ED200" X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.082 tagged_above=-999 required=2 tests=[AWL=-1.991, BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.082 X-Spam-Level: Subject: changing the width of Frames X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 18:54:59 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0190_01C607C8.771ED200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How does one go about changing the width and/or the color of the frame drawn width a GtkFrame? TIA Zvi ------=_NextPart_000_0190_01C607C8.771ED200 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How does one go about changing the width and/or the = color of=20 the frame
drawn width a GtkFrame?
 
TIA
Zvi
------=_NextPart_000_0190_01C607C8.771ED200-- From junshen2004@gmail.com Fri Dec 23 18:02:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E834E3B289C for ; Fri, 23 Dec 2005 18:02:19 -0500 (EST) 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 12971-01 for ; Fri, 23 Dec 2005 18:02:17 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 385133B2610 for ; Fri, 23 Dec 2005 18:02:17 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 16so727038nzp for ; Fri, 23 Dec 2005 15:02:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=E/WpHmU2yclycSiVaTuDbhlFgfkvMaVLU1SIvA8LmSix7wA84F3B3LyXPpuw6GP5vTzLcsW35bDPVpvozgy+KSAZN4qGj3BJHFbIOzw1mXpfoglaxgqPZvCdCy9KzdEeArtMEht3eRdKYdMxClbxi9qQetCtjXqEVtDIKWbh5jo= Received: by 10.64.149.14 with SMTP id w14mr1893732qbd; Fri, 23 Dec 2005 15:02:16 -0800 (PST) Received: by 10.64.210.4 with HTTP; Fri, 23 Dec 2005 15:02:16 -0800 (PST) Message-ID: <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> Date: Fri, 23 Dec 2005 18:02:16 -0500 From: Jun Shen To: gtk-list@gnome.org In-Reply-To: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22881_30597531.1135378936561" References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.481 tagged_above=-999 required=2 tests=[AWL=0.118, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.481 X-Spam-Level: Subject: New to GTK+, please help X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 23:02:20 -0000 ------=_Part_22881_30597531.1135378936561 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I am new to GTK+. I am trying to run the Hello World program from GTK+ 2.0Tutorial in Visual C++ 6.0. But I am getting the following error. Please help. Thank you very much. Jun ** (gtk.exe): WARNING **: The specified module could not be found. Failed to load Pango module for id: 'BasicScriptEngineWin32' (gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): a ssertion `G_IS_OBJECT (object)' failed ** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_shape_sha pe): assertion `PANGO_IS_FONT (font)' failed ------=_Part_22881_30597531.1135378936561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
 
I am new to GTK+. I am trying to run the Hello World program= from GTK+ 2.0 Tutorial in Visual C++ 6.0. But I am getting the following e= rror. Please help.
 
Thank you very much.
 
Jun

** (gtk.exe): WARNING **: The specified module could not be found.=
Failed to load Pango module for id: 'BasicScriptEngineWin32'

(gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_= object_ref): a
ssertion `G_IS_OBJECT (object)' failed

** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_s= hape_sha
pe): assertion `PANGO_IS_FONT (font)' failed

 

 
------=_Part_22881_30597531.1135378936561-- From paul@linuxaudiosystems.com Fri Dec 23 19:51:35 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0DA383B3229 for ; Fri, 23 Dec 2005 19:51:35 -0500 (EST) 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 19183-02 for ; Fri, 23 Dec 2005 19:51:32 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id 43FFC3B2D15 for ; Fri, 23 Dec 2005 19:51:32 -0500 (EST) Received: from dhin ([151.197.42.141]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRZ00K0B91VWOA0@vms046.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 18:51:31 -0600 (CST) Date: Fri, 23 Dec 2005 19:54:21 -0500 From: Paul Davis To: gtk-list@gnome.org Message-id: <1135385661.6838.32.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.572 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.572 X-Spam-Level: Subject: the container/table/scrollbar/adjustment problem to end all such problems X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 00:51:35 -0000 OK, I've had enough of trying to fix this problem over the years. Its time to ask the rest of the experts how they would solve this. The problem at hand is layed out like this: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +--------------------------------+-----------------------------+ | | | | | | | | | | A | B | | | | | | | | | | +--------------------------------+-----------------------------+X | | |X | | |X | | |X | C | D |X | | |X | | |X +--------------------------------+-----------------------------+X the exact and relative dimensions don't matter at all. the rules are that: * A never scrolls at all * B scrolls horizontally in step with D, but never vertically * C scrolls vertically in step with D, but never horizontally * (by implication) D scrolls vertically and horizontally the area marked "XXXXXXXX" indicates the desired location of the scrollbar to control scrolling in the appropriate direction. how to do this with GTK? i know the basics so please don't tell me about using a table, etc. my existing (non)solution is: overall layout is a 3x3 table C is a layout containing an eventbox D is canvas widget (i.e. a layout, since canvas IS-A layout) B is a vbox containing several custom rulers and a canvas A is a vbox containing text labels stacked XXXXXX is a scrollbar of the appropriate orientation this is *very* close to working, but not close enough. I cannot get the layout in C to scroll properly. it has its own adjustments, but anytime the adjustment associated with vertical scrollbar is changed, we set the layout adjustment to the same value. horizontal scrolling works fine. the C layout will scroll, but any part of the event box that was not visible when the top level window was mapped will never be drawn. suggestions? new approaches? before you ask "why not use a scrolled window?", been there, done that. GTK's scrolled windows do not support the idea of being limited in display size but having no visible scrollbars. this means that C cannot be a scrolled window because it will either (a) expand to the full size of its child widget or (b) have to have at least 1 visible scrollbar. --p From paul@linuxaudiosystems.com Fri Dec 23 20:31:15 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A853E3B230F for ; Fri, 23 Dec 2005 20:31:15 -0500 (EST) 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 21547-09 for ; Fri, 23 Dec 2005 20:31:12 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id AD7413B1943 for ; Fri, 23 Dec 2005 20:31:12 -0500 (EST) Received: from dhin ([151.197.42.141]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRZ00HVVAVKJBW1@vms046.mailsrvcs.net> for gtk-list@gnome.org; Fri, 23 Dec 2005 19:30:57 -0600 (CST) Date: Fri, 23 Dec 2005 20:33:47 -0500 From: Paul Davis In-reply-to: <1135385661.6838.32.camel@localhost.localdomain> To: gtk-list@gnome.org Message-id: <1135388027.6838.34.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <1135385661.6838.32.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.571 tagged_above=-999 required=2 tests=[AWL=0.028, BAYES_00=-2.599] X-Spam-Score: -2.571 X-Spam-Level: Subject: Re: the container/table/scrollbar/adjustment problem to end all such problems X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 01:31:15 -0000 On Fri, 2005-12-23 at 19:54 -0500, Paul Davis wrote: > OK, I've had enough of trying to fix this problem over the years. Its > time to ask the rest of the experts how they would solve this. i also know that an excellent way to solve problems is to draft an exasperated email to this list and wait for about 10 minutes, at which point the problem will become utterly self-evident. thanks for listening in. --p From email@micahcarrick.com Fri Dec 23 21:04:19 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 620FE3B0D4E for ; Fri, 23 Dec 2005 21:04:19 -0500 (EST) 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 23404-09 for ; Fri, 23 Dec 2005 21:04:17 -0500 (EST) Received: from meteor.lunarpages.com (meteor.lunarpages.com [216.193.217.213]) by menubar.gnome.org (Postfix) with ESMTP id D283F3B08A5 for ; Fri, 23 Dec 2005 21:04:16 -0500 (EST) Received: from c-24-21-141-194.hsd1.or.comcast.net ([24.21.141.194] helo=[192.168.0.100]) by meteor.lunarpages.com with esmtpa (Exim 4.52) id 1Epylb-0005yQ-8C for gtk-list@gnome.org; Fri, 23 Dec 2005 18:04:15 -0800 Message-ID: <43ACACCA.70309@micahcarrick.com> Date: Fri, 23 Dec 2005 18:04:58 -0800 From: Micah Carrick User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - meteor.lunarpages.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - micahcarrick.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.398 tagged_above=-999 required=2 tests=[AWL=0.201, BAYES_00=-2.599] X-Spam-Score: -2.398 X-Spam-Level: Subject: Help with GdkPIxbuf and GtkImage... X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: email@micahcarrick.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 02:04:19 -0000 Hi. I have a GtkImage in my glade file which I am trying to get to display image data that I have in memory. The data is in raw format, 3 bytes per pixel RGB. So, this is sort of what I'm trying to do now (v->image_data is a struct member with the array of guchar containing my image data)... GdkPixbuf *pixbuf = gdk_pixbuf_new_from_data( v->image_data, GDK_COLORSPACE_RGB, FALSE, 8, 320, 240, 960, NULL, NULL ); GtkWidget *image1 = glade_xml_get_widget (gxml, "image1"); gtk_image_set_from_pixbuf(GTK_IMAGE(image1), pixbuf); gtk_widget_show(image1); Any pointers as to what I might be doing wrong? Thanks, Micah From duckwing@duckwing.ca Fri Dec 23 22:30:46 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50AFD3B3454 for ; Fri, 23 Dec 2005 22:30:46 -0500 (EST) 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 27803-10 for ; Fri, 23 Dec 2005 22:30:43 -0500 (EST) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by menubar.gnome.org (Postfix) with ESMTP id 723763B2EFA for ; Fri, 23 Dec 2005 22:30:43 -0500 (EST) Received: from pd2mr8so.prod.shaw.ca (pd2mr8so-qfe3.prod.shaw.ca [10.0.141.11]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ007ICGF62OC0@l-daemon> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd2mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ00I0VGF6OKC0@pd2mr8so.prod.shaw.ca> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: from localhost ([24.69.162.251]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IRZ00AJWGF6XLI1@l-daemon> for gtk-list@gnome.org; Fri, 23 Dec 2005 20:30:42 -0700 (MST) Received: by localhost (Postfix, from userid 1000) id C0AAB1B70B; Fri, 23 Dec 2005 19:30:43 -0800 (PST) Date: Fri, 23 Dec 2005 19:30:43 -0800 From: "Carl B. Constantine" In-reply-to: <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> To: gtk-list@gnome.org Mail-Followup-To: gtk-list@gnome.org Message-id: <20051224033043.GB5518@Mallard> X-Info: http://www.duckwing.ca MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-2-k7-smp (i686) X-Uptime: 19:29:21 up 10:21, 4 users, load average: 0.07, 0.02, 0.00 References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Re: New to GTK+, please help X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 03:30:46 -0000 * Jun Shen (junshen2004@gmail.com) wrote: > Hi, > > I am new to GTK+. I am trying to run the Hello World program from GTK+ > 2.0Tutorial in Visual C++ > 6.0. But I am getting the following error. Please help. > > Thank you very much. > > Jun > > ** (gtk.exe): WARNING **: The specified module could not be found. > Failed to load Pango module for id: 'BasicScriptEngineWin32' > > (gtk.exe): GLib-GObject-CRITICAL **: file gobject.c: line 1561 > (g_object_ref): a > ssertion `G_IS_OBJECT (object)' failed > > ** (gtk.exe): CRITICAL **: file pango-engine.c: line 68 > (_pango_engine_shape_sha > pe): assertion `PANGO_IS_FONT (font)' failed Do you have the Pango Libraries specified in your VC++ project? I'm not up on Visual C but check to make sure everything is linked in correctly. -- .''`. Carl B. Constantine : :' : duckwing@duckwing.ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom "Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world." From hdnews@gawab.com Sat Dec 24 05:55:49 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 819F33B0A38 for ; Sat, 24 Dec 2005 05:55:49 -0500 (EST) 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 19359-07 for ; Sat, 24 Dec 2005 05:55:47 -0500 (EST) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by menubar.gnome.org (Postfix) with ESMTP id 186023B06A8 for ; Sat, 24 Dec 2005 05:55:47 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr3.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBOAtjtR080824 for ; Sat, 24 Dec 2005 11:55:46 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBOAtifo032675 for ; Sat, 24 Dec 2005 11:55:45 +0100 Message-ID: <43ABD9D2.3000101@gawab.com> Date: Fri, 23 Dec 2005 12:04:50 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.059 tagged_above=-999 required=2 tests=[AWL=-2.058, BAYES_05=-1.11, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_POST=1.708, TW_CV=0.077, TW_VX=0.077] X-Spam-Score: -0.059 X-Spam-Level: Subject: cairo support, Postscript? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 10:55:49 -0000 Hello, On WIN32, I cvxz From everaldo.canuto@gmail.com Sat Dec 24 08:39:17 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 565F13B11B1 for ; Sat, 24 Dec 2005 08:39:10 -0500 (EST) 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 31554-07 for ; Sat, 24 Dec 2005 08:39:07 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id A4D5D3B1B88 for ; Sat, 24 Dec 2005 08:37:59 -0500 (EST) Received: by wproxy.gmail.com with SMTP id 68so720981wra for ; Sat, 24 Dec 2005 05:37:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=E6Ggjfi54G7to9WhxUMeaMCMH1iTu5zzDtZUMmMu4Q3NSXvU+ql+lLNyOFlM4sJsLM3mQIKF2VQhZbqhkP7ClZCyr7izNYFsmuG1CfZFI9HqwhYCLYyA52/yYW8Mn1ASziqxlIoCVMq9y+xoaYUWWrEAP9NUxq3e3vQxp9iRb5E= Received: by 10.54.135.7 with SMTP id i7mr3745811wrd; Sat, 24 Dec 2005 05:37:58 -0800 (PST) Received: from ?172.31.0.45? ( [200.164.80.130]) by mx.gmail.com with ESMTP id 13sm8093462wrl.2005.12.24.05.37.55; Sat, 24 Dec 2005 05:37:57 -0800 (PST) From: Everaldo Canuto To: gtk-list@gnome.org Content-Type: text/plain Date: Sat, 24 Dec 2005 10:37:47 -0300 Message-Id: <1135431467.27692.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: Mary Christimas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 13:39:17 -0000 Hi all, I know that this is a international list and not all people have same religion or calendar but... Mary Christimas, a happy new year and a big success in 2006!! Everaldo. From duckwing@duckwing.ca Sat Dec 24 13:11:07 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB87E3B2612 for ; Sat, 24 Dec 2005 13:11:07 -0500 (EST) 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 17085-06 for ; Sat, 24 Dec 2005 13:11:04 -0500 (EST) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by menubar.gnome.org (Postfix) with ESMTP id 892B63B0A23 for ; Sat, 24 Dec 2005 13:11:04 -0500 (EST) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS00016TL6G7DD0@l-daemon> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:04 -0700 (MST) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd4mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS000JB3L6GOCE0@pd4mr1so.prod.shaw.ca> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:04 -0700 (MST) Received: from localhost ([24.69.162.251]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IS0008ZEL6F4M90@l-daemon> for gtk-list@gnome.org; Sat, 24 Dec 2005 11:11:03 -0700 (MST) Received: by localhost (Postfix, from userid 1000) id 97C161B6F0; Sat, 24 Dec 2005 10:11:07 -0800 (PST) Date: Sat, 24 Dec 2005 10:11:07 -0800 From: "Carl B. Constantine" In-reply-to: <1135431467.27692.7.camel@localhost.localdomain> To: Everaldo Canuto Mail-Followup-To: Everaldo Canuto , gtk-list@gnome.org Message-id: <20051224181107.GB7468@Mallard> X-Info: http://www.duckwing.ca MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux/2.6.8-2-k7-smp (i686) X-Uptime: 10:10:47 up 1 day, 1:02, 4 users, load average: 0.11, 0.11, 0.04 References: <1135431467.27692.7.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.433 tagged_above=-999 required=2 tests=[AWL=0.031, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.433 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Mary Christimas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 18:11:07 -0000 * Everaldo Canuto (everaldo.canuto@gmail.com) wrote: > Hi all, > > I know that this is a international list and not all people have same > religion or calendar but... > > Mary Christimas, a happy new year and a big success in 2006!! > > Everaldo. Thank you. To you and yours too. -- .''`. Carl B. Constantine : :' : duckwing@duckwing.ca `. `' GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom "Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world." From michael@zolnott.de Sun Dec 25 03:23:12 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B45483B079C for ; Sun, 25 Dec 2005 03:23:12 -0500 (EST) 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 28573-08 for ; Sun, 25 Dec 2005 03:23:09 -0500 (EST) Received: from smtp3.freeserve.com (smtp3.wanadoo.co.uk [193.252.22.156]) by menubar.gnome.org (Postfix) with ESMTP id 4F9E43B0B0F for ; Sun, 25 Dec 2005 03:22:43 -0500 (EST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3203.me.freeserve.com (SMTP Server) with ESMTP id 23BDD1C00085 for ; Sun, 25 Dec 2005 09:22:42 +0100 (CET) Received: from www.zolnott.de (user-7071.l6.c5.dsl.pol.co.uk [84.65.123.159]) by mwinf3203.me.freeserve.com (SMTP Server) with ESMTP id BFF5E1C00083 for ; Sun, 25 Dec 2005 09:22:41 +0100 (CET) X-ME-UUID: 20051225082241786.BFF5E1C00083@mwinf3203.me.freeserve.com Received: by www.zolnott.de (Postfix, from userid 1000) id 928804B943; Sun, 25 Dec 2005 08:22:39 +0000 (GMT) Date: Sun, 25 Dec 2005 08:22:37 +0000 From: Michael Ott To: gtk mailing list Message-ID: <20051225082232.GA19389@zolnott06.zolnott> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline X-Operating-System: Linux zolnott06.zolnott 2.6.14 X-annoying-ascii-art: .penguin User-Agent: mutt-ng/devel-r655 (Debian) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: Printing in win32 X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Ott List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 08:23:13 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! I want to port an small linux application to windows. This application have a printing function using gnome functions. Can i port this printing function to windows without using gnome libs? CU =20 =20 Michael =20 =20 -- =20 Michael Ott, e-mail: michael@zolnott.de, www.zolnott.de = =20 I am registered as user #275453 with the Linux Counter, http://counter.li.o= rg. --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDrlbIXDV4oK/n3xIRAgSTAKDFSdlsyUNaMpjJka0xInMkWGjxbgCdGR7N EcIyTX1K6tNhSOU6e7cGcjo= =mdbf -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From gnome@coyotegulch.com Tue Dec 27 02:51:53 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 535523B4BA5 for ; Tue, 27 Dec 2005 02:51:50 -0500 (EST) 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 28738-04 for ; Tue, 27 Dec 2005 02:51:47 -0500 (EST) Received: from smtpout02-04.prod.mesa1.secureserver.net (smtpout02-04.prod.mesa1.secureserver.net [64.202.165.194]) by menubar.gnome.org (Postfix) with SMTP id 3C85D3B6327 for ; Mon, 26 Dec 2005 19:21:46 -0500 (EST) Received: (qmail 30466 invoked from network); 27 Dec 2005 00:21:45 -0000 Received: from unknown (24.96.113.5) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 27 Dec 2005 00:21:45 -0000 Message-ID: <43B0891C.302@coyotegulch.com> Date: Mon, 26 Dec 2005 19:21:48 -0500 From: Scott Robert Ladd User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: RFC: Program for Possible Tutorial X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 07:51:53 -0000 I'm may write a Cairo tutorial, based on what I learned while writing the program found here: http://www.coyotegulch.com/distfiles/unit_circle-1.0.0.tar.gz The program isn't rocket science; one of my home-schooled kids had trouble understanding the relationship of angles and trig functions, and I needed a small project for getting better acquainted with Cairo. If anyone on the GTK or Cairo teams has comments about the code or improvements thereto, I'm open to suggestions. -- Scott Robert Ladd Coyote Gulch Productions http://www.coyotegulch.com From staniszewskip@imperial.pl Tue Dec 27 10:34:20 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 469013B2E72; Tue, 27 Dec 2005 10:34:20 -0500 (EST) 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 20783-06; Tue, 27 Dec 2005 10:34:18 -0500 (EST) Received: from av4-vega.dc.sint.pl (av4-vega.dc.sint.pl [213.241.70.183]) by menubar.gnome.org (Postfix) with ESMTP id 95D8B3B3649; Tue, 27 Dec 2005 02:17:29 -0500 (EST) Received: from ewg145.neoplus.adsl.tpnet.pl ([83.20.230.145]:3725 helo=[192.168.1.251]) by av4-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1Er95L-0002nq-Dd; Tue, 27 Dec 2005 08:17:27 +0100 Message-ID: <43B00567.5010807@imperial.pl> Date: Mon, 26 Dec 2005 15:59:51 +0100 From: =?ISO-8859-2?Q?Przemys=B3aw_Staniszewski?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------010908070702010405030709" X-Exiscan-AV-Host: av4-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.198 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.198 X-Spam-Level: X-Mailman-Approved-At: Tue, 27 Dec 2005 11:01:02 -0500 Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 15:34:20 -0000 This is a multi-part message in MIME format. --------------010908070702010405030709 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------010908070702010405030709 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------010908070702010405030709 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------010908070702010405030709-- From wtallman@olypen.com Tue Dec 27 11:35:37 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7AEC3B2F91 for ; Tue, 27 Dec 2005 11:35:37 -0500 (EST) 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 28571-05 for ; Tue, 27 Dec 2005 11:35:34 -0500 (EST) Received: from olypen3.olypen.com (olypen3.olypen.com [208.200.248.248]) by menubar.gnome.org (Postfix) with ESMTP id 4D8ED3B2151 for ; Tue, 27 Dec 2005 03:10:36 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen3.olypen.com with esmtp() (Exim 4.43) id 1Er9ui-0007Wt-3L for gtk-list@gnome.org; Tue, 27 Dec 2005 00:10:32 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBR8AXTX003225 for gtk-list@gnome.org; Tue, 27 Dec 2005 00:10:33 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Tue, 27 Dec 2005 00:10:33 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051227081033.GA3037@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.429 tagged_above=-999 required=2 tests=[AWL=0.036, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.429 X-Spam-Level: Subject: Yet another question X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:35:37 -0000 This will be my third post here. Perhaps I'll get an answer this time. I'm still struggling along trying to learn Gtk+ and using 1.2. What I'd like to know is how to kill a child window without killing the parent. Or at least I think that's what I need to know. I have a main panel with buttons to launch some number of different satellite windows, like a file selecter, and such. I've gotten each of these to work as a stand-alone, and then dropped the main function to make a call-back. Works like a charm. What happens, though, is when I go to close the call-back, it takes the entire application. The delete_event function calls gtk_main_quit() and that works for the prototype, but now I'd like to replace that with something that just closes the call-back and leaves the main window intact. In one window I crafted myself (lotsa fields and buttons and spinners and such), I simply commented out the delete-event call from gtk_signal_connect, and though I couldn't close it from a button within the window, when I clicked off the desktop frame, it went away without killing the main panel. The file selector is straight from the tutorial, however, and I don't know how to change that... clicking off the desktop frame kills everything. I'm seeing things like gtk_widget_destroy, but I can't figure out how to apply them. I've got both Harlow and Pennington, as well as all the html docs I can find, and I'm still lost. Would someone point me in the right direction here, please? Thanks, Bill Tallman From wtallman@olypen.com Tue Dec 27 11:47:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2F7D93B1B49 for ; Tue, 27 Dec 2005 11:47:44 -0500 (EST) 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 30030-01 for ; Tue, 27 Dec 2005 11:47:40 -0500 (EST) Received: from olypen1.olypen.com (olypen1.olypen.com [208.200.248.250]) by menubar.gnome.org (Postfix) with ESMTP id 1940B3B3980 for ; Tue, 27 Dec 2005 03:21:56 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen1.olypen.com with esmtp() (Exim 4.43) id 1ErA5e-0003lx-Lr for gtk-list@gnome.org; Tue, 27 Dec 2005 00:21:50 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBR8LrUP003384 for gtk-list@gnome.org; Tue, 27 Dec 2005 00:21:53 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Tue, 27 Dec 2005 00:21:53 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051227082153.GA3358@olypen.com> Mail-Followup-To: gtk-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.431 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.431 X-Spam-Level: Subject: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:47:44 -0000 Wouldn't you know it. After all this time, I just happened to notice the solution in the back of Pennington. Run nested instances of gtk_main(). Thanks anyway, Bill Tallman From gnome@coyotegulch.com Tue Dec 27 11:55:45 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A2333B2515 for ; Tue, 27 Dec 2005 11:55:45 -0500 (EST) 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 30976-06 for ; Tue, 27 Dec 2005 11:55:43 -0500 (EST) Received: from smtpout02-04.prod.mesa1.secureserver.net (smtpout02-04.prod.mesa1.secureserver.net [64.202.165.194]) by menubar.gnome.org (Postfix) with SMTP id BFF1E3B7CBE for ; Mon, 26 Dec 2005 00:30:35 -0500 (EST) Received: (qmail 19212 invoked from network); 26 Dec 2005 05:30:33 -0000 Received: from unknown (24.96.113.5) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 26 Dec 2005 05:30:33 -0000 Message-ID: <43AF7FFB.1090201@coyotegulch.com> Date: Mon, 26 Dec 2005 00:30:35 -0500 From: Scott Robert Ladd User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051214) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Subject: Rich text on a GnomeCanvas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:55:45 -0000 I'm working on an application using GTK+ 2.8.9, and I need to display high-quality text on an anti-aliased GnomeCanvas. Since GnomeCanvasRichText does work on an AA canvas, what are my options? Essentially, I'm annotating a graphic image with labels. I'd like some of these labels to be in color, and others in italic or bold. Any suggestions? ..Scott From ihi.marzyciel@wp.pl Tue Dec 27 14:42:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B7BCE3B1F2C; Tue, 27 Dec 2005 14:42:50 -0500 (EST) 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 19432-09; Tue, 27 Dec 2005 14:42:38 -0500 (EST) Received: from av2-vega.dc.sint.pl (av2-vega.dc.sint.pl [213.241.70.181]) by menubar.gnome.org (Postfix) with ESMTP id EC3B83B3222; Tue, 27 Dec 2005 07:52:00 -0500 (EST) Received: from ewg145.neoplus.adsl.tpnet.pl ([83.20.230.145]:4109 helo=[192.168.1.251]) by av2-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1ErEJ1-0000LG-UQ; Tue, 27 Dec 2005 13:51:56 +0100 Message-ID: <43B13901.8040009@wp.pl> Date: Tue, 27 Dec 2005 13:52:17 +0100 From: =?ISO-8859-2?Q?Przemys=B3aw_Staniszewski?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------090305050504000903090101" X-Exiscan-AV-Host: av2-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.955 tagged_above=-999 required=2 tests=[AWL=0.490, BAYES_00=-2.599, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.955 X-Spam-Level: Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 19:42:50 -0000 This is a multi-part message in MIME format. --------------090305050504000903090101 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------090305050504000903090101 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------090305050504000903090101 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------090305050504000903090101-- From odysseus.lost@gmail.com Tue Dec 27 18:43:04 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9F68B3B0A83 for ; Tue, 27 Dec 2005 18:43:04 -0500 (EST) 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 16420-05 for ; Tue, 27 Dec 2005 18:43:02 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by menubar.gnome.org (Postfix) with ESMTP id 38A5F3B0E4F for ; Tue, 27 Dec 2005 13:46:51 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so463280nfc for ; Tue, 27 Dec 2005 10:46:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=IZ98AdFmhr1qPqb0JsrxbJ6JhnYUXVSk66U9SN/dyYKvM86uaLnZ4vL/QdcD4ZRIYEEp3ULlGLC0wR/1mpP/xTtF1Nzk2d4Uqx4iTXBI40GqzKbkFxqm27oD7QFwjOLa6RlxQc9xonH7V4Gds43h80fS3uYJhBSpLFn2S9Wbvoc= Received: by 10.48.12.14 with SMTP id 14mr286522nfl; Tue, 27 Dec 2005 10:46:49 -0800 (PST) Received: by 10.48.144.13 with HTTP; Tue, 27 Dec 2005 10:46:49 -0800 (PST) Message-ID: <5c71e1440512271046v1de46d58n@mail.gmail.com> Date: Tue, 27 Dec 2005 20:46:49 +0200 From: Yiannis To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14579_31684690.1135709209755" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.632 tagged_above=-999 required=2 tests=[AWL=-1.798, BAYES_40=-0.185, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.632 X-Spam-Level: Cc: Subject: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 23:43:04 -0000 ------=_Part_14579_31684690.1135709209755 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, is it possible to have a widget (a toggle button in particular) act as insensitive but look as it is sensitive. More specific is it possible to have a toggle button act as insensitive once activated but look sensitive, ie without the grey shade? Cheers. -- -- Yiannis ------=_Part_14579_31684690.1135709209755 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

is it possible to have a widget (a toggle button in particular) act as insensitive but look as it is sensitive. More specific is it possible to have a toggle button act as insensitive once activated but look sensitive, ie without the grey shade?

Cheers.

--
-- Yiannis ------=_Part_14579_31684690.1135709209755-- From shafer@realmsys.com Tue Dec 27 20:20:24 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C940B3B06DA for ; Tue, 27 Dec 2005 20:20:24 -0500 (EST) 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 28602-09 for ; Tue, 27 Dec 2005 20:20:22 -0500 (EST) Received: from ba.realmsys.com (207.88.121.47.ptr.us.xo.net [207.88.121.47]) by menubar.gnome.org (Postfix) with ESMTP id B538E3B2111 for ; Tue, 27 Dec 2005 16:57:53 -0500 (EST) Received: from [10.100.5.218] (unknown [66.239.3.2]) by ba.realmsys.com (Spam Firewall) with ESMTP id AB0B139741 for ; Tue, 27 Dec 2005 14:57:52 -0700 (MST) From: Andrew Shafer To: gtk-list@gnome.org Content-Type: text/plain Date: Tue, 27 Dec 2005 14:55:59 -0700 Message-Id: <1135720559.30765.5.camel@baraka.inrealm.net> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Barracuda Spam Firewall at realmsys.com X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.12 tagged_above=-999 required=2 tests=[AWL=-2.430, BAYES_40=-0.185, FORGED_RCVD_HELO=0.135, RCVD_IN_DSBL=2.6] X-Spam-Score: 0.12 X-Spam-Level: Subject: Testing your GUI X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:20:25 -0000 This list seems like an appropriate place to ask this question. I've been using GTK for a few months now and I'm interested in some testing strategies. Does any one have a favorite method for testing your GTK applications? Any programs that you use to automate a series of X Events for the purpose of testing? Thanks, Andrew Shafer From sfgm@verizon.net Tue Dec 27 20:26:14 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8A3603B0AE6 for ; Tue, 27 Dec 2005 20:26:14 -0500 (EST) 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 29521-02 for ; Tue, 27 Dec 2005 20:26:12 -0500 (EST) Received: from mta8.srv.hcvlny.cv.net (mta8.srv.hcvlny.cv.net [167.206.4.203]) by menubar.gnome.org (Postfix) with ESMTP id 0B09B3B1653 for ; Tue, 27 Dec 2005 17:10:42 -0500 (EST) Received: from RUBYPC (ool-457407c4.dyn.optonline.net [69.116.7.196]) by mta8.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with SMTP id <0IS600HOEG9GHSDK@mta8.srv.hcvlny.cv.net> for gtk-list@gnome.org; Tue, 27 Dec 2005 17:10:31 -0500 (EST) Date: Tue, 27 Dec 2005 17:10:13 -0500 From: Jay Kessel To: gtk-list@gnome.org Message-id: <006601c60b32$4f8e8b50$6601a8c0@RUBYPC> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Mailer: Microsoft Outlook Express 6.00.2900.2527 Content-type: multipart/alternative; boundary="Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g)" X-Priority: 3 X-MSMail-priority: Normal References: <5fbe2f340512231256o2e84f89fuc98172238cae300f@mail.gmail.com> <5fbe2f340512231502u7871660i7735f9b15dff89af@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.979 tagged_above=-999 required=2 tests=[BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, HTML_MESSAGE=0.001, SPF_NEUTRAL=1.069] X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Flag: YES Subject: New to GTK+, have a few questions X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:26:14 -0000 This is a multi-part message in MIME format. --Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Hi, I am relatively new to GTK+. If I want to draw a rectangle around a widget, such an a GtkEntry or a GtkLabel, how do I go about doing that? I need to be able to change the color of the box and the thickness of the lines, depending on some other data. Can I do that with a GtkFrame? Thanks, Jay --Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Hi,
 
I am relatively new to GTK+.   If I want to draw a rectangle around a widget, such an a GtkEntry or a GtkLabel,
how do I go about doing that?  I need to be able to change the color of the box and the thickness of the lines,
depending on some other data.  Can I do that with a GtkFrame?
 
Thanks,
Jay
--Boundary_(ID_jKprOrgYgkYj8Z0gb6mx1g)-- From hdnews@gawab.com Tue Dec 27 20:33:56 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D738F3B0E7C for ; Tue, 27 Dec 2005 20:33:56 -0500 (EST) 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 30473-06 for ; Tue, 27 Dec 2005 20:33:55 -0500 (EST) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by menubar.gnome.org (Postfix) with ESMTP id F0DF63B22B0 for ; Tue, 27 Dec 2005 17:25:55 -0500 (EST) Received: from pegasus (strader.xs4all.nl [80.127.15.33]) by smtp-vbr6.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBRMPrk5085429; Tue, 27 Dec 2005 23:25:54 +0100 (CET) (envelope-from hdnews@gawab.com) Received: from [10.20.32.64] (asuras [10.20.32.64]) (authenticated bits=0) by pegasus (8.12.10/8.12.10) with ESMTP id jBRMPrfo014724; Tue, 27 Dec 2005 23:25:53 +0100 Message-ID: <43B1BF6B.4050700@gawab.com> Date: Tue, 27 Dec 2005 23:25:47 +0100 From: Hans Oesterholt-Dijkema User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: nl-NL, nl, en MIME-Version: 1.0 To: Hans Oesterholt-Dijkema References: <43ABDA35.5010008@gawab.com> In-Reply-To: <43ABDA35.5010008@gawab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.204 tagged_above=-999 required=2 tests=[AWL=-0.390, BAYES_00=-2.599, DNS_FROM_RFC_POST=1.708, TW_GT=0.077] X-Spam-Score: -1.204 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: cairo support for Postscript/PDF X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:33:57 -0000 Ok, they are stil experimental. However, how does one compile cairo using MinGW32 or MSVC? Anyone? Hans Oesterholt-Dijkema schreef: > L.S., > > Am I right if I conclude that cairo support for postscript > is not included with Gtk? Or is this just a glade-win32.sf.net > omission? > > Thanks in advance for your answers, > > -- > Hans Oesterholt > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yeti@physics.muni.cz Tue Dec 27 20:47:36 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3B0A3B1294 for ; Tue, 27 Dec 2005 20:47:36 -0500 (EST) 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 32099-04 for ; Tue, 27 Dec 2005 20:47:34 -0500 (EST) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id 2BCFD3B06B9 for ; Tue, 27 Dec 2005 17:49:43 -0500 (EST) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBRMnWJv004300; Tue, 27 Dec 2005 23:49:33 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 06F9023E0D; Tue, 27 Dec 2005 23:49:32 +0100 (CET) Date: Tue, 27 Dec 2005 23:49:31 +0100 From: "David Necas (Yeti)" To: "William D. Tallman" Message-ID: <20051227224931.GG29084@potato> References: <20051227082153.GA3358@olypen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051227082153.GA3358@olypen.com> User-Agent: Mutt/1.4.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 01:47:36 -0000 Please use better subjects than `Yet another question' and `Last post'. On Tue, Dec 27, 2005 at 12:21:53AM -0800, William D. Tallman wrote: > Wouldn't you know it. After all this time, I just happened to notice > the solution in the back of Pennington. Run nested instances of > gtk_main(). Running nested instances of gtk_main() is rarely needed. If I understand your problem, just construct your auxiliary windows and show them with gtk_widget_show[_all](). That's all. Delete everything main-loop related (except from main app code). By default, windows are automatically destroyed by Gtk+ on delete event. You can connect your own callback to perform additional actions, but if you only need them destroyed that Just Works. If your auxiliary windows are dialogs and you want to run them modally, use gtk_dialog_run() (this in fact involves a nested main loop, but it's hidden and you do not need to care about it). Yeti -- That's enough. From tristan.van.berkom@gmail.com Tue Dec 27 22:46:36 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF5033B0803 for ; Tue, 27 Dec 2005 22:46:36 -0500 (EST) 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 14190-03 for ; Tue, 27 Dec 2005 22:46:34 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by menubar.gnome.org (Postfix) with ESMTP id D9EC23B1129 for ; Tue, 27 Dec 2005 21:39:19 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 8so1455215nzo for ; Tue, 27 Dec 2005 18:39:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=GNf8uCpCSF8RGq7u/DySFMGobGuoaGZWnRA5OWeB26vfDbprcg4w9ZqMPDpWTEjfw4TDwDHovkTjNCNLj7i+QoAMghv45gKnJ3i4sAOCWhqMtLpBRFt1IvdW30x6pWMtL8igJESy/gzWFLTwoW/SAvz1rQF1Dpq32ZfUDfc32UE= Received: by 10.64.180.14 with SMTP id c14mr2049987qbf; Tue, 27 Dec 2005 18:39:18 -0800 (PST) Received: from ?67.71.79.200? ( [67.71.79.200]) by mx.gmail.com with ESMTP id e13sm258415qba.2005.12.27.18.39.18; Tue, 27 Dec 2005 18:39:18 -0800 (PST) Message-ID: <43B1FC52.2070307@gnome.org> Date: Tue, 27 Dec 2005 21:45:38 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> In-Reply-To: <5c71e1440512271046v1de46d58n@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.574 tagged_above=-999 required=2 tests=[AWL=0.026, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.574 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 03:46:37 -0000 Yiannis wrote: > Hi, > > is it possible to have a widget (a toggle button in particular) act as > insensitive but look as it is sensitive. More specific is it possible to > have a toggle button act as insensitive once activated but look > sensitive, ie without the grey shade? Whatever you're doing, you're cheating ;-) you can: o Create a sample GtkToggleButton o Make copies of the GdkColor structs on widget->style.bg[GTK_STATE_NORMAL] (or is it ACTIVE ?), you might also want the .fg, .base & .text members. you'd want to do this post gtk_rc_parse(). o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg) (and friends) to set the sensitive graphic state onto the insensitive state. o gtk_widget_set_sensitive (widget, FASLE); Cheers, -Tristan From ihi.marzyciel@wp.pl Wed Dec 28 02:24:11 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 652803B097D; Wed, 28 Dec 2005 02:24:11 -0500 (EST) 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 01407-06; Wed, 28 Dec 2005 02:24:08 -0500 (EST) Received: from av4-vega.dc.sint.pl (av4-vega.dc.sint.pl [213.241.70.183]) by menubar.gnome.org (Postfix) with ESMTP id A07C73B093C; Wed, 28 Dec 2005 02:24:06 -0500 (EST) Received: from exb158.neoplus.adsl.tpnet.pl ([83.20.251.158]:3860 helo=[192.168.1.251]) by av4-vega.dc.sint.pl with esmtpa (Exim 4.50) envelope-from auth-id staniszewskip@imperial.pl id 1ErVfH-0002Xx-5g; Wed, 28 Dec 2005 08:24:04 +0100 Message-ID: <43B23DA6.2060808@wp.pl> Date: Wed, 28 Dec 2005 08:24:22 +0100 From: =?UTF-8?B?UHJ6ZW15c8WCYXcgU3RhbmlzemV3c2tp?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: multipart/mixed; boundary="------------080704020609020802080005" X-Exiscan-AV-Host: av4-vega.dc.sint.pl X-Exiscan-AV-Signature: 9a78cb44757f1ee2987a512c326fbf41 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.722 tagged_above=-999 required=2 tests=[AWL=-0.419, BAYES_00=-2.599, SPF_FAIL=1.142, TW_AZ=0.077, TW_GT=0.077] X-Spam-Score: -1.722 X-Spam-Level: Cc: Subject: gobject + diacanvas = i really please for help here X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 07:24:11 -0000 This is a multi-part message in MIME format. --------------080704020609020802080005 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello First of all, sorry for my poor English. I want write an application. I try, but I create a monster not a program. So I decide to start once again. When I was writing first version of it, I put every object that I created to tree of widget. Purpose for that was that: if action had place and specific widget (and his children) was target, he was found in widget tree and after reading associate properties with hem I know what I can do with him. And That was Wrong way to do it. I know, I lost much time. And now I want to really understood what magic happens under the hood. I want build my application over diacanvas2 lib. I what every object on canvas has his own properties. Of course there can be one group of boxes, and another group of boxes with for the program will be complete different. I look into demo in diacanvas2 package. There is such function like add_box: add_box (DiaCanvasView *view) { DiaTool *tool = dia_placement_tool_new (DIA_TYPE_CANVAS_BOX, "parent", view->canvas->root, "width", 0.0, "height", 0.0, "bg_color", 0xFF8FFF55, NULL); g_object_set (view, "tool", tool, NULL); /* First let the tool create the new item... Then unset it. */ g_signal_connect (tool, "button_release_event", G_CALLBACK (cb_unset_tool), view); g_object_unref (tool); } Lets focus on the first function: dia_placement_tool_new. As we can see in dia-placement-tool.c this function use GParamSpec *pspec = g_object_class_find_property (class, name); to search given properties and set some value. From these properties: "parent","width", "height", "bg_color" (or fill_color) dia-canvas-box have the last one. I have two ways and one of them is bad. THE BAD WAY: Copy the *-box file, add add property like gchar *name; (that is working of course) The good way: Create child of widget dia-canavas-box. And here is the first place where I really need help. My widget is in attachment. But something was wrong. When I use it to create widget in diacanvas using add_box and DIA_TYPE_CANVAS_BOX_CHILD for first argument I have this warning: DiaCanvas2-WARNING **: dia-placement-tool.c:319: object class `DiaCanvasBoxChild' has no property named `fill_color', and of course he is right he doesn't have this property his parent have. The second place where I need some help is answer for that : - I want to place line, which will have size (width or height) no less or more then canvas. - I want (i like this word :) have lines or even some object which cant be resized or rotated. I think it is only about blocking some signals for that object when i created them. - I want to (again) add every created object to list or some tree when I put then on the canvas. I wrote this letter because I had bed expierence creating application in gtk without asking anybody how some things can be done in the correct way. I had read "Glib object system" by Mathieu Lacage but I don't understand it, i think because I only read this and never try to create my own widgets :) So this is my first try to understood gobject system. I hope anybody help me. Best regards. ps. when i have littke i will try to understand uml for diacanvas :) -- Przemys³aw Staniszewski --------------080704020609020802080005 Content-Type: text/x-csrc; name="dia-canvas-box-child.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.c" /* * DiaCanvasBoxChild * * This is LGPL'ed code. */ #include "dia-canvas-box-child.h" #include #include "dia-canvas-i18n.h" enum { PROP_NAME = 1 /* Depricated: */ }; static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass); static void dia_canvas_box_child_init (DiaCanvasBoxChild *item); static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); static void dia_canvas_box_child_dispose (GObject *object); static void dia_canvas_box_child_update (DiaCanvasItem *item, gdouble affine[6]); static gboolean dia_canvas_box_child_get_shape_iter (DiaCanvasItem *item, DiaCanvasIter *iter); static gboolean dia_canvas_box_child_shape_next (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaShape* dia_canvas_box_child_shape_value (DiaCanvasItem *item, DiaCanvasIter *iter); static DiaCanvasElementClass *parent_class = NULL; GType dia_canvas_box_child_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { sizeof (DiaCanvasBoxChildClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dia_canvas_box_child_class_init, (GClassFinalizeFunc) NULL, (gconstpointer) NULL, /* class_data */ sizeof (DiaCanvasBoxChild), (guint16) 0, /* n_preallocs */ (GInstanceInitFunc) dia_canvas_box_child_init, }; object_type = g_type_register_static (DIA_TYPE_CANVAS_ELEMENT, "DiaCanvasBoxChild", &object_info, 0); } return object_type; } static void dia_canvas_box_child_class_init (DiaCanvasBoxChildClass *klass) { GObjectClass *object_class; DiaCanvasItemClass *item_class; object_class = (GObjectClass*) klass; item_class = DIA_CANVAS_ITEM_CLASS (klass); parent_class = g_type_class_peek_parent (klass); object_class->get_property = dia_canvas_box_child_get_property; object_class->set_property = dia_canvas_box_child_set_property; //dia_canvas_box_class = (DiaCanvasBoxClass *) class; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", _("Name"), _("Name for tex box"), NULL, G_PARAM_READWRITE)); } static void dia_canvas_box_child_init (DiaCanvasBoxChild *item) { item->name = NULL; } static void dia_canvas_box_child_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { DiaCanvasBoxChild *box_child = (DiaCanvasBoxChild*) object; switch (property_id) { case PROP_NAME: dia_canvas_item_preserve_property (DIA_CANVAS_ITEM(box_child), "name"); if (box_child->name) { g_printf("Juz jest jakas nazwa - trzeba ja zwolnic przez free"); } box_child->name=g_strdup(g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } static void dia_canvas_box_child_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_NAME: g_value_set_string (value, DIA_CANVAS_BOX_CHILD (object)->name); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } } --------------080704020609020802080005 Content-Type: text/x-chdr; name="dia-canvas-box-child.h" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dia-canvas-box-child.h" /* dia-canvas-box_child.h * Copyright (C) 2001 Arjan Molenaar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * DiaCanvasBoxChild * ---------- * Base class for box_child like objects, which includes basically everything * that's not a line. * BoxChilds have eight handles around them and can move, but handles can not * connect to other box_childs. Moving an individual handle will cause the * box_child to call DiaCanvasBoxChildClass::resize(). */ #ifndef __DIA_CANVAS_BOX_CHILD_H__ #define __DIA_CANVAS_BOX_CHILD_H__ #include G_BEGIN_DECLS #define DIA_TYPE_CANVAS_BOX_CHILD (dia_canvas_box_child_get_type ()) #define DIA_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChild)) #define DIA_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) #define DIA_IS_CANVAS_BOX_CHILD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_IS_CANVAS_BOX_CHILD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DIA_TYPE_CANVAS_BOX_CHILD)) #define DIA_CANVAS_BOX_CHILD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_CANVAS_BOX_CHILD, DiaCanvasBoxChildClass)) typedef struct _DiaCanvasBoxChild DiaCanvasBoxChild; typedef struct _DiaCanvasBoxChildClass DiaCanvasBoxChildClass; struct _DiaCanvasBoxChild { DiaCanvasBox item; gchar *name; }; struct _DiaCanvasBoxChildClass { DiaCanvasBoxClass parent_class; }; GType dia_canvas_box_child_get_type (void); G_END_DECLS #endif /* __DIA_CANVAS_BOX_CHILD_H__ */ --------------080704020609020802080005-- From wtallman@olypen.com Wed Dec 28 03:01:06 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8BE003B0A45 for ; Wed, 28 Dec 2005 03:01:05 -0500 (EST) 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 04120-05 for ; Wed, 28 Dec 2005 03:00:59 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id 4EC893B0A3E for ; Wed, 28 Dec 2005 03:00:59 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1ErWF1-0000sR-A2 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:00:59 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBS80ubE022494 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:00:56 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 28 Dec 2005 00:00:56 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051228080056.GD19427@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <20051227082153.GA3358@olypen.com> <23025.80.126.242.36.1135753664.squirrel@webmail.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23025.80.126.242.36.1135753664.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.43 X-Spam-Level: Subject: Re: Last post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:01:06 -0000 On Wed, Dec 28, 2005 at 08:07:44AM +0100, Richard Boaz wrote: > hi, > > there's another method you can employ to deal with these situations. > don't know all your gritty details, but perhaps it's relevant for you. > when i have dialogs and popups and such, i don't employ another > gtk_main(), rather, i make the dailog modal so that focus is fixed on the > dialog. once they user hits the enter/cancel key, i hide the dialog/popup > insteal of destroying it. that way, if the user needs to see it again, > you only need to show the widget instead of making it from scratch every > time. Considered that, thanks. These aren't informative, they're dialogue widgets of one or another kind, and I hadn't gotten the connection. They need to pass their information, do their thing, and then go away, as a new instance will be needed each time. I think. Also, I think they need not to be modal, because the user may want to consult other stuff in the process, and hanging things up would be a real Bad Idea. Finally got some response here, and its valuable! Thanks all, Bill Tallman From wtallman@olypen.com Wed Dec 28 03:03:32 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 632103B085A for ; Wed, 28 Dec 2005 03:03:32 -0500 (EST) 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 04529-02 for ; Wed, 28 Dec 2005 03:03:30 -0500 (EST) Received: from olypen5.olypen.com (olypen5.olypen.com [208.200.248.246]) by menubar.gnome.org (Postfix) with ESMTP id D20E93B07ED for ; Wed, 28 Dec 2005 03:03:29 -0500 (EST) Received: from 65.243.188.30.olypen.com ([65.243.188.30] helo=ansible.dragondwell) by olypen5.olypen.com with esmtp() (Exim 4.43) id 1ErWHS-0001xB-49 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:03:30 -0800 Received: (from wtallman@localhost) by ansible.dragondwell (8.12.11/8.12.11/Submit) id jBS83RBY022527 for gtk-list@gnome.org; Wed, 28 Dec 2005 00:03:27 -0800 X-Authentication-Warning: ansible.dragondwell: wtallman set sender to wtallman@olypen.com using -f Date: Wed, 28 Dec 2005 00:03:27 -0800 From: "William D. Tallman" To: gtk-list@gnome.org Message-ID: <20051228080327.GE19427@olypen.com> Mail-Followup-To: gtk-list@gnome.org References: <43B23DA6.2060808@wp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B23DA6.2060808@wp.pl> User-Agent: Mutt/1.4.2.1i X-SENDER: wtallman@olypen.com X-Olypen-Virus: clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.43 tagged_above=-999 required=2 tests=[AWL=0.035, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001] X-Spam-Score: -2.43 X-Spam-Level: Subject: Re: Last Post X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 08:03:32 -0000 That response should have been private, sorry. Bill Tallman From odysseus.lost@gmail.com Wed Dec 28 09:21:58 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6CB8F3B105D for ; Wed, 28 Dec 2005 09:21:58 -0500 (EST) 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 03014-06 for ; Wed, 28 Dec 2005 09:21:38 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by menubar.gnome.org (Postfix) with ESMTP id BB9CE3B0B52 for ; Wed, 28 Dec 2005 09:21:34 -0500 (EST) Received: by nproxy.gmail.com with SMTP id c2so507254nfe for ; Wed, 28 Dec 2005 06:21:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=U75Xp+LDkNCfX0l3oP7s9MBtBlliLov9slLrZB8Fw8OQc2mX3/vbkRKS4PBJYrUzqKZCsF04b8EvByS6HZTxKjLrWF600RyXO2/9GBs7TFnhCo3lCrz977WjONmofvdDn9HkuWQuBmhc3o+8j5h/7a83AaD+wWy70OoGu+US+pQ= Received: by 10.49.51.10 with SMTP id d10mr266777nfk; Wed, 28 Dec 2005 06:21:33 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 28 Dec 2005 06:21:33 -0800 (PST) Message-ID: <5c71e1440512280621w37c6e890i@mail.gmail.com> Date: Wed, 28 Dec 2005 16:21:33 +0200 From: Yiannis To: Tristan Van Berkom In-Reply-To: <43B1FC52.2070307@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16771_16989183.1135779693728" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.162 tagged_above=-999 required=2 tests=[AWL=-0.059, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.162 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 14:21:58 -0000 ------=_Part_16771_16989183.1135779693728 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28/12/05, Tristan Van Berkom wrote: > > Yiannis wrote: > > Hi, > > > > is it possible to have a widget (a toggle button in particular) act as > > insensitive but look as it is sensitive. More specific is it possible t= o > > have a toggle button act as insensitive once activated but look > > sensitive, ie without the grey shade? > > Whatever you're doing, you're cheating ;-) Yes, I know...., a necessity for visualisation reasons. :) you can: > o Make copies of the GdkColor structs on widget->style.bg > [GTK_STATE_NORMAL] > (or is it ACTIVE ?), you might also want the .fg, .base & .text > members. > you'd want to do this post gtk_rc_parse(). > o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, > sensitive_bg) > (and friends) to set the sensitive graphic state onto the > insensitive state. Cheers, with a first quick look to the documentation that will do the job..= . -- -- Yiannis ------=_Part_16771_16989183.1135779693728 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 28/12/05, Tristan Van Berkom <tristan.van.berkom@gmail.com> wrote:
Yiannis wrote:
> Hi,
>
> is it possible to have a widget = (a toggle button in particular) act as
> insensitive but look as it i= s sensitive. More specific is it possible to
> have a toggle button a= ct as insensitive once activated but look
> sensitive, ie without the grey shade?

Whatever you're doing= , you're cheating ;-)

Yes, I know...., a necessity for visualisation reasons. :)

you can= :
     o Make copies of the GdkColor structs on widg= et->style.bg[GTK_STATE_NORMAL]
       (or is it ACTIVE ?), you might als= o want the .fg, .base & .text members.
     = ;  you'd want to do this post gtk_rc_parse().
   &nb= sp; o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= )
       (and friends) to set the sensitive= graphic state onto the insensitive state.

Cheers, with a first quick look to the documentation that will do the job..= .



--
-- Yiannis ------=_Part_16771_16989183.1135779693728-- From tom.pinkas@gmail.com Wed Dec 28 07:53:28 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CA393B0789 for ; Wed, 28 Dec 2005 07:53:28 -0500 (EST) 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 27990-10 for ; Wed, 28 Dec 2005 07:53:26 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by menubar.gnome.org (Postfix) with ESMTP id C69FC3B07A6 for ; Wed, 28 Dec 2005 07:53:25 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n29so2042876nzf for ; Wed, 28 Dec 2005 04:53:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oDmI6wk3XENdrW6hGF+i2D/bEz+ng9eggTmL4bJGgIjyWJ5BhlEtDfR9PDT8/fUo42vwJs2zA9utkjaJjLis6PDuBQEqcuedswWwdpXNvuDspVogd8shIpy1uHkKrgtjr2tYaGcE82JYMPzLJBsDQhdEhwAcFHvCsjW8JTGEWMY= Received: by 10.36.250.48 with SMTP id x48mr5424244nzh; Wed, 28 Dec 2005 04:53:25 -0800 (PST) Received: by 10.36.5.2 with HTTP; Wed, 28 Dec 2005 04:53:25 -0800 (PST) Message-ID: <21fb55350512280453i15ef5065y202b3bace2874a5@mail.gmail.com> Date: Wed, 28 Dec 2005 13:53:25 +0100 From: Tom Pinkas To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8978_4087234.1135774405052" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.094 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -1.094 X-Spam-Level: X-Mailman-Approved-At: Wed, 28 Dec 2005 11:00:41 -0500 Subject: Touchpad doesn't work after starting a GTK application. X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 12:53:28 -0000 ------=_Part_8978_4087234.1135774405052 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, when I start a GTK application, my touchpad stop working. After start X server and (not gnome) window manager touchpad working well. But after starting random GTK application (i.e. vim-gtk, mozilla-firefox, ...) it sto= p working. I'm using synaptics driver http://web.telia.com/~u89404340/touchpad/. I'm using Debian, X.Org 6.8.2, libgtk2.0 2.6.4-3.1 and libgtk1.2 1.2.10-17(but I think it doesn't matter - I tried several versions of X, libgtk even synaptics touchpad driver) on Acer Aspire 1353LC. Thanks in advance for any advices. Tom ------=_Part_8978_4087234.1135774405052 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,

when I start a GTK application, my touchpad stop working. After start X server and (not gnome) window manager touchpad working well. But after starting random GTK application (i.e. vim-gtk, mozilla-firefox, ...) it stop working. I'm using synaptics driver http://web.telia.com/= ~u89404340/touchpad/.

I'm using Debian, X.Org 6.8.2, libgtk2.0 2.6.4-3.1 and libgtk1.2 1.2.10-17 (but I think it doesn't matter - I tried several versions of X, libgtk even synaptics touchpad driver) on Acer Aspire 1353LC.

Thanks in advance for any advices.

Tom
------=_Part_8978_4087234.1135774405052-- From odysseus.lost@gmail.com Wed Dec 28 11:35:16 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D733B11E0 for ; Wed, 28 Dec 2005 11:35:16 -0500 (EST) 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 14025-04 for ; Wed, 28 Dec 2005 11:35:12 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.203]) by menubar.gnome.org (Postfix) with ESMTP id 1A3753B11AC for ; Wed, 28 Dec 2005 11:35:02 -0500 (EST) Received: by nproxy.gmail.com with SMTP id m19so531799nfc for ; Wed, 28 Dec 2005 08:35:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=AA/+CvzQBTg4HzC9QnK8zd8vg1nzpw/fDQbPShpeNtgv7QfdpM9vuvarA/d5NVJ8Um45O+i8TJ1KDMRs8sbjtxSSxUil2gCSEMOEaZt3/mKrLIHQXOBzAraiPm0mcRqOhwO0x5q+J7HKRsryV/lht5mfbbbZrRKGATblamcp25o= Received: by 10.48.4.13 with SMTP id 13mr333514nfd; Wed, 28 Dec 2005 08:35:01 -0800 (PST) Received: by 10.48.144.13 with HTTP; Wed, 28 Dec 2005 08:35:00 -0800 (PST) Message-ID: <5c71e1440512280835m7410ddaaq@mail.gmail.com> Date: Wed, 28 Dec 2005 18:35:00 +0200 From: Yiannis To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <5c71e1440512280621w37c6e890i@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17231_32560008.1135787700949" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.339 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.339 X-Spam-Level: Cc: Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 16:35:16 -0000 ------=_Part_17231_32560008.1135787700949 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 28/12/05, Yiannis wrote: > > > > On 28/12/05, Tristan Van Berkom wrote: > > > > Yiannis wrote: > > > Hi, > > > > > > is it possible to have a widget (a toggle button in particular) act a= s > > > insensitive but look as it is sensitive. More specific is it possible > > to > > > have a toggle button act as insensitive once activated but look > > > sensitive, ie without the grey shade? > > > > Whatever you're doing, you're cheating ;-) > > > > > you can: > > o Make copies of the GdkColor structs on widget->style.bg[GTK_STAT= E_NORMAL] > > > > (or is it ACTIVE ?), you might also want the .fg, .base & .text > > members. > > you'd want to do this post gtk_rc_parse(). > > o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, > > sensitive_bg) > > (and friends) to set the sensitive graphic state onto the > > insensitive state. > > GdkColor *sensitive_bg =3D widget->style.bg[GTK_STATE_NORMAL]; fails with the following error: error: request for member `bg' in something not a structure or union and the same error occurs with all the other members of the style structure.... Any ideas? -- -- Yiannis ------=_Part_17231_32560008.1135787700949 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 28/12/05, Yiannis <odysseu= s.lost@gmail.com> wrote:


On 28/12/05, Tristan Van Berkom < tristan.van.berkom@gmail.com> wrote:
Yiannis wrote:
> Hi,
>
> is it possible to have a widget = (a toggle button in particular) act as
> insensitive but look as it i= s sensitive. More specific is it possible to
> have a toggle button a= ct as insensitive once activated but look
> sensitive, ie without the grey shade?

Whatever you're doing= , you're cheating ;-)



you can= :
     o Make copies of the GdkCol= or structs on widget-> style.bg[GTK_STATE_NORMAL]
       (or is it ACTIVE ?), you might als= o want the .fg, .base & .text members.
     = ;  you'd want to do this post gtk_rc_parse().
   &nb= sp; o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= )
       (and friends) to set the sensitive= graphic state onto the insensitive state.

GdkColor *sensitive_bg =3D widget->style.bg[GTK_STATE_NORMAL];

fails with the following error:
error: request for member `bg' in something not a structure or union

and the same error occurs with all the other members of the style structure= ....

Any ideas?


--
-- Yiannis ------=_Part_17231_32560008.1135787700949-- From tristan.van.berkom@gmail.com Wed Dec 28 14:09:23 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 332783B14E9 for ; Wed, 28 Dec 2005 14:09:23 -0500 (EST) 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 29200-05 for ; Wed, 28 Dec 2005 14:09:19 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 30FF33B155D for ; Wed, 28 Dec 2005 14:08:39 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n29so2144347nzf for ; Wed, 28 Dec 2005 11:08:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=OP6Oe3eIhJcumfe7iE8FA3RyCs+htGI6pClC6L+kT1a8fRv6L1Uu7kgn5oPtr2qQwaCgNa+t4fHX8MVw72e2yhQKg9LrDK2g5Vdx6VQCTlAAJWz0jbaxprJdqCVHLJxhCga/9SdtM+JISlg+hIqBGUVrgz+XiIFzg7+3qMCtHjI= Received: by 10.65.197.10 with SMTP id z10mr3315814qbp; Wed, 28 Dec 2005 11:08:37 -0800 (PST) Received: from ?65.95.16.142? ( [65.95.16.142]) by mx.gmail.com with ESMTP id q14sm833212qbq.2005.12.28.11.08.35; Wed, 28 Dec 2005 11:08:36 -0800 (PST) Message-ID: <43B2E433.6020203@gnome.org> Date: Wed, 28 Dec 2005 14:14:59 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> In-Reply-To: <5c71e1440512280835m7410ddaaq@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 19:09:23 -0000 Yiannis wrote: [...] > GdkColor *sensitive_bg = widget->style.bg[GTK_STATE_NORMAL]; > > fails with the following error: > error: request for member `bg' in something not a structure or union > > and the same error occurs with all the other members of the style > structure.... > > Any ideas? Heh, I was just jotting it down from memory; I didn't actually expect it to compile out of the box ;-) If it says "in something not a structure or union", then it's probably: widget->style->bg[GTK_STATE_NORMAL]; if not, a closer look at gtkwidget.h & gtkstyle.h will clarify. Cheers, -Tristan From paul@linuxaudiosystems.com Wed Dec 28 14:57:08 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 706793B1705 for ; Wed, 28 Dec 2005 14:57:08 -0500 (EST) 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 01030-03 for ; Wed, 28 Dec 2005 14:57:04 -0500 (EST) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by menubar.gnome.org (Postfix) with ESMTP id E95C33B16E3 for ; Wed, 28 Dec 2005 14:56:57 -0500 (EST) Received: from dhin ([141.151.56.8]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IS800E504QVMBJ6@vms046.mailsrvcs.net> for gtk-list@gnome.org; Wed, 28 Dec 2005 13:56:57 -0600 (CST) Date: Wed, 28 Dec 2005 14:59:47 -0500 From: Paul Davis In-reply-to: <43AF7FFB.1090201@coyotegulch.com> To: Scott Robert Ladd Message-id: <1135799987.4661.11.camel@localhost.localdomain> Organization: Linux Audio Systems MIME-version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-type: text/plain Content-transfer-encoding: 7bit References: <43AF7FFB.1090201@coyotegulch.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Rich text on a GnomeCanvas X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul@linuxaudiosystems.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 19:57:08 -0000 On Mon, 2005-12-26 at 00:30 -0500, Scott Robert Ladd wrote: > I'm working on an application using GTK+ 2.8.9, and I need to display > high-quality text on an anti-aliased GnomeCanvas. Since > GnomeCanvasRichText does work on an AA canvas, what are my options? > > Essentially, I'm annotating a graphic image with labels. I'd like some > of these labels to be in color, and others in italic or bold. > > Any suggestions? i would probably just use multiple text items, setting the properties of each one. one item per label, And You're Done (TM) --p From sibakhan@gmail.com Fri Dec 30 09:45:22 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B79773B1F26 for ; Fri, 30 Dec 2005 09:45:22 -0500 (EST) 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 06746-09 for ; Fri, 30 Dec 2005 09:45:19 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id 21FAE3B1F7D for ; Fri, 30 Dec 2005 09:35:58 -0500 (EST) Received: by zproxy.gmail.com with SMTP id m7so1506109nzf for ; Fri, 30 Dec 2005 06:35:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=M+KZ4RzieYSX19pgy/ZdRIvesr85C0YkNWQjuytb1jMaFKt6wIfobBUqUTRiDjaywz/HsHNNv3pARd47YMTZ5LkRlQqo/gnkmiMY53D8mvIRNjsnjBMp/Oy/aT98sXjiVaQ/1RiilTVNzqEYVKwDzl6+5PqHIEHpzCxGfyH6jyE= Received: by 10.36.145.5 with SMTP id s5mr1602233nzd; Fri, 30 Dec 2005 06:35:57 -0800 (PST) Received: by 10.36.194.8 with HTTP; Fri, 30 Dec 2005 06:35:57 -0800 (PST) Message-ID: Date: Fri, 30 Dec 2005 14:35:57 +0000 From: ibrar ahmed To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: popup menu settings on help button X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 14:45:22 -0000 Hello ALL, HAPPY NEW YEAR! I have a problem to set the popup menu on help button. This time popup menu showing on click event on button but i want to set the border of menu that display very near to the bottom of button. Ahmed From odysseus.lost@gmail.com Fri Dec 30 14:28:58 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 834FC3B2116 for ; Fri, 30 Dec 2005 14:28:58 -0500 (EST) 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 01640-03 for ; Fri, 30 Dec 2005 14:28:55 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by menubar.gnome.org (Postfix) with ESMTP id 9FE563B21EC for ; Fri, 30 Dec 2005 14:28:49 -0500 (EST) Received: by nproxy.gmail.com with SMTP id c31so743353nfb for ; Fri, 30 Dec 2005 11:28:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cCca16TKLWd/iZjJhV0zdOQHKP8LOMALHTPI+uQckipedFPZOmLJfiPUOPTHjCJ8UXRfQs7QtrQvjmSdHVlNQyhWZ+NWzOPZKhQ8zcNZ7Oc6Gt98JHb2uIwcvNdxkYku3qIKyiBkUloscEWE6j3NDaWxva4edcJLCgXDTnsBzY8= Received: by 10.48.250.8 with SMTP id x8mr442187nfh; Fri, 30 Dec 2005 11:28:47 -0800 (PST) Received: by 10.48.144.13 with HTTP; Fri, 30 Dec 2005 11:28:47 -0800 (PST) Message-ID: <5c71e1440512301128w6744bdaap@mail.gmail.com> Date: Fri, 30 Dec 2005 21:28:47 +0200 From: Yiannis To: Tristan Van Berkom In-Reply-To: <43B2E433.6020203@gnome.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24691_17171613.1135970927904" References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> <43B2E433.6020203@gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.747 tagged_above=-999 required=2 tests=[AWL=-0.499, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.747 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 19:28:58 -0000 ------=_Part_24691_17171613.1135970927904 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry for posting back but my code failed.... :) On 28/12/05, Tristan Van Berkom wrote: > > > Heh, > I was just jotting it down from memory; I didn't actually > expect it to compile out of the box ;-) I don't expect answers out of the box.... :). I do check with the documentation and the source code.... :) So here we go..... Firstly let me paste Tristan's previous reply to this email too: Tristan said: you can: o Create a sample GtkToggleButton o Make copies of the GdkColor structs on widget->style.bg [GTK_STATE_NORMAL] (or is it ACTIVE ?), you might also want the .fg, .base & .text members. you'd want to do this post gtk_rc_parse(). o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, sensitive_bg= ) (and friends) to set the sensitive graphic state onto the insensitive state. o gtk_widget_set_sensitive (widget, FASLE); Now, what I tried so far has failed. Here we go: Modifying directly the values of widget->style: widget->style->bg[GTK_STATE_INSENSITIVE] =3D widget->style->bg[GTK_STATE_NORMAL]; widget->style->fg[GTK_STATE_INSENSITIVE] =3D widget->style->fg[GTK_STATE_NORMAL]; widget->style->base[GTK_STATE_INSENSITIVE] =3D widget->style->base[GTK_STATE_NORMAL]; widget->style->fg_rc[GTK_STATE_INSENSITIVE] =3D widget->style->fg_rc[GTK_STATE_NORMAL]; using the gtk_widget_modify_xx functions: gtk_widget_modify_bg(widget, GTK_STATE_INSENSITIVE, &(widget->style->bg[GTK_STATE_NORMAL])); gtk_widget_modify_fg(widget, GTK_STATE_INSENSITIVE, &(widget->style->fg[GTK_STATE_NORMAL])); gtk_widget_modify_base(widget, GTK_STATE_INSENSITIVE, &(widget->style->base[GTK_STATE_NORMAL])); gtk_widget_modify_text(widget, GTK_STATE_INSENSITIVE, &(widget->style->text[GTK_STATE_NORMAL])); Copying firstly the GtkStyle, modifying the new one and passing it back to the widget (using gtk_widget_set_style...) even if this method is not recommended in the API: GtkStyle *style =3D gtk_style_copy(widget->style); style->fg[GTK_STATE_INSENSITIVE] =3D style->fg[GTK_STATE_NORMAL]; style->bg[GTK_STATE_INSENSITIVE] =3D style->bg[GTK_STATE_NORMAL]; style->base[GTK_STATE_INSENSITIVE] =3D style->base[GTK_STATE_NORMAL]; gtk_widget_set_style(widget, style); Copying the GtkRcStyle and then using gtk_widget_modify_style to pass it back... according to the API this is the "recommended" method as subsequent calls to gtk_widget_modify_XX are cummulative leaving the rest of the attributes unchanged. GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget); rcstyle->bg[GTK_STATE_INSENSITIVE] =3D rcstyle->bg[GTK_STATE_NORMAL]; rcstyle->fg[GTK_STATE_INSENSITIVE] =3D rcstyle->fg[GTK_STATE_NORMAL]; rcstyle->base[GTK_STATE_INSENSITIVE] =3D rcstyle->base[GTK_STATE_NORMAL]; gtk_widget_modify_style(widget, rcstyle); In all cases I call thereafter gtk_widget_set_sensitive(widget, FALSE); to make the widget insensitive. However, none of the above works.... the colours of the insensitive widget are still the ones of an insensitive widget.... Any clues? The only thing I can think of is that I am not using the right attributes.... bg, fg, base.... however, I cannot find any documentation explaining each one of the members in the GtkStyle structure.... but the names are self-explanatory so they should be the correct ones.... One more thing I am not fully sure about is the RcStyle.... This is supposed some kind of file that is used to define a theme.... Does this affect the GtkStyle? Ie when I call GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget); what I am copying is the widget->style data structure or something else??? Because the function return GtkRcStyle* but I cannot find any GtkRcStyle structure in the gtkwidget.h definition. -- -- Yiannis ------=_Part_24691_17171613.1135970927904 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sorry for posting back but my code failed.... :)

On 28/12/05, Tristan Van Berkom= <tristan.van.berkom= @gmail.com > wrote:

Heh,
     I was just jotting it down from m= emory; I didn't actually
expect it to compile out of the box ;-)

I don't expect answers out of the box.... :). I do check with the documentation and the source code.... :) So here we go..... Firstly let me paste Tristan's previous reply to this email too:

Tristan said:
you can:
    o Create a sample GtkToggleButton
    o Make copies of the GdkColor structs on widget->style.bg= [GTK_STATE_NORMAL]
      (or is it ACTIVE ?), you might also want the .fg, .ba= se & .text members.
      you'd want to do this post gtk_rc_parse().
    o Use gtk_widget_modify_bg (widget, GTK_STATE_INSENSITIVE, s= ensitive_bg)
      (and friends) to set the sensitive graphic state onto= the insensitive state.
    o gtk_widget_set_sensitive (widget, FASLE);


Now, what I tried so far has failed. Here we go:

Modifying directly the values of widget->style:

widget->style->bg[GTK_STATE_INSENSITIVE] =3D widget->style->bg[= GTK_STATE_NORMAL];
widget->style->fg[GTK_STATE_INSENSITIVE] =3D widget->style->fg[= GTK_STATE_NORMAL];
widget->style->base[GTK_STATE_INSENSITIVE] =3D widget->style->b= ase[GTK_STATE_NORMAL];
widget->style->fg_rc[GTK_STATE_INSENSITIVE] =3D widget->style->= fg_rc[GTK_STATE_NORMAL];

using the gtk_widget_modify_xx functions:
gtk_widget_modify_bg(widget, GTK_STATE_INSENSITIVE, &(widget->style-= >bg[GTK_STATE_NORMAL]));
gtk_widget_modify_fg(widget, GTK_STATE_INSENSITIVE, &(widget->style-= >fg[GTK_STATE_NORMAL]));
gtk_widget_modify_base(widget, GTK_STATE_INSENSITIVE, &(widget->styl= e->base[GTK_STATE_NORMAL]));
gtk_widget_modify_text(widget, GTK_STATE_INSENSITIVE, &(widget->styl= e->text[GTK_STATE_NORMAL]));


Copying firstly the GtkStyle, modifying the new one and passing it back to the widget (using gtk_widget_set_style...) even if this method is not recommended in the API:
GtkStyle *style =3D gtk_style_copy(widget->style);
style->fg[GTK_STATE_INSENSITIVE] =3D style->fg[GTK_STATE_NORMAL];
style->bg[GTK_STATE_INSENSITIVE] =3D style->bg[GTK_STATE_NORMAL];
style->base[GTK_STATE_INSENSITIVE] =3D style->base[GTK_STATE_NORMAL];=
gtk_widget_set_style(widget, style);


Copying the GtkRcStyle and then using gtk_widget_modify_style to pass it back... according to the API this is the "recommended" method = as subsequent calls to gtk_widget_modify_XX are cummulative leaving the rest of the attributes unchanged.

GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget);
rcstyle->bg[GTK_STATE_INSENSITIVE] =3D rcstyle->bg[GTK_STATE_NORMAL];=
rcstyle->fg[GTK_STATE_INSENSITIVE] =3D rcstyle->fg[GTK_STATE_NORMAL];=
rcstyle->base[GTK_STATE_INSENSITIVE] =3D rcstyle->base[GTK_STATE_NORM= AL];
gtk_widget_modify_style(widget, rcstyle);

In all cases I call thereafter
gtk_widget_set_sensitive(widget, FALSE);
to make the widget insensitive.

However, none of the above works.... the colours of the insensitive widget = are still the ones of an insensitive widget....

Any clues?

The only thing I can think of is that I am not using the right attributes.... bg, fg, base.... however, I cannot find any documentation explaining each one of the members in the GtkStyle structure.... but the names are self-explanatory so they should be the correct ones.... One more thing I am not fully sure about is the RcStyle.... This is supposed some kind of file that is used to define a theme.... Does this affect the GtkStyle? Ie when I call
GtkRcStyle *rcstyle =3D gtk_widget_get_modifier_style(widget);
what I am copying is the widget->style data structure or something else??? Because the function return GtkRcStyle* but I cannot find any GtkRcStyle structure in the gtkwidget.h definition.





--
-- Yiannis ------=_Part_24691_17171613.1135970927904-- From tristan.van.berkom@gmail.com Fri Dec 30 16:02:50 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B5A693B2299 for ; Fri, 30 Dec 2005 16:02:50 -0500 (EST) 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 08798-06 for ; Fri, 30 Dec 2005 16:02:47 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 493563B2296 for ; Fri, 30 Dec 2005 16:02:47 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 8so2062192nzo for ; Fri, 30 Dec 2005 13:02:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=MFXpCbQwYy0u9qK3GxORJFds0VHfHYFBo8DGUqqBgab5BHKHObfjvGIZ1nriBTGDLcVNfoBc+tzqruYtkyhYFSvY6HRNPaSfAwZef+hpPYuym4lylpV2VhHJdleNlcBuiEIhF72nu07nb2zD8PwcRRM1eeKMT8uDxG6x4KilI5s= Received: by 10.64.253.2 with SMTP id a2mr3567473qbi; Fri, 30 Dec 2005 13:02:46 -0800 (PST) Received: from ?70.48.111.138? ( [70.48.111.138]) by mx.gmail.com with ESMTP id e17sm1638450qbe.2005.12.30.13.02.46; Fri, 30 Dec 2005 13:02:46 -0800 (PST) Message-ID: <43B5A1FC.90501@gnome.org> Date: Fri, 30 Dec 2005 16:09:16 -0500 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yiannis References: <5c71e1440512271046v1de46d58n@mail.gmail.com> <43B1FC52.2070307@gnome.org> <5c71e1440512280621w37c6e890i@mail.gmail.com> <5c71e1440512280835m7410ddaaq@mail.gmail.com> <43B2E433.6020203@gnome.org> <5c71e1440512301128w6744bdaap@mail.gmail.com> In-Reply-To: <5c71e1440512301128w6744bdaap@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Tristan Van Berkom X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=-0.020, BAYES_00=-2.599, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.543 X-Spam-Level: Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive? X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 21:02:50 -0000 Yiannis wrote: > Sorry for posting back but my code failed.... :) > [...] Try doing: static GdkColor *insensitive_colour = NULL; static GdkColor *normal_colour = NULL; /* ... When initializing ... */ label = gtk_label_new (""); insensitive_colour = gdk_color_copy (&(GTK_WIDGET (label)->style->fg[GTK_STATE_INSENSITIVE])); normal_colour = gdk_color_copy (&(GTK_WIDGET (label)->style->fg[GTK_STATE_NORMAL])); gtk_widget_destroy (label); /* ... When setting sensitive state, * or inside a "notify::sensitive" handler ... */ gtk_widget_modify_fg (GTK_WIDGET (widget), GTK_STATE_NORMAL, sensitive ? normal_colour : insensitive_colour); You could use the widget of choice of course to initialize your colours, it was a togglebutton you wanted ? anyway, this code should work :) Cheers, -Tristan From mikael.olenfalk@gmail.com Fri Dec 30 20:07:43 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75B933B23FF for ; Fri, 30 Dec 2005 20:07:43 -0500 (EST) 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 26073-07 for ; Fri, 30 Dec 2005 20:07:23 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by menubar.gnome.org (Postfix) with ESMTP id AAC4D3B23FA for ; Fri, 30 Dec 2005 20:07:09 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i30so20064wra for ; Fri, 30 Dec 2005 17:07:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hvGcUb9jxwcaRIXhvt6B2dGQr6w3lTJPbyg0VvMww13SAAmWrHFu0oUpTSSGW6X6Xkp5aclqYN011MxZXmy6GKL21R5Jk0QonU1vftlxwSfCJatNU/jVKRu0hEoJGfSa6SdQqWsev07Dl6ntjK09v5ZDnMg30wvwqm0J2N0e7Zk= Received: by 10.64.199.9 with SMTP id w9mr283667qbf; Fri, 30 Dec 2005 17:07:08 -0800 (PST) Received: by 10.64.185.8 with HTTP; Fri, 30 Dec 2005 17:07:08 -0800 (PST) Message-ID: Date: Sat, 31 Dec 2005 02:07:08 +0100 From: Mikael Olenfalk To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.581 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.581 X-Spam-Level: Subject: Creating a GTK Cheat Sheet Poster X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mikael.Olenfalk@gmail.com List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 01:07:43 -0000 Hi, I just started working on creating a poster-sized (A0, approx 120x90 cm) cheat sheet for GTK development. My plan is to show an application window in the middle of the poster with all widgets in it and then list the classes for each widget around this window. I think this will make development much easier for newbies (like myself), especially because code completion often is too overwhelming for using as a TIP for which function to use; and it doesn't describe signals as well. So I have started creating an initial design of the GtkWindow class, which you can have a look at at this address: https://mikael.is-a-geek.org/shared/public/gtk-window-test-001.png It would be great if some of you could give feedback on this, below is a list of things I am thinking about changing next (that is before I move on and create other classes as well): - the "Functions" section is overwhelming and actually useless for a fast-glance look up of any function; should I remove it completely or just remove all uncommon functions from it? As you can see I have already removed some functions (all functions for set/getting the properties, as well as some functions for framebuffer gtk) I am a complete GTK newbie so I do not know which functions are uncommon; if you have suggestions, they are very welcome. - I am thinking about removing the "gboolean" and "gint" (and other common types) in favour of easy-to-distinguishable icons - I am thinking about removing the "GtkWindow *window" parameter in all functions in favour of an icon for the instance - I am thinking about creating a section of "Static Functions" (e.g. gtk_window_list_toplevels(void)) Thanks in advance for any feedback! Happy New Year to everybody! Mikael Olenfalk From yeti@physics.muni.cz Sat Dec 31 06:56:44 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C778C3B263D for ; Sat, 31 Dec 2005 06:56:44 -0500 (EST) 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 00772-10 for ; Sat, 31 Dec 2005 06:56:41 -0500 (EST) Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by menubar.gnome.org (Postfix) with ESMTP id D97783B2631 for ; Sat, 31 Dec 2005 06:56:38 -0500 (EST) Received: from monoceros.physics.muni.cz (postfix@monoceros.physics.muni.cz [147.251.27.2]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBVBuZSO014680; Sat, 31 Dec 2005 12:56:36 +0100 Received: by monoceros.physics.muni.cz (Postfix, from userid 16809) id 9499D23E4F; Sat, 31 Dec 2005 12:56:35 +0100 (CET) Date: Sat, 31 Dec 2005 12:56:35 +0100 From: "David Necas (Yeti)" To: Mikael Olenfalk Message-ID: <20051231115635.GK29084@potato> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Organization: Trific soft., http://trific.ath.cx/ X-Muni-Spam-TestIP: 147.251.27.2 X-Muni-Envelope-From: yeti@physics.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.566 tagged_above=-999 required=2 tests=[AWL=0.033, BAYES_00=-2.599] X-Spam-Score: -2.566 X-Spam-Level: Cc: gtk-list@gnome.org Subject: Re: Creating a GTK Cheat Sheet Poster X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 11:56:44 -0000 On Sat, Dec 31, 2005 at 02:07:08AM +0100, Mikael Olenfalk wrote: > I just started working on creating a poster-sized (A0, approx 120x90 > cm) cheat sheet for GTK development. My plan is to show an application > window in the middle of the poster with all widgets in it and then > list the classes for each widget around this window. > > I think this will make development much easier for newbies (like > myself), especially because code completion often is too overwhelming > for using as a TIP for which function to use; and it doesn't describe > signals as well. I have a few comments, I could have more if I had a better idea how is it supposed to be used, that is how it intends to complement API (and other) documentation. In my opinion one should primarily optimize the access to full documentation: if I already have a symbol or class and I am more than one keystroke away from its documentation, something is wrong. If I know it approximately, I should be still able to get the best match by approximate search or get to the list of all symbols in the correct class quickly. What is not covered so well: - I want a method that does.../the name of signal emitted when... If skimming of the method/signal/... list [in full documentation I have one keystroke away] fails, fulltext search helps a lot (though I recall I was unable to find the method to set GtkFileChooser's directory because its description only talks about folders, not mentioning directory). The cheatsheet could help if it tried to group the methods by topic, because now the order is arbitrary like in the API docs. But again, I would prefer less arbitrary method order in API docs too. - I want a widget that does.../looks like... Something between Widget Gallery and Widgets and Objects chapter TOC in API documetation -- only better -- would help. This is something you could focus on: to enable to find the essential information quickly instead of listing hordes of incomprehensible parameters that people need to look up in full documetation anyway. - I have a conceptual problem, need to learn some programming idiom, a particular tweak, ... A cheatsheet is not the right place for these. > So I have started creating an initial design of the GtkWindow class, > which you can have a look at at this address: > > https://mikael.is-a-geek.org/shared/public/gtk-window-test-001.png > > It would be great if some of you could give feedback on this, It obviously misses one thing: parent class and implemented interfaces (maybe childs too). People have problems finding inherited features even in API documetation that explicitely links to parents and lists implemented interfaces. You can mitigate the confusion by logical grouping of e.g. GtkHBox, GtkVBox, and GtkBox together, but not fully. > - the "Functions" section is overwhelming and actually useless for a > fast-glance look up of any function; should I remove it completely or > just remove all uncommon functions from it? As you can see I have > already removed some functions (all functions for set/getting the > properties, as well as some functions for framebuffer gtk) I am a > complete GTK newbie so I do not know which functions are uncommon; if > you have suggestions, they are very welcome. I supposte you do not want to just print copies of Gtk+ header files to A0 poster. Therefore I would only keep the commonly needed. I agree it is not always clear which are which. > - I am thinking about removing the "GtkWindow *window" parameter in > all functions in favour of an icon for the instance Redundant information: - The first argument of each signal is the instance, the last is always user data. - The first argument of each method is the instance (functions that are not methods, or are static methods, can be listed separately) - Method names of GtkSomething always start with gtk_something_. Most of these are only consequences of object system implemented in the language instead of being part of the language. I am not sure how confusing it would be if you removed all the gtk_something_ prefixes and `self' arguments (for me not at all because I only add these decorations because of C, I think about them the OOP way, but YMMV). Yeti -- That's enough. From doodle202@yahoo.com Thu Dec 29 09:58:52 2005 Return-Path: X-Original-To: gtk-list@gnome.org Delivered-To: gtk-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3A9D73B06F9 for ; Thu, 29 Dec 2005 09:58:52 -0500 (EST) 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 17500-05 for ; Thu, 29 Dec 2005 09:58:50 -0500 (EST) Received: from web90104.mail.scd.yahoo.com (web90104.mail.scd.yahoo.com [66.218.94.75]) by menubar.gnome.org (Postfix) with SMTP id 285D63B1980 for ; Thu, 29 Dec 2005 09:58:50 -0500 (EST) Received: (qmail 25758 invoked by uid 60001); 29 Dec 2005 14:58:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yQ4aN++ho56nFOy/Go28z1RmF7Wxfu7s3iIe6sKfK4slrHdYkA1mNqbJpXT7UhVOzQOZBz30M9mmkIA3tHOlUGw3xDFtQRDXRR6z5BzFC+wDC832bKsANXY8M84i7clgRP8bgpCyoqdwkRKSonisvn6B61Chb9/Bsf5MQ1B1IAw= ; Message-ID: <20051229145849.25756.qmail@web90104.mail.scd.yahoo.com> Received: from [194.237.142.10] by web90104.mail.scd.yahoo.com via HTTP; Thu, 29 Dec 2005 06:58:49 PST Date: Thu, 29 Dec 2005 06:58:49 -0800 (PST) From: dipti sach To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.54 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -0.54 X-Spam-Level: X-Mailman-Approved-At: Mon, 02 Jan 2006 08:30:34 -0500 Subject: Glib Installation problem X-BeenThere: gtk-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 14:58:52 -0000 Hello, I have downloaded glib-2.8.4 and i am trying to install it. It gives a configure error : configure: error: *** pkg-config not found. But pkg-config is installed and if i do $ whereis pkg-config It returns /usr/local/bin/pkg-config. It would be nice if i can get some help related to this. Im trying to install GIMP and hence trying to install the dependencies. I am using Linux distribution Sles9 Regards Dipti __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com